Class SuggestionDenyListEntry.Builder (0.37.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.v1.SuggestionDenyListEntry

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SuggestionDenyListEntry build()
Returns
TypeDescription
SuggestionDenyListEntry

buildPartial()

public SuggestionDenyListEntry buildPartial()
Returns
TypeDescription
SuggestionDenyListEntry

clear()

public SuggestionDenyListEntry.Builder clear()
Returns
TypeDescription
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
TypeDescription
SuggestionDenyListEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SuggestionDenyListEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SuggestionDenyListEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SuggestionDenyListEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SuggestionDenyListEntry.Builder
Overrides

clone()

public SuggestionDenyListEntry.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for blockPhrase.

getDefaultInstanceForType()

public SuggestionDenyListEntry getDefaultInstanceForType()
Returns
TypeDescription
SuggestionDenyListEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for matchOperator.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SuggestionDenyListEntry other)

public SuggestionDenyListEntry.Builder mergeFrom(SuggestionDenyListEntry other)
Parameter
NameDescription
otherSuggestionDenyListEntry
Returns
TypeDescription
SuggestionDenyListEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SuggestionDenyListEntry.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SuggestionDenyListEntry.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SuggestionDenyListEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The blockPhrase to set.

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

The bytes for blockPhrase to set.

Returns
TypeDescription
SuggestionDenyListEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SuggestionDenyListEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSuggestionDenyListEntry.MatchOperator

The matchOperator to set.

Returns
TypeDescription
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.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SuggestionDenyListEntry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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