Class 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.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder>
      • getDefaultInstanceForType

        public BatchOptimizeToursRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public BatchOptimizeToursRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public BatchOptimizeToursRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public BatchOptimizeToursRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder>
      • mergeFrom

        public BatchOptimizeToursRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchOptimizeToursRequest.Builder>
        Throws:
        IOException
      • 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];
        Specified by:
        getParent in interface BatchOptimizeToursRequestOrBuilder
        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:
        getParentBytes in interface BatchOptimizeToursRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        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];
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setParentBytes

        public BatchOptimizeToursRequest.Builder setParentBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • 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:
        getModelConfigsCount in interface BatchOptimizeToursRequestOrBuilder
      • 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];
      • 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];
      • 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];
      • removeModelConfigs

        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];
      • getModelConfigsBuilder

        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];
      • 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];
      • addModelConfigsBuilder

        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];
      • 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];
      • setUnknownFields

        public final BatchOptimizeToursRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder>
      • mergeUnknownFields

        public final BatchOptimizeToursRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchOptimizeToursRequest.Builder>