Class GetPublisherModelRequest.Builder

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

public static final class GetPublisherModelRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetPublisherModelRequest.Builder> implements GetPublisherModelRequestOrBuilder
 Request message for
 [ModelGardenService.GetPublisherModel][google.cloud.aiplatform.v1.ModelGardenService.GetPublisherModel]
 
Protobuf type google.cloud.aiplatform.v1.GetPublisherModelRequest
  • 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<GetPublisherModelRequest.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<GetPublisherModelRequest.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<GetPublisherModelRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GetPublisherModelRequest.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<GetPublisherModelRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface GetPublisherModelRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface GetPublisherModelRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetPublisherModelRequest.Builder setName(String value)
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public GetPublisherModelRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       Optional. The IETF BCP-47 language code representing the language in which
       the publisher model's text information should be written in.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface GetPublisherModelRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The IETF BCP-47 language code representing the language in which
       the publisher model's text information should be written in.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface GetPublisherModelRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public GetPublisherModelRequest.Builder setLanguageCode(String value)
       Optional. The IETF BCP-47 language code representing the language in which
       the publisher model's text information should be written in.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public GetPublisherModelRequest.Builder clearLanguageCode()
       Optional. The IETF BCP-47 language code representing the language in which
       the publisher model's text information should be written in.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public GetPublisherModelRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. The IETF BCP-47 language code representing the language in which
       the publisher model's text information should be written in.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getViewValue

      public int getViewValue()
       Optional. PublisherModel view specifying which fields to read.
       
      .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getViewValue in interface GetPublisherModelRequestOrBuilder
      Returns:
      The enum numeric value on the wire for view.
    • setViewValue

      public GetPublisherModelRequest.Builder setViewValue(int value)
       Optional. PublisherModel view specifying which fields to read.
       
      .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for view to set.
      Returns:
      This builder for chaining.
    • getView

      public PublisherModelView getView()
       Optional. PublisherModel view specifying which fields to read.
       
      .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getView in interface GetPublisherModelRequestOrBuilder
      Returns:
      The view.
    • setView

       Optional. PublisherModel view specifying which fields to read.
       
      .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The view to set.
      Returns:
      This builder for chaining.
    • clearView

       Optional. PublisherModel view specifying which fields to read.
       
      .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getIsHuggingFaceModel

      public boolean getIsHuggingFaceModel()
       Optional. Boolean indicates whether the requested model is a Hugging Face
       model.
       
      bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsHuggingFaceModel in interface GetPublisherModelRequestOrBuilder
      Returns:
      The isHuggingFaceModel.
    • setIsHuggingFaceModel

      public GetPublisherModelRequest.Builder setIsHuggingFaceModel(boolean value)
       Optional. Boolean indicates whether the requested model is a Hugging Face
       model.
       
      bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The isHuggingFaceModel to set.
      Returns:
      This builder for chaining.
    • clearIsHuggingFaceModel

      public GetPublisherModelRequest.Builder clearIsHuggingFaceModel()
       Optional. Boolean indicates whether the requested model is a Hugging Face
       model.
       
      bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getHuggingFaceToken

      public String getHuggingFaceToken()
       Optional. Token used to access Hugging Face gated models.
       
      string hugging_face_token = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHuggingFaceToken in interface GetPublisherModelRequestOrBuilder
      Returns:
      The huggingFaceToken.
    • getHuggingFaceTokenBytes

      public com.google.protobuf.ByteString getHuggingFaceTokenBytes()
       Optional. Token used to access Hugging Face gated models.
       
      string hugging_face_token = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHuggingFaceTokenBytes in interface GetPublisherModelRequestOrBuilder
      Returns:
      The bytes for huggingFaceToken.
    • setHuggingFaceToken

      public GetPublisherModelRequest.Builder setHuggingFaceToken(String value)
       Optional. Token used to access Hugging Face gated models.
       
      string hugging_face_token = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The huggingFaceToken to set.
      Returns:
      This builder for chaining.
    • clearHuggingFaceToken

      public GetPublisherModelRequest.Builder clearHuggingFaceToken()
       Optional. Token used to access Hugging Face gated models.
       
      string hugging_face_token = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setHuggingFaceTokenBytes

      public GetPublisherModelRequest.Builder setHuggingFaceTokenBytes(com.google.protobuf.ByteString value)
       Optional. Token used to access Hugging Face gated models.
       
      string hugging_face_token = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for huggingFaceToken to set.
      Returns:
      This builder for chaining.