public static final class RagContexts.Context.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder> implements RagContexts.ContextOrBuilder
A context of the query.Protobuf type
google.cloud.aiplatform.v1beta1.RagContexts.Context| Modifier and Type | Method and Description |
|---|---|
RagContexts.Context.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RagContexts.Context |
build() |
RagContexts.Context |
buildPartial() |
RagContexts.Context.Builder |
clear() |
RagContexts.Context.Builder |
clearDistance()
The distance between the query dense embedding vector and the context
text vector.
|
RagContexts.Context.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RagContexts.Context.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RagContexts.Context.Builder |
clearSourceUri()
For vertex RagStore, if the file is imported from Cloud Storage or Google
Drive, source_uri will be original file URI in Cloud Storage or Google
Drive; if file is uploaded, source_uri will be file display name.
|
RagContexts.Context.Builder |
clearSparseDistance()
The distance between the query sparse embedding vector and the context
text vector.
|
RagContexts.Context.Builder |
clearText()
The text chunk.
|
RagContexts.Context.Builder |
clone() |
RagContexts.Context |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDistance()
The distance between the query dense embedding vector and the context
text vector.
|
String |
getSourceUri()
For vertex RagStore, if the file is imported from Cloud Storage or Google
Drive, source_uri will be original file URI in Cloud Storage or Google
Drive; if file is uploaded, source_uri will be file display name.
|
com.google.protobuf.ByteString |
getSourceUriBytes()
For vertex RagStore, if the file is imported from Cloud Storage or Google
Drive, source_uri will be original file URI in Cloud Storage or Google
Drive; if file is uploaded, source_uri will be file display name.
|
double |
getSparseDistance()
The distance between the query sparse embedding vector and the context
text vector.
|
String |
getText()
The text chunk.
|
com.google.protobuf.ByteString |
getTextBytes()
The text chunk.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RagContexts.Context.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RagContexts.Context.Builder |
mergeFrom(com.google.protobuf.Message other) |
RagContexts.Context.Builder |
mergeFrom(RagContexts.Context other) |
RagContexts.Context.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RagContexts.Context.Builder |
setDistance(double value)
The distance between the query dense embedding vector and the context
text vector.
|
RagContexts.Context.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RagContexts.Context.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RagContexts.Context.Builder |
setSourceUri(String value)
For vertex RagStore, if the file is imported from Cloud Storage or Google
Drive, source_uri will be original file URI in Cloud Storage or Google
Drive; if file is uploaded, source_uri will be file display name.
|
RagContexts.Context.Builder |
setSourceUriBytes(com.google.protobuf.ByteString value)
For vertex RagStore, if the file is imported from Cloud Storage or Google
Drive, source_uri will be original file URI in Cloud Storage or Google
Drive; if file is uploaded, source_uri will be file display name.
|
RagContexts.Context.Builder |
setSparseDistance(double value)
The distance between the query sparse embedding vector and the context
text vector.
|
RagContexts.Context.Builder |
setText(String value)
The text chunk.
|
RagContexts.Context.Builder |
setTextBytes(com.google.protobuf.ByteString value)
The text chunk.
|
RagContexts.Context.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RagContexts.Context build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RagContexts.Context buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RagContexts.Context.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder mergeFrom(RagContexts.Context other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public RagContexts.Context.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RagContexts.Context.Builder>IOExceptionpublic String getSourceUri()
For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.
string source_uri = 1;getSourceUri in interface RagContexts.ContextOrBuilderpublic com.google.protobuf.ByteString getSourceUriBytes()
For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.
string source_uri = 1;getSourceUriBytes in interface RagContexts.ContextOrBuilderpublic RagContexts.Context.Builder setSourceUri(String value)
For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.
string source_uri = 1;value - The sourceUri to set.public RagContexts.Context.Builder clearSourceUri()
For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.
string source_uri = 1;public RagContexts.Context.Builder setSourceUriBytes(com.google.protobuf.ByteString value)
For vertex RagStore, if the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.
string source_uri = 1;value - The bytes for sourceUri to set.public String getText()
The text chunk.
string text = 2;getText in interface RagContexts.ContextOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
The text chunk.
string text = 2;getTextBytes in interface RagContexts.ContextOrBuilderpublic RagContexts.Context.Builder setText(String value)
The text chunk.
string text = 2;value - The text to set.public RagContexts.Context.Builder clearText()
The text chunk.
string text = 2;public RagContexts.Context.Builder setTextBytes(com.google.protobuf.ByteString value)
The text chunk.
string text = 2;value - The bytes for text to set.public double getDistance()
The distance between the query dense embedding vector and the context text vector.
double distance = 3;getDistance in interface RagContexts.ContextOrBuilderpublic RagContexts.Context.Builder setDistance(double value)
The distance between the query dense embedding vector and the context text vector.
double distance = 3;value - The distance to set.public RagContexts.Context.Builder clearDistance()
The distance between the query dense embedding vector and the context text vector.
double distance = 3;public double getSparseDistance()
The distance between the query sparse embedding vector and the context text vector.
double sparse_distance = 4;getSparseDistance in interface RagContexts.ContextOrBuilderpublic RagContexts.Context.Builder setSparseDistance(double value)
The distance between the query sparse embedding vector and the context text vector.
double sparse_distance = 4;value - The sparseDistance to set.public RagContexts.Context.Builder clearSparseDistance()
The distance between the query sparse embedding vector and the context text vector.
double sparse_distance = 4;public final RagContexts.Context.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>public final RagContexts.Context.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RagContexts.Context.Builder>Copyright © 2024 Google LLC. All rights reserved.