Class MetadataSchema.Builder (3.5.0)

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

Instance of a general MetadataSchema.

Protobuf type google.cloud.aiplatform.v1beta1.MetadataSchema

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetadataSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetadataSchema.Builder
Overrides

build()

public MetadataSchema build()
Returns
TypeDescription
MetadataSchema

buildPartial()

public MetadataSchema buildPartial()
Returns
TypeDescription
MetadataSchema

clear()

public MetadataSchema.Builder clear()
Returns
TypeDescription
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
TypeDescription
MetadataSchema.Builder

clearDescription()

public MetadataSchema.Builder clearDescription()

Description of the Metadata Schema

string description = 6;

Returns
TypeDescription
MetadataSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MetadataSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MetadataSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MetadataSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4;

Returns
TypeDescription
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
TypeDescription
MetadataSchema.Builder

This builder for chaining.

clone()

public MetadataSchema.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MetadataSchema getDefaultInstanceForType()
Returns
TypeDescription
MetadataSchema

getDescription()

public String getDescription()

Description of the Metadata Schema

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the Metadata Schema

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The resource name of the MetadataSchema.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4;

Returns
TypeDescription
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.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MetadataSchema.Builder

mergeFrom(MetadataSchema other)

public MetadataSchema.Builder mergeFrom(MetadataSchema other)
Parameter
NameDescription
otherMetadataSchema
Returns
TypeDescription
MetadataSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetadataSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataSchema.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MetadataSchema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MetadataSchema.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetadataSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MetadataSchema.Builder

setDescription(String value)

public MetadataSchema.Builder setDescription(String value)

Description of the Metadata Schema

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
MetadataSchema.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public MetadataSchema.Builder setDescriptionBytes(ByteString value)

Description of the Metadata Schema

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
MetadataSchema.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MetadataSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The schema to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for schema to set.

Returns
TypeDescription
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.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4;

Parameter
NameDescription
valueMetadataSchema.MetadataSchemaType

The schemaType to set.

Returns
TypeDescription
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.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The schemaVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for schemaVersion to set.

Returns
TypeDescription
MetadataSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MetadataSchema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetadataSchema.Builder
Overrides