Class MetadataSchema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
- com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder
-
- All Implemented Interfaces:
MetadataSchemaOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MetadataSchema
public static final class MetadataSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder> implements MetadataSchemaOrBuilder
Instance of a general MetadataSchema.
Protobuf typegoogle.cloud.aiplatform.v1beta1.MetadataSchema
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataSchema.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetadataSchema
build()
MetadataSchema
buildPartial()
MetadataSchema.Builder
clear()
MetadataSchema.Builder
clearCreateTime()
Output only.MetadataSchema.Builder
clearDescription()
Description of the Metadata SchemaMetadataSchema.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MetadataSchema.Builder
clearName()
Output only.MetadataSchema.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MetadataSchema.Builder
clearSchema()
Required.MetadataSchema.Builder
clearSchemaType()
The type of the MetadataSchema.MetadataSchema.Builder
clearSchemaVersion()
The version of the MetadataSchema.MetadataSchema.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.MetadataSchema
getDefaultInstanceForType()
String
getDescription()
Description of the Metadata Schemacom.google.protobuf.ByteString
getDescriptionBytes()
Description of the Metadata Schemastatic com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getSchema()
Required.com.google.protobuf.ByteString
getSchemaBytes()
Required.MetadataSchema.MetadataSchemaType
getSchemaType()
The type of the MetadataSchema.int
getSchemaTypeValue()
The type of the MetadataSchema.String
getSchemaVersion()
The version of the MetadataSchema.com.google.protobuf.ByteString
getSchemaVersionBytes()
The version of the MetadataSchema.boolean
hasCreateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MetadataSchema.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.MetadataSchema.Builder
mergeFrom(MetadataSchema other)
MetadataSchema.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MetadataSchema.Builder
mergeFrom(com.google.protobuf.Message other)
MetadataSchema.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MetadataSchema.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.MetadataSchema.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.MetadataSchema.Builder
setDescription(String value)
Description of the Metadata SchemaMetadataSchema.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the Metadata SchemaMetadataSchema.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetadataSchema.Builder
setName(String value)
Output only.MetadataSchema.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.MetadataSchema.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MetadataSchema.Builder
setSchema(String value)
Required.MetadataSchema.Builder
setSchemaBytes(com.google.protobuf.ByteString value)
Required.MetadataSchema.Builder
setSchemaType(MetadataSchema.MetadataSchemaType value)
The type of the MetadataSchema.MetadataSchema.Builder
setSchemaTypeValue(int value)
The type of the MetadataSchema.MetadataSchema.Builder
setSchemaVersion(String value)
The version of the MetadataSchema.MetadataSchema.Builder
setSchemaVersionBytes(com.google.protobuf.ByteString value)
The version of the MetadataSchema.MetadataSchema.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
clear
public MetadataSchema.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
getDefaultInstanceForType
public MetadataSchema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetadataSchema build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetadataSchema buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MetadataSchema.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
setField
public MetadataSchema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
clearField
public MetadataSchema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
clearOneof
public MetadataSchema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
setRepeatedField
public MetadataSchema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
addRepeatedField
public MetadataSchema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
mergeFrom
public MetadataSchema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetadataSchema.Builder>
-
mergeFrom
public MetadataSchema.Builder mergeFrom(MetadataSchema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
mergeFrom
public MetadataSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetadataSchema.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The resource name of the MetadataSchema.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceMetadataSchemaOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the MetadataSchema.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceMetadataSchemaOrBuilder
- Returns:
- The bytes for name.
-
setName
public MetadataSchema.Builder setName(String value)
Output only. The resource name of the MetadataSchema.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public MetadataSchema.Builder clearName()
Output only. The resource name of the MetadataSchema.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public MetadataSchema.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the MetadataSchema.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSchemaVersion
public String getSchemaVersion()
The version of the MetadataSchema. The version's format must match the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
string schema_version = 2;
- Specified by:
getSchemaVersion
in interfaceMetadataSchemaOrBuilder
- Returns:
- The schemaVersion.
-
getSchemaVersionBytes
public com.google.protobuf.ByteString getSchemaVersionBytes()
The version of the MetadataSchema. The version's format must match the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
string schema_version = 2;
- Specified by:
getSchemaVersionBytes
in interfaceMetadataSchemaOrBuilder
- Returns:
- The bytes for schemaVersion.
-
setSchemaVersion
public MetadataSchema.Builder setSchemaVersion(String value)
The version of the MetadataSchema. The version's format must match the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
string schema_version = 2;
- Parameters:
value
- The schemaVersion to set.- Returns:
- 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]+[.][0-9]+[.][0-9]+$`, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
string schema_version = 2;
- Returns:
- This builder for chaining.
-
setSchemaVersionBytes
public MetadataSchema.Builder setSchemaVersionBytes(com.google.protobuf.ByteString value)
The version of the MetadataSchema. The version's format must match the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
string schema_version = 2;
- Parameters:
value
- The bytes for schemaVersion to set.- Returns:
- This builder for chaining.
-
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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
string schema = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSchema
in interfaceMetadataSchemaOrBuilder
- Returns:
- The schema.
-
getSchemaBytes
public com.google.protobuf.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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
string schema = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSchemaBytes
in interfaceMetadataSchemaOrBuilder
- Returns:
- The bytes for schema.
-
setSchema
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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
string schema = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The schema to set.- Returns:
- This builder for chaining.
-
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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
string schema = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setSchemaBytes
public MetadataSchema.Builder setSchemaBytes(com.google.protobuf.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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
string schema = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for schema to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getSchemaTypeValue
in interfaceMetadataSchemaOrBuilder
- Returns:
- The enum numeric value on the wire for schemaType.
-
setSchemaTypeValue
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;
- Parameters:
value
- The enum numeric value on the wire for schemaType to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getSchemaType
in interfaceMetadataSchemaOrBuilder
- Returns:
- The schemaType.
-
setSchemaType
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;
- Parameters:
value
- The schemaType to set.- Returns:
- 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:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceMetadataSchemaOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceMetadataSchemaOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public MetadataSchema.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public MetadataSchema.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public MetadataSchema.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this MetadataSchema was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceMetadataSchemaOrBuilder
-
getDescription
public String getDescription()
Description of the Metadata Schema
string description = 6;
- Specified by:
getDescription
in interfaceMetadataSchemaOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the Metadata Schema
string description = 6;
- Specified by:
getDescriptionBytes
in interfaceMetadataSchemaOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public MetadataSchema.Builder setDescription(String value)
Description of the Metadata Schema
string description = 6;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public MetadataSchema.Builder clearDescription()
Description of the Metadata Schema
string description = 6;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public MetadataSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the Metadata Schema
string description = 6;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MetadataSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
mergeUnknownFields
public final MetadataSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
-
-