public final class Part extends GeneratedMessage implements PartOrBuilder
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.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CODE_EXECUTION_RESULT_FIELD_NUMBER
public static final int CODE_EXECUTION_RESULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXECUTABLE_CODE_FIELD_NUMBER
public static final int EXECUTABLE_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FILE_DATA_FIELD_NUMBER
public static final int FILE_DATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FUNCTION_CALL_FIELD_NUMBER
public static final int FUNCTION_CALL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FUNCTION_RESPONSE_FIELD_NUMBER
public static final int FUNCTION_RESPONSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INLINE_DATA_FIELD_NUMBER
public static final int INLINE_DATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
THOUGHT_FIELD_NUMBER
public static final int THOUGHT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
THOUGHT_SIGNATURE_FIELD_NUMBER
public static final int THOUGHT_SIGNATURE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int VIDEO_METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Part getDefaultInstance()
| Returns |
| Type |
Description |
Part |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Part.Builder newBuilder()
newBuilder(Part prototype)
public static Part.Builder newBuilder(Part prototype)
| Parameter |
| Name |
Description |
prototype |
Part
|
public static Part parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Part |
|
public static Part parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Part |
|
parseFrom(byte[] data)
public static Part parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Part |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Part parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Part |
|
parseFrom(ByteString data)
public static Part parseFrom(ByteString data)
| Returns |
| Type |
Description |
Part |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Part parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Part |
|
public static Part parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Part |
|
public static Part parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Part |
|
public static Part parseFrom(InputStream input)
| Returns |
| Type |
Description |
Part |
|
public static Part parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Part |
|
parseFrom(ByteBuffer data)
public static Part parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Part |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Part parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Part |
|
parser()
public static Parser<Part> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCodeExecutionResult()
public CodeExecutionResult getCodeExecutionResult()
Optional. Result of executing the [ExecutableCode].
.google.cloud.vertexai.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
getCodeExecutionResultOrBuilder()
public CodeExecutionResultOrBuilder getCodeExecutionResultOrBuilder()
Optional. Result of executing the [ExecutableCode].
.google.cloud.vertexai.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
getDataCase()
public Part.DataCase getDataCase()
getDefaultInstanceForType()
public Part getDefaultInstanceForType()
| Returns |
| Type |
Description |
Part |
|
getExecutableCode()
public ExecutableCode getExecutableCode()
Optional. Code generated by the model that is meant to be executed.
.google.cloud.vertexai.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL];
getExecutableCodeOrBuilder()
public ExecutableCodeOrBuilder getExecutableCodeOrBuilder()
Optional. Code generated by the model that is meant to be executed.
.google.cloud.vertexai.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL];
getFileData()
public FileData getFileData()
Optional. URI based data.
.google.cloud.vertexai.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
FileData |
The fileData.
|
getFileDataOrBuilder()
public FileDataOrBuilder getFileDataOrBuilder()
Optional. URI based data.
.google.cloud.vertexai.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
getFunctionCall()
public FunctionCall getFunctionCall()
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()
public FunctionCallOrBuilder getFunctionCallOrBuilder()
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()
public FunctionResponse getFunctionResponse()
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()
public FunctionResponseOrBuilder getFunctionResponseOrBuilder()
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()
public Blob getInlineData()
Optional. Inlined bytes data.
.google.cloud.vertexai.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Blob |
The inlineData.
|
getInlineDataOrBuilder()
public BlobOrBuilder getInlineDataOrBuilder()
Optional. Inlined bytes data.
.google.cloud.vertexai.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
public Part.MetadataCase getMetadataCase()
getParserForType()
public Parser<Part> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| 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()
public ByteString getTextBytes()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for text.
|
getThought()
public boolean getThought()
Indicates if the part is thought from the model.
bool thought = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The thought.
|
getThoughtSignature()
public ByteString getThoughtSignature()
An opaque signature for the thought so it can be reused in subsequent
requests.
bytes thought_signature = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The thoughtSignature.
|
public VideoMetadata getVideoMetadata()
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];
public VideoMetadataOrBuilder getVideoMetadataOrBuilder()
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];
hasCodeExecutionResult()
public boolean hasCodeExecutionResult()
Optional. Result of executing the [ExecutableCode].
.google.cloud.vertexai.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the codeExecutionResult field is set.
|
hasExecutableCode()
public boolean hasExecutableCode()
Optional. Code generated by the model that is meant to be executed.
.google.cloud.vertexai.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the executableCode field is set.
|
hasFileData()
public boolean hasFileData()
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()
public boolean hasFunctionCall()
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()
public boolean hasFunctionResponse()
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()
public boolean hasInlineData()
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.
|
public boolean hasVideoMetadata()
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()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Part.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Part.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Part.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides