Class CreatePhraseMatcherRequest.Builder

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

public static final class CreatePhraseMatcherRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreatePhraseMatcherRequest.Builder> implements CreatePhraseMatcherRequestOrBuilder
 Request to create a phrase matcher.
 
Protobuf type google.cloud.contactcenterinsights.v1.CreatePhraseMatcherRequest
  • 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<CreatePhraseMatcherRequest.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<CreatePhraseMatcherRequest.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<CreatePhraseMatcherRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CreatePhraseMatcherRequest.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<CreatePhraseMatcherRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource of the phrase matcher. Required. The location
       to create a phrase matcher for. Format: `projects/<Project
       ID>/locations/<Location ID>` or `projects/<Project
       Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreatePhraseMatcherRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the phrase matcher. Required. The location
       to create a phrase matcher for. Format: `projects/<Project
       ID>/locations/<Location ID>` or `projects/<Project
       Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreatePhraseMatcherRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreatePhraseMatcherRequest.Builder setParent(String value)
       Required. The parent resource of the phrase matcher. Required. The location
       to create a phrase matcher for. Format: `projects/<Project
       ID>/locations/<Location ID>` or `projects/<Project
       Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreatePhraseMatcherRequest.Builder clearParent()
       Required. The parent resource of the phrase matcher. Required. The location
       to create a phrase matcher for. Format: `projects/<Project
       ID>/locations/<Location ID>` or `projects/<Project
       Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreatePhraseMatcherRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the phrase matcher. Required. The location
       to create a phrase matcher for. Format: `projects/<Project
       ID>/locations/<Location ID>` or `projects/<Project
       Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasPhraseMatcher

      public boolean hasPhraseMatcher()
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPhraseMatcher in interface CreatePhraseMatcherRequestOrBuilder
      Returns:
      Whether the phraseMatcher field is set.
    • getPhraseMatcher

      public PhraseMatcher getPhraseMatcher()
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseMatcher in interface CreatePhraseMatcherRequestOrBuilder
      Returns:
      The phraseMatcher.
    • setPhraseMatcher

      public CreatePhraseMatcherRequest.Builder setPhraseMatcher(PhraseMatcher value)
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
    • setPhraseMatcher

      public CreatePhraseMatcherRequest.Builder setPhraseMatcher(PhraseMatcher.Builder builderForValue)
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergePhraseMatcher

      public CreatePhraseMatcherRequest.Builder mergePhraseMatcher(PhraseMatcher value)
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearPhraseMatcher

      public CreatePhraseMatcherRequest.Builder clearPhraseMatcher()
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPhraseMatcherBuilder

      public PhraseMatcher.Builder getPhraseMatcherBuilder()
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPhraseMatcherOrBuilder

      public PhraseMatcherOrBuilder getPhraseMatcherOrBuilder()
       Required. The phrase matcher resource to create.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseMatcherOrBuilder in interface CreatePhraseMatcherRequestOrBuilder