Class ImportIssueModelRequest.Builder (2.55.0)

public static final class ImportIssueModelRequest.Builder extends GeneratedMessageV3.Builder<ImportIssueModelRequest.Builder> implements ImportIssueModelRequestOrBuilder

Request to import an issue model.

Protobuf type google.cloud.contactcenterinsights.v1.ImportIssueModelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportIssueModelRequest build()
Returns
Type Description
ImportIssueModelRequest

buildPartial()

public ImportIssueModelRequest buildPartial()
Returns
Type Description
ImportIssueModelRequest

clear()

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

clearCreateNewModel()

public ImportIssueModelRequest.Builder clearCreateNewModel()

Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.

bool create_new_model = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportIssueModelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public ImportIssueModelRequest.Builder clearGcsSource()

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Returns
Type Description
ImportIssueModelRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportIssueModelRequest.Builder clearParent()

Required. The parent resource of the issue model.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportIssueModelRequest.Builder

This builder for chaining.

clearSource()

public ImportIssueModelRequest.Builder clearSource()
Returns
Type Description
ImportIssueModelRequest.Builder

clone()

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

getCreateNewModel()

public boolean getCreateNewModel()

Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.

bool create_new_model = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The createNewModel.

getDefaultInstanceForType()

public ImportIssueModelRequest getDefaultInstanceForType()
Returns
Type Description
ImportIssueModelRequest

getDescriptorForType()

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

getGcsSource()

public ImportIssueModelRequest.GcsSource getGcsSource()

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Returns
Type Description
ImportIssueModelRequest.GcsSource

The gcsSource.

getGcsSourceBuilder()

public ImportIssueModelRequest.GcsSource.Builder getGcsSourceBuilder()

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Returns
Type Description
ImportIssueModelRequest.GcsSource.Builder

getGcsSourceOrBuilder()

public ImportIssueModelRequest.GcsSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Returns
Type Description
ImportIssueModelRequest.GcsSourceOrBuilder

getParent()

public String getParent()

Required. The parent resource of the issue model.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the issue model.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSourceCase()

public ImportIssueModelRequest.SourceCase getSourceCase()
Returns
Type Description
ImportIssueModelRequest.SourceCase

hasGcsSource()

public boolean hasGcsSource()

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Returns
Type Description
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportIssueModelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(ImportIssueModelRequest.GcsSource value)

public ImportIssueModelRequest.Builder mergeGcsSource(ImportIssueModelRequest.GcsSource value)

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Parameter
Name Description
value ImportIssueModelRequest.GcsSource
Returns
Type Description
ImportIssueModelRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateNewModel(boolean value)

public ImportIssueModelRequest.Builder setCreateNewModel(boolean value)

Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.

bool create_new_model = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The createNewModel to set.

Returns
Type Description
ImportIssueModelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(ImportIssueModelRequest.GcsSource value)

public ImportIssueModelRequest.Builder setGcsSource(ImportIssueModelRequest.GcsSource value)

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Parameter
Name Description
value ImportIssueModelRequest.GcsSource
Returns
Type Description
ImportIssueModelRequest.Builder

setGcsSource(ImportIssueModelRequest.GcsSource.Builder builderForValue)

public ImportIssueModelRequest.Builder setGcsSource(ImportIssueModelRequest.GcsSource.Builder builderForValue)

Google Cloud Storage source message.

.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2;

Parameter
Name Description
builderForValue ImportIssueModelRequest.GcsSource.Builder
Returns
Type Description
ImportIssueModelRequest.Builder

setParent(String value)

public ImportIssueModelRequest.Builder setParent(String value)

Required. The parent resource of the issue model.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportIssueModelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportIssueModelRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the issue model.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportIssueModelRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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