public static final class RetrieveContextsRequest.Builder extends GeneratedMessageV3.Builder<RetrieveContextsRequest.Builder> implements RetrieveContextsRequestOrBuilder
Request message for
VertexRagService.RetrieveContexts.
Protobuf type google.cloud.aiplatform.v1beta1.RetrieveContextsRequest
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RetrieveContextsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RetrieveContextsRequest build()
buildPartial()
public RetrieveContextsRequest buildPartial()
clear()
public RetrieveContextsRequest.Builder clear()
Overrides
clearDataSource()
public RetrieveContextsRequest.Builder clearDataSource()
clearField(Descriptors.FieldDescriptor field)
public RetrieveContextsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RetrieveContextsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public RetrieveContextsRequest.Builder clearParent()
Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearQuery()
public RetrieveContextsRequest.Builder clearQuery()
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
clearVertexRagStore()
public RetrieveContextsRequest.Builder clearVertexRagStore()
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
clone()
public RetrieveContextsRequest.Builder clone()
Overrides
getDataSourceCase()
public RetrieveContextsRequest.DataSourceCase getDataSourceCase()
getDefaultInstanceForType()
public RetrieveContextsRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getParent()
public String getParent()
Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
getQuery()
public RagQuery getQuery()
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
RagQuery |
The query.
|
getQueryBuilder()
public RagQuery.Builder getQueryBuilder()
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
getQueryOrBuilder()
public RagQueryOrBuilder getQueryOrBuilder()
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
getVertexRagStore()
public RetrieveContextsRequest.VertexRagStore getVertexRagStore()
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
getVertexRagStoreBuilder()
public RetrieveContextsRequest.VertexRagStore.Builder getVertexRagStoreBuilder()
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
getVertexRagStoreOrBuilder()
public RetrieveContextsRequest.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder()
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
hasQuery()
public boolean hasQuery()
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the query field is set.
|
hasVertexRagStore()
public boolean hasVertexRagStore()
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
Returns |
Type |
Description |
boolean |
Whether the vertexRagStore field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RetrieveContextsRequest other)
public RetrieveContextsRequest.Builder mergeFrom(RetrieveContextsRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RetrieveContextsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RetrieveContextsRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeQuery(RagQuery value)
public RetrieveContextsRequest.Builder mergeQuery(RagQuery value)
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
RagQuery
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RetrieveContextsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeVertexRagStore(RetrieveContextsRequest.VertexRagStore value)
public RetrieveContextsRequest.Builder mergeVertexRagStore(RetrieveContextsRequest.VertexRagStore value)
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public RetrieveContextsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
public RetrieveContextsRequest.Builder setParent(String value)
Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
setParentBytes(ByteString value)
public RetrieveContextsRequest.Builder setParentBytes(ByteString value)
Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setQuery(RagQuery value)
public RetrieveContextsRequest.Builder setQuery(RagQuery value)
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
RagQuery
|
setQuery(RagQuery.Builder builderForValue)
public RetrieveContextsRequest.Builder setQuery(RagQuery.Builder builderForValue)
Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1beta1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RetrieveContextsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RetrieveContextsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setVertexRagStore(RetrieveContextsRequest.VertexRagStore value)
public RetrieveContextsRequest.Builder setVertexRagStore(RetrieveContextsRequest.VertexRagStore value)
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;
setVertexRagStore(RetrieveContextsRequest.VertexRagStore.Builder builderForValue)
public RetrieveContextsRequest.Builder setVertexRagStore(RetrieveContextsRequest.VertexRagStore.Builder builderForValue)
The data source for Vertex RagStore.
.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2;