Class InputConfig.Builder

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

public static final class InputConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<InputConfig.Builder> implements InputConfigOrBuilder
 The desired input location information.
 
Protobuf type google.cloud.optimization.v1.InputConfig
  • 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<InputConfig.Builder>
    • clear

      public InputConfig.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<InputConfig.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<InputConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public InputConfig.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<InputConfig.Builder>
    • mergeFrom

      public InputConfig.Builder mergeFrom(InputConfig other)
    • isInitialized

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

      public InputConfig.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<InputConfig.Builder>
      Throws:
      IOException
    • getSourceCase

      public InputConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface InputConfigOrBuilder
    • clearSource

      public InputConfig.Builder clearSource()
    • hasGcsSource

      public boolean hasGcsSource()
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
      Specified by:
      hasGcsSource in interface InputConfigOrBuilder
      Returns:
      Whether the gcsSource field is set.
    • getGcsSource

      public GcsSource getGcsSource()
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
      Specified by:
      getGcsSource in interface InputConfigOrBuilder
      Returns:
      The gcsSource.
    • setGcsSource

      public InputConfig.Builder setGcsSource(GcsSource value)
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
    • setGcsSource

      public InputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
    • mergeGcsSource

      public InputConfig.Builder mergeGcsSource(GcsSource value)
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
    • clearGcsSource

      public InputConfig.Builder clearGcsSource()
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
    • getGcsSourceBuilder

      public GcsSource.Builder getGcsSourceBuilder()
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
    • getGcsSourceOrBuilder

      public GcsSourceOrBuilder getGcsSourceOrBuilder()
       The Google Cloud Storage location to read the input from. This must be a
       single file.
       
      .google.cloud.optimization.v1.GcsSource gcs_source = 1;
      Specified by:
      getGcsSourceOrBuilder in interface InputConfigOrBuilder
    • getDataFormatValue

      public int getDataFormatValue()
       The input data format that used to store the model in Cloud Storage.
       
      .google.cloud.optimization.v1.DataFormat data_format = 2;
      Specified by:
      getDataFormatValue in interface InputConfigOrBuilder
      Returns:
      The enum numeric value on the wire for dataFormat.
    • setDataFormatValue

      public InputConfig.Builder setDataFormatValue(int value)
       The input data format that used to store the model in Cloud Storage.
       
      .google.cloud.optimization.v1.DataFormat data_format = 2;
      Parameters:
      value - The enum numeric value on the wire for dataFormat to set.
      Returns:
      This builder for chaining.
    • getDataFormat

      public DataFormat getDataFormat()
       The input data format that used to store the model in Cloud Storage.
       
      .google.cloud.optimization.v1.DataFormat data_format = 2;
      Specified by:
      getDataFormat in interface InputConfigOrBuilder
      Returns:
      The dataFormat.
    • setDataFormat

      public InputConfig.Builder setDataFormat(DataFormat value)
       The input data format that used to store the model in Cloud Storage.
       
      .google.cloud.optimization.v1.DataFormat data_format = 2;
      Parameters:
      value - The dataFormat to set.
      Returns:
      This builder for chaining.
    • clearDataFormat

      public InputConfig.Builder clearDataFormat()
       The input data format that used to store the model in Cloud Storage.
       
      .google.cloud.optimization.v1.DataFormat data_format = 2;
      Returns:
      This builder for chaining.