Class BatchOptimizeToursRequest.Builder (1.5.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
Returns
TypeDescription
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
NameDescription
valueBatchOptimizeToursRequest.AsyncModelConfig
Returns
TypeDescription
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
NameDescription
builderForValueBatchOptimizeToursRequest.AsyncModelConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatchOptimizeToursRequest.AsyncModelConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchOptimizeToursRequest.AsyncModelConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BatchOptimizeToursRequest.AsyncModelConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchOptimizeToursRequest build()
Returns
TypeDescription
BatchOptimizeToursRequest

buildPartial()

public BatchOptimizeToursRequest buildPartial()
Returns
TypeDescription
BatchOptimizeToursRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public BatchOptimizeToursRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BatchOptimizeToursRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchOptimizeToursRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BatchOptimizeToursRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchOptimizeToursRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchOptimizeToursRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchOptimizeToursRequest other)

public BatchOptimizeToursRequest.Builder mergeFrom(BatchOptimizeToursRequest other)
Parameter
NameDescription
otherBatchOptimizeToursRequest
Returns
TypeDescription
BatchOptimizeToursRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchOptimizeToursRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BatchOptimizeToursRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchOptimizeToursRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueBatchOptimizeToursRequest.AsyncModelConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchOptimizeToursRequest.AsyncModelConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchOptimizeToursRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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