public static final class EmbedContentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.Builder> implements EmbedContentRequestOrBuilder
Request message for [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].Protobuf type
google.cloud.aiplatform.v1.EmbedContentRequestaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.Builder>public EmbedContentRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.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.GeneratedMessage.Builder<EmbedContentRequest.Builder>public EmbedContentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EmbedContentRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EmbedContentRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EmbedContentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EmbedContentRequest.Builder>public EmbedContentRequest.Builder mergeFrom(EmbedContentRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.Builder>public EmbedContentRequest.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<EmbedContentRequest.Builder>IOExceptionpublic boolean hasModel()
Required. The name of the publisher model requested to serve the
prediction. Format:
`projects/{project}/locations/{location}/publishers/*/models/*`
optional string model = 1 [(.google.api.resource_reference) = { ... }hasModel in interface EmbedContentRequestOrBuilderpublic String getModel()
Required. The name of the publisher model requested to serve the
prediction. Format:
`projects/{project}/locations/{location}/publishers/*/models/*`
optional string model = 1 [(.google.api.resource_reference) = { ... }getModel in interface EmbedContentRequestOrBuilderpublic com.google.protobuf.ByteString getModelBytes()
Required. The name of the publisher model requested to serve the
prediction. Format:
`projects/{project}/locations/{location}/publishers/*/models/*`
optional string model = 1 [(.google.api.resource_reference) = { ... }getModelBytes in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setModel(String value)
Required. The name of the publisher model requested to serve the
prediction. Format:
`projects/{project}/locations/{location}/publishers/*/models/*`
optional string model = 1 [(.google.api.resource_reference) = { ... }value - The model to set.public EmbedContentRequest.Builder clearModel()
Required. The name of the publisher model requested to serve the
prediction. Format:
`projects/{project}/locations/{location}/publishers/*/models/*`
optional string model = 1 [(.google.api.resource_reference) = { ... }public EmbedContentRequest.Builder setModelBytes(com.google.protobuf.ByteString value)
Required. The name of the publisher model requested to serve the
prediction. Format:
`projects/{project}/locations/{location}/publishers/*/models/*`
optional string model = 1 [(.google.api.resource_reference) = { ... }value - The bytes for model to set.public boolean hasContent()
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;hasContent in interface EmbedContentRequestOrBuilderpublic Content getContent()
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;getContent in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setContent(Content value)
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;public EmbedContentRequest.Builder setContent(Content.Builder builderForValue)
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;public EmbedContentRequest.Builder mergeContent(Content value)
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;public EmbedContentRequest.Builder clearContent()
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;public Content.Builder getContentBuilder()
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;public ContentOrBuilder getContentOrBuilder()
Required. Input content to be embedded. Required.
optional .google.cloud.aiplatform.v1.Content content = 2;getContentOrBuilder in interface EmbedContentRequestOrBuilderpublic boolean hasTitle()
Optional. An optional title for the text.
optional string title = 4 [(.google.api.field_behavior) = OPTIONAL];hasTitle in interface EmbedContentRequestOrBuilderpublic String getTitle()
Optional. An optional title for the text.
optional string title = 4 [(.google.api.field_behavior) = OPTIONAL];getTitle in interface EmbedContentRequestOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Optional. An optional title for the text.
optional string title = 4 [(.google.api.field_behavior) = OPTIONAL];getTitleBytes in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setTitle(String value)
Optional. An optional title for the text.
optional string title = 4 [(.google.api.field_behavior) = OPTIONAL];value - The title to set.public EmbedContentRequest.Builder clearTitle()
Optional. An optional title for the text.
optional string title = 4 [(.google.api.field_behavior) = OPTIONAL];public EmbedContentRequest.Builder setTitleBytes(com.google.protobuf.ByteString value)
Optional. An optional title for the text.
optional string title = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for title to set.public boolean hasTaskType()
Optional. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL];
hasTaskType in interface EmbedContentRequestOrBuilderpublic int getTaskTypeValue()
Optional. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL];
getTaskTypeValue in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setTaskTypeValue(int value)
Optional. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for taskType to set.public EmbedContentRequest.EmbeddingTaskType getTaskType()
Optional. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL];
getTaskType in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setTaskType(EmbedContentRequest.EmbeddingTaskType value)
Optional. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL];
value - The taskType to set.public EmbedContentRequest.Builder clearTaskType()
Optional. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasOutputDimensionality()
Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL];
hasOutputDimensionality in interface EmbedContentRequestOrBuilderpublic int getOutputDimensionality()
Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL];
getOutputDimensionality in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setOutputDimensionality(int value)
Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL];
value - The outputDimensionality to set.public EmbedContentRequest.Builder clearOutputDimensionality()
Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasAutoTruncate()
Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.
optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL];hasAutoTruncate in interface EmbedContentRequestOrBuilderpublic boolean getAutoTruncate()
Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.
optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL];getAutoTruncate in interface EmbedContentRequestOrBuilderpublic EmbedContentRequest.Builder setAutoTruncate(boolean value)
Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.
optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL];value - The autoTruncate to set.public EmbedContentRequest.Builder clearAutoTruncate()
Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.
optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL];Copyright © 2026 Google LLC. All rights reserved.