public final class Part extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
Part.Builder
A datatype containing media that is part of a multi-part `Content` message.
|
static class |
Part.DataCase |
static class |
Part.MetadataCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FILE_DATA_FIELD_NUMBER |
static int |
FUNCTION_CALL_FIELD_NUMBER |
static int |
FUNCTION_RESPONSE_FIELD_NUMBER |
static int |
INLINE_DATA_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
VIDEO_METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Part.DataCase |
getDataCase() |
static Part |
getDefaultInstance() |
Part |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
FileData |
getFileData()
Optional.
|
FileDataOrBuilder |
getFileDataOrBuilder()
Optional.
|
FunctionCall |
getFunctionCall()
Optional.
|
FunctionCallOrBuilder |
getFunctionCallOrBuilder()
Optional.
|
FunctionResponse |
getFunctionResponse()
Optional.
|
FunctionResponseOrBuilder |
getFunctionResponseOrBuilder()
Optional.
|
Blob |
getInlineData()
Optional.
|
BlobOrBuilder |
getInlineDataOrBuilder()
Optional.
|
Part.MetadataCase |
getMetadataCase() |
com.google.protobuf.Parser<Part> |
getParserForType() |
int |
getSerializedSize() |
String |
getText()
Optional.
|
com.google.protobuf.ByteString |
getTextBytes()
Optional.
|
VideoMetadata |
getVideoMetadata()
Optional.
|
VideoMetadataOrBuilder |
getVideoMetadataOrBuilder()
Optional.
|
boolean |
hasFileData()
Optional.
|
boolean |
hasFunctionCall()
Optional.
|
boolean |
hasFunctionResponse()
Optional.
|
int |
hashCode() |
boolean |
hasInlineData()
Optional.
|
boolean |
hasText()
Optional.
|
boolean |
hasVideoMetadata()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Part.Builder |
newBuilder() |
static Part.Builder |
newBuilder(Part prototype) |
Part.Builder |
newBuilderForType() |
protected Part.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Part |
parseDelimitedFrom(InputStream input) |
static Part |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Part |
parseFrom(byte[] data) |
static Part |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Part |
parseFrom(ByteBuffer data) |
static Part |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Part |
parseFrom(com.google.protobuf.ByteString data) |
static Part |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Part |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Part |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Part |
parseFrom(InputStream input) |
static Part |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Part> |
parser() |
Part.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEXT_FIELD_NUMBER
public static final int INLINE_DATA_FIELD_NUMBER
public static final int FILE_DATA_FIELD_NUMBER
public static final int FUNCTION_CALL_FIELD_NUMBER
public static final int FUNCTION_RESPONSE_FIELD_NUMBER
public static final int VIDEO_METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Part.DataCase getDataCase()
getDataCase in interface PartOrBuilderpublic Part.MetadataCase getMetadataCase()
getMetadataCase in interface PartOrBuilderpublic boolean hasText()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];hasText in interface PartOrBuilderpublic String getText()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];getText in interface PartOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];getTextBytes in interface PartOrBuilderpublic boolean hasInlineData()
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
hasInlineData in interface PartOrBuilderpublic Blob getInlineData()
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
getInlineData in interface PartOrBuilderpublic BlobOrBuilder getInlineDataOrBuilder()
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
getInlineDataOrBuilder in interface PartOrBuilderpublic boolean hasFileData()
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
hasFileData in interface PartOrBuilderpublic FileData getFileData()
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
getFileData in interface PartOrBuilderpublic FileDataOrBuilder getFileDataOrBuilder()
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
getFileDataOrBuilder in interface PartOrBuilderpublic 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];
hasFunctionCall in interface PartOrBuilderpublic 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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
getFunctionCall in interface PartOrBuilderpublic 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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
getFunctionCallOrBuilder in interface PartOrBuilderpublic 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];
hasFunctionResponse in interface PartOrBuilderpublic 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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
getFunctionResponse in interface PartOrBuilderpublic 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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
getFunctionResponseOrBuilder in interface PartOrBuilderpublic 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];
hasVideoMetadata in interface PartOrBuilderpublic 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.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
getVideoMetadata in interface PartOrBuilderpublic 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.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
getVideoMetadataOrBuilder in interface PartOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Part parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Part parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Part parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Part parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Part parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Part parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Part parseFrom(InputStream input) throws IOException
IOExceptionpublic static Part parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Part parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Part parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Part parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Part parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Part.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Part.Builder newBuilder()
public static Part.Builder newBuilder(Part prototype)
public Part.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Part.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Part getDefaultInstance()
public static com.google.protobuf.Parser<Part> parser()
public com.google.protobuf.Parser<Part> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Part getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.