public static final class EmbedContentRequest.EmbedContentConfig extends GeneratedMessage implements EmbedContentRequest.EmbedContentConfigOrBuilder
Configurations for the EmbedContent API.
Protobuf type google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int AUDIO_TRACK_EXTRACTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AUTO_TRUNCATE_FIELD_NUMBER
public static final int AUTO_TRUNCATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DOCUMENT_OCR_FIELD_NUMBER
public static final int DOCUMENT_OCR_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
OUTPUT_DIMENSIONALITY_FIELD_NUMBER
public static final int OUTPUT_DIMENSIONALITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TASK_TYPE_FIELD_NUMBER
public static final int TASK_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static EmbedContentRequest.EmbedContentConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static EmbedContentRequest.EmbedContentConfig.Builder newBuilder()
newBuilder(EmbedContentRequest.EmbedContentConfig prototype)
public static EmbedContentRequest.EmbedContentConfig.Builder newBuilder(EmbedContentRequest.EmbedContentConfig prototype)
parseDelimitedFrom(InputStream input)
public static EmbedContentRequest.EmbedContentConfig parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EmbedContentRequest.EmbedContentConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static EmbedContentRequest.EmbedContentConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EmbedContentRequest.EmbedContentConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static EmbedContentRequest.EmbedContentConfig parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EmbedContentRequest.EmbedContentConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static EmbedContentRequest.EmbedContentConfig parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EmbedContentRequest.EmbedContentConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<EmbedContentRequest.EmbedContentConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public boolean getAudioTrackExtraction()
Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The audioTrackExtraction.
|
getAutoTruncate()
public 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 |
| Type |
Description |
boolean |
The autoTruncate.
|
getDefaultInstanceForType()
public EmbedContentRequest.EmbedContentConfig getDefaultInstanceForType()
getDocumentOcr()
public boolean getDocumentOcr()
Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The documentOcr.
|
getOutputDimensionality()
public 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 |
| Type |
Description |
int |
The outputDimensionality.
|
getParserForType()
public Parser<EmbedContentRequest.EmbedContentConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getTaskType()
public 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];
getTaskTypeValue()
public 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 |
| Type |
Description |
int |
The enum numeric value on the wire for taskType.
|
getTitle()
Optional. The title for the text.
Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The title.
|
getTitleBytes()
public 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 |
| Type |
Description |
ByteString |
The bytes for title.
|
public boolean hasAudioTrackExtraction()
Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the audioTrackExtraction field is set.
|
hasAutoTruncate()
public 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 |
| Type |
Description |
boolean |
Whether the autoTruncate field is set.
|
hasDocumentOcr()
public boolean hasDocumentOcr()
Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the documentOcr field is set.
|
hasOutputDimensionality()
public 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 |
| Type |
Description |
boolean |
Whether the outputDimensionality field is set.
|
hasTaskType()
public 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 |
| Type |
Description |
boolean |
Whether the taskType field is set.
|
hasTitle()
public 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 |
| Type |
Description |
boolean |
Whether the title field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public EmbedContentRequest.EmbedContentConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected EmbedContentRequest.EmbedContentConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public EmbedContentRequest.EmbedContentConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides