Class SuggestionDenyListEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>
com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.Builder
All Implemented Interfaces:
SuggestionDenyListEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SuggestionDenyListEntry

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.v1beta.SuggestionDenyListEntry
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>
    • getDefaultInstanceForType

      public SuggestionDenyListEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SuggestionDenyListEntry build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SuggestionDenyListEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SuggestionDenyListEntry.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SuggestionDenyListEntry.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SuggestionDenyListEntry.Builder>
    • mergeFrom

      public SuggestionDenyListEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SuggestionDenyListEntry.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getBlockPhrase in interface SuggestionDenyListEntryOrBuilder
      Returns:
      The blockPhrase.
    • getBlockPhraseBytes

      public 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];
      Specified by:
      getBlockPhraseBytes in interface SuggestionDenyListEntryOrBuilder
      Returns:
      The bytes for blockPhrase.
    • setBlockPhrase

      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];
      Parameters:
      value - The blockPhrase to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setBlockPhraseBytes

      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];
      Parameters:
      value - The bytes for blockPhrase to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getMatchOperatorValue in interface SuggestionDenyListEntryOrBuilder
      Returns:
      The enum numeric value on the wire for matchOperator.
    • setMatchOperatorValue

      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];
      Parameters:
      value - The enum numeric value on the wire for matchOperator to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getMatchOperator in interface SuggestionDenyListEntryOrBuilder
      Returns:
      The matchOperator.
    • setMatchOperator

       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];
      Parameters:
      value - The matchOperator to set.
      Returns:
      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.v1beta.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.