Package com.google.cloud.aiplatform.v1
Interface EmbedContentRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
EmbedContentRequest,EmbedContentRequest.Builder
@Generated
public interface EmbedContentRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.auto_truncate is deprecated.Required.Required.Optional.Optional.getModel()Required.com.google.protobuf.ByteStringRequired.intDeprecated.google.cloud.aiplatform.v1.EmbedContentRequest.output_dimensionality is deprecated.Deprecated.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.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasModel
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) = { ... }- Returns:
- Whether the model field is set.
-
getModel
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) = { ... }- Returns:
- The model.
-
getModelBytes
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) = { ... }- Returns:
- The bytes for model.
-
hasContent
boolean hasContent()Required. Input content to be embedded.
optional .google.cloud.aiplatform.v1.Content content = 2;- Returns:
- Whether the content field is set.
-
getContent
Content getContent()Required. Input content to be embedded.
optional .google.cloud.aiplatform.v1.Content content = 2;- Returns:
- The content.
-
getContentOrBuilder
ContentOrBuilder getContentOrBuilder()Required. Input content to be embedded.
optional .google.cloud.aiplatform.v1.Content content = 2; -
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];- 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];- 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];- 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];- 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];- 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];- 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];- 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];- 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];- 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];- Returns:
- The autoTruncate.
-
hasEmbedContentConfig
boolean hasEmbedContentConfig()Optional. Configuration for the EmbedContent request.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the embedContentConfig field is set.
-
getEmbedContentConfig
EmbedContentRequest.EmbedContentConfig getEmbedContentConfig()Optional. Configuration for the EmbedContent request.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The embedContentConfig.
-
getEmbedContentConfigOrBuilder
EmbedContentRequest.EmbedContentConfigOrBuilder getEmbedContentConfigOrBuilder()Optional. Configuration for the EmbedContent request.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL];
-