public static final class Part.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder> 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.PartgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Part build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Part buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Part.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Part.Builder>public Part.Builder mergeFrom(Part other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public Part.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Part.Builder>IOExceptionpublic Part.DataCase getDataCase()
getDataCase in interface PartOrBuilderpublic Part.Builder clearData()
public Part.MetadataCase getMetadataCase()
getMetadataCase in interface PartOrBuilderpublic Part.Builder clearMetadata()
public 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 Part.Builder setText(String value)
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];value - The text to set.public Part.Builder clearText()
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];public Part.Builder setTextBytes(com.google.protobuf.ByteString value)
Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for text to set.public 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 Part.Builder setInlineData(Blob value)
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder setInlineData(Blob.Builder builderForValue)
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder mergeInlineData(Blob value)
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder clearInlineData()
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
public Blob.Builder getInlineDataBuilder()
Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
public 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 Part.Builder setFileData(FileData value)
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder setFileData(FileData.Builder builderForValue)
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder mergeFileData(FileData value)
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder clearFileData()
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
public FileData.Builder getFileDataBuilder()
Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
public 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 Part.Builder setFunctionCall(FunctionCall value)
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];
public Part.Builder setFunctionCall(FunctionCall.Builder builderForValue)
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];
public Part.Builder mergeFunctionCall(FunctionCall value)
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];
public Part.Builder clearFunctionCall()
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];
public FunctionCall.Builder getFunctionCallBuilder()
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];
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.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 Part.Builder setFunctionResponse(FunctionResponse value)
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];
public Part.Builder setFunctionResponse(FunctionResponse.Builder builderForValue)
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];
public Part.Builder mergeFunctionResponse(FunctionResponse value)
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];
public Part.Builder clearFunctionResponse()
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];
public FunctionResponse.Builder getFunctionResponseBuilder()
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];
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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
getFunctionResponseOrBuilder in interface PartOrBuilderpublic 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];
hasExecutableCode in interface PartOrBuilderpublic ExecutableCode 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];
getExecutableCode in interface PartOrBuilderpublic Part.Builder setExecutableCode(ExecutableCode value)
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];
public Part.Builder setExecutableCode(ExecutableCode.Builder builderForValue)
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];
public Part.Builder mergeExecutableCode(ExecutableCode value)
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];
public Part.Builder clearExecutableCode()
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];
public ExecutableCode.Builder getExecutableCodeBuilder()
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];
public ExecutableCodeOrBuilder 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];
getExecutableCodeOrBuilder in interface PartOrBuilderpublic boolean hasCodeExecutionResult()
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
hasCodeExecutionResult in interface PartOrBuilderpublic CodeExecutionResult getCodeExecutionResult()
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
getCodeExecutionResult in interface PartOrBuilderpublic Part.Builder setCodeExecutionResult(CodeExecutionResult value)
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder setCodeExecutionResult(CodeExecutionResult.Builder builderForValue)
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder mergeCodeExecutionResult(CodeExecutionResult value)
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
public Part.Builder clearCodeExecutionResult()
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
public CodeExecutionResult.Builder getCodeExecutionResultBuilder()
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
public CodeExecutionResultOrBuilder getCodeExecutionResultOrBuilder()
Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
getCodeExecutionResultOrBuilder 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 Part.Builder setVideoMetadata(VideoMetadata value)
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];
public Part.Builder setVideoMetadata(VideoMetadata.Builder builderForValue)
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];
public Part.Builder mergeVideoMetadata(VideoMetadata value)
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];
public Part.Builder clearVideoMetadata()
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];
public VideoMetadata.Builder getVideoMetadataBuilder()
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];
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.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
getVideoMetadataOrBuilder in interface PartOrBuilderpublic final Part.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>public final Part.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Part.Builder>Copyright © 2025 Google LLC. All rights reserved.