Class QaScorecardRevision.Builder

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

public static final class QaScorecardRevision.Builder extends com.google.protobuf.GeneratedMessage.Builder<QaScorecardRevision.Builder> implements QaScorecardRevisionOrBuilder
 A revision of a QaScorecard.

 Modifying published scorecard fields would invalidate existing scorecard
 results — the questions may have changed, or the score weighting will make
 existing scores impossible to understand. So changes must create a new
 revision, rather than modifying the existing resource.
 
Protobuf type google.cloud.contactcenterinsights.v1.QaScorecardRevision
  • 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<QaScorecardRevision.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<QaScorecardRevision.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<QaScorecardRevision.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public QaScorecardRevision.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<QaScorecardRevision.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The name of the scorecard revision.
       Format:
       projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface QaScorecardRevisionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the scorecard revision.
       Format:
       projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface QaScorecardRevisionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public QaScorecardRevision.Builder setName(String value)
       Identifier. The name of the scorecard revision.
       Format:
       projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public QaScorecardRevision.Builder clearName()
       Identifier. The name of the scorecard revision.
       Format:
       projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public QaScorecardRevision.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the scorecard revision.
       Format:
       projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasSnapshot

      public boolean hasSnapshot()
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
      Specified by:
      hasSnapshot in interface QaScorecardRevisionOrBuilder
      Returns:
      Whether the snapshot field is set.
    • getSnapshot

      public QaScorecard getSnapshot()
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
      Specified by:
      getSnapshot in interface QaScorecardRevisionOrBuilder
      Returns:
      The snapshot.
    • setSnapshot

      public QaScorecardRevision.Builder setSnapshot(QaScorecard value)
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
    • setSnapshot

      public QaScorecardRevision.Builder setSnapshot(QaScorecard.Builder builderForValue)
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
    • mergeSnapshot

      public QaScorecardRevision.Builder mergeSnapshot(QaScorecard value)
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
    • clearSnapshot

      public QaScorecardRevision.Builder clearSnapshot()
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
    • getSnapshotBuilder

      public QaScorecard.Builder getSnapshotBuilder()
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
    • getSnapshotOrBuilder

      public QaScorecardOrBuilder getSnapshotOrBuilder()
       The snapshot of the scorecard at the time of this revision's creation.
       
      .google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;
      Specified by:
      getSnapshotOrBuilder in interface QaScorecardRevisionOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface QaScorecardRevisionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface QaScorecardRevisionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public QaScorecardRevision.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public QaScorecardRevision.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public QaScorecardRevision.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public QaScorecardRevision.Builder clearCreateTime()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface QaScorecardRevisionOrBuilder
    • getAlternateIdsList

      public com.google.protobuf.ProtocolStringList getAlternateIdsList()
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternateIdsList in interface QaScorecardRevisionOrBuilder
      Returns:
      A list containing the alternateIds.
    • getAlternateIdsCount

      public int getAlternateIdsCount()
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternateIdsCount in interface QaScorecardRevisionOrBuilder
      Returns:
      The count of alternateIds.
    • getAlternateIds

      public String getAlternateIds(int index)
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternateIds in interface QaScorecardRevisionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The alternateIds at the given index.
    • getAlternateIdsBytes

      public com.google.protobuf.ByteString getAlternateIdsBytes(int index)
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternateIdsBytes in interface QaScorecardRevisionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the alternateIds at the given index.
    • setAlternateIds

      public QaScorecardRevision.Builder setAlternateIds(int index, String value)
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The alternateIds to set.
      Returns:
      This builder for chaining.
    • addAlternateIds

      public QaScorecardRevision.Builder addAlternateIds(String value)
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The alternateIds to add.
      Returns:
      This builder for chaining.
    • addAllAlternateIds

      public QaScorecardRevision.Builder addAllAlternateIds(Iterable<String> values)
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The alternateIds to add.
      Returns:
      This builder for chaining.
    • clearAlternateIds

      public QaScorecardRevision.Builder clearAlternateIds()
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAlternateIdsBytes

      public QaScorecardRevision.Builder addAlternateIdsBytes(com.google.protobuf.ByteString value)
       Output only. Alternative IDs for this revision of the scorecard, e.g.,
       `latest`.
       
      repeated string alternate_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the alternateIds to add.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the scorecard revision, indicating whether it's ready
       to be used in analysis.
       
      .google.cloud.contactcenterinsights.v1.QaScorecardRevision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface QaScorecardRevisionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public QaScorecardRevision.Builder setStateValue(int value)
       Output only. State of the scorecard revision, indicating whether it's ready
       to be used in analysis.
       
      .google.cloud.contactcenterinsights.v1.QaScorecardRevision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public QaScorecardRevision.State getState()
       Output only. State of the scorecard revision, indicating whether it's ready
       to be used in analysis.
       
      .google.cloud.contactcenterinsights.v1.QaScorecardRevision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface QaScorecardRevisionOrBuilder
      Returns:
      The state.
    • setState

       Output only. State of the scorecard revision, indicating whether it's ready
       to be used in analysis.
       
      .google.cloud.contactcenterinsights.v1.QaScorecardRevision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public QaScorecardRevision.Builder clearState()
       Output only. State of the scorecard revision, indicating whether it's ready
       to be used in analysis.
       
      .google.cloud.contactcenterinsights.v1.QaScorecardRevision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.