public static final class RagCorpus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder> implements RagCorpusOrBuilder
A RagCorpus is a RagFile container and a project can have multiple RagCorpora.Protobuf type
google.cloud.aiplatform.v1.RagCorpusgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RagCorpus build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RagCorpus buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RagCorpus.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RagCorpus.Builder>public RagCorpus.Builder mergeFrom(RagCorpus other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public RagCorpus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RagCorpus.Builder>IOExceptionpublic RagCorpus.BackendConfigCase getBackendConfigCase()
getBackendConfigCase in interface RagCorpusOrBuilderpublic RagCorpus.Builder clearBackendConfig()
public boolean hasVectorDbConfig()
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
hasVectorDbConfig in interface RagCorpusOrBuilderpublic RagVectorDbConfig getVectorDbConfig()
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
getVectorDbConfig in interface RagCorpusOrBuilderpublic RagCorpus.Builder setVectorDbConfig(RagVectorDbConfig value)
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagCorpus.Builder setVectorDbConfig(RagVectorDbConfig.Builder builderForValue)
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagCorpus.Builder mergeVectorDbConfig(RagVectorDbConfig value)
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagCorpus.Builder clearVectorDbConfig()
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagVectorDbConfig.Builder getVectorDbConfigBuilder()
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagVectorDbConfigOrBuilder getVectorDbConfigOrBuilder()
Optional. Immutable. The config for the Vector DBs.
.google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
getVectorDbConfigOrBuilder in interface RagCorpusOrBuilderpublic boolean hasVertexAiSearchConfig()
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
hasVertexAiSearchConfig in interface RagCorpusOrBuilderpublic VertexAiSearchConfig getVertexAiSearchConfig()
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
getVertexAiSearchConfig in interface RagCorpusOrBuilderpublic RagCorpus.Builder setVertexAiSearchConfig(VertexAiSearchConfig value)
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagCorpus.Builder setVertexAiSearchConfig(VertexAiSearchConfig.Builder builderForValue)
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagCorpus.Builder mergeVertexAiSearchConfig(VertexAiSearchConfig value)
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public RagCorpus.Builder clearVertexAiSearchConfig()
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public VertexAiSearchConfig.Builder getVertexAiSearchConfigBuilder()
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
public VertexAiSearchConfigOrBuilder getVertexAiSearchConfigOrBuilder()
Optional. Immutable. The config for the Vertex AI Search.
.google.cloud.aiplatform.v1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
getVertexAiSearchConfigOrBuilder in interface RagCorpusOrBuilderpublic String getName()
Output only. The resource name of the RagCorpus.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface RagCorpusOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the RagCorpus.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface RagCorpusOrBuilderpublic RagCorpus.Builder setName(String value)
Output only. The resource name of the RagCorpus.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public RagCorpus.Builder clearName()
Output only. The resource name of the RagCorpus.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public RagCorpus.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the RagCorpus.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getDisplayName()
Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface RagCorpusOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface RagCorpusOrBuilderpublic RagCorpus.Builder setDisplayName(String value)
Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The displayName to set.public RagCorpus.Builder clearDisplayName()
Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];public RagCorpus.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for displayName to set.public String getDescription()
Optional. The description of the RagCorpus.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface RagCorpusOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. The description of the RagCorpus.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];getDescriptionBytes in interface RagCorpusOrBuilderpublic RagCorpus.Builder setDescription(String value)
Optional. The description of the RagCorpus.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];value - The description to set.public RagCorpus.Builder clearDescription()
Optional. The description of the RagCorpus.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];public RagCorpus.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. The description of the RagCorpus.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for description to set.public boolean hasCreateTime()
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface RagCorpusOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface RagCorpusOrBuilderpublic RagCorpus.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder clearCreateTime()
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this RagCorpus was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface RagCorpusOrBuilderpublic boolean hasUpdateTime()
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface RagCorpusOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface RagCorpusOrBuilderpublic RagCorpus.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder clearUpdateTime()
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp when this RagCorpus was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface RagCorpusOrBuilderpublic boolean hasCorpusStatus()
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCorpusStatus in interface RagCorpusOrBuilderpublic CorpusStatus getCorpusStatus()
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCorpusStatus in interface RagCorpusOrBuilderpublic RagCorpus.Builder setCorpusStatus(CorpusStatus value)
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder setCorpusStatus(CorpusStatus.Builder builderForValue)
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder mergeCorpusStatus(CorpusStatus value)
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RagCorpus.Builder clearCorpusStatus()
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public CorpusStatus.Builder getCorpusStatusBuilder()
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public CorpusStatusOrBuilder getCorpusStatusOrBuilder()
Output only. RagCorpus state.
.google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCorpusStatusOrBuilder in interface RagCorpusOrBuilderpublic final RagCorpus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>public final RagCorpus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RagCorpus.Builder>Copyright © 2025 Google LLC. All rights reserved.