Class MetadataSchema.Builder (3.47.0)

public static final class MetadataSchema.Builder extends GeneratedMessageV3.Builder<MetadataSchema.Builder> implements MetadataSchemaOrBuilder

Instance of a general MetadataSchema.

Protobuf type google.cloud.aiplatform.v1.MetadataSchema

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetadataSchema build()
Returns
Type Description
MetadataSchema

buildPartial()

public MetadataSchema buildPartial()
Returns
Type Description
MetadataSchema

clear()

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

clearCreateTime()

public MetadataSchema.Builder clearCreateTime()

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MetadataSchema.Builder

clearDescription()

public MetadataSchema.Builder clearDescription()

Description of the Metadata Schema

string description = 6;

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public MetadataSchema.Builder clearName()

Output only. The resource name of the MetadataSchema.

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

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchema()

public MetadataSchema.Builder clearSchema()

Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by title in [MetadataSchema.schema] must be unique within a MetadataStore.

The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object

string schema = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

clearSchemaType()

public MetadataSchema.Builder clearSchemaType()

The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.

.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType schema_type = 4;

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

clearSchemaVersion()

public MetadataSchema.Builder clearSchemaVersion()

The version of the MetadataSchema. The version's format must match the following regular expression: ^[0-9]+.+.+$, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.

string schema_version = 2;

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MetadataSchema getDefaultInstanceForType()
Returns
Type Description
MetadataSchema

getDescription()

public String getDescription()

Description of the Metadata Schema

string description = 6;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the Metadata Schema

string description = 6;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name of the MetadataSchema.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the MetadataSchema.

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

Returns
Type Description
ByteString

The bytes for name.

getSchema()

public String getSchema()

Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by title in [MetadataSchema.schema] must be unique within a MetadataStore.

The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object

string schema = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by title in [MetadataSchema.schema] must be unique within a MetadataStore.

The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object

string schema = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for schema.

getSchemaType()

public MetadataSchema.MetadataSchemaType getSchemaType()

The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.

.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType schema_type = 4;

Returns
Type Description
MetadataSchema.MetadataSchemaType

The schemaType.

getSchemaTypeValue()

public int getSchemaTypeValue()

The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.

.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType schema_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for schemaType.

getSchemaVersion()

public String getSchemaVersion()

The version of the MetadataSchema. The version's format must match the following regular expression: ^[0-9]+.+.+$, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.

string schema_version = 2;

Returns
Type Description
String

The schemaVersion.

getSchemaVersionBytes()

public ByteString getSchemaVersionBytes()

The version of the MetadataSchema. The version's format must match the following regular expression: ^[0-9]+.+.+$, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.

string schema_version = 2;

Returns
Type Description
ByteString

The bytes for schemaVersion.

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MetadataSchema.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetadataSchema.Builder

mergeFrom(MetadataSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public MetadataSchema.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetadataSchema.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MetadataSchema.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this MetadataSchema was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MetadataSchema.Builder

setDescription(String value)

public MetadataSchema.Builder setDescription(String value)

Description of the Metadata Schema

string description = 6;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public MetadataSchema.Builder setDescriptionBytes(ByteString value)

Description of the Metadata Schema

string description = 6;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public MetadataSchema.Builder setName(String value)

Output only. The resource name of the MetadataSchema.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MetadataSchema.Builder setNameBytes(ByteString value)

Output only. The resource name of the MetadataSchema.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

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

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

setSchema(String value)

public MetadataSchema.Builder setSchema(String value)

Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by title in [MetadataSchema.schema] must be unique within a MetadataStore.

The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object

string schema = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The schema to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setSchemaBytes(ByteString value)

public MetadataSchema.Builder setSchemaBytes(ByteString value)

Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by title in [MetadataSchema.schema] must be unique within a MetadataStore.

The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object

string schema = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for schema to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setSchemaType(MetadataSchema.MetadataSchemaType value)

public MetadataSchema.Builder setSchemaType(MetadataSchema.MetadataSchemaType value)

The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.

.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType schema_type = 4;

Parameter
Name Description
value MetadataSchema.MetadataSchemaType

The schemaType to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setSchemaTypeValue(int value)

public MetadataSchema.Builder setSchemaTypeValue(int value)

The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.

.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType schema_type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for schemaType to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setSchemaVersion(String value)

public MetadataSchema.Builder setSchemaVersion(String value)

The version of the MetadataSchema. The version's format must match the following regular expression: ^[0-9]+.+.+$, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.

string schema_version = 2;

Parameter
Name Description
value String

The schemaVersion to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setSchemaVersionBytes(ByteString value)

public MetadataSchema.Builder setSchemaVersionBytes(ByteString value)

The version of the MetadataSchema. The version's format must match the following regular expression: ^[0-9]+.+.+$, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.

string schema_version = 2;

Parameter
Name Description
value ByteString

The bytes for schemaVersion to set.

Returns
Type Description
MetadataSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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