- 3.77.0 (latest)
- 3.76.0
- 3.75.0
- 3.74.0
- 3.73.0
- 3.71.0
- 3.69.0
- 3.68.0
- 3.65.0
- 3.64.0
- 3.63.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class Part.Builder extends 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.Part
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Part.BuilderImplements
PartOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Part.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
build()
public Part build()| Returns | |
|---|---|
| Type | Description |
Part |
|
buildPartial()
public Part buildPartial()| Returns | |
|---|---|
| Type | Description |
Part |
|
clear()
public Part.Builder clear()| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearCodeExecutionResult()
public Part.Builder clearCodeExecutionResult()Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearData()
public Part.Builder clearData()| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearExecutableCode()
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];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Part.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearFileData()
public Part.Builder clearFileData()Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearFunctionCall()
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];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearFunctionResponse()
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];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearInlineData()
public Part.Builder clearInlineData()Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearMetadata()
public Part.Builder clearMetadata()| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public Part.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearText()
public Part.Builder clearText()Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
clearThought()
public Part.Builder clearThought()Indicates if the part is thought from the model.
bool thought = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
clearThoughtSignature()
public Part.Builder clearThoughtSignature()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 |
Part.Builder |
This builder for chaining. |
clearVideoMetadata()
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];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clone()
public Part.Builder clone()| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
getCodeExecutionResult()
public CodeExecutionResult getCodeExecutionResult()Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CodeExecutionResult |
The codeExecutionResult. |
getCodeExecutionResultBuilder()
public CodeExecutionResult.Builder getCodeExecutionResultBuilder()Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CodeExecutionResult.Builder |
|
getCodeExecutionResultOrBuilder()
public CodeExecutionResultOrBuilder getCodeExecutionResultOrBuilder()Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CodeExecutionResultOrBuilder |
|
getDataCase()
public Part.DataCase getDataCase()| Returns | |
|---|---|
| Type | Description |
Part.DataCase |
|
getDefaultInstanceForType()
public Part getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Part |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExecutableCode()
public 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];
| Returns | |
|---|---|
| Type | Description |
ExecutableCode |
The executableCode. |
getExecutableCodeBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
ExecutableCode.Builder |
|
getExecutableCodeOrBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
ExecutableCodeOrBuilder |
|
getFileData()
public FileData getFileData()Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FileData |
The fileData. |
getFileDataBuilder()
public FileData.Builder getFileDataBuilder()Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FileData.Builder |
|
getFileDataOrBuilder()
public FileDataOrBuilder getFileDataOrBuilder()Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FileDataOrBuilder |
|
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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FunctionCall |
The functionCall. |
getFunctionCallBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
FunctionCall.Builder |
|
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.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FunctionCallOrBuilder |
|
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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FunctionResponse |
The functionResponse. |
getFunctionResponseBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
FunctionResponse.Builder |
|
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.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FunctionResponseOrBuilder |
|
getInlineData()
public Blob getInlineData()Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Blob |
The inlineData. |
getInlineDataBuilder()
public Blob.Builder getInlineDataBuilder()Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Blob.Builder |
|
getInlineDataOrBuilder()
public BlobOrBuilder getInlineDataOrBuilder()Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BlobOrBuilder |
|
getMetadataCase()
public Part.MetadataCase getMetadataCase()| Returns | |
|---|---|
| Type | Description |
Part.MetadataCase |
|
getText()
public String 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. |
getVideoMetadata()
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.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VideoMetadata |
The videoMetadata. |
getVideoMetadataBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
VideoMetadata.Builder |
|
getVideoMetadataOrBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
VideoMetadataOrBuilder |
|
hasCodeExecutionResult()
public boolean hasCodeExecutionResult()Optional. Result of executing the [ExecutableCode].
.google.cloud.aiplatform.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.aiplatform.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.aiplatform.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.aiplatform.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.aiplatform.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.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inlineData field is set. |
hasText()
public boolean 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. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the videoMetadata field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCodeExecutionResult(CodeExecutionResult value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
CodeExecutionResult |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeExecutableCode(ExecutableCode value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ExecutableCode |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFileData(FileData value)
public Part.Builder mergeFileData(FileData value)Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FileData |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFrom(Part other)
public Part.Builder mergeFrom(Part other)| Parameter | |
|---|---|
| Name | Description |
other |
Part |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Part.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Part.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFunctionCall(FunctionCall value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
FunctionCall |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFunctionResponse(FunctionResponse value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
FunctionResponse |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeInlineData(Blob value)
public Part.Builder mergeInlineData(Blob value)Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Blob |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Part.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeVideoMetadata(VideoMetadata value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
VideoMetadata |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setCodeExecutionResult(CodeExecutionResult value)
public 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];
| Parameter | |
|---|---|
| Name | Description |
value |
CodeExecutionResult |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setCodeExecutionResult(CodeExecutionResult.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CodeExecutionResult.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setExecutableCode(ExecutableCode value)
public 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ExecutableCode |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setExecutableCode(ExecutableCode.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExecutableCode.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Part.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFileData(FileData value)
public Part.Builder setFileData(FileData value)Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FileData |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFileData(FileData.Builder builderForValue)
public Part.Builder setFileData(FileData.Builder builderForValue)Optional. URI based data.
.google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
FileData.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFunctionCall(FunctionCall value)
public 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];
| Parameter | |
|---|---|
| Name | Description |
value |
FunctionCall |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFunctionCall(FunctionCall.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
FunctionCall.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFunctionResponse(FunctionResponse value)
public 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];
| Parameter | |
|---|---|
| Name | Description |
value |
FunctionResponse |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFunctionResponse(FunctionResponse.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
FunctionResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setInlineData(Blob value)
public Part.Builder setInlineData(Blob value)Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Blob |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setInlineData(Blob.Builder builderForValue)
public Part.Builder setInlineData(Blob.Builder builderForValue)Optional. Inlined bytes data.
.google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Blob.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Part.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setText(String value)
public Part.Builder setText(String value)Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public Part.Builder setTextBytes(ByteString value)Optional. Text part (can be code).
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
setThought(boolean value)
public Part.Builder setThought(boolean value)Indicates if the part is thought from the model.
bool thought = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe thought to set. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
setThoughtSignature(ByteString value)
public Part.Builder setThoughtSignature(ByteString value)An opaque signature for the thought so it can be reused in subsequent requests.
bytes thought_signature = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe thoughtSignature to set. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Part.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setVideoMetadata(VideoMetadata value)
public 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];
| Parameter | |
|---|---|
| Name | Description |
value |
VideoMetadata |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setVideoMetadata(VideoMetadata.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
VideoMetadata.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|