publicfinalclass PartextendsGeneratedMessageV3implementsPartOrBuilder
A datatype containing media that is part of a multi-part Content message.
A Part consists of data which has an associated datatype. A Part can only
contain one of the accepted types in Part.data.
A Part must have a fixed IANA MIME type identifying the type and subtype
of the media if inline_data or file_data field is filled with raw bytes.
Protobuf type google.cloud.vertexai.v1.Part
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
FILE_DATA_FIELD_NUMBER
publicstaticfinalintFILE_DATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FUNCTION_CALL_FIELD_NUMBER
publicstaticfinalintFUNCTION_CALL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FUNCTION_RESPONSE_FIELD_NUMBER
publicstaticfinalintFUNCTION_RESPONSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
INLINE_DATA_FIELD_NUMBER
publicstaticfinalintINLINE_DATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TEXT_FIELD_NUMBER
publicstaticfinalintTEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintVIDEO_METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticPartgetDefaultInstance()
| Returns |
| Type |
Description |
Part |
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticPart.BuildernewBuilder()
newBuilder(Part prototype)
publicstaticPart.BuildernewBuilder(Partprototype)
| Parameter |
| Name |
Description |
prototype |
Part
|
publicstaticPartparseDelimitedFrom(InputStreaminput)
| Returns |
| Type |
Description |
Part |
publicstaticPartparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Part |
parseFrom(byte[] data)
publicstaticPartparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Part |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticPartparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Part |
parseFrom(ByteString data)
publicstaticPartparseFrom(ByteStringdata)
| Returns |
| Type |
Description |
Part |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticPartparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Part |
publicstaticPartparseFrom(CodedInputStreaminput)
| Returns |
| Type |
Description |
Part |
publicstaticPartparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Part |
publicstaticPartparseFrom(InputStreaminput)
| Returns |
| Type |
Description |
Part |
publicstaticPartparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Part |
parseFrom(ByteBuffer data)
publicstaticPartparseFrom(ByteBufferdata)
| Returns |
| Type |
Description |
Part |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticPartparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Part |
parser()
publicstaticParser<Part>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDataCase()
publicPart.DataCasegetDataCase()
getDefaultInstanceForType()
publicPartgetDefaultInstanceForType()
| Returns |
| Type |
Description |
Part |
getFileData()
publicFileDatagetFileData()
Optional. URI based data.
.google.cloud.vertexai.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
FileData |
The fileData.
|
getFileDataOrBuilder()
publicFileDataOrBuildergetFileDataOrBuilder()
Optional. URI based data.
.google.cloud.vertexai.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
getFunctionCall()
publicFunctionCallgetFunctionCall()
Optional. A predicted [FunctionCall] returned from the model that
contains a string representing the [FunctionDeclaration.name] with the
parameters and their values.
.google.cloud.vertexai.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
getFunctionCallOrBuilder()
publicFunctionCallOrBuildergetFunctionCallOrBuilder()
Optional. A predicted [FunctionCall] returned from the model that
contains a string representing the [FunctionDeclaration.name] with the
parameters and their values.
.google.cloud.vertexai.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
getFunctionResponse()
publicFunctionResponsegetFunctionResponse()
Optional. The result output of a [FunctionCall] that contains a string
representing the [FunctionDeclaration.name] and a structured JSON object
containing any output from the function call. It is used as context to
the model.
.google.cloud.vertexai.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
getFunctionResponseOrBuilder()
publicFunctionResponseOrBuildergetFunctionResponseOrBuilder()
Optional. The result output of a [FunctionCall] that contains a string
representing the [FunctionDeclaration.name] and a structured JSON object
containing any output from the function call. It is used as context to
the model.
.google.cloud.vertexai.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
getInlineData()
publicBlobgetInlineData()
Optional. Inlined bytes data.
.google.cloud.vertexai.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Blob |
The inlineData.
|
getInlineDataOrBuilder()
publicBlobOrBuildergetInlineDataOrBuilder()
Optional. Inlined bytes data.
.google.cloud.vertexai.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
publicPart.MetadataCasegetMetadataCase()
getParserForType()
publicParser<Part>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getText()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The text.
|
getTextBytes()
publicByteStringgetTextBytes()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for text.
|
publicVideoMetadatagetVideoMetadata()
Optional. Video metadata. The metadata should only be specified while the
video data is presented in inline_data or file_data.
.google.cloud.vertexai.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
publicVideoMetadataOrBuildergetVideoMetadataOrBuilder()
Optional. Video metadata. The metadata should only be specified while the
video data is presented in inline_data or file_data.
.google.cloud.vertexai.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
hasFileData()
publicbooleanhasFileData()
Optional. URI based data.
.google.cloud.vertexai.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the fileData field is set.
|
hasFunctionCall()
publicbooleanhasFunctionCall()
Optional. A predicted [FunctionCall] returned from the model that
contains a string representing the [FunctionDeclaration.name] with the
parameters and their values.
.google.cloud.vertexai.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the functionCall field is set.
|
hasFunctionResponse()
publicbooleanhasFunctionResponse()
Optional. The result output of a [FunctionCall] that contains a string
representing the [FunctionDeclaration.name] and a structured JSON object
containing any output from the function call. It is used as context to
the model.
.google.cloud.vertexai.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the functionResponse field is set.
|
hasInlineData()
publicbooleanhasInlineData()
Optional. Inlined bytes data.
.google.cloud.vertexai.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the inlineData field is set.
|
hasText()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the text field is set.
|
publicbooleanhasVideoMetadata()
Optional. Video metadata. The metadata should only be specified while the
video data is presented in inline_data or file_data.
.google.cloud.vertexai.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the videoMetadata field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicPart.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedPart.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicPart.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides