Class CreateRagCorpusRequest.Builder (3.45.0)

public static final class CreateRagCorpusRequest.Builder extends GeneratedMessageV3.Builder<CreateRagCorpusRequest.Builder> implements CreateRagCorpusRequestOrBuilder

Request message for VertexRagDataService.CreateRagCorpus.

Protobuf type google.cloud.aiplatform.v1beta1.CreateRagCorpusRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRagCorpusRequest build()
Returns
Type Description
CreateRagCorpusRequest

buildPartial()

public CreateRagCorpusRequest buildPartial()
Returns
Type Description
CreateRagCorpusRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateRagCorpusRequest.Builder clearParent()

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

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

Returns
Type Description
CreateRagCorpusRequest.Builder

This builder for chaining.

clearRagCorpus()

public CreateRagCorpusRequest.Builder clearRagCorpus()

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRagCorpusRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateRagCorpusRequest getDefaultInstanceForType()
Returns
Type Description
CreateRagCorpusRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

getRagCorpus()

public RagCorpus getRagCorpus()

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagCorpus

The ragCorpus.

getRagCorpusBuilder()

public RagCorpus.Builder getRagCorpusBuilder()

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagCorpus.Builder

getRagCorpusOrBuilder()

public RagCorpusOrBuilder getRagCorpusOrBuilder()

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagCorpusOrBuilder

hasRagCorpus()

public boolean hasRagCorpus()

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the ragCorpus field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRagCorpusRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRagCorpus(RagCorpus value)

public CreateRagCorpusRequest.Builder mergeRagCorpus(RagCorpus value)

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RagCorpus
Returns
Type Description
CreateRagCorpusRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateRagCorpusRequest.Builder setParent(String value)

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRagCorpusRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRagCorpusRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

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
CreateRagCorpusRequest.Builder

This builder for chaining.

setRagCorpus(RagCorpus value)

public CreateRagCorpusRequest.Builder setRagCorpus(RagCorpus value)

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RagCorpus
Returns
Type Description
CreateRagCorpusRequest.Builder

setRagCorpus(RagCorpus.Builder builderForValue)

public CreateRagCorpusRequest.Builder setRagCorpus(RagCorpus.Builder builderForValue)

Required. The RagCorpus to create.

.google.cloud.aiplatform.v1beta1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RagCorpus.Builder
Returns
Type Description
CreateRagCorpusRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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