public static final class EmbedContentRequest.EmbedContentConfig.Builder extends GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder> implements EmbedContentRequest.EmbedContentConfigOrBuilderConfigurations for the EmbedContent API.
Protobuf type google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbedContentConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EmbedContentRequest.EmbedContentConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public EmbedContentRequest.EmbedContentConfig build()| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig |
|
buildPartial()
public EmbedContentRequest.EmbedContentConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig |
|
clear()
public EmbedContentRequest.EmbedContentConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
|
clearAudioTrackExtraction()
public EmbedContentRequest.EmbedContentConfig.Builder clearAudioTrackExtraction()Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
clearAutoTruncate()
public EmbedContentRequest.EmbedContentConfig.Builder clearAutoTruncate()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 |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
clearDocumentOcr()
public EmbedContentRequest.EmbedContentConfig.Builder clearDocumentOcr()Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
clearOutputDimensionality()
public EmbedContentRequest.EmbedContentConfig.Builder clearOutputDimensionality()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 |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
clearTaskType()
public EmbedContentRequest.EmbedContentConfig.Builder clearTaskType()Optional. The task type of the embedding.
Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
clearTitle()
public EmbedContentRequest.EmbedContentConfig.Builder clearTitle()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 |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getTaskType()
public EmbedContentRequest.EmbeddingTaskType getTaskType()Optional. The task type of the embedding.
Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EmbedContentRequest.EmbedContentConfig other)
public EmbedContentRequest.EmbedContentConfig.Builder mergeFrom(EmbedContentRequest.EmbedContentConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
EmbedContentRequest.EmbedContentConfig |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EmbedContentRequest.EmbedContentConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EmbedContentRequest.EmbedContentConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
|
setAudioTrackExtraction(boolean value)
public EmbedContentRequest.EmbedContentConfig.Builder setAudioTrackExtraction(boolean value)Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe audioTrackExtraction to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setAutoTruncate(boolean value)
public EmbedContentRequest.EmbedContentConfig.Builder setAutoTruncate(boolean value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe autoTruncate to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setDocumentOcr(boolean value)
public EmbedContentRequest.EmbedContentConfig.Builder setDocumentOcr(boolean value)Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe documentOcr to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setOutputDimensionality(int value)
public EmbedContentRequest.EmbedContentConfig.Builder setOutputDimensionality(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe outputDimensionality to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setTaskType(EmbedContentRequest.EmbeddingTaskType value)
public EmbedContentRequest.EmbedContentConfig.Builder setTaskType(EmbedContentRequest.EmbeddingTaskType value)Optional. The task type of the embedding.
Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EmbedContentRequest.EmbeddingTaskTypeThe taskType to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setTaskTypeValue(int value)
public EmbedContentRequest.EmbedContentConfig.Builder setTaskTypeValue(int value)Optional. The task type of the embedding.
Only applicable to text-only embedding models.
optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for taskType to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setTitle(String value)
public EmbedContentRequest.EmbedContentConfig.Builder setTitle(String value)Optional. The title for the text.
Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe title to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
public EmbedContentRequest.EmbedContentConfig.Builder setTitleBytes(ByteString value)Optional. The title for the text.
Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
EmbedContentRequest.EmbedContentConfig.Builder |
This builder for chaining. |