Class RetrieveContextsResponse (3.49.0)

public final class RetrieveContextsResponse extends GeneratedMessageV3 implements RetrieveContextsResponseOrBuilder

Response message for VertexRagService.RetrieveContexts.

Protobuf type google.cloud.aiplatform.v1beta1.RetrieveContextsResponse

Static Fields

CONTEXTS_FIELD_NUMBER

public static final int CONTEXTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RetrieveContextsResponse getDefaultInstance()
Returns
Type Description
RetrieveContextsResponse

getDescriptor()

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

newBuilder()

public static RetrieveContextsResponse.Builder newBuilder()
Returns
Type Description
RetrieveContextsResponse.Builder

newBuilder(RetrieveContextsResponse prototype)

public static RetrieveContextsResponse.Builder newBuilder(RetrieveContextsResponse prototype)
Parameter
Name Description
prototype RetrieveContextsResponse
Returns
Type Description
RetrieveContextsResponse.Builder

parseDelimitedFrom(InputStream input)

public static RetrieveContextsResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RetrieveContextsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RetrieveContextsResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RetrieveContextsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RetrieveContextsResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RetrieveContextsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RetrieveContextsResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RetrieveContextsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RetrieveContextsResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RetrieveContextsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RetrieveContextsResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RetrieveContextsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveContextsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RetrieveContextsResponse> parser()
Returns
Type Description
Parser<RetrieveContextsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContexts()

public RagContexts getContexts()

The contexts of the query.

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

Returns
Type Description
RagContexts

The contexts.

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

getParserForType()

public Parser<RetrieveContextsResponse> getParserForType()
Returns
Type Description
Parser<RetrieveContextsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RetrieveContextsResponse.Builder newBuilderForType()
Returns
Type Description
RetrieveContextsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RetrieveContextsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RetrieveContextsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RetrieveContextsResponse.Builder toBuilder()
Returns
Type Description
RetrieveContextsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException