Class IssueModel.Builder (2.23.0)

public static final class IssueModel.Builder extends GeneratedMessageV3.Builder<IssueModel.Builder> implements IssueModelOrBuilder

The issue model resource.

Protobuf type google.cloud.contactcenterinsights.v1.IssueModel

Implements

IssueModelOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IssueModel build()
Returns
TypeDescription
IssueModel

buildPartial()

public IssueModel buildPartial()
Returns
TypeDescription
IssueModel

clear()

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

clearCreateTime()

public IssueModel.Builder clearCreateTime()

Output only. The time at which this issue model was created.

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

Returns
TypeDescription
IssueModel.Builder

clearDisplayName()

public IssueModel.Builder clearDisplayName()

The representative name for the issue model.

string display_name = 2;

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputDataConfig()

public IssueModel.Builder clearInputDataConfig()

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Returns
TypeDescription
IssueModel.Builder

clearIssueCount()

public IssueModel.Builder clearIssueCount()

Output only. Number of issues in this issue model.

int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

clearLanguageCode()

public IssueModel.Builder clearLanguageCode()

Language of the model.

string language_code = 10;

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

clearModelType()

public IssueModel.Builder clearModelType()

Type of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

clearName()

public IssueModel.Builder clearName()

Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}

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

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public IssueModel.Builder clearState()

Output only. State of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

clearTrainingStats()

public IssueModel.Builder clearTrainingStats()

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
IssueModel.Builder

clearUpdateTime()

public IssueModel.Builder clearUpdateTime()

Output only. The most recent time at which the issue model was updated.

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

Returns
TypeDescription
IssueModel.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this issue model was created.

.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 this issue model was created.

.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 this issue model was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public IssueModel getDefaultInstanceForType()
Returns
TypeDescription
IssueModel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The representative name for the issue model.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The representative name for the issue model.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getInputDataConfig()

public IssueModel.InputDataConfig getInputDataConfig()

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Returns
TypeDescription
IssueModel.InputDataConfig

The inputDataConfig.

getInputDataConfigBuilder()

public IssueModel.InputDataConfig.Builder getInputDataConfigBuilder()

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Returns
TypeDescription
IssueModel.InputDataConfig.Builder

getInputDataConfigOrBuilder()

public IssueModel.InputDataConfigOrBuilder getInputDataConfigOrBuilder()

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Returns
TypeDescription
IssueModel.InputDataConfigOrBuilder

getIssueCount()

public long getIssueCount()

Output only. Number of issues in this issue model.

int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The issueCount.

getLanguageCode()

public String getLanguageCode()

Language of the model.

string language_code = 10;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Language of the model.

string language_code = 10;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getModelType()

public IssueModel.ModelType getModelType()

Type of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;

Returns
TypeDescription
IssueModel.ModelType

The modelType.

getModelTypeValue()

public int getModelTypeValue()

Type of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for modelType.

getName()

public String getName()

Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}

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

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public IssueModel.State getState()

Output only. State of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
IssueModel.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTrainingStats()

public IssueModelLabelStats getTrainingStats()

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
IssueModelLabelStats

The trainingStats.

getTrainingStatsBuilder()

public IssueModelLabelStats.Builder getTrainingStatsBuilder()

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
IssueModelLabelStats.Builder

getTrainingStatsOrBuilder()

public IssueModelLabelStatsOrBuilder getTrainingStatsOrBuilder()

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
IssueModelLabelStatsOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The most recent time at which the issue model was updated.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The most recent time at which the issue model was updated.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The most recent time at which the issue model was updated.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this issue model was created.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasInputDataConfig()

public boolean hasInputDataConfig()

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Returns
TypeDescription
boolean

Whether the inputDataConfig field is set.

hasTrainingStats()

public boolean hasTrainingStats()

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

Whether the trainingStats field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The most recent time at which the issue model was updated.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public IssueModel.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this issue model was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
IssueModel.Builder

mergeFrom(IssueModel other)

public IssueModel.Builder mergeFrom(IssueModel other)
Parameter
NameDescription
otherIssueModel
Returns
TypeDescription
IssueModel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputDataConfig(IssueModel.InputDataConfig value)

public IssueModel.Builder mergeInputDataConfig(IssueModel.InputDataConfig value)

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Parameter
NameDescription
valueIssueModel.InputDataConfig
Returns
TypeDescription
IssueModel.Builder

mergeTrainingStats(IssueModelLabelStats value)

public IssueModel.Builder mergeTrainingStats(IssueModelLabelStats value)

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueIssueModelLabelStats
Returns
TypeDescription
IssueModel.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public IssueModel.Builder mergeUpdateTime(Timestamp value)

Output only. The most recent time at which the issue model was updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
IssueModel.Builder

setCreateTime(Timestamp value)

public IssueModel.Builder setCreateTime(Timestamp value)

Output only. The time at which this issue model was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
IssueModel.Builder

setCreateTime(Timestamp.Builder builderForValue)

public IssueModel.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this issue model was created.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
IssueModel.Builder

setDisplayName(String value)

public IssueModel.Builder setDisplayName(String value)

The representative name for the issue model.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public IssueModel.Builder setDisplayNameBytes(ByteString value)

The representative name for the issue model.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputDataConfig(IssueModel.InputDataConfig value)

public IssueModel.Builder setInputDataConfig(IssueModel.InputDataConfig value)

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Parameter
NameDescription
valueIssueModel.InputDataConfig
Returns
TypeDescription
IssueModel.Builder

setInputDataConfig(IssueModel.InputDataConfig.Builder builderForValue)

public IssueModel.Builder setInputDataConfig(IssueModel.InputDataConfig.Builder builderForValue)

Configs for the input data that used to create the issue model.

.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;

Parameter
NameDescription
builderForValueIssueModel.InputDataConfig.Builder
Returns
TypeDescription
IssueModel.Builder

setIssueCount(long value)

public IssueModel.Builder setIssueCount(long value)

Output only. Number of issues in this issue model.

int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuelong

The issueCount to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setLanguageCode(String value)

public IssueModel.Builder setLanguageCode(String value)

Language of the model.

string language_code = 10;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public IssueModel.Builder setLanguageCodeBytes(ByteString value)

Language of the model.

string language_code = 10;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setModelType(IssueModel.ModelType value)

public IssueModel.Builder setModelType(IssueModel.ModelType value)

Type of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;

Parameter
NameDescription
valueIssueModel.ModelType

The modelType to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setModelTypeValue(int value)

public IssueModel.Builder setModelTypeValue(int value)

Type of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setName(String value)

public IssueModel.Builder setName(String value)

Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setNameBytes(ByteString value)

public IssueModel.Builder setNameBytes(ByteString value)

Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

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

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

setState(IssueModel.State value)

public IssueModel.Builder setState(IssueModel.State value)

Output only. State of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueIssueModel.State

The state to set.

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setStateValue(int value)

public IssueModel.Builder setStateValue(int value)

Output only. State of the model.

.google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
IssueModel.Builder

This builder for chaining.

setTrainingStats(IssueModelLabelStats value)

public IssueModel.Builder setTrainingStats(IssueModelLabelStats value)

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueIssueModelLabelStats
Returns
TypeDescription
IssueModel.Builder

setTrainingStats(IssueModelLabelStats.Builder builderForValue)

public IssueModel.Builder setTrainingStats(IssueModelLabelStats.Builder builderForValue)

Output only. Immutable. The issue model's label statistics on its training data.

.google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueIssueModelLabelStats.Builder
Returns
TypeDescription
IssueModel.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public IssueModel.Builder setUpdateTime(Timestamp value)

Output only. The most recent time at which the issue model was updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
IssueModel.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public IssueModel.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The most recent time at which the issue model was updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
IssueModel.Builder