Class AugmentPromptRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.AugmentPromptRequest
All Implemented Interfaces:
AugmentPromptRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AugmentPromptRequest extends com.google.protobuf.GeneratedMessage implements AugmentPromptRequestOrBuilder
 Request message for AugmentPrompt.
 
Protobuf type google.cloud.aiplatform.v1.AugmentPromptRequest
See Also:
  • Field Details

  • 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
    • getDataSourceCase

      public AugmentPromptRequest.DataSourceCase getDataSourceCase()
      Specified by:
      getDataSourceCase in interface AugmentPromptRequestOrBuilder
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AugmentPromptRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AugmentPromptRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AugmentPromptRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AugmentPromptRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AugmentPromptRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AugmentPromptRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AugmentPromptRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AugmentPromptRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AugmentPromptRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AugmentPromptRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AugmentPromptRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AugmentPromptRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AugmentPromptRequest.Builder newBuilder()
    • newBuilder

      public static AugmentPromptRequest.Builder newBuilder(AugmentPromptRequest prototype)
    • toBuilder

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

      protected AugmentPromptRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AugmentPromptRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AugmentPromptRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<AugmentPromptRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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