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 Summary
Modifier and TypeMethodDescriptionaddAllAlternateIds(Iterable<String> values) Output only.addAlternateIds(String value) Output only.addAlternateIdsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Identifier.The snapshot of the scorecard at the time of this revision's creation.Output only.getAlternateIds(int index) Output only.com.google.protobuf.ByteStringgetAlternateIdsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Identifier.com.google.protobuf.ByteStringIdentifier.The snapshot of the scorecard at the time of this revision's creation.The snapshot of the scorecard at the time of this revision's creation.The snapshot of the scorecard at the time of this revision's creation.getState()Output only.intOutput only.booleanOutput only.booleanThe snapshot of the scorecard at the time of this revision's creation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(QaScorecardRevision other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSnapshot(QaScorecard value) The snapshot of the scorecard at the time of this revision's creation.setAlternateIds(int index, String value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setSnapshot(QaScorecard value) The snapshot of the scorecard at the time of this revision's creation.setSnapshot(QaScorecard.Builder builderForValue) The snapshot of the scorecard at the time of this revision's creation.Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QaScorecardRevision.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QaScorecardRevision.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QaScorecardRevision.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QaScorecardRevision.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QaScorecardRevision.Builder>- Throws:
IOException
-
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:
getNamein interfaceQaScorecardRevisionOrBuilder- 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:
getNameBytesin interfaceQaScorecardRevisionOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
hasSnapshotin interfaceQaScorecardRevisionOrBuilder- Returns:
- Whether the snapshot field is set.
-
getSnapshot
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;- Specified by:
getSnapshotin interfaceQaScorecardRevisionOrBuilder- Returns:
- The snapshot.
-
setSnapshot
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2; -
setSnapshot
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2; -
mergeSnapshot
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2; -
clearSnapshot
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2; -
getSnapshotBuilder
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2; -
getSnapshotOrBuilder
The snapshot of the scorecard at the time of this revision's creation.
.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;- Specified by:
getSnapshotOrBuilderin interfaceQaScorecardRevisionOrBuilder
-
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:
hasCreateTimein interfaceQaScorecardRevisionOrBuilder- 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:
getCreateTimein interfaceQaScorecardRevisionOrBuilder- Returns:
- The createTime.
-
setCreateTime
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
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceQaScorecardRevisionOrBuilder
-
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:
getAlternateIdsListin interfaceQaScorecardRevisionOrBuilder- 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:
getAlternateIdsCountin interfaceQaScorecardRevisionOrBuilder- Returns:
- The count of alternateIds.
-
getAlternateIds
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:
getAlternateIdsin interfaceQaScorecardRevisionOrBuilder- 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:
getAlternateIdsBytesin interfaceQaScorecardRevisionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the alternateIds at the given index.
-
setAlternateIds
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
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
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
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
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:
getStateValuein interfaceQaScorecardRevisionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
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:
getStatein interfaceQaScorecardRevisionOrBuilder- 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
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.
-