Class FeedbackLabel.Builder

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

public static final class FeedbackLabel.Builder extends com.google.protobuf.GeneratedMessage.Builder<FeedbackLabel.Builder> implements FeedbackLabelOrBuilder
 Represents a conversation, resource, and label provided by the user.
 
Protobuf type google.cloud.contactcenterinsights.v1.FeedbackLabel
  • 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<FeedbackLabel.Builder>
    • clear

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

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

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

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

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

      public FeedbackLabel.Builder mergeFrom(FeedbackLabel other)
    • isInitialized

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

      public FeedbackLabel.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<FeedbackLabel.Builder>
      Throws:
      IOException
    • getLabelTypeCase

      public FeedbackLabel.LabelTypeCase getLabelTypeCase()
      Specified by:
      getLabelTypeCase in interface FeedbackLabelOrBuilder
    • clearLabelType

      public FeedbackLabel.Builder clearLabelType()
    • hasLabel

      public boolean hasLabel()
       String label.
       
      string label = 4;
      Specified by:
      hasLabel in interface FeedbackLabelOrBuilder
      Returns:
      Whether the label field is set.
    • getLabel

      public String getLabel()
       String label.
       
      string label = 4;
      Specified by:
      getLabel in interface FeedbackLabelOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       String label.
       
      string label = 4;
      Specified by:
      getLabelBytes in interface FeedbackLabelOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public FeedbackLabel.Builder setLabel(String value)
       String label.
       
      string label = 4;
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public FeedbackLabel.Builder clearLabel()
       String label.
       
      string label = 4;
      Returns:
      This builder for chaining.
    • setLabelBytes

      public FeedbackLabel.Builder setLabelBytes(com.google.protobuf.ByteString value)
       String label.
       
      string label = 4;
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • hasQaAnswerLabel

      public boolean hasQaAnswerLabel()
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
      Specified by:
      hasQaAnswerLabel in interface FeedbackLabelOrBuilder
      Returns:
      Whether the qaAnswerLabel field is set.
    • getQaAnswerLabel

      public QaAnswer.AnswerValue getQaAnswerLabel()
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
      Specified by:
      getQaAnswerLabel in interface FeedbackLabelOrBuilder
      Returns:
      The qaAnswerLabel.
    • setQaAnswerLabel

      public FeedbackLabel.Builder setQaAnswerLabel(QaAnswer.AnswerValue value)
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
    • setQaAnswerLabel

      public FeedbackLabel.Builder setQaAnswerLabel(QaAnswer.AnswerValue.Builder builderForValue)
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
    • mergeQaAnswerLabel

      public FeedbackLabel.Builder mergeQaAnswerLabel(QaAnswer.AnswerValue value)
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
    • clearQaAnswerLabel

      public FeedbackLabel.Builder clearQaAnswerLabel()
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
    • getQaAnswerLabelBuilder

      public QaAnswer.AnswerValue.Builder getQaAnswerLabelBuilder()
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
    • getQaAnswerLabelOrBuilder

      public QaAnswer.AnswerValueOrBuilder getQaAnswerLabelOrBuilder()
       QaAnswer label.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;
      Specified by:
      getQaAnswerLabelOrBuilder in interface FeedbackLabelOrBuilder
    • getName

      public String getName()
       Immutable. Resource name of the FeedbackLabel.
       Format:
       projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface FeedbackLabelOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. Resource name of the FeedbackLabel.
       Format:
       projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface FeedbackLabelOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FeedbackLabel.Builder setName(String value)
       Immutable. Resource name of the FeedbackLabel.
       Format:
       projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FeedbackLabel.Builder clearName()
       Immutable. Resource name of the FeedbackLabel.
       Format:
       projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FeedbackLabel.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. Resource name of the FeedbackLabel.
       Format:
       projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLabeledResource

      public String getLabeledResource()
       Resource name of the resource to be labeled.
       
      string labeled_resource = 3;
      Specified by:
      getLabeledResource in interface FeedbackLabelOrBuilder
      Returns:
      The labeledResource.
    • getLabeledResourceBytes

      public com.google.protobuf.ByteString getLabeledResourceBytes()
       Resource name of the resource to be labeled.
       
      string labeled_resource = 3;
      Specified by:
      getLabeledResourceBytes in interface FeedbackLabelOrBuilder
      Returns:
      The bytes for labeledResource.
    • setLabeledResource

      public FeedbackLabel.Builder setLabeledResource(String value)
       Resource name of the resource to be labeled.
       
      string labeled_resource = 3;
      Parameters:
      value - The labeledResource to set.
      Returns:
      This builder for chaining.
    • clearLabeledResource

      public FeedbackLabel.Builder clearLabeledResource()
       Resource name of the resource to be labeled.
       
      string labeled_resource = 3;
      Returns:
      This builder for chaining.
    • setLabeledResourceBytes

      public FeedbackLabel.Builder setLabeledResourceBytes(com.google.protobuf.ByteString value)
       Resource name of the resource to be labeled.
       
      string labeled_resource = 3;
      Parameters:
      value - The bytes for labeledResource to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface FeedbackLabelOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface FeedbackLabelOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public FeedbackLabel.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public FeedbackLabel.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public FeedbackLabel.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public FeedbackLabel.Builder clearCreateTime()
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time of the label.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface FeedbackLabelOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface FeedbackLabelOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface FeedbackLabelOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public FeedbackLabel.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public FeedbackLabel.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public FeedbackLabel.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public FeedbackLabel.Builder clearUpdateTime()
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time of the label.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface FeedbackLabelOrBuilder