Class Analysis.Builder (2.23.0)

public static final class Analysis.Builder extends GeneratedMessageV3.Builder<Analysis.Builder> implements AnalysisOrBuilder

The analysis resource.

Protobuf type google.cloud.contactcenterinsights.v1.Analysis

Implements

AnalysisOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Analysis.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Analysis.Builder
Overrides

build()

public Analysis build()
Returns
TypeDescription
Analysis

buildPartial()

public Analysis buildPartial()
Returns
TypeDescription
Analysis

clear()

public Analysis.Builder clear()
Returns
TypeDescription
Analysis.Builder
Overrides

clearAnalysisResult()

public Analysis.Builder clearAnalysisResult()

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Analysis.Builder

clearAnnotatorSelector()

public Analysis.Builder clearAnnotatorSelector()

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Returns
TypeDescription
Analysis.Builder

clearCreateTime()

public Analysis.Builder clearCreateTime()

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Returns
TypeDescription
Analysis.Builder

clearField(Descriptors.FieldDescriptor field)

public Analysis.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Analysis.Builder
Overrides

clearName()

public Analysis.Builder clearName()

Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Analysis.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Analysis.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Analysis.Builder
Overrides

clearRequestTime()

public Analysis.Builder clearRequestTime()

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Analysis.Builder

clone()

public Analysis.Builder clone()
Returns
TypeDescription
Analysis.Builder
Overrides

getAnalysisResult()

public AnalysisResult getAnalysisResult()

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AnalysisResult

The analysisResult.

getAnalysisResultBuilder()

public AnalysisResult.Builder getAnalysisResultBuilder()

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AnalysisResult.Builder

getAnalysisResultOrBuilder()

public AnalysisResultOrBuilder getAnalysisResultOrBuilder()

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AnalysisResultOrBuilder

getAnnotatorSelector()

public AnnotatorSelector getAnnotatorSelector()

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Returns
TypeDescription
AnnotatorSelector

The annotatorSelector.

getAnnotatorSelectorBuilder()

public AnnotatorSelector.Builder getAnnotatorSelectorBuilder()

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Returns
TypeDescription
AnnotatorSelector.Builder

getAnnotatorSelectorOrBuilder()

public AnnotatorSelectorOrBuilder getAnnotatorSelectorOrBuilder()

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Returns
TypeDescription
AnnotatorSelectorOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Analysis getDefaultInstanceForType()
Returns
TypeDescription
Analysis

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getRequestTime()

public Timestamp getRequestTime()

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The requestTime.

getRequestTimeBuilder()

public Timestamp.Builder getRequestTimeBuilder()

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getRequestTimeOrBuilder()

public TimestampOrBuilder getRequestTimeOrBuilder()

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAnalysisResult()

public boolean hasAnalysisResult()

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the analysisResult field is set.

hasAnnotatorSelector()

public boolean hasAnnotatorSelector()

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Returns
TypeDescription
boolean

Whether the annotatorSelector field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasRequestTime()

public boolean hasRequestTime()

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the requestTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnalysisResult(AnalysisResult value)

public Analysis.Builder mergeAnalysisResult(AnalysisResult value)

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAnalysisResult
Returns
TypeDescription
Analysis.Builder

mergeAnnotatorSelector(AnnotatorSelector value)

public Analysis.Builder mergeAnnotatorSelector(AnnotatorSelector value)

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Parameter
NameDescription
valueAnnotatorSelector
Returns
TypeDescription
Analysis.Builder

mergeCreateTime(Timestamp value)

public Analysis.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Analysis.Builder

mergeFrom(Analysis other)

public Analysis.Builder mergeFrom(Analysis other)
Parameter
NameDescription
otherAnalysis
Returns
TypeDescription
Analysis.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Analysis.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Analysis.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Analysis.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Analysis.Builder
Overrides

mergeRequestTime(Timestamp value)

public Analysis.Builder mergeRequestTime(Timestamp value)

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Analysis.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Analysis.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Analysis.Builder
Overrides

setAnalysisResult(AnalysisResult value)

public Analysis.Builder setAnalysisResult(AnalysisResult value)

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAnalysisResult
Returns
TypeDescription
Analysis.Builder

setAnalysisResult(AnalysisResult.Builder builderForValue)

public Analysis.Builder setAnalysisResult(AnalysisResult.Builder builderForValue)

Output only. The result of the analysis, which is populated when the analysis finishes.

.google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAnalysisResult.Builder
Returns
TypeDescription
Analysis.Builder

setAnnotatorSelector(AnnotatorSelector value)

public Analysis.Builder setAnnotatorSelector(AnnotatorSelector value)

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Parameter
NameDescription
valueAnnotatorSelector
Returns
TypeDescription
Analysis.Builder

setAnnotatorSelector(AnnotatorSelector.Builder builderForValue)

public Analysis.Builder setAnnotatorSelector(AnnotatorSelector.Builder builderForValue)

To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.

.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;

Parameter
NameDescription
builderForValueAnnotatorSelector.Builder
Returns
TypeDescription
Analysis.Builder

setCreateTime(Timestamp value)

public Analysis.Builder setCreateTime(Timestamp value)

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Analysis.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Analysis.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which the analysis was created, which occurs when the long-running operation completes.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Analysis.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Analysis.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Analysis.Builder
Overrides

setName(String value)

public Analysis.Builder setName(String value)

Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Analysis.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Analysis.Builder setNameBytes(ByteString value)

Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Analysis.Builder

This builder for chaining.

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

public Analysis.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Analysis.Builder
Overrides

setRequestTime(Timestamp value)

public Analysis.Builder setRequestTime(Timestamp value)

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Analysis.Builder

setRequestTime(Timestamp.Builder builderForValue)

public Analysis.Builder setRequestTime(Timestamp.Builder builderForValue)

Output only. The time at which the analysis was requested.

.google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Analysis.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Analysis.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Analysis.Builder
Overrides