Class BatchOptimizeToursRequest.Builder (1.43.0)

public static final class BatchOptimizeToursRequest.Builder extends GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder> implements BatchOptimizeToursRequestOrBuilder

Request to batch optimize tours as an asynchronous operation. Each input file should contain one OptimizeToursRequest, and each output file will contain one OptimizeToursResponse. The request contains information to read/write and parse the files. All the input and output files should be under the same project.

Protobuf type google.cloud.optimization.v1.BatchOptimizeToursRequest

Static Methods

getDescriptor()

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

Methods

addAllModelConfigs(Iterable<? extends BatchOptimizeToursRequest.AsyncModelConfig> values)

public BatchOptimizeToursRequest.Builder addAllModelConfigs(Iterable<? extends BatchOptimizeToursRequest.AsyncModelConfig> values)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
Returns
Type Description
BatchOptimizeToursRequest.Builder

addModelConfigs(BatchOptimizeToursRequest.AsyncModelConfig value)

public BatchOptimizeToursRequest.Builder addModelConfigs(BatchOptimizeToursRequest.AsyncModelConfig value)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BatchOptimizeToursRequest.AsyncModelConfig
Returns
Type Description
BatchOptimizeToursRequest.Builder

addModelConfigs(BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue)

public BatchOptimizeToursRequest.Builder addModelConfigs(BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BatchOptimizeToursRequest.AsyncModelConfig.Builder
Returns
Type Description
BatchOptimizeToursRequest.Builder

addModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig value)

public BatchOptimizeToursRequest.Builder addModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig value)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value BatchOptimizeToursRequest.AsyncModelConfig
Returns
Type Description
BatchOptimizeToursRequest.Builder

addModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue)

public BatchOptimizeToursRequest.Builder addModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue BatchOptimizeToursRequest.AsyncModelConfig.Builder
Returns
Type Description
BatchOptimizeToursRequest.Builder

addModelConfigsBuilder()

public BatchOptimizeToursRequest.AsyncModelConfig.Builder addModelConfigsBuilder()

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchOptimizeToursRequest.AsyncModelConfig.Builder

addModelConfigsBuilder(int index)

public BatchOptimizeToursRequest.AsyncModelConfig.Builder addModelConfigsBuilder(int index)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchOptimizeToursRequest.AsyncModelConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchOptimizeToursRequest build()
Returns
Type Description
BatchOptimizeToursRequest

buildPartial()

public BatchOptimizeToursRequest buildPartial()
Returns
Type Description
BatchOptimizeToursRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModelConfigs()

public BatchOptimizeToursRequest.Builder clearModelConfigs()

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchOptimizeToursRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchOptimizeToursRequest.Builder clearParent()

Required. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchOptimizeToursRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchOptimizeToursRequest getDefaultInstanceForType()
Returns
Type Description
BatchOptimizeToursRequest

getDescriptorForType()

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

getModelConfigs(int index)

public BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchOptimizeToursRequest.AsyncModelConfig

getModelConfigsBuilder(int index)

public BatchOptimizeToursRequest.AsyncModelConfig.Builder getModelConfigsBuilder(int index)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchOptimizeToursRequest.AsyncModelConfig.Builder

getModelConfigsBuilderList()

public List<BatchOptimizeToursRequest.AsyncModelConfig.Builder> getModelConfigsBuilderList()

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getModelConfigsCount()

public int getModelConfigsCount()

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getModelConfigsList()

public List<BatchOptimizeToursRequest.AsyncModelConfig> getModelConfigsList()

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<AsyncModelConfig>

getModelConfigsOrBuilder(int index)

public BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder(int index)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchOptimizeToursRequest.AsyncModelConfigOrBuilder

getModelConfigsOrBuilderList()

public List<? extends BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> getModelConfigsOrBuilderList()

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder>

getParent()

public String getParent()

Required. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchOptimizeToursRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeModelConfigs(int index)

public BatchOptimizeToursRequest.Builder removeModelConfigs(int index)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchOptimizeToursRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig value)

public BatchOptimizeToursRequest.Builder setModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig value)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value BatchOptimizeToursRequest.AsyncModelConfig
Returns
Type Description
BatchOptimizeToursRequest.Builder

setModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue)

public BatchOptimizeToursRequest.Builder setModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue)

Required. Input/Output information each purchase model, such as file paths and data formats.

repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue BatchOptimizeToursRequest.AsyncModelConfig.Builder
Returns
Type Description
BatchOptimizeToursRequest.Builder

setParent(String value)

public BatchOptimizeToursRequest.Builder setParent(String value)

Required. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchOptimizeToursRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchOptimizeToursRequest.Builder setParentBytes(ByteString value)

Required. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchOptimizeToursRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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