public static final class RagRetrievalConfig.Builder extends GeneratedMessageV3.Builder<RagRetrievalConfig.Builder> implements RagRetrievalConfigOrBuilder
Specifies the context retrieval config.
Protobuf type google.cloud.aiplatform.v1.RagRetrievalConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public RagRetrievalConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagRetrievalConfig build()
public RagRetrievalConfig buildPartial()
public RagRetrievalConfig.Builder clear()
Overrides
public RagRetrievalConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RagRetrievalConfig.Builder clearFilter()
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RagRetrievalConfig.Builder clearTopK()
Optional. The number of contexts to retrieve.
int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder clone()
Overrides
public RagRetrievalConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public RagRetrievalConfig.Filter getFilter()
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Filter.Builder getFilterBuilder()
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder()
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
Optional. The number of contexts to retrieve.
int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The topK.
|
public boolean hasFilter()
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the filter field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RagRetrievalConfig.Builder mergeFilter(RagRetrievalConfig.Filter value)
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder mergeFrom(RagRetrievalConfig other)
public RagRetrievalConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RagRetrievalConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RagRetrievalConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RagRetrievalConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagRetrievalConfig.Builder setFilter(RagRetrievalConfig.Filter value)
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setFilter(RagRetrievalConfig.Filter.Builder builderForValue)
Optional. Config for filters.
.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public RagRetrievalConfig.Builder setTopK(int value)
Optional. The number of contexts to retrieve.
int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
int
The topK to set.
|
public final RagRetrievalConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides