Class ImportRagFilesRequest.Builder (3.44.0)

public static final class ImportRagFilesRequest.Builder extends GeneratedMessageV3.Builder<ImportRagFilesRequest.Builder> implements ImportRagFilesRequestOrBuilder

Request message for VertexRagDataService.ImportRagFiles.

Protobuf type google.cloud.aiplatform.v1beta1.ImportRagFilesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportRagFilesRequest build()
Returns
Type Description
ImportRagFilesRequest

buildPartial()

public ImportRagFilesRequest buildPartial()
Returns
Type Description
ImportRagFilesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearImportRagFilesConfig()

public ImportRagFilesRequest.Builder clearImportRagFilesConfig()

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportRagFilesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportRagFilesRequest.Builder clearParent()

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportRagFilesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportRagFilesRequest getDefaultInstanceForType()
Returns
Type Description
ImportRagFilesRequest

getDescriptorForType()

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

getImportRagFilesConfig()

public ImportRagFilesConfig getImportRagFilesConfig()

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportRagFilesConfig

The importRagFilesConfig.

getImportRagFilesConfigBuilder()

public ImportRagFilesConfig.Builder getImportRagFilesConfigBuilder()

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportRagFilesConfig.Builder

getImportRagFilesConfigOrBuilder()

public ImportRagFilesConfigOrBuilder getImportRagFilesConfigOrBuilder()

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportRagFilesConfigOrBuilder

getParent()

public String getParent()

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasImportRagFilesConfig()

public boolean hasImportRagFilesConfig()

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the importRagFilesConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportRagFilesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImportRagFilesConfig(ImportRagFilesConfig value)

public ImportRagFilesRequest.Builder mergeImportRagFilesConfig(ImportRagFilesConfig value)

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportRagFilesConfig
Returns
Type Description
ImportRagFilesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setImportRagFilesConfig(ImportRagFilesConfig value)

public ImportRagFilesRequest.Builder setImportRagFilesConfig(ImportRagFilesConfig value)

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportRagFilesConfig
Returns
Type Description
ImportRagFilesRequest.Builder

setImportRagFilesConfig(ImportRagFilesConfig.Builder builderForValue)

public ImportRagFilesRequest.Builder setImportRagFilesConfig(ImportRagFilesConfig.Builder builderForValue)

Required. The config for the RagFiles to be synced and imported into the RagCorpus. VertexRagDataService.ImportRagFiles.

.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ImportRagFilesConfig.Builder
Returns
Type Description
ImportRagFilesRequest.Builder

setParent(String value)

public ImportRagFilesRequest.Builder setParent(String value)

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportRagFilesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportRagFilesRequest.Builder setParentBytes(ByteString value)

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportRagFilesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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