Package com.google.cloud.optimization.v1
Class BatchOptimizeToursRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.Builder>
com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder
- All Implemented Interfaces:
BatchOptimizeToursRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchOptimizeToursRequest
public static final class BatchOptimizeToursRequest.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllModelConfigs(Iterable<? extends BatchOptimizeToursRequest.AsyncModelConfig> values) Required.addModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig value) Required.addModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) Required.Required.addModelConfigs(BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) Required.Required.addModelConfigsBuilder(int index) Required.build()clear()Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetModelConfigs(int index) Required.getModelConfigsBuilder(int index) Required.Required.intRequired.Required.getModelConfigsOrBuilder(int index) Required.Required.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeModelConfigs(int index) Required.setModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig value) Required.setModelConfigs(int index, BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) Required.Required.setParentBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchOptimizeToursRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.Builder>
-
mergeFrom
public BatchOptimizeToursRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchOptimizeToursRequest.Builder>- Throws:
IOException
-
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];- Specified by:
getParentin interfaceBatchOptimizeToursRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.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];- Specified by:
getParentBytesin interfaceBatchOptimizeToursRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setParentBytes
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];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getModelConfigsListin interfaceBatchOptimizeToursRequestOrBuilder
-
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];- Specified by:
getModelConfigsCountin interfaceBatchOptimizeToursRequestOrBuilder
-
getModelConfigs
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];- Specified by:
getModelConfigsin interfaceBatchOptimizeToursRequestOrBuilder
-
setModelConfigs
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]; -
setModelConfigs
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]; -
addModelConfigs
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]; -
addModelConfigs
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]; -
addModelConfigs
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]; -
addModelConfigs
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]; -
addAllModelConfigs
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]; -
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]; -
removeModelConfigs
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]; -
getModelConfigsBuilder
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]; -
getModelConfigsOrBuilder
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];- Specified by:
getModelConfigsOrBuilderin interfaceBatchOptimizeToursRequestOrBuilder
-
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];- Specified by:
getModelConfigsOrBuilderListin interfaceBatchOptimizeToursRequestOrBuilder
-
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]; -
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]; -
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];
-