Package com.google.cloud.aiplatform.v1
Class Part
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.Part
- All Implemented Interfaces:
PartOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Part
extends com.google.protobuf.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.aiplatform.v1.Part- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA datatype containing media that is part of a multi-part `Content` message.static enumstatic final classper part media resolution.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.Optional.static Partstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.per part media resolution.per part media resolution.com.google.protobuf.Parser<Part>intgetText()Optional.com.google.protobuf.ByteStringOptional.booleanIndicates if the part is thought from the model.com.google.protobuf.ByteStringAn opaque signature for the thought so it can be reused in subsequent requests.Optional.Optional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.inthashCode()booleanOptional.booleanper part media resolution.booleanhasText()Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Part.Builderstatic Part.BuildernewBuilder(Part prototype) protected Part.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PartparseDelimitedFrom(InputStream input) static PartparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartparseFrom(byte[] data) static PartparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartparseFrom(com.google.protobuf.ByteString data) static PartparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartparseFrom(com.google.protobuf.CodedInputStream input) static PartparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartparseFrom(InputStream input) static PartparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartparseFrom(ByteBuffer data) static PartparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Part>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER- See Also:
-
INLINE_DATA_FIELD_NUMBER
public static final int INLINE_DATA_FIELD_NUMBER- See Also:
-
FILE_DATA_FIELD_NUMBER
public static final int FILE_DATA_FIELD_NUMBER- See Also:
-
FUNCTION_CALL_FIELD_NUMBER
public static final int FUNCTION_CALL_FIELD_NUMBER- See Also:
-
FUNCTION_RESPONSE_FIELD_NUMBER
public static final int FUNCTION_RESPONSE_FIELD_NUMBER- See Also:
-
EXECUTABLE_CODE_FIELD_NUMBER
public static final int EXECUTABLE_CODE_FIELD_NUMBER- See Also:
-
CODE_EXECUTION_RESULT_FIELD_NUMBER
public static final int CODE_EXECUTION_RESULT_FIELD_NUMBER- See Also:
-
THOUGHT_FIELD_NUMBER
public static final int THOUGHT_FIELD_NUMBER- See Also:
-
THOUGHT_SIGNATURE_FIELD_NUMBER
public static final int THOUGHT_SIGNATURE_FIELD_NUMBER- See Also:
-
VIDEO_METADATA_FIELD_NUMBER
public static final int VIDEO_METADATA_FIELD_NUMBER- See Also:
-
MEDIA_RESOLUTION_FIELD_NUMBER
public static final int MEDIA_RESOLUTION_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDataCase
- Specified by:
getDataCasein interfacePartOrBuilder
-
getMetadataCase
- Specified by:
getMetadataCasein interfacePartOrBuilder
-
hasText
public boolean hasText()Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTextin interfacePartOrBuilder- Returns:
- Whether the text field is set.
-
getText
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTextin interfacePartOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTextBytesin interfacePartOrBuilder- Returns:
- The bytes for text.
-
hasInlineData
public boolean hasInlineData()Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasInlineDatain interfacePartOrBuilder- Returns:
- Whether the inlineData field is set.
-
getInlineData
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInlineDatain interfacePartOrBuilder- Returns:
- The inlineData.
-
getInlineDataOrBuilder
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInlineDataOrBuilderin interfacePartOrBuilder
-
hasFileData
public boolean hasFileData()Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFileDatain interfacePartOrBuilder- Returns:
- Whether the fileData field is set.
-
getFileData
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFileDatain interfacePartOrBuilder- Returns:
- The fileData.
-
getFileDataOrBuilder
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFileDataOrBuilderin interfacePartOrBuilder
-
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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFunctionCallin interfacePartOrBuilder- Returns:
- Whether the functionCall field is set.
-
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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFunctionCallin interfacePartOrBuilder- Returns:
- The functionCall.
-
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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFunctionCallOrBuilderin interfacePartOrBuilder
-
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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFunctionResponsein interfacePartOrBuilder- Returns:
- Whether the functionResponse field is set.
-
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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFunctionResponsein interfacePartOrBuilder- Returns:
- The functionResponse.
-
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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFunctionResponseOrBuilderin interfacePartOrBuilder
-
hasExecutableCode
public boolean hasExecutableCode()Optional. Code generated by the model that is meant to be executed.
.google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExecutableCodein interfacePartOrBuilder- Returns:
- Whether the executableCode field is set.
-
getExecutableCode
Optional. Code generated by the model that is meant to be executed.
.google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExecutableCodein interfacePartOrBuilder- Returns:
- The executableCode.
-
getExecutableCodeOrBuilder
Optional. Code generated by the model that is meant to be executed.
.google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExecutableCodeOrBuilderin interfacePartOrBuilder
-
hasCodeExecutionResult
public boolean hasCodeExecutionResult()Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCodeExecutionResultin interfacePartOrBuilder- Returns:
- Whether the codeExecutionResult field is set.
-
getCodeExecutionResult
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCodeExecutionResultin interfacePartOrBuilder- Returns:
- The codeExecutionResult.
-
getCodeExecutionResultOrBuilder
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCodeExecutionResultOrBuilderin interfacePartOrBuilder
-
getThought
public boolean getThought()Indicates if the part is thought from the model.
bool thought = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getThoughtin interfacePartOrBuilder- Returns:
- The thought.
-
getThoughtSignature
public com.google.protobuf.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];- Specified by:
getThoughtSignaturein interfacePartOrBuilder- Returns:
- The thoughtSignature.
-
hasVideoMetadata
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.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVideoMetadatain interfacePartOrBuilder- Returns:
- Whether the videoMetadata field is set.
-
getVideoMetadata
Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
.google.cloud.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVideoMetadatain interfacePartOrBuilder- Returns:
- The videoMetadata.
-
getVideoMetadataOrBuilder
Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
.google.cloud.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVideoMetadataOrBuilderin interfacePartOrBuilder
-
hasMediaResolution
public boolean hasMediaResolution()per part media resolution. Media resolution for the input media.
.google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;- Specified by:
hasMediaResolutionin interfacePartOrBuilder- Returns:
- Whether the mediaResolution field is set.
-
getMediaResolution
per part media resolution. Media resolution for the input media.
.google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;- Specified by:
getMediaResolutionin interfacePartOrBuilder- Returns:
- The mediaResolution.
-
getMediaResolutionOrBuilder
per part media resolution. Media resolution for the input media.
.google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;- Specified by:
getMediaResolutionOrBuilderin interfacePartOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Part parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Part parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Part parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Part parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Part parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Part parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Part parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Part parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-