Class RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder

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

public static final class RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder extends com.google.protobuf.GeneratedMessage.Builder<RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder> implements RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
 Config representing a model hosted on Vertex Prediction Endpoint.
 
Protobuf type google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint
  • 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<RagEmbeddingModelConfig.VertexPredictionEndpoint.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<RagEmbeddingModelConfig.VertexPredictionEndpoint.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<RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder>
    • getDefaultInstanceForType

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

      public RagEmbeddingModelConfig.VertexPredictionEndpoint.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<RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder>
      Throws:
      IOException
    • getEndpoint

      public String getEndpoint()
       Required. The endpoint resource name.
       Format:
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
       or
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEndpoint in interface RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       Required. The endpoint resource name.
       Format:
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
       or
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEndpointBytes in interface RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

       Required. The endpoint resource name.
       Format:
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
       or
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

       Required. The endpoint resource name.
       Format:
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
       or
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       Required. The endpoint resource name.
       Format:
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
       or
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • getModel

      public String getModel()
       Output only. The resource name of the model that is deployed on the
       endpoint. Present only when the endpoint is not a publisher model.
       Pattern:
       `projects/{project}/locations/{location}/models/{model}`
       
      string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getModel in interface RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
      Returns:
      The model.
    • getModelBytes

      public com.google.protobuf.ByteString getModelBytes()
       Output only. The resource name of the model that is deployed on the
       endpoint. Present only when the endpoint is not a publisher model.
       Pattern:
       `projects/{project}/locations/{location}/models/{model}`
       
      string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getModelBytes in interface RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
      Returns:
      The bytes for model.
    • setModel

       Output only. The resource name of the model that is deployed on the
       endpoint. Present only when the endpoint is not a publisher model.
       Pattern:
       `projects/{project}/locations/{location}/models/{model}`
       
      string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The model to set.
      Returns:
      This builder for chaining.
    • clearModel

       Output only. The resource name of the model that is deployed on the
       endpoint. Present only when the endpoint is not a publisher model.
       Pattern:
       `projects/{project}/locations/{location}/models/{model}`
       
      string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setModelBytes

      public RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder setModelBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the model that is deployed on the
       endpoint. Present only when the endpoint is not a publisher model.
       Pattern:
       `projects/{project}/locations/{location}/models/{model}`
       
      string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for model to set.
      Returns:
      This builder for chaining.
    • getModelVersionId

      public String getModelVersionId()
       Output only. Version ID of the model that is deployed on the endpoint.
       Present only when the endpoint is not a publisher model.
       
      string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModelVersionId in interface RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
      Returns:
      The modelVersionId.
    • getModelVersionIdBytes

      public com.google.protobuf.ByteString getModelVersionIdBytes()
       Output only. Version ID of the model that is deployed on the endpoint.
       Present only when the endpoint is not a publisher model.
       
      string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModelVersionIdBytes in interface RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder
      Returns:
      The bytes for modelVersionId.
    • setModelVersionId

       Output only. Version ID of the model that is deployed on the endpoint.
       Present only when the endpoint is not a publisher model.
       
      string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The modelVersionId to set.
      Returns:
      This builder for chaining.
    • clearModelVersionId

       Output only. Version ID of the model that is deployed on the endpoint.
       Present only when the endpoint is not a publisher model.
       
      string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setModelVersionIdBytes

      public RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder setModelVersionIdBytes(com.google.protobuf.ByteString value)
       Output only. Version ID of the model that is deployed on the endpoint.
       Present only when the endpoint is not a publisher model.
       
      string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for modelVersionId to set.
      Returns:
      This builder for chaining.