Class RagDataSchema.Builder (3.89.0)

public static final class RagDataSchema.Builder extends GeneratedMessage.Builder<RagDataSchema.Builder> implements RagDataSchemaOrBuilder

The schema of the user specified metadata.

Protobuf type google.cloud.aiplatform.v1beta1.RagDataSchema

Static Methods

getDescriptor()

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

Methods

build()

public RagDataSchema build()
Returns
Type Description
RagDataSchema

buildPartial()

public RagDataSchema buildPartial()
Returns
Type Description
RagDataSchema

clear()

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

clearKey()

public RagDataSchema.Builder clearKey()

Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagDataSchema.Builder

This builder for chaining.

clearName()

public RagDataSchema.Builder clearName()

Identifier. Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema} where the {rag_data_schema} part should be the same as the key field below.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
RagDataSchema.Builder

This builder for chaining.

clearSchemaDetails()

public RagDataSchema.Builder clearSchemaDetails()

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Returns
Type Description
RagDataSchema.Builder

getDefaultInstanceForType()

public RagDataSchema getDefaultInstanceForType()
Returns
Type Description
RagDataSchema

getDescriptorForType()

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

getKey()

public String getKey()

Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

getName()

public String getName()

Identifier. Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema} where the {rag_data_schema} part should be the same as the key field below.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema} where the {rag_data_schema} part should be the same as the key field below.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSchemaDetails()

public RagMetadataSchemaDetails getSchemaDetails()

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Returns
Type Description
RagMetadataSchemaDetails

The schemaDetails.

getSchemaDetailsBuilder()

public RagMetadataSchemaDetails.Builder getSchemaDetailsBuilder()

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Returns
Type Description
RagMetadataSchemaDetails.Builder

getSchemaDetailsOrBuilder()

public RagMetadataSchemaDetailsOrBuilder getSchemaDetailsOrBuilder()

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Returns
Type Description
RagMetadataSchemaDetailsOrBuilder

hasSchemaDetails()

public boolean hasSchemaDetails()

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Returns
Type Description
boolean

Whether the schemaDetails field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagDataSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSchemaDetails(RagMetadataSchemaDetails value)

public RagDataSchema.Builder mergeSchemaDetails(RagMetadataSchemaDetails value)

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Parameter
Name Description
value RagMetadataSchemaDetails
Returns
Type Description
RagDataSchema.Builder

setKey(String value)

public RagDataSchema.Builder setKey(String value)

Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
RagDataSchema.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public RagDataSchema.Builder setKeyBytes(ByteString value)

Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
RagDataSchema.Builder

This builder for chaining.

setName(String value)

public RagDataSchema.Builder setName(String value)

Identifier. Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema} where the {rag_data_schema} part should be the same as the key field below.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RagDataSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RagDataSchema.Builder setNameBytes(ByteString value)

Identifier. Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema} where the {rag_data_schema} part should be the same as the key field below.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RagDataSchema.Builder

This builder for chaining.

setSchemaDetails(RagMetadataSchemaDetails value)

public RagDataSchema.Builder setSchemaDetails(RagMetadataSchemaDetails value)

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Parameter
Name Description
value RagMetadataSchemaDetails
Returns
Type Description
RagDataSchema.Builder

setSchemaDetails(RagMetadataSchemaDetails.Builder builderForValue)

public RagDataSchema.Builder setSchemaDetails(RagMetadataSchemaDetails.Builder builderForValue)

The schema details mapping to the key.

.google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;

Parameter
Name Description
builderForValue RagMetadataSchemaDetails.Builder
Returns
Type Description
RagDataSchema.Builder