Class RagContexts.Builder (3.54.0)

public static final class RagContexts.Builder extends GeneratedMessageV3.Builder<RagContexts.Builder> implements RagContextsOrBuilder

Relevant contexts for one query.

Protobuf type google.cloud.aiplatform.v1beta1.RagContexts

Static Methods

getDescriptor()

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

Methods

addAllContexts(Iterable<? extends RagContexts.Context> values)

public RagContexts.Builder addAllContexts(Iterable<? extends RagContexts.Context> values)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.RagContexts.Context>
Returns
Type Description
RagContexts.Builder

addContexts(RagContexts.Context value)

public RagContexts.Builder addContexts(RagContexts.Context value)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
value RagContexts.Context
Returns
Type Description
RagContexts.Builder

addContexts(RagContexts.Context.Builder builderForValue)

public RagContexts.Builder addContexts(RagContexts.Context.Builder builderForValue)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
builderForValue RagContexts.Context.Builder
Returns
Type Description
RagContexts.Builder

addContexts(int index, RagContexts.Context value)

public RagContexts.Builder addContexts(int index, RagContexts.Context value)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameters
Name Description
index int
value RagContexts.Context
Returns
Type Description
RagContexts.Builder

addContexts(int index, RagContexts.Context.Builder builderForValue)

public RagContexts.Builder addContexts(int index, RagContexts.Context.Builder builderForValue)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameters
Name Description
index int
builderForValue RagContexts.Context.Builder
Returns
Type Description
RagContexts.Builder

addContextsBuilder()

public RagContexts.Context.Builder addContextsBuilder()

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Returns
Type Description
RagContexts.Context.Builder

addContextsBuilder(int index)

public RagContexts.Context.Builder addContextsBuilder(int index)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
index int
Returns
Type Description
RagContexts.Context.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RagContexts.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RagContexts.Builder
Overrides

build()

public RagContexts build()
Returns
Type Description
RagContexts

buildPartial()

public RagContexts buildPartial()
Returns
Type Description
RagContexts

clear()

public RagContexts.Builder clear()
Returns
Type Description
RagContexts.Builder
Overrides

clearContexts()

public RagContexts.Builder clearContexts()

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Returns
Type Description
RagContexts.Builder

clearField(Descriptors.FieldDescriptor field)

public RagContexts.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RagContexts.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RagContexts.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RagContexts.Builder
Overrides

clone()

public RagContexts.Builder clone()
Returns
Type Description
RagContexts.Builder
Overrides

getContexts(int index)

public RagContexts.Context getContexts(int index)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
index int
Returns
Type Description
RagContexts.Context

getContextsBuilder(int index)

public RagContexts.Context.Builder getContextsBuilder(int index)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
index int
Returns
Type Description
RagContexts.Context.Builder

getContextsBuilderList()

public List<RagContexts.Context.Builder> getContextsBuilderList()

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Returns
Type Description
List<Builder>

getContextsCount()

public int getContextsCount()

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Returns
Type Description
int

getContextsList()

public List<RagContexts.Context> getContextsList()

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Returns
Type Description
List<Context>

getContextsOrBuilder(int index)

public RagContexts.ContextOrBuilder getContextsOrBuilder(int index)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
index int
Returns
Type Description
RagContexts.ContextOrBuilder

getContextsOrBuilderList()

public List<? extends RagContexts.ContextOrBuilder> getContextsOrBuilderList()

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.RagContexts.ContextOrBuilder>

getDefaultInstanceForType()

public RagContexts getDefaultInstanceForType()
Returns
Type Description
RagContexts

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagContexts other)

public RagContexts.Builder mergeFrom(RagContexts other)
Parameter
Name Description
other RagContexts
Returns
Type Description
RagContexts.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RagContexts.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagContexts.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RagContexts.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagContexts.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RagContexts.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagContexts.Builder
Overrides

removeContexts(int index)

public RagContexts.Builder removeContexts(int index)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameter
Name Description
index int
Returns
Type Description
RagContexts.Builder

setContexts(int index, RagContexts.Context value)

public RagContexts.Builder setContexts(int index, RagContexts.Context value)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameters
Name Description
index int
value RagContexts.Context
Returns
Type Description
RagContexts.Builder

setContexts(int index, RagContexts.Context.Builder builderForValue)

public RagContexts.Builder setContexts(int index, RagContexts.Context.Builder builderForValue)

All its contexts.

repeated .google.cloud.aiplatform.v1beta1.RagContexts.Context contexts = 1;

Parameters
Name Description
index int
builderForValue RagContexts.Context.Builder
Returns
Type Description
RagContexts.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RagContexts.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RagContexts.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RagContexts.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RagContexts.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RagContexts.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagContexts.Builder
Overrides