Class RecommendSpecRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RecommendSpecRequest.Builder>
com.google.cloud.aiplatform.v1beta1.RecommendSpecRequest.Builder
All Implemented Interfaces:
RecommendSpecRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RecommendSpecRequest

public static final class RecommendSpecRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecommendSpecRequest.Builder> implements RecommendSpecRequestOrBuilder
 Request message for
 [ModelService.RecommendSpec][google.cloud.aiplatform.v1beta1.ModelService.RecommendSpec].
 
Protobuf type google.cloud.aiplatform.v1beta1.RecommendSpecRequest
  • 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<RecommendSpecRequest.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<RecommendSpecRequest.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<RecommendSpecRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RecommendSpecRequest.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<RecommendSpecRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the Location from which to recommend specs.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface RecommendSpecRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the Location from which to recommend specs.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface RecommendSpecRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public RecommendSpecRequest.Builder setParent(String value)
       Required. The resource name of the Location from which to recommend specs.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public RecommendSpecRequest.Builder clearParent()
       Required. The resource name of the Location from which to recommend specs.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public RecommendSpecRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Location from which to recommend specs.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getGcsUri

      public String getGcsUri()
       Required. The Google Cloud Storage URI of the custom model, storing weights
       and config files (which can be used to infer the base model).
       
      string gcs_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGcsUri in interface RecommendSpecRequestOrBuilder
      Returns:
      The gcsUri.
    • getGcsUriBytes

      public com.google.protobuf.ByteString getGcsUriBytes()
       Required. The Google Cloud Storage URI of the custom model, storing weights
       and config files (which can be used to infer the base model).
       
      string gcs_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGcsUriBytes in interface RecommendSpecRequestOrBuilder
      Returns:
      The bytes for gcsUri.
    • setGcsUri

      public RecommendSpecRequest.Builder setGcsUri(String value)
       Required. The Google Cloud Storage URI of the custom model, storing weights
       and config files (which can be used to infer the base model).
       
      string gcs_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The gcsUri to set.
      Returns:
      This builder for chaining.
    • clearGcsUri

      public RecommendSpecRequest.Builder clearGcsUri()
       Required. The Google Cloud Storage URI of the custom model, storing weights
       and config files (which can be used to infer the base model).
       
      string gcs_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setGcsUriBytes

      public RecommendSpecRequest.Builder setGcsUriBytes(com.google.protobuf.ByteString value)
       Required. The Google Cloud Storage URI of the custom model, storing weights
       and config files (which can be used to infer the base model).
       
      string gcs_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for gcsUri to set.
      Returns:
      This builder for chaining.
    • getCheckMachineAvailability

      public boolean getCheckMachineAvailability()
       Optional. If true, check machine availability for the recommended regions.
       Only return the machine spec in regions where the machine is available.
       
      bool check_machine_availability = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCheckMachineAvailability in interface RecommendSpecRequestOrBuilder
      Returns:
      The checkMachineAvailability.
    • setCheckMachineAvailability

      public RecommendSpecRequest.Builder setCheckMachineAvailability(boolean value)
       Optional. If true, check machine availability for the recommended regions.
       Only return the machine spec in regions where the machine is available.
       
      bool check_machine_availability = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The checkMachineAvailability to set.
      Returns:
      This builder for chaining.
    • clearCheckMachineAvailability

      public RecommendSpecRequest.Builder clearCheckMachineAvailability()
       Optional. If true, check machine availability for the recommended regions.
       Only return the machine spec in regions where the machine is available.
       
      bool check_machine_availability = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getCheckUserQuota

      public boolean getCheckUserQuota()
       Optional. If true, check user quota for the recommended regions.
       Returns all the machine spec in regions they are available, and also the
       user quota state for each machine type in each region.
       
      bool check_user_quota = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCheckUserQuota in interface RecommendSpecRequestOrBuilder
      Returns:
      The checkUserQuota.
    • setCheckUserQuota

      public RecommendSpecRequest.Builder setCheckUserQuota(boolean value)
       Optional. If true, check user quota for the recommended regions.
       Returns all the machine spec in regions they are available, and also the
       user quota state for each machine type in each region.
       
      bool check_user_quota = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The checkUserQuota to set.
      Returns:
      This builder for chaining.
    • clearCheckUserQuota

      public RecommendSpecRequest.Builder clearCheckUserQuota()
       Optional. If true, check user quota for the recommended regions.
       Returns all the machine spec in regions they are available, and also the
       user quota state for each machine type in each region.
       
      bool check_user_quota = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.