public static final class SuggestionDenyListEntry.Builder extends GeneratedMessage.Builder<SuggestionDenyListEntry.Builder> implements SuggestionDenyListEntryOrBuilderSuggestion deny list entry identifying the phrase to block from suggestions and the applied operation for the phrase.
Protobuf type google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SuggestionDenyListEntry.BuilderImplements
SuggestionDenyListEntryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SuggestionDenyListEntry.Builder |
This builder for chaining. |
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 |
|
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.v1alpha.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.v1alpha.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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SuggestionDenyListEntry.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SuggestionDenyListEntry.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for blockPhrase to set. |
| Returns | |
|---|---|
| Type | Description |
SuggestionDenyListEntry.Builder |
This builder for chaining. |
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.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SuggestionDenyListEntry.MatchOperatorThe 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.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for matchOperator to set. |
| Returns | |
|---|---|
| Type | Description |
SuggestionDenyListEntry.Builder |
This builder for chaining. |