Class UploadRagFileRequest.Builder (3.47.0)

public static final class UploadRagFileRequest.Builder extends GeneratedMessageV3.Builder<UploadRagFileRequest.Builder> implements UploadRagFileRequestOrBuilder

Request message for VertexRagDataService.UploadRagFile.

Protobuf type google.cloud.aiplatform.v1beta1.UploadRagFileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UploadRagFileRequest build()
Returns
Type Description
UploadRagFileRequest

buildPartial()

public UploadRagFileRequest buildPartial()
Returns
Type Description
UploadRagFileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public UploadRagFileRequest.Builder clearParent()

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

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

Returns
Type Description
UploadRagFileRequest.Builder

This builder for chaining.

clearRagFile()

public UploadRagFileRequest.Builder clearRagFile()

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UploadRagFileRequest.Builder

clearUploadRagFileConfig()

public UploadRagFileRequest.Builder clearUploadRagFileConfig()

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UploadRagFileRequest.Builder

clone()

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

getDefaultInstanceForType()

public UploadRagFileRequest getDefaultInstanceForType()
Returns
Type Description
UploadRagFileRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The name of the RagCorpus resource into which to upload the file. 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 upload the file. 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.

getRagFile()

public RagFile getRagFile()

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagFile

The ragFile.

getRagFileBuilder()

public RagFile.Builder getRagFileBuilder()

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagFile.Builder

getRagFileOrBuilder()

public RagFileOrBuilder getRagFileOrBuilder()

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagFileOrBuilder

getUploadRagFileConfig()

public UploadRagFileConfig getUploadRagFileConfig()

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UploadRagFileConfig

The uploadRagFileConfig.

getUploadRagFileConfigBuilder()

public UploadRagFileConfig.Builder getUploadRagFileConfigBuilder()

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UploadRagFileConfig.Builder

getUploadRagFileConfigOrBuilder()

public UploadRagFileConfigOrBuilder getUploadRagFileConfigOrBuilder()

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UploadRagFileConfigOrBuilder

hasRagFile()

public boolean hasRagFile()

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the ragFile field is set.

hasUploadRagFileConfig()

public boolean hasUploadRagFileConfig()

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the uploadRagFileConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UploadRagFileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRagFile(RagFile value)

public UploadRagFileRequest.Builder mergeRagFile(RagFile value)

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RagFile
Returns
Type Description
UploadRagFileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUploadRagFileConfig(UploadRagFileConfig value)

public UploadRagFileRequest.Builder mergeUploadRagFileConfig(UploadRagFileConfig value)

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UploadRagFileConfig
Returns
Type Description
UploadRagFileRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public UploadRagFileRequest.Builder setParent(String value)

Required. The name of the RagCorpus resource into which to upload the file. 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
UploadRagFileRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public UploadRagFileRequest.Builder setParentBytes(ByteString value)

Required. The name of the RagCorpus resource into which to upload the file. 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
UploadRagFileRequest.Builder

This builder for chaining.

setRagFile(RagFile value)

public UploadRagFileRequest.Builder setRagFile(RagFile value)

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RagFile
Returns
Type Description
UploadRagFileRequest.Builder

setRagFile(RagFile.Builder builderForValue)

public UploadRagFileRequest.Builder setRagFile(RagFile.Builder builderForValue)

Required. The RagFile to upload.

.google.cloud.aiplatform.v1beta1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RagFile.Builder
Returns
Type Description
UploadRagFileRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUploadRagFileConfig(UploadRagFileConfig value)

public UploadRagFileRequest.Builder setUploadRagFileConfig(UploadRagFileConfig value)

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UploadRagFileConfig
Returns
Type Description
UploadRagFileRequest.Builder

setUploadRagFileConfig(UploadRagFileConfig.Builder builderForValue)

public UploadRagFileRequest.Builder setUploadRagFileConfig(UploadRagFileConfig.Builder builderForValue)

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

.google.cloud.aiplatform.v1beta1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UploadRagFileConfig.Builder
Returns
Type Description
UploadRagFileRequest.Builder