Package com.google.cloud.aiplatform.v1
Class EmbedContentRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.EmbedContentRequest
- All Implemented Interfaces:
EmbedContentRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].static final classConfigurations for the EmbedContent API.static interfacestatic enumRepresents a downstream task the embeddings will be used for.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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 extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.auto_truncate is deprecated.Required.Required.static EmbedContentRequeststatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.getModel()Required.com.google.protobuf.ByteStringRequired.intDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.output_dimensionality is deprecated.com.google.protobuf.Parser<EmbedContentRequest>intDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.task_type is deprecated.intDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.task_type is deprecated.getTitle()Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.title is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.title is deprecated.booleanDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.auto_truncate is deprecated.booleanRequired.booleanOptional.inthashCode()booleanhasModel()Required.booleanDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.output_dimensionality is deprecated.booleanDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.task_type is deprecated.booleanhasTitle()Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.title is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic EmbedContentRequest.Builderstatic EmbedContentRequest.BuildernewBuilder(EmbedContentRequest prototype) protected EmbedContentRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static EmbedContentRequestparseDelimitedFrom(InputStream input) static EmbedContentRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EmbedContentRequestparseFrom(byte[] data) static EmbedContentRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EmbedContentRequestparseFrom(com.google.protobuf.ByteString data) static EmbedContentRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EmbedContentRequestparseFrom(com.google.protobuf.CodedInputStream input) static EmbedContentRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EmbedContentRequestparseFrom(InputStream input) static EmbedContentRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EmbedContentRequestparseFrom(ByteBuffer data) static EmbedContentRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EmbedContentRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MODEL_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER- See Also:
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
TASK_TYPE_FIELD_NUMBER
public static final int TASK_TYPE_FIELD_NUMBER- See Also:
-
OUTPUT_DIMENSIONALITY_FIELD_NUMBER
public static final int OUTPUT_DIMENSIONALITY_FIELD_NUMBER- See Also:
-
AUTO_TRUNCATE_FIELD_NUMBER
public static final int AUTO_TRUNCATE_FIELD_NUMBER- See Also:
-
EMBED_CONTENT_CONFIG_FIELD_NUMBER
public static final int EMBED_CONTENT_CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasModel
public 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) = { ... }- Specified by:
hasModelin interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the model field is set.
-
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) = { ... }- Specified by:
getModelin interfaceEmbedContentRequestOrBuilder- Returns:
- The model.
-
getModelBytes
public 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) = { ... }- Specified by:
getModelBytesin interfaceEmbedContentRequestOrBuilder- Returns:
- The bytes for model.
-
hasContent
public boolean hasContent()Required. Input content to be embedded.
optional .google.cloud.aiplatform.v1.Content content = 2;- Specified by:
hasContentin interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the content field is set.
-
getContent
Required. Input content to be embedded.
optional .google.cloud.aiplatform.v1.Content content = 2;- Specified by:
getContentin interfaceEmbedContentRequestOrBuilder- Returns:
- The content.
-
getContentOrBuilder
Required. Input content to be embedded.
optional .google.cloud.aiplatform.v1.Content content = 2;- Specified by:
getContentOrBuilderin interfaceEmbedContentRequestOrBuilder
-
hasTitle
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.title is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=968Optional. Deprecated: Please use EmbedContentConfig.title instead. The title for the text.
optional string title = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTitlein interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.title is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=968Optional. Deprecated: Please use EmbedContentConfig.title instead. The title for the text.
optional string title = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTitlein interfaceEmbedContentRequestOrBuilder- Returns:
- The title.
-
getTitleBytes
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.title is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=968Optional. Deprecated: Please use EmbedContentConfig.title instead. The title for the text.
optional string title = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTitleBytesin interfaceEmbedContentRequestOrBuilder- Returns:
- The bytes for title.
-
hasTaskType
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.task_type is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=973Optional. Deprecated: Please use EmbedContentConfig.task_type instead. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTaskTypein interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the taskType field is set.
-
getTaskTypeValue
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.task_type is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=973Optional. Deprecated: Please use EmbedContentConfig.task_type instead. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTaskTypeValuein interfaceEmbedContentRequestOrBuilder- Returns:
- The enum numeric value on the wire for taskType.
-
getTaskType
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.task_type is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=973Optional. Deprecated: Please use EmbedContentConfig.task_type instead. The task type of the embedding.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTaskTypein interfaceEmbedContentRequestOrBuilder- Returns:
- The taskType.
-
hasOutputDimensionality
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.output_dimensionality is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=979Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOutputDimensionalityin interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the outputDimensionality field is set.
-
getOutputDimensionality
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.output_dimensionality is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=979Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputDimensionalityin interfaceEmbedContentRequestOrBuilder- Returns:
- The outputDimensionality.
-
hasAutoTruncate
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.auto_truncate is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=985Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. Whether to silently truncate the input content if it's longer than the maximum sequence length.
optional bool auto_truncate = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAutoTruncatein interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the autoTruncate field is set.
-
getAutoTruncate
Deprecated.google.cloud.aiplatform.v1.EmbedContentRequest.auto_truncate is deprecated. See google/cloud/aiplatform/v1/prediction_service.proto;l=985Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. Whether to silently truncate the input content if it's longer than the maximum sequence length.
optional bool auto_truncate = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getAutoTruncatein interfaceEmbedContentRequestOrBuilder- Returns:
- The autoTruncate.
-
hasEmbedContentConfig
public boolean hasEmbedContentConfig()Optional. Configuration for the EmbedContent request.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEmbedContentConfigin interfaceEmbedContentRequestOrBuilder- Returns:
- Whether the embedContentConfig field is set.
-
getEmbedContentConfig
Optional. Configuration for the EmbedContent request.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbedContentConfigin interfaceEmbedContentRequestOrBuilder- Returns:
- The embedContentConfig.
-
getEmbedContentConfigOrBuilder
Optional. Configuration for the EmbedContent request.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbedContentConfigOrBuilderin interfaceEmbedContentRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EmbedContentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EmbedContentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EmbedContentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EmbedContentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EmbedContentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EmbedContentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EmbedContentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EmbedContentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EmbedContentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EmbedContentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EmbedContentRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-