Send feedback
Class FunctionResponseFileData (3.79.0)
Version latestkeyboard_arrow_down
public final class FunctionResponseFileData extends GeneratedMessageV3 implements FunctionResponseFileDataOrBuilder
URI based data for function response.
Protobuf type google.cloud.aiplatform.v1beta1.FunctionResponseFileData
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int FILE_URI_FIELD_NUMBER
Field Value
Type
Description
int
public static final int MIME_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static FunctionResponseFileData getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static FunctionResponseFileData . Builder newBuilder ()
public static FunctionResponseFileData . Builder newBuilder ( FunctionResponseFileData prototype )
public static FunctionResponseFileData parseDelimitedFrom ( InputStream input )
public static FunctionResponseFileData parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static FunctionResponseFileData parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static FunctionResponseFileData parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static FunctionResponseFileData parseFrom ( ByteString data )
public static FunctionResponseFileData parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static FunctionResponseFileData parseFrom ( CodedInputStream input )
public static FunctionResponseFileData parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static FunctionResponseFileData parseFrom ( InputStream input )
public static FunctionResponseFileData parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static FunctionResponseFileData parseFrom ( ByteBuffer data )
public static FunctionResponseFileData parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<FunctionResponseFileData> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public FunctionResponseFileData getDefaultInstanceForType ()
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];
Returns
Type
Description
String
The displayName.
public 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];
Returns
Type
Description
ByteString
The bytes for displayName.
public String getFileUri ()
Required. URI.
string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The fileUri.
public ByteString getFileUriBytes ()
Required. URI.
string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for fileUri.
public String getMimeType ()
Required. The IANA standard MIME type of the source data.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The mimeType.
public ByteString getMimeTypeBytes ()
Required. The IANA standard MIME type of the source data.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for mimeType.
public Parser<FunctionResponseFileData> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public FunctionResponseFileData . Builder newBuilderForType ()
protected FunctionResponseFileData . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public FunctionResponseFileData . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-29 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]