public static final class UploadRagFileRequest.Builder extends GeneratedMessageV3.Builder<UploadRagFileRequest.Builder> implements UploadRagFileRequestOrBuilder
Request message for
VertexRagDataService.UploadRagFile.
Protobuf type google.cloud.aiplatform.v1.UploadRagFileRequest
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public UploadRagFileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UploadRagFileRequest build()
public UploadRagFileRequest buildPartial()
public UploadRagFileRequest.Builder clear()
Overrides
public UploadRagFileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public UploadRagFileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
public UploadRagFileRequest.Builder clearRagFile()
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileRequest.Builder clearUploadRagFileConfig()
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileRequest.Builder clone()
Overrides
public UploadRagFileRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
public RagFile getRagFile()
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
RagFile |
The ragFile.
|
public RagFile.Builder getRagFileBuilder()
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
public RagFileOrBuilder getRagFileOrBuilder()
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileConfig getUploadRagFileConfig()
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileConfig.Builder getUploadRagFileConfigBuilder()
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileConfigOrBuilder getUploadRagFileConfigOrBuilder()
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
public boolean hasRagFile()
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the ragFile field is set.
|
public boolean hasUploadRagFileConfig()
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the uploadRagFileConfig field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public UploadRagFileRequest.Builder mergeFrom(UploadRagFileRequest other)
public UploadRagFileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public UploadRagFileRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public UploadRagFileRequest.Builder mergeRagFile(RagFile value)
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
RagFile
|
public final UploadRagFileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public UploadRagFileRequest.Builder mergeUploadRagFileConfig(UploadRagFileConfig value)
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public UploadRagFileRequest.Builder setRagFile(RagFile value)
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
RagFile
|
public UploadRagFileRequest.Builder setRagFile(RagFile.Builder builderForValue)
Required. The RagFile to upload.
.google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final UploadRagFileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public UploadRagFileRequest.Builder setUploadRagFileConfig(UploadRagFileConfig value)
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];
public UploadRagFileRequest.Builder setUploadRagFileConfig(UploadRagFileConfig.Builder builderForValue)
Required. The config for the RagFiles to be uploaded into the RagCorpus.
VertexRagDataService.UploadRagFile.
.google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED];