Class CreatePhraseMatcherRequest.Builder (2.47.0)

public static final class CreatePhraseMatcherRequest.Builder extends GeneratedMessageV3.Builder<CreatePhraseMatcherRequest.Builder> implements CreatePhraseMatcherRequestOrBuilder

Request to create a phrase matcher.

Protobuf type google.cloud.contactcenterinsights.v1.CreatePhraseMatcherRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreatePhraseMatcherRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

build()

public CreatePhraseMatcherRequest build()
Returns
Type Description
CreatePhraseMatcherRequest

buildPartial()

public CreatePhraseMatcherRequest buildPartial()
Returns
Type Description
CreatePhraseMatcherRequest

clear()

public CreatePhraseMatcherRequest.Builder clear()
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreatePhraseMatcherRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreatePhraseMatcherRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

clearParent()

public CreatePhraseMatcherRequest.Builder clearParent()

Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreatePhraseMatcherRequest.Builder

This builder for chaining.

clearPhraseMatcher()

public CreatePhraseMatcherRequest.Builder clearPhraseMatcher()

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreatePhraseMatcherRequest.Builder

clone()

public CreatePhraseMatcherRequest.Builder clone()
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

getDefaultInstanceForType()

public CreatePhraseMatcherRequest getDefaultInstanceForType()
Returns
Type Description
CreatePhraseMatcherRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getPhraseMatcher()

public PhraseMatcher getPhraseMatcher()

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatcher

The phraseMatcher.

getPhraseMatcherBuilder()

public PhraseMatcher.Builder getPhraseMatcherBuilder()

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatcher.Builder

getPhraseMatcherOrBuilder()

public PhraseMatcherOrBuilder getPhraseMatcherOrBuilder()

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatcherOrBuilder

hasPhraseMatcher()

public boolean hasPhraseMatcher()

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the phraseMatcher field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreatePhraseMatcherRequest other)

public CreatePhraseMatcherRequest.Builder mergeFrom(CreatePhraseMatcherRequest other)
Parameter
Name Description
other CreatePhraseMatcherRequest
Returns
Type Description
CreatePhraseMatcherRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreatePhraseMatcherRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreatePhraseMatcherRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

mergePhraseMatcher(PhraseMatcher value)

public CreatePhraseMatcherRequest.Builder mergePhraseMatcher(PhraseMatcher value)

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PhraseMatcher
Returns
Type Description
CreatePhraseMatcherRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreatePhraseMatcherRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreatePhraseMatcherRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

setParent(String value)

public CreatePhraseMatcherRequest.Builder setParent(String value)

Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreatePhraseMatcherRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreatePhraseMatcherRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreatePhraseMatcherRequest.Builder

This builder for chaining.

setPhraseMatcher(PhraseMatcher value)

public CreatePhraseMatcherRequest.Builder setPhraseMatcher(PhraseMatcher value)

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PhraseMatcher
Returns
Type Description
CreatePhraseMatcherRequest.Builder

setPhraseMatcher(PhraseMatcher.Builder builderForValue)

public CreatePhraseMatcherRequest.Builder setPhraseMatcher(PhraseMatcher.Builder builderForValue)

Required. The phrase matcher resource to create.

.google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PhraseMatcher.Builder
Returns
Type Description
CreatePhraseMatcherRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreatePhraseMatcherRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreatePhraseMatcherRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreatePhraseMatcherRequest.Builder
Overrides