Package com.google.cloud.aiplatform.v1
Interface EmbedContentRequest.EmbedContentConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
EmbedContentRequest.EmbedContentConfig,EmbedContentRequest.EmbedContentConfig.Builder
- Enclosing class:
- EmbedContentRequest
public static interface EmbedContentRequest.EmbedContentConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.booleanOptional.booleanOptional.intOptional.Optional.intOptional.getTitle()Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanhasTitle()Optional.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
-
hasTitle
boolean hasTitle()Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the title field is set.
-
getTitle
String getTitle()Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for title.
-
hasTaskType
boolean hasTaskType()Optional. The task type of the embedding. Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the taskType field is set.
-
getTaskTypeValue
int getTaskTypeValue()Optional. The task type of the embedding. Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for taskType.
-
getTaskType
EmbedContentRequest.EmbeddingTaskType getTaskType()Optional. The task type of the embedding. Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The taskType.
-
hasAutoTruncate
boolean hasAutoTruncate()Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. Only applicable to text-only embedding models.
optional bool auto_truncate = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the autoTruncate field is set.
-
getAutoTruncate
boolean getAutoTruncate()Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. Only applicable to text-only embedding models.
optional bool auto_truncate = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The autoTruncate.
-
hasOutputDimensionality
boolean hasOutputDimensionality()Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the outputDimensionality field is set.
-
getOutputDimensionality
int getOutputDimensionality()Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
optional int32 output_dimensionality = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The outputDimensionality.
-
hasDocumentOcr
boolean hasDocumentOcr()Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the documentOcr field is set.
-
getDocumentOcr
boolean getDocumentOcr()Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The documentOcr.
-
hasAudioTrackExtraction
boolean hasAudioTrackExtraction()Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the audioTrackExtraction field is set.
-
getAudioTrackExtraction
boolean getAudioTrackExtraction()Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The audioTrackExtraction.
-