Class QaScorecardRevision.Builder (2.54.0)

public static final class QaScorecardRevision.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAlternateIds(Iterable<String> values)

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];

Parameter
Name Description
values Iterable<String>

The alternateIds to add.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

addAlternateIds(String value)

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];

Parameter
Name Description
value String

The alternateIds to add.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

addAlternateIdsBytes(ByteString value)

public QaScorecardRevision.Builder addAlternateIdsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the alternateIds to add.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QaScorecardRevision.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QaScorecardRevision.Builder
Overrides

build()

public QaScorecardRevision build()
Returns
Type Description
QaScorecardRevision

buildPartial()

public QaScorecardRevision buildPartial()
Returns
Type Description
QaScorecardRevision

clear()

public QaScorecardRevision.Builder clear()
Returns
Type Description
QaScorecardRevision.Builder
Overrides

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
Type Description
QaScorecardRevision.Builder

This builder for chaining.

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];

Returns
Type Description
QaScorecardRevision.Builder

clearField(Descriptors.FieldDescriptor field)

public QaScorecardRevision.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QaScorecardRevision.Builder
Overrides

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
Type Description
QaScorecardRevision.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QaScorecardRevision.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QaScorecardRevision.Builder
Overrides

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;

Returns
Type Description
QaScorecardRevision.Builder

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
Type Description
QaScorecardRevision.Builder

This builder for chaining.

clone()

public QaScorecardRevision.Builder clone()
Returns
Type Description
QaScorecardRevision.Builder
Overrides

getAlternateIds(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The alternateIds at the given index.

getAlternateIdsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the alternateIds at the given index.

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];

Returns
Type Description
int

The count of alternateIds.

getAlternateIdsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the alternateIds.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public QaScorecardRevision getDefaultInstanceForType()
Returns
Type Description
QaScorecardRevision

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

getSnapshot()

public QaScorecard getSnapshot()

The snapshot of the scorecard at the time of this revision's creation.

.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;

Returns
Type Description
QaScorecard

The snapshot.

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;

Returns
Type Description
QaScorecard.Builder

getSnapshotOrBuilder()

public QaScorecardOrBuilder getSnapshotOrBuilder()

The snapshot of the scorecard at the time of this revision's creation.

.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;

Returns
Type Description
QaScorecardOrBuilder

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];

Returns
Type Description
QaScorecardRevision.State

The state.

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];

Returns
Type Description
int

The enum numeric value on the wire for state.

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];

Returns
Type Description
boolean

Whether the createTime field is set.

hasSnapshot()

public boolean hasSnapshot()

The snapshot of the scorecard at the time of this revision's creation.

.google.cloud.contactcenterinsights.v1.QaScorecard snapshot = 2;

Returns
Type Description
boolean

Whether the snapshot field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public QaScorecardRevision.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QaScorecardRevision.Builder

mergeFrom(QaScorecardRevision other)

public QaScorecardRevision.Builder mergeFrom(QaScorecardRevision other)
Parameter
Name Description
other QaScorecardRevision
Returns
Type Description
QaScorecardRevision.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QaScorecardRevision.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaScorecardRevision.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QaScorecardRevision.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QaScorecardRevision.Builder
Overrides

mergeSnapshot(QaScorecard value)

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;

Parameter
Name Description
value QaScorecard
Returns
Type Description
QaScorecardRevision.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QaScorecardRevision.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaScorecardRevision.Builder
Overrides

setAlternateIds(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The alternateIds to set.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public QaScorecardRevision.Builder setCreateTime(Timestamp value)

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QaScorecardRevision.Builder

setCreateTime(Timestamp.Builder builderForValue)

public QaScorecardRevision.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
QaScorecardRevision.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QaScorecardRevision.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QaScorecardRevision.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QaScorecardRevision.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QaScorecardRevision.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QaScorecardRevision.Builder
Overrides

setSnapshot(QaScorecard value)

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;

Parameter
Name Description
value QaScorecard
Returns
Type Description
QaScorecardRevision.Builder

setSnapshot(QaScorecard.Builder builderForValue)

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;

Parameter
Name Description
builderForValue QaScorecard.Builder
Returns
Type Description
QaScorecardRevision.Builder

setState(QaScorecardRevision.State value)

public QaScorecardRevision.Builder setState(QaScorecardRevision.State 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];

Parameter
Name Description
value QaScorecardRevision.State

The state to set.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
QaScorecardRevision.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QaScorecardRevision.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaScorecardRevision.Builder
Overrides