Class EmbedContentRequest.EmbedContentConfig (3.89.0)

public static final class EmbedContentRequest.EmbedContentConfig extends GeneratedMessage implements EmbedContentRequest.EmbedContentConfigOrBuilder

Configurations for the EmbedContent API.

Protobuf type google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > EmbedContentRequest.EmbedContentConfig

Static Fields

AUDIO_TRACK_EXTRACTION_FIELD_NUMBER

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()
Returns
Type Description
EmbedContentRequest.EmbedContentConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static EmbedContentRequest.EmbedContentConfig.Builder newBuilder()
Returns
Type Description
EmbedContentRequest.EmbedContentConfig.Builder

newBuilder(EmbedContentRequest.EmbedContentConfig prototype)

public static EmbedContentRequest.EmbedContentConfig.Builder newBuilder(EmbedContentRequest.EmbedContentConfig prototype)
Parameter
Name Description
prototype EmbedContentRequest.EmbedContentConfig
Returns
Type Description
EmbedContentRequest.EmbedContentConfig.Builder

parseDelimitedFrom(InputStream input)

public static EmbedContentRequest.EmbedContentConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EmbedContentRequest.EmbedContentConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EmbedContentRequest.EmbedContentConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EmbedContentRequest.EmbedContentConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EmbedContentRequest.EmbedContentConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EmbedContentRequest.EmbedContentConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EmbedContentRequest.EmbedContentConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EmbedContentRequest.EmbedContentConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EmbedContentRequest.EmbedContentConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmbedContentRequest.EmbedContentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EmbedContentRequest.EmbedContentConfig> parser()
Returns
Type Description
Parser<EmbedContentConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAudioTrackExtraction()

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()
Returns
Type Description
EmbedContentRequest.EmbedContentConfig

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()
Returns
Type Description
Parser<EmbedContentConfig>
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];

Returns
Type Description
EmbedContentRequest.EmbeddingTaskType

The taskType.

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()

public 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
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.

hasAudioTrackExtraction()

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EmbedContentRequest.EmbedContentConfig.Builder newBuilderForType()
Returns
Type Description
EmbedContentRequest.EmbedContentConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected EmbedContentRequest.EmbedContentConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EmbedContentRequest.EmbedContentConfig.Builder
Overrides

toBuilder()

public EmbedContentRequest.EmbedContentConfig.Builder toBuilder()
Returns
Type Description
EmbedContentRequest.EmbedContentConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException