Class CreatePhraseMatcherRequest.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreatePhraseMatcherRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides

build()

public CreatePhraseMatcherRequest build()
Returns
TypeDescription
CreatePhraseMatcherRequest

buildPartial()

public CreatePhraseMatcherRequest buildPartial()
Returns
TypeDescription
CreatePhraseMatcherRequest

clear()

public CreatePhraseMatcherRequest.Builder clear()
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreatePhraseMatcherRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreatePhraseMatcherRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreatePhraseMatcherRequest.Builder

clone()

public CreatePhraseMatcherRequest.Builder clone()
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides

getDefaultInstanceForType()

public CreatePhraseMatcherRequest getDefaultInstanceForType()
Returns
TypeDescription
CreatePhraseMatcherRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the phraseMatcher field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreatePhraseMatcherRequest other)

public CreatePhraseMatcherRequest.Builder mergeFrom(CreatePhraseMatcherRequest other)
Parameter
NameDescription
otherCreatePhraseMatcherRequest
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreatePhraseMatcherRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreatePhraseMatcherRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePhraseMatcher
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreatePhraseMatcherRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreatePhraseMatcherRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valuePhraseMatcher
Returns
TypeDescription
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
NameDescription
builderForValuePhraseMatcher.Builder
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder

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

public CreatePhraseMatcherRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreatePhraseMatcherRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreatePhraseMatcherRequest.Builder
Overrides