public static final class SuggestionDenyListEntry.Builder extends com.google.protobuf.GeneratedMessage.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.SuggestionDenyListEntryaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>public SuggestionDenyListEntry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>public SuggestionDenyListEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SuggestionDenyListEntry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SuggestionDenyListEntry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SuggestionDenyListEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SuggestionDenyListEntry.Builder>public SuggestionDenyListEntry.Builder mergeFrom(SuggestionDenyListEntry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>public SuggestionDenyListEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SuggestionDenyListEntry.Builder>IOExceptionpublic String getBlockPhrase()
Required. Phrase to block from suggestions served. Can be maximum 125 characters.
string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];getBlockPhrase in interface SuggestionDenyListEntryOrBuilderpublic com.google.protobuf.ByteString getBlockPhraseBytes()
Required. Phrase to block from suggestions served. Can be maximum 125 characters.
string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];getBlockPhraseBytes in interface SuggestionDenyListEntryOrBuilderpublic 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];value - The blockPhrase to set.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];public SuggestionDenyListEntry.Builder setBlockPhraseBytes(com.google.protobuf.ByteString value)
Required. Phrase to block from suggestions served. Can be maximum 125 characters.
string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for blockPhrase to set.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];
getMatchOperatorValue in interface SuggestionDenyListEntryOrBuilderpublic 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];
value - The enum numeric value on the wire for matchOperator to set.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];
getMatchOperator in interface SuggestionDenyListEntryOrBuilderpublic 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];
value - The matchOperator to set.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];
Copyright © 2026 Google LLC. All rights reserved.