Class Content.Builder

  • All Implemented Interfaces:
    ContentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Content

    public static final class Content.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Content.Builder>
    implements ContentOrBuilder
     Content represents a user-visible notebook or a sql script
     
    Protobuf type google.cloud.dataplex.v1.Content
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Content.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Content.Builder>
      • internalGetFieldAccessorTable

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

        public Content.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<Content.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<Content.Builder>
      • getDefaultInstanceForType

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

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

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

        public Content.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<Content.Builder>
      • setField

        public Content.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<Content.Builder>
      • clearField

        public Content.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<Content.Builder>
      • clearOneof

        public Content.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<Content.Builder>
      • setRepeatedField

        public Content.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<Content.Builder>
      • addRepeatedField

        public Content.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<Content.Builder>
      • mergeFrom

        public Content.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<Content.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Content.Builder>
      • mergeFrom

        public Content.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<Content.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The relative resource name of the content, of the form:
         projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface ContentOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The relative resource name of the content, of the form:
         projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface ContentOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Content.Builder setName​(String value)
         Output only. The relative resource name of the content, of the form:
         projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Content.Builder clearName()
         Output only. The relative resource name of the content, of the form:
         projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public Content.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The relative resource name of the content, of the form:
         projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getUid

        public String getUid()
         Output only. System generated globally unique ID for the content. This ID
         will be different if the content is deleted and re-created with the same
         name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface ContentOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. System generated globally unique ID for the content. This ID
         will be different if the content is deleted and re-created with the same
         name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface ContentOrBuilder
        Returns:
        The bytes for uid.
      • setUid

        public Content.Builder setUid​(String value)
         Output only. System generated globally unique ID for the content. This ID
         will be different if the content is deleted and re-created with the same
         name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uid to set.
        Returns:
        This builder for chaining.
      • clearUid

        public Content.Builder clearUid()
         Output only. System generated globally unique ID for the content. This ID
         will be different if the content is deleted and re-created with the same
         name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUidBytes

        public Content.Builder setUidBytes​(com.google.protobuf.ByteString value)
         Output only. System generated globally unique ID for the content. This ID
         will be different if the content is deleted and re-created with the same
         name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uid to set.
        Returns:
        This builder for chaining.
      • getPath

        public String getPath()
         Required. The path for the Content file, represented as directory
         structure. Unique within a lake. Limited to alphanumerics, hyphens,
         underscores, dots and slashes.
         
        string path = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPath in interface ContentOrBuilder
        Returns:
        The path.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         Required. The path for the Content file, represented as directory
         structure. Unique within a lake. Limited to alphanumerics, hyphens,
         underscores, dots and slashes.
         
        string path = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPathBytes in interface ContentOrBuilder
        Returns:
        The bytes for path.
      • setPath

        public Content.Builder setPath​(String value)
         Required. The path for the Content file, represented as directory
         structure. Unique within a lake. Limited to alphanumerics, hyphens,
         underscores, dots and slashes.
         
        string path = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The path to set.
        Returns:
        This builder for chaining.
      • clearPath

        public Content.Builder clearPath()
         Required. The path for the Content file, represented as directory
         structure. Unique within a lake. Limited to alphanumerics, hyphens,
         underscores, dots and slashes.
         
        string path = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPathBytes

        public Content.Builder setPathBytes​(com.google.protobuf.ByteString value)
         Required. The path for the Content file, represented as directory
         structure. Unique within a lake. Limited to alphanumerics, hyphens,
         underscores, dots and slashes.
         
        string path = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for path to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ContentOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ContentOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Content.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Content.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Content.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Content.Builder clearCreateTime()
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Content creation time.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ContentOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ContentOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ContentOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Content.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Content.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Content.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Content.Builder clearUpdateTime()
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when the content was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ContentOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: ContentOrBuilder
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface ContentOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface ContentOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface ContentOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface ContentOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface ContentOrBuilder
      • removeLabels

        public Content.Builder removeLabels​(String key)
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Content.Builder putLabels​(String key,
                                         String value)
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        public Content.Builder putAllLabels​(Map<String,​String> values)
         Optional. User defined labels for the content.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getDescription

        public String getDescription()
         Optional. Description of the content.
         
        string description = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface ContentOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Description of the content.
         
        string description = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface ContentOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Content.Builder setDescription​(String value)
         Optional. Description of the content.
         
        string description = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Content.Builder clearDescription()
         Optional. Description of the content.
         
        string description = 7 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Content.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional. Description of the content.
         
        string description = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasDataText

        public boolean hasDataText()
         Required. Content data in string format.
         
        string data_text = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDataText in interface ContentOrBuilder
        Returns:
        Whether the dataText field is set.
      • getDataText

        public String getDataText()
         Required. Content data in string format.
         
        string data_text = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDataText in interface ContentOrBuilder
        Returns:
        The dataText.
      • getDataTextBytes

        public com.google.protobuf.ByteString getDataTextBytes()
         Required. Content data in string format.
         
        string data_text = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDataTextBytes in interface ContentOrBuilder
        Returns:
        The bytes for dataText.
      • setDataText

        public Content.Builder setDataText​(String value)
         Required. Content data in string format.
         
        string data_text = 9 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The dataText to set.
        Returns:
        This builder for chaining.
      • clearDataText

        public Content.Builder clearDataText()
         Required. Content data in string format.
         
        string data_text = 9 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDataTextBytes

        public Content.Builder setDataTextBytes​(com.google.protobuf.ByteString value)
         Required. Content data in string format.
         
        string data_text = 9 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for dataText to set.
        Returns:
        This builder for chaining.
      • hasSqlScript

        public boolean hasSqlScript()
         Sql Script related configurations.
         
        .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
        Specified by:
        hasSqlScript in interface ContentOrBuilder
        Returns:
        Whether the sqlScript field is set.
      • getSqlScript

        public Content.SqlScript getSqlScript()
         Sql Script related configurations.
         
        .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
        Specified by:
        getSqlScript in interface ContentOrBuilder
        Returns:
        The sqlScript.
      • setSqlScript

        public Content.Builder setSqlScript​(Content.SqlScript value)
         Sql Script related configurations.
         
        .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
      • mergeSqlScript

        public Content.Builder mergeSqlScript​(Content.SqlScript value)
         Sql Script related configurations.
         
        .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
      • clearSqlScript

        public Content.Builder clearSqlScript()
         Sql Script related configurations.
         
        .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
      • getSqlScriptBuilder

        public Content.SqlScript.Builder getSqlScriptBuilder()
         Sql Script related configurations.
         
        .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
      • hasNotebook

        public boolean hasNotebook()
         Notebook related configurations.
         
        .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
        Specified by:
        hasNotebook in interface ContentOrBuilder
        Returns:
        Whether the notebook field is set.
      • getNotebook

        public Content.Notebook getNotebook()
         Notebook related configurations.
         
        .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
        Specified by:
        getNotebook in interface ContentOrBuilder
        Returns:
        The notebook.
      • setNotebook

        public Content.Builder setNotebook​(Content.Notebook value)
         Notebook related configurations.
         
        .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
      • mergeNotebook

        public Content.Builder mergeNotebook​(Content.Notebook value)
         Notebook related configurations.
         
        .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
      • clearNotebook

        public Content.Builder clearNotebook()
         Notebook related configurations.
         
        .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
      • getNotebookBuilder

        public Content.Notebook.Builder getNotebookBuilder()
         Notebook related configurations.
         
        .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
      • setUnknownFields

        public final Content.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<Content.Builder>
      • mergeUnknownFields

        public final Content.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<Content.Builder>