Class CreateQaQuestionRequest.Builder

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

public static final class CreateQaQuestionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateQaQuestionRequest.Builder> implements CreateQaQuestionRequestOrBuilder
 The request for creating a QaQuestion.
 
Protobuf type google.cloud.contactcenterinsights.v1.CreateQaQuestionRequest
  • 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<CreateQaQuestionRequest.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<CreateQaQuestionRequest.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<CreateQaQuestionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The parent resource of the QaQuestion.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateQaQuestionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the QaQuestion.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateQaQuestionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateQaQuestionRequest.Builder setParent(String value)
       Required. The parent resource of the QaQuestion.
       
      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 CreateQaQuestionRequest.Builder clearParent()
       Required. The parent resource of the QaQuestion.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateQaQuestionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the QaQuestion.
       
      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.
    • hasQaQuestion

      public boolean hasQaQuestion()
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQaQuestion in interface CreateQaQuestionRequestOrBuilder
      Returns:
      Whether the qaQuestion field is set.
    • getQaQuestion

      public QaQuestion getQaQuestion()
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQaQuestion in interface CreateQaQuestionRequestOrBuilder
      Returns:
      The qaQuestion.
    • setQaQuestion

      public CreateQaQuestionRequest.Builder setQaQuestion(QaQuestion value)
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
    • setQaQuestion

      public CreateQaQuestionRequest.Builder setQaQuestion(QaQuestion.Builder builderForValue)
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeQaQuestion

      public CreateQaQuestionRequest.Builder mergeQaQuestion(QaQuestion value)
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearQaQuestion

      public CreateQaQuestionRequest.Builder clearQaQuestion()
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQaQuestionBuilder

      public QaQuestion.Builder getQaQuestionBuilder()
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQaQuestionOrBuilder

      public QaQuestionOrBuilder getQaQuestionOrBuilder()
       Required. The QaQuestion to create.
       
      .google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQaQuestionOrBuilder in interface CreateQaQuestionRequestOrBuilder
    • getQaQuestionId

      public String getQaQuestionId()
       Optional. A unique ID for the new question. This ID will become the final
       component of the question's resource name. If no ID is specified, a
       server-generated ID will be used.
      
       This value should be 4-64 characters and must match the regular
       expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
       
      string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQaQuestionId in interface CreateQaQuestionRequestOrBuilder
      Returns:
      The qaQuestionId.
    • getQaQuestionIdBytes

      public com.google.protobuf.ByteString getQaQuestionIdBytes()
       Optional. A unique ID for the new question. This ID will become the final
       component of the question's resource name. If no ID is specified, a
       server-generated ID will be used.
      
       This value should be 4-64 characters and must match the regular
       expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
       
      string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQaQuestionIdBytes in interface CreateQaQuestionRequestOrBuilder
      Returns:
      The bytes for qaQuestionId.
    • setQaQuestionId

      public CreateQaQuestionRequest.Builder setQaQuestionId(String value)
       Optional. A unique ID for the new question. This ID will become the final
       component of the question's resource name. If no ID is specified, a
       server-generated ID will be used.
      
       This value should be 4-64 characters and must match the regular
       expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
       
      string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The qaQuestionId to set.
      Returns:
      This builder for chaining.
    • clearQaQuestionId

      public CreateQaQuestionRequest.Builder clearQaQuestionId()
       Optional. A unique ID for the new question. This ID will become the final
       component of the question's resource name. If no ID is specified, a
       server-generated ID will be used.
      
       This value should be 4-64 characters and must match the regular
       expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
       
      string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setQaQuestionIdBytes

      public CreateQaQuestionRequest.Builder setQaQuestionIdBytes(com.google.protobuf.ByteString value)
       Optional. A unique ID for the new question. This ID will become the final
       component of the question's resource name. If no ID is specified, a
       server-generated ID will be used.
      
       This value should be 4-64 characters and must match the regular
       expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
       
      string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for qaQuestionId to set.
      Returns:
      This builder for chaining.