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
Inherited Members
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
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchOptimizeToursRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
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
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
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
clone()
public BatchOptimizeToursRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BatchOptimizeToursRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BatchOptimizeToursRequest other)
public BatchOptimizeToursRequest.Builder mergeFrom(BatchOptimizeToursRequest other)
Parameter
Returns
public BatchOptimizeToursRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BatchOptimizeToursRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchOptimizeToursRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BatchOptimizeToursRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
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
Name | Description |
value | String
The parent to set.
|
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchOptimizeToursRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchOptimizeToursRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides