Package com.google.cloud.aiplatform.v1
Class EmbedContentRequest.EmbedContentConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig.Builder
- All Implemented Interfaces:
EmbedContentRequest.EmbedContentConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EmbedContentRequest.EmbedContentConfig
public static final class EmbedContentRequest.EmbedContentConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
implements EmbedContentRequest.EmbedContentConfigOrBuilder
Configurations for the EmbedContent API.Protobuf type
google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Optional.booleanOptional.booleanOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.intOptional.Optional.intOptional.getTitle()Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanhasTitle()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAudioTrackExtraction(boolean value) Optional.setAutoTruncate(boolean value) Optional.setDocumentOcr(boolean value) Optional.setOutputDimensionality(int value) Optional.Optional.setTaskTypeValue(int value) Optional.Optional.setTitleBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
-
mergeFrom
public EmbedContentRequest.EmbedContentConfig.Builder mergeFrom(EmbedContentRequest.EmbedContentConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>
-
mergeFrom
public EmbedContentRequest.EmbedContentConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EmbedContentRequest.EmbedContentConfig.Builder>- Throws:
IOException
-
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];- Specified by:
hasTitlein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTitlein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The title.
-
getTitleBytes
public 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];- Specified by:
getTitleBytesin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The bytes for title.
-
setTitle
Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setTitleBytes
public EmbedContentRequest.EmbedContentConfig.Builder setTitleBytes(com.google.protobuf.ByteString value) Optional. The title for the text. Only applicable to text-only embedding models.
optional string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasTaskTypein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- Whether the taskType field is set.
-
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];- Specified by:
getTaskTypeValuein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The enum numeric value on the wire for taskType.
-
setTaskTypeValue
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];- Parameters:
value- The enum numeric value on the wire for taskType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTaskTypein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The taskType.
-
setTaskType
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.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The taskType to set.- Returns:
- This builder for chaining.
-
clearTaskType
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:
- This builder for chaining.
-
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];- Specified by:
hasAutoTruncatein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- Whether the autoTruncate field is set.
-
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];- Specified by:
getAutoTruncatein interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The autoTruncate.
-
setAutoTruncate
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];- Parameters:
value- The autoTruncate to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasOutputDimensionalityin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- Whether the outputDimensionality field is set.
-
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];- Specified by:
getOutputDimensionalityin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The outputDimensionality.
-
setOutputDimensionality
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];- Parameters:
value- The outputDimensionality to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasDocumentOcr
public boolean hasDocumentOcr()Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDocumentOcrin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- Whether the documentOcr field is set.
-
getDocumentOcr
public boolean getDocumentOcr()Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDocumentOcrin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The documentOcr.
-
setDocumentOcr
Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The documentOcr to set.- Returns:
- This builder for chaining.
-
clearDocumentOcr
Optional. Whether to enable OCR for document content.
optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasAudioTrackExtraction
public boolean hasAudioTrackExtraction()Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAudioTrackExtractionin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- Whether the audioTrackExtraction field is set.
-
getAudioTrackExtraction
public boolean getAudioTrackExtraction()Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTrackExtractionin interfaceEmbedContentRequest.EmbedContentConfigOrBuilder- Returns:
- The audioTrackExtraction.
-
setAudioTrackExtraction
Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The audioTrackExtraction to set.- Returns:
- This builder for chaining.
-
clearAudioTrackExtraction
Optional. Whether to extract audio from video content.
optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-