Class 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 type google.cloud.aiplatform.v1beta1.MetadataSchema
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • clear

        public MetadataSchema.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • getDefaultInstanceForType

        public MetadataSchema getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MetadataSchema build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MetadataSchema buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MetadataSchema.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • setField

        public MetadataSchema.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • clearField

        public MetadataSchema.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • clearOneof

        public MetadataSchema.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • addRepeatedField

        public MetadataSchema.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • mergeFrom

        public MetadataSchema.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetadataSchema.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
        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 interface MetadataSchemaOrBuilder
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of the Metadata Schema
         
        string description = 6;
        Specified by:
        getDescriptionBytes in interface MetadataSchemaOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>
      • mergeUnknownFields

        public final MetadataSchema.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataSchema.Builder>