Class UserSpecifiedMetadata.Builder (3.89.0)

public static final class UserSpecifiedMetadata.Builder extends GeneratedMessage.Builder<UserSpecifiedMetadata.Builder> implements UserSpecifiedMetadataOrBuilder

Metadata provided by users.

Protobuf type google.cloud.aiplatform.v1beta1.UserSpecifiedMetadata

Static Methods

getDescriptor()

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

Methods

build()

public UserSpecifiedMetadata build()
Returns
Type Description
UserSpecifiedMetadata

buildPartial()

public UserSpecifiedMetadata buildPartial()
Returns
Type Description
UserSpecifiedMetadata

clear()

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

clearKey()

public UserSpecifiedMetadata.Builder clearKey()

Required. Key of the metadata. The key must be set with type by CreateRagDataSchema.

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

Returns
Type Description
UserSpecifiedMetadata.Builder

This builder for chaining.

clearValue()

public UserSpecifiedMetadata.Builder clearValue()

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Returns
Type Description
UserSpecifiedMetadata.Builder

getDefaultInstanceForType()

public UserSpecifiedMetadata getDefaultInstanceForType()
Returns
Type Description
UserSpecifiedMetadata

getDescriptorForType()

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

getKey()

public String getKey()

Required. Key of the metadata. The key must be set with type by CreateRagDataSchema.

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

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. Key of the metadata. The key must be set with type by CreateRagDataSchema.

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

Returns
Type Description
ByteString

The bytes for key.

getValue()

public MetadataValue getValue()

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Returns
Type Description
MetadataValue

The value.

getValueBuilder()

public MetadataValue.Builder getValueBuilder()

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Returns
Type Description
MetadataValue.Builder

getValueOrBuilder()

public MetadataValueOrBuilder getValueOrBuilder()

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Returns
Type Description
MetadataValueOrBuilder

hasValue()

public boolean hasValue()

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserSpecifiedMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeValue(MetadataValue value)

public UserSpecifiedMetadata.Builder mergeValue(MetadataValue value)

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Parameter
Name Description
value MetadataValue
Returns
Type Description
UserSpecifiedMetadata.Builder

setKey(String value)

public UserSpecifiedMetadata.Builder setKey(String value)

Required. Key of the metadata. The key must be set with type by CreateRagDataSchema.

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

Parameter
Name Description
value String

The key to set.

Returns
Type Description
UserSpecifiedMetadata.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public UserSpecifiedMetadata.Builder setKeyBytes(ByteString value)

Required. Key of the metadata. The key must be set with type by CreateRagDataSchema.

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

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
UserSpecifiedMetadata.Builder

This builder for chaining.

setValue(MetadataValue value)

public UserSpecifiedMetadata.Builder setValue(MetadataValue value)

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Parameter
Name Description
value MetadataValue
Returns
Type Description
UserSpecifiedMetadata.Builder

setValue(MetadataValue.Builder builderForValue)

public UserSpecifiedMetadata.Builder setValue(MetadataValue.Builder builderForValue)

Value of the metadata. The value must be able to convert to the type according to the data schema.

.google.cloud.aiplatform.v1beta1.MetadataValue value = 2;

Parameter
Name Description
builderForValue MetadataValue.Builder
Returns
Type Description
UserSpecifiedMetadata.Builder