Package com.google.cloud.aiplatform.v1
Class RetrieveContextsRequest.VertexRagStore.RagResource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource.Builder
- All Implemented Interfaces:
RetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RetrieveContextsRequest.VertexRagStore.RagResource
public static final class RetrieveContextsRequest.VertexRagStore.RagResource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
implements RetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder
The definition of the Rag resource.Protobuf type
google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource-
Method Summary
Modifier and TypeMethodDescriptionaddAllRagFileIds(Iterable<String> values) Optional. rag_file_id.addRagFileIds(String value) Optional. rag_file_id.addRagFileIdsBytes(com.google.protobuf.ByteString value) Optional. rag_file_id.build()clear()Optional.Optional. rag_file_id.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getRagFileIds(int index) Optional. rag_file_id.com.google.protobuf.ByteStringgetRagFileIdsBytes(int index) Optional. rag_file_id.intOptional. rag_file_id.com.google.protobuf.ProtocolStringListOptional. rag_file_id.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setRagCorpus(String value) Optional.setRagCorpusBytes(com.google.protobuf.ByteString value) Optional.setRagFileIds(int index, String value) Optional. rag_file_id.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public RetrieveContextsRequest.VertexRagStore.RagResource.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>
-
mergeFrom
public RetrieveContextsRequest.VertexRagStore.RagResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetrieveContextsRequest.VertexRagStore.RagResource.Builder>- Throws:
IOException
-
getRagCorpus
Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getRagCorpusin interfaceRetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder- Returns:
- The ragCorpus.
-
getRagCorpusBytes
public com.google.protobuf.ByteString getRagCorpusBytes()Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getRagCorpusBytesin interfaceRetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder- Returns:
- The bytes for ragCorpus.
-
setRagCorpus
Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The ragCorpus to set.- Returns:
- This builder for chaining.
-
clearRagCorpus
Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setRagCorpusBytes
public RetrieveContextsRequest.VertexRagStore.RagResource.Builder setRagCorpusBytes(com.google.protobuf.ByteString value) Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for ragCorpus to set.- Returns:
- This builder for chaining.
-
getRagFileIdsList
public com.google.protobuf.ProtocolStringList getRagFileIdsList()Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagFileIdsListin interfaceRetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder- Returns:
- A list containing the ragFileIds.
-
getRagFileIdsCount
public int getRagFileIdsCount()Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagFileIdsCountin interfaceRetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder- Returns:
- The count of ragFileIds.
-
getRagFileIds
Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagFileIdsin interfaceRetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ragFileIds at the given index.
-
getRagFileIdsBytes
public com.google.protobuf.ByteString getRagFileIdsBytes(int index) Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagFileIdsBytesin interfaceRetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ragFileIds at the given index.
-
setRagFileIds
public RetrieveContextsRequest.VertexRagStore.RagResource.Builder setRagFileIds(int index, String value) Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The ragFileIds to set.- Returns:
- This builder for chaining.
-
addRagFileIds
Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ragFileIds to add.- Returns:
- This builder for chaining.
-
addAllRagFileIds
public RetrieveContextsRequest.VertexRagStore.RagResource.Builder addAllRagFileIds(Iterable<String> values) Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The ragFileIds to add.- Returns:
- This builder for chaining.
-
clearRagFileIds
Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addRagFileIdsBytes
public RetrieveContextsRequest.VertexRagStore.RagResource.Builder addRagFileIdsBytes(com.google.protobuf.ByteString value) Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the ragFileIds to add.- Returns:
- This builder for chaining.
-