Class Analysis.Builder (2.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Analysis build()
Returns
Type Description
Analysis

buildPartial()

public Analysis buildPartial()
Returns
Type Description
Analysis

clear()

public Analysis.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Analysis.Builder

clearField(Descriptors.FieldDescriptor field)

public Analysis.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Analysis.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Analysis.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Analysis.Builder

clone()

public Analysis.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Analysis getDefaultInstanceForType()
Returns
Type Description
Analysis

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the requestTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value AnalysisResult
Returns
Type Description
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
Name Description
value AnnotatorSelector
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Analysis.Builder

mergeFrom(Analysis other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Analysis.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Analysis.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Analysis.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value AnalysisResult
Returns
Type Description
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
Name Description
builderForValue AnalysisResult.Builder
Returns
Type Description
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
Name Description
value AnnotatorSelector
Returns
Type Description
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
Name Description
builderForValue AnnotatorSelector.Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Analysis.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Analysis.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Analysis.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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