Class SuggestionDenyListEntry.Builder (0.38.0)

public static final class SuggestionDenyListEntry.Builder extends GeneratedMessageV3.Builder<SuggestionDenyListEntry.Builder> implements SuggestionDenyListEntryOrBuilder

Suggestion deny list entry identifying the phrase to block from suggestions and the applied operation for the phrase.

Protobuf type google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SuggestionDenyListEntry build()
Returns
Type Description
SuggestionDenyListEntry

buildPartial()

public SuggestionDenyListEntry buildPartial()
Returns
Type Description
SuggestionDenyListEntry

clear()

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

clearBlockPhrase()

public SuggestionDenyListEntry.Builder clearBlockPhrase()

Required. Phrase to block from suggestions served. Can be maximum 125 characters.

string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SuggestionDenyListEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMatchOperator()

public SuggestionDenyListEntry.Builder clearMatchOperator()

Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SuggestionDenyListEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBlockPhrase()

public String getBlockPhrase()

Required. Phrase to block from suggestions served. Can be maximum 125 characters.

string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The blockPhrase.

getBlockPhraseBytes()

public ByteString getBlockPhraseBytes()

Required. Phrase to block from suggestions served. Can be maximum 125 characters.

string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for blockPhrase.

getDefaultInstanceForType()

public SuggestionDenyListEntry getDefaultInstanceForType()
Returns
Type Description
SuggestionDenyListEntry

getDescriptorForType()

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

getMatchOperator()

public SuggestionDenyListEntry.MatchOperator getMatchOperator()

Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SuggestionDenyListEntry.MatchOperator

The matchOperator.

getMatchOperatorValue()

public int getMatchOperatorValue()

Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for matchOperator.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SuggestionDenyListEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBlockPhrase(String value)

public SuggestionDenyListEntry.Builder setBlockPhrase(String value)

Required. Phrase to block from suggestions served. Can be maximum 125 characters.

string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The blockPhrase to set.

Returns
Type Description
SuggestionDenyListEntry.Builder

This builder for chaining.

setBlockPhraseBytes(ByteString value)

public SuggestionDenyListEntry.Builder setBlockPhraseBytes(ByteString value)

Required. Phrase to block from suggestions served. Can be maximum 125 characters.

string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for blockPhrase to set.

Returns
Type Description
SuggestionDenyListEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMatchOperator(SuggestionDenyListEntry.MatchOperator value)

public SuggestionDenyListEntry.Builder setMatchOperator(SuggestionDenyListEntry.MatchOperator value)

Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SuggestionDenyListEntry.MatchOperator

The matchOperator to set.

Returns
Type Description
SuggestionDenyListEntry.Builder

This builder for chaining.

setMatchOperatorValue(int value)

public SuggestionDenyListEntry.Builder setMatchOperatorValue(int value)

Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for matchOperator to set.

Returns
Type Description
SuggestionDenyListEntry.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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