Class AugmentPromptRequest.Builder

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

public static final class AugmentPromptRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AugmentPromptRequest.Builder> implements AugmentPromptRequestOrBuilder
 Request message for AugmentPrompt.
 
Protobuf type google.cloud.aiplatform.v1.AugmentPromptRequest
  • 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<AugmentPromptRequest.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<AugmentPromptRequest.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<AugmentPromptRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AugmentPromptRequest.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<AugmentPromptRequest.Builder>
      Throws:
      IOException
    • getDataSourceCase

      public AugmentPromptRequest.DataSourceCase getDataSourceCase()
      Specified by:
      getDataSourceCase in interface AugmentPromptRequestOrBuilder
    • clearDataSource

      public AugmentPromptRequest.Builder clearDataSource()
    • hasVertexRagStore

      public boolean hasVertexRagStore()
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVertexRagStore in interface AugmentPromptRequestOrBuilder
      Returns:
      Whether the vertexRagStore field is set.
    • getVertexRagStore

      public VertexRagStore getVertexRagStore()
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVertexRagStore in interface AugmentPromptRequestOrBuilder
      Returns:
      The vertexRagStore.
    • setVertexRagStore

      public AugmentPromptRequest.Builder setVertexRagStore(VertexRagStore value)
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setVertexRagStore

      public AugmentPromptRequest.Builder setVertexRagStore(VertexRagStore.Builder builderForValue)
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeVertexRagStore

      public AugmentPromptRequest.Builder mergeVertexRagStore(VertexRagStore value)
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearVertexRagStore

      public AugmentPromptRequest.Builder clearVertexRagStore()
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getVertexRagStoreBuilder

      public VertexRagStore.Builder getVertexRagStoreBuilder()
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getVertexRagStoreOrBuilder

      public VertexRagStoreOrBuilder getVertexRagStoreOrBuilder()
       Optional. Retrieves contexts from the Vertex RagStore.
       
      .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVertexRagStoreOrBuilder in interface AugmentPromptRequestOrBuilder
    • getParent

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

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

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

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

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

      public List<Content> getContentsList()
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsList in interface AugmentPromptRequestOrBuilder
    • getContentsCount

      public int getContentsCount()
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsCount in interface AugmentPromptRequestOrBuilder
    • getContents

      public Content getContents(int index)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContents in interface AugmentPromptRequestOrBuilder
    • setContents

      public AugmentPromptRequest.Builder setContents(int index, Content value)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setContents

      public AugmentPromptRequest.Builder setContents(int index, Content.Builder builderForValue)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public AugmentPromptRequest.Builder addContents(Content value)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public AugmentPromptRequest.Builder addContents(int index, Content value)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public AugmentPromptRequest.Builder addContents(Content.Builder builderForValue)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public AugmentPromptRequest.Builder addContents(int index, Content.Builder builderForValue)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllContents

      public AugmentPromptRequest.Builder addAllContents(Iterable<? extends Content> values)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearContents

      public AugmentPromptRequest.Builder clearContents()
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeContents

      public AugmentPromptRequest.Builder removeContents(int index)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsBuilder

      public Content.Builder getContentsBuilder(int index)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsOrBuilder

      public ContentOrBuilder getContentsOrBuilder(int index)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsOrBuilder in interface AugmentPromptRequestOrBuilder
    • getContentsOrBuilderList

      public List<? extends ContentOrBuilder> getContentsOrBuilderList()
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsOrBuilderList in interface AugmentPromptRequestOrBuilder
    • addContentsBuilder

      public Content.Builder addContentsBuilder()
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addContentsBuilder

      public Content.Builder addContentsBuilder(int index)
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsBuilderList

      public List<Content.Builder> getContentsBuilderList()
       Optional. Input content to augment, only text format is supported for now.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL];
    • hasModel

      public boolean hasModel()
       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasModel in interface AugmentPromptRequestOrBuilder
      Returns:
      Whether the model field is set.
    • getModel

      public AugmentPromptRequest.Model getModel()
       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModel in interface AugmentPromptRequestOrBuilder
      Returns:
      The model.
    • setModel

       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setModel

       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeModel

       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearModel

      public AugmentPromptRequest.Builder clearModel()
       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getModelBuilder

      public AugmentPromptRequest.Model.Builder getModelBuilder()
       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getModelOrBuilder

      public AugmentPromptRequest.ModelOrBuilder getModelOrBuilder()
       Optional. Metadata of the backend deployed model.
       
      .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelOrBuilder in interface AugmentPromptRequestOrBuilder