Class FeedbackLabel.Builder (2.54.0)

public static final class FeedbackLabel.Builder extends GeneratedMessageV3.Builder<FeedbackLabel.Builder> implements FeedbackLabelOrBuilder

Represents a conversation, resource, and label provided by the user.

Protobuf type google.cloud.contactcenterinsights.v1.FeedbackLabel

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FeedbackLabel build()
Returns
Type Description
FeedbackLabel

buildPartial()

public FeedbackLabel buildPartial()
Returns
Type Description
FeedbackLabel

clear()

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

clearCreateTime()

public FeedbackLabel.Builder clearCreateTime()

Output only. Create time of the label.

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

Returns
Type Description
FeedbackLabel.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabel()

public FeedbackLabel.Builder clearLabel()

String label.

string label = 4;

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

clearLabelType()

public FeedbackLabel.Builder clearLabelType()
Returns
Type Description
FeedbackLabel.Builder

clearLabeledResource()

public FeedbackLabel.Builder clearLabeledResource()

Resource name of the resource to be labeled.

string labeled_resource = 3;

Returns
Type Description
FeedbackLabel.Builder

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQaAnswerLabel()

public FeedbackLabel.Builder clearQaAnswerLabel()

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Returns
Type Description
FeedbackLabel.Builder

clearUpdateTime()

public FeedbackLabel.Builder clearUpdateTime()

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FeedbackLabel.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time of the label.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time of the label.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the label.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public FeedbackLabel getDefaultInstanceForType()
Returns
Type Description
FeedbackLabel

getDescriptorForType()

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

getLabel()

public String getLabel()

String label.

string label = 4;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

String label.

string label = 4;

Returns
Type Description
ByteString

The bytes for label.

getLabelTypeCase()

public FeedbackLabel.LabelTypeCase getLabelTypeCase()
Returns
Type Description
FeedbackLabel.LabelTypeCase

getLabeledResource()

public String getLabeledResource()

Resource name of the resource to be labeled.

string labeled_resource = 3;

Returns
Type Description
String

The labeledResource.

getLabeledResourceBytes()

public ByteString getLabeledResourceBytes()

Resource name of the resource to be labeled.

string labeled_resource = 3;

Returns
Type Description
ByteString

The bytes for labeledResource.

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

Returns
Type Description
String

The name.

getNameBytes()

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

Returns
Type Description
ByteString

The bytes for name.

getQaAnswerLabel()

public QaAnswer.AnswerValue getQaAnswerLabel()

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Returns
Type Description
QaAnswer.AnswerValue

The qaAnswerLabel.

getQaAnswerLabelBuilder()

public QaAnswer.AnswerValue.Builder getQaAnswerLabelBuilder()

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Returns
Type Description
QaAnswer.AnswerValue.Builder

getQaAnswerLabelOrBuilder()

public QaAnswer.AnswerValueOrBuilder getQaAnswerLabelOrBuilder()

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Returns
Type Description
QaAnswer.AnswerValueOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the label.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasLabel()

public boolean hasLabel()

String label.

string label = 4;

Returns
Type Description
boolean

Whether the label field is set.

hasQaAnswerLabel()

public boolean hasQaAnswerLabel()

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Returns
Type Description
boolean

Whether the qaAnswerLabel field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime 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 FeedbackLabel.Builder mergeCreateTime(Timestamp value)

Output only. Create time of the label.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
FeedbackLabel.Builder

mergeFrom(FeedbackLabel other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQaAnswerLabel(QaAnswer.AnswerValue value)

public FeedbackLabel.Builder mergeQaAnswerLabel(QaAnswer.AnswerValue value)

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Parameter
Name Description
value QaAnswer.AnswerValue
Returns
Type Description
FeedbackLabel.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public FeedbackLabel.Builder mergeUpdateTime(Timestamp value)

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FeedbackLabel.Builder

setCreateTime(Timestamp value)

public FeedbackLabel.Builder setCreateTime(Timestamp value)

Output only. Create time of the label.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
FeedbackLabel.Builder

setCreateTime(Timestamp.Builder builderForValue)

public FeedbackLabel.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time of the label.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FeedbackLabel.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabel(String value)

public FeedbackLabel.Builder setLabel(String value)

String label.

string label = 4;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public FeedbackLabel.Builder setLabelBytes(ByteString value)

String label.

string label = 4;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

setLabeledResource(String value)

public FeedbackLabel.Builder setLabeledResource(String value)

Resource name of the resource to be labeled.

string labeled_resource = 3;

Parameter
Name Description
value String

The labeledResource to set.

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

setLabeledResourceBytes(ByteString value)

public FeedbackLabel.Builder setLabeledResourceBytes(ByteString value)

Resource name of the resource to be labeled.

string labeled_resource = 3;

Parameter
Name Description
value ByteString

The bytes for labeledResource to set.

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

setNameBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FeedbackLabel.Builder

This builder for chaining.

setQaAnswerLabel(QaAnswer.AnswerValue value)

public FeedbackLabel.Builder setQaAnswerLabel(QaAnswer.AnswerValue value)

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Parameter
Name Description
value QaAnswer.AnswerValue
Returns
Type Description
FeedbackLabel.Builder

setQaAnswerLabel(QaAnswer.AnswerValue.Builder builderForValue)

public FeedbackLabel.Builder setQaAnswerLabel(QaAnswer.AnswerValue.Builder builderForValue)

QaAnswer label.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue qa_answer_label = 7;

Parameter
Name Description
builderForValue QaAnswer.AnswerValue.Builder
Returns
Type Description
FeedbackLabel.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public FeedbackLabel.Builder setUpdateTime(Timestamp value)

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FeedbackLabel.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public FeedbackLabel.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time of the label.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FeedbackLabel.Builder