Class FunctionResponseFileData

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

@Generated public final class FunctionResponseFileData extends com.google.protobuf.GeneratedMessage implements FunctionResponseFileDataOrBuilder
 URI based data for function response.
 
Protobuf type google.cloud.aiplatform.v1.FunctionResponseFileData
See Also:
  • Field Details

    • MIME_TYPE_FIELD_NUMBER

      public static final int MIME_TYPE_FIELD_NUMBER
      See Also:
    • FILE_URI_FIELD_NUMBER

      public static final int FILE_URI_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
  • 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
    • getMimeType

      public String getMimeType()
       Required. The IANA standard MIME type of the source data.
       
      string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMimeType in interface FunctionResponseFileDataOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       Required. The IANA standard MIME type of the source data.
       
      string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMimeTypeBytes in interface FunctionResponseFileDataOrBuilder
      Returns:
      The bytes for mimeType.
    • getFileUri

      public String getFileUri()
       Required. URI.
       
      string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFileUri in interface FunctionResponseFileDataOrBuilder
      Returns:
      The fileUri.
    • getFileUriBytes

      public com.google.protobuf.ByteString getFileUriBytes()
       Required. URI.
       
      string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFileUriBytes in interface FunctionResponseFileDataOrBuilder
      Returns:
      The bytes for fileUri.
    • getDisplayName

      public String getDisplayName()
       Optional. Display name of the file data.
      
       Used to provide a label or filename to distinguish file datas.
      
       This field is only returned in PromptMessage for prompt management.
       It is currently used in the Gemini GenerateContent calls only when server
       side tools (code_execution, google_search, and url_context) are enabled.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface FunctionResponseFileDataOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Display name of the file data.
      
       Used to provide a label or filename to distinguish file datas.
      
       This field is only returned in PromptMessage for prompt management.
       It is currently used in the Gemini GenerateContent calls only when server
       side tools (code_execution, google_search, and url_context) are enabled.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface FunctionResponseFileDataOrBuilder
      Returns:
      The bytes for displayName.
    • 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 FunctionResponseFileData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static FunctionResponseFileData.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static FunctionResponseFileData getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<FunctionResponseFileData> 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 FunctionResponseFileData getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder