Class PhraseMatchRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder>
com.google.cloud.contactcenterinsights.v1.PhraseMatchRule.Builder
All Implemented Interfaces:
PhraseMatchRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PhraseMatchRule

public static final class PhraseMatchRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder> implements PhraseMatchRuleOrBuilder
 The data for a phrase match rule.
 
Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRule
  • 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<PhraseMatchRule.Builder>
    • clear

      public PhraseMatchRule.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<PhraseMatchRule.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<PhraseMatchRule.Builder>
    • getDefaultInstanceForType

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

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

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

      public PhraseMatchRule.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<PhraseMatchRule.Builder>
    • mergeFrom

      public PhraseMatchRule.Builder mergeFrom(PhraseMatchRule other)
    • isInitialized

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

      public PhraseMatchRule.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<PhraseMatchRule.Builder>
      Throws:
      IOException
    • getQuery

      public String getQuery()
       Required. The phrase to be matched.
       
      string query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface PhraseMatchRuleOrBuilder
      Returns:
      The query.
    • getQueryBytes

      public com.google.protobuf.ByteString getQueryBytes()
       Required. The phrase to be matched.
       
      string query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryBytes in interface PhraseMatchRuleOrBuilder
      Returns:
      The bytes for query.
    • setQuery

      public PhraseMatchRule.Builder setQuery(String value)
       Required. The phrase to be matched.
       
      string query = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The query to set.
      Returns:
      This builder for chaining.
    • clearQuery

      public PhraseMatchRule.Builder clearQuery()
       Required. The phrase to be matched.
       
      string query = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setQueryBytes

      public PhraseMatchRule.Builder setQueryBytes(com.google.protobuf.ByteString value)
       Required. The phrase to be matched.
       
      string query = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for query to set.
      Returns:
      This builder for chaining.
    • getNegated

      public boolean getNegated()
       Specifies whether the phrase must be missing from the transcript segment or
       present in the transcript segment.
       
      bool negated = 2;
      Specified by:
      getNegated in interface PhraseMatchRuleOrBuilder
      Returns:
      The negated.
    • setNegated

      public PhraseMatchRule.Builder setNegated(boolean value)
       Specifies whether the phrase must be missing from the transcript segment or
       present in the transcript segment.
       
      bool negated = 2;
      Parameters:
      value - The negated to set.
      Returns:
      This builder for chaining.
    • clearNegated

      public PhraseMatchRule.Builder clearNegated()
       Specifies whether the phrase must be missing from the transcript segment or
       present in the transcript segment.
       
      bool negated = 2;
      Returns:
      This builder for chaining.
    • hasConfig

      public boolean hasConfig()
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
      Specified by:
      hasConfig in interface PhraseMatchRuleOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public PhraseMatchRuleConfig getConfig()
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
      Specified by:
      getConfig in interface PhraseMatchRuleOrBuilder
      Returns:
      The config.
    • setConfig

       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
    • setConfig

      public PhraseMatchRule.Builder setConfig(PhraseMatchRuleConfig.Builder builderForValue)
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
    • mergeConfig

      public PhraseMatchRule.Builder mergeConfig(PhraseMatchRuleConfig value)
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
    • clearConfig

      public PhraseMatchRule.Builder clearConfig()
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
    • getConfigBuilder

      public PhraseMatchRuleConfig.Builder getConfigBuilder()
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
    • getConfigOrBuilder

      public PhraseMatchRuleConfigOrBuilder getConfigOrBuilder()
       Provides additional information about the rule that specifies how to apply
       the rule.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
      Specified by:
      getConfigOrBuilder in interface PhraseMatchRuleOrBuilder