@Generated public final class EmbedContentRequest extends com.google.protobuf.GeneratedMessage implements EmbedContentRequestOrBuilder
Request message for [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].Protobuf type
google.cloud.aiplatform.v1.EmbedContentRequest| Modifier and Type | Class and Description |
|---|---|
static class |
EmbedContentRequest.Builder
Request message for
[PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].
|
static class |
EmbedContentRequest.EmbeddingTaskType
Represents a downstream task the embeddings will be used for.
|
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_TRUNCATE_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
MODEL_FIELD_NUMBER |
static int |
OUTPUT_DIMENSIONALITY_FIELD_NUMBER |
static int |
TASK_TYPE_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAutoTruncate()
Optional.
|
Content |
getContent()
Required.
|
ContentOrBuilder |
getContentOrBuilder()
Required.
|
static EmbedContentRequest |
getDefaultInstance() |
EmbedContentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getModel()
Required.
|
com.google.protobuf.ByteString |
getModelBytes()
Required.
|
int |
getOutputDimensionality()
Optional.
|
com.google.protobuf.Parser<EmbedContentRequest> |
getParserForType() |
int |
getSerializedSize() |
EmbedContentRequest.EmbeddingTaskType |
getTaskType()
Optional.
|
int |
getTaskTypeValue()
Optional.
|
String |
getTitle()
Optional.
|
com.google.protobuf.ByteString |
getTitleBytes()
Optional.
|
boolean |
hasAutoTruncate()
Optional.
|
boolean |
hasContent()
Required.
|
int |
hashCode() |
boolean |
hasModel()
Required.
|
boolean |
hasOutputDimensionality()
Optional.
|
boolean |
hasTaskType()
Optional.
|
boolean |
hasTitle()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EmbedContentRequest.Builder |
newBuilder() |
static EmbedContentRequest.Builder |
newBuilder(EmbedContentRequest prototype) |
EmbedContentRequest.Builder |
newBuilderForType() |
protected EmbedContentRequest.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static EmbedContentRequest |
parseDelimitedFrom(InputStream input) |
static EmbedContentRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EmbedContentRequest |
parseFrom(byte[] data) |
static EmbedContentRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EmbedContentRequest |
parseFrom(ByteBuffer data) |
static EmbedContentRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EmbedContentRequest |
parseFrom(com.google.protobuf.ByteString data) |
static EmbedContentRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EmbedContentRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EmbedContentRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EmbedContentRequest |
parseFrom(InputStream input) |
static EmbedContentRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EmbedContentRequest> |
parser() |
EmbedContentRequest.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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MODEL_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int TASK_TYPE_FIELD_NUMBER
public static final int OUTPUT_DIMENSIONALITY_FIELD_NUMBER
public static final int AUTO_TRUNCATE_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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 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 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 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.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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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 EmbedContentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EmbedContentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EmbedContentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EmbedContentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EmbedContentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EmbedContentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EmbedContentRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static EmbedContentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EmbedContentRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EmbedContentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EmbedContentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EmbedContentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EmbedContentRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EmbedContentRequest.Builder newBuilder()
public static EmbedContentRequest.Builder newBuilder(EmbedContentRequest prototype)
public EmbedContentRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EmbedContentRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static EmbedContentRequest getDefaultInstance()
public static com.google.protobuf.Parser<EmbedContentRequest> parser()
public com.google.protobuf.Parser<EmbedContentRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic EmbedContentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.