Class BatchOptimizeToursRequest.Builder (1.3.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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

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 Returns

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 Returns

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 Returns

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 Returns

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchOptimizeToursRequest build()
Returns

buildPartial()

public BatchOptimizeToursRequest buildPartial()
Returns

clear()

public BatchOptimizeToursRequest.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

getDefaultInstanceForType()

public BatchOptimizeToursRequest getDefaultInstanceForType()
Returns

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

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 Returns

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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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