Class BatchOptimizeToursRequest.AsyncModelConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.AsyncModelConfig.Builder>
com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
All Implemented Interfaces:
BatchOptimizeToursRequest.AsyncModelConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchOptimizeToursRequest.AsyncModelConfig

public static final class BatchOptimizeToursRequest.AsyncModelConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.AsyncModelConfig.Builder> implements BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
 Information for solving one optimization model asynchronously.
 
Protobuf type google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.AsyncModelConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BatchOptimizeToursRequest.AsyncModelConfig.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.GeneratedMessage.Builder<BatchOptimizeToursRequest.AsyncModelConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchOptimizeToursRequest.AsyncModelConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchOptimizeToursRequest.AsyncModelConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public BatchOptimizeToursRequest.AsyncModelConfig.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.AsyncModelConfig.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       User defined model name, can be used as alias by users to keep track of
       models.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User defined model name, can be used as alias by users to keep track of
       models.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

       User defined model name, can be used as alias by users to keep track of
       models.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

       User defined model name, can be used as alias by users to keep track of
       models.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public BatchOptimizeToursRequest.AsyncModelConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       User defined model name, can be used as alias by users to keep track of
       models.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasInputConfig

      public boolean hasInputConfig()
       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInputConfig in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      Whether the inputConfig field is set.
    • getInputConfig

      public InputConfig getInputConfig()
       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputConfig in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      The inputConfig.
    • setInputConfig

       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • setInputConfig

       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeInputConfig

       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearInputConfig

       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInputConfigBuilder

      public InputConfig.Builder getInputConfigBuilder()
       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInputConfigOrBuilder

      public InputConfigOrBuilder getInputConfigOrBuilder()
       Required. Information about the input model.
       
      .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputConfigOrBuilder in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
    • hasOutputConfig

      public boolean hasOutputConfig()
       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOutputConfig in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      Whether the outputConfig field is set.
    • getOutputConfig

      public OutputConfig getOutputConfig()
       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputConfig in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      The outputConfig.
    • setOutputConfig

       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • setOutputConfig

       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeOutputConfig

       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearOutputConfig

       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getOutputConfigBuilder

      public OutputConfig.Builder getOutputConfigBuilder()
       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getOutputConfigOrBuilder

      public OutputConfigOrBuilder getOutputConfigOrBuilder()
       Required. The desired output location information.
       
      .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputConfigOrBuilder in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
    • getEnableCheckpoints

      public boolean getEnableCheckpoints()
       If this is set, the model will be solved in the checkpoint mode. In this
       mode, the input model can have a deadline longer than 30 mins without the
       risk of interruption. The model will be solved in multiple short-running
       stages. Each stage generates an intermediate checkpoint
       and stores it in the user's Cloud Storage buckets. The checkpoint
       mode should be preferred over
       allow_large_deadline_despite_interruption_risk since it prevents the risk
       of interruption.
       
      bool enable_checkpoints = 4;
      Specified by:
      getEnableCheckpoints in interface BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
      Returns:
      The enableCheckpoints.
    • setEnableCheckpoints

      public BatchOptimizeToursRequest.AsyncModelConfig.Builder setEnableCheckpoints(boolean value)
       If this is set, the model will be solved in the checkpoint mode. In this
       mode, the input model can have a deadline longer than 30 mins without the
       risk of interruption. The model will be solved in multiple short-running
       stages. Each stage generates an intermediate checkpoint
       and stores it in the user's Cloud Storage buckets. The checkpoint
       mode should be preferred over
       allow_large_deadline_despite_interruption_risk since it prevents the risk
       of interruption.
       
      bool enable_checkpoints = 4;
      Parameters:
      value - The enableCheckpoints to set.
      Returns:
      This builder for chaining.
    • clearEnableCheckpoints

      public BatchOptimizeToursRequest.AsyncModelConfig.Builder clearEnableCheckpoints()
       If this is set, the model will be solved in the checkpoint mode. In this
       mode, the input model can have a deadline longer than 30 mins without the
       risk of interruption. The model will be solved in multiple short-running
       stages. Each stage generates an intermediate checkpoint
       and stores it in the user's Cloud Storage buckets. The checkpoint
       mode should be preferred over
       allow_large_deadline_despite_interruption_risk since it prevents the risk
       of interruption.
       
      bool enable_checkpoints = 4;
      Returns:
      This builder for chaining.