Class RetrieveContextsResponse.Builder (3.47.0)

public static final class RetrieveContextsResponse.Builder extends GeneratedMessageV3.Builder<RetrieveContextsResponse.Builder> implements RetrieveContextsResponseOrBuilder

Response message for VertexRagService.RetrieveContexts.

Protobuf type google.cloud.aiplatform.v1beta1.RetrieveContextsResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RetrieveContextsResponse build()
Returns
Type Description
RetrieveContextsResponse

buildPartial()

public RetrieveContextsResponse buildPartial()
Returns
Type Description
RetrieveContextsResponse

clear()

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

clearContexts()

public RetrieveContextsResponse.Builder clearContexts()

The contexts of the query.

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

Returns
Type Description
RetrieveContextsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContexts()

public RagContexts getContexts()

The contexts of the query.

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

Returns
Type Description
RagContexts

The contexts.

getContextsBuilder()

public RagContexts.Builder getContextsBuilder()

The contexts of the query.

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

Returns
Type Description
RagContexts.Builder

getContextsOrBuilder()

public RagContextsOrBuilder getContextsOrBuilder()

The contexts of the query.

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

Returns
Type Description
RagContextsOrBuilder

getDefaultInstanceForType()

public RetrieveContextsResponse getDefaultInstanceForType()
Returns
Type Description
RetrieveContextsResponse

getDescriptorForType()

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

hasContexts()

public boolean hasContexts()

The contexts of the query.

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

Returns
Type Description
boolean

Whether the contexts field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContexts(RagContexts value)

public RetrieveContextsResponse.Builder mergeContexts(RagContexts value)

The contexts of the query.

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

Parameter
Name Description
value RagContexts
Returns
Type Description
RetrieveContextsResponse.Builder

mergeFrom(RetrieveContextsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContexts(RagContexts value)

public RetrieveContextsResponse.Builder setContexts(RagContexts value)

The contexts of the query.

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

Parameter
Name Description
value RagContexts
Returns
Type Description
RetrieveContextsResponse.Builder

setContexts(RagContexts.Builder builderForValue)

public RetrieveContextsResponse.Builder setContexts(RagContexts.Builder builderForValue)

The contexts of the query.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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