Class Content.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Content.Builder>
com.google.cloud.dataplex.v1.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.GeneratedMessage.Builder<Content.Builder> implements ContentOrBuilder
 Content represents a user-visible notebook or a sql script
 
Protobuf type google.cloud.dataplex.v1.Content
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Content.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Content.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Content.Builder mergeFrom(Content other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getDataCase

      public Content.DataCase getDataCase()
      Specified by:
      getDataCase in interface ContentOrBuilder
    • clearData

      public Content.Builder clearData()
    • getContentCase

      public Content.ContentCase getContentCase()
      Specified by:
      getContentCase in interface ContentOrBuilder
    • clearContent

      public Content.Builder clearContent()
    • 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
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels 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
    • clearLabels

      public Content.Builder clearLabels()
    • 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;
    • setSqlScript

      public Content.Builder setSqlScript(Content.SqlScript.Builder builderForValue)
       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;
    • getSqlScriptOrBuilder

      public Content.SqlScriptOrBuilder getSqlScriptOrBuilder()
       Sql Script related configurations.
       
      .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;
      Specified by:
      getSqlScriptOrBuilder in interface ContentOrBuilder
    • 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;
    • setNotebook

      public Content.Builder setNotebook(Content.Notebook.Builder builderForValue)
       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;
    • getNotebookOrBuilder

      public Content.NotebookOrBuilder getNotebookOrBuilder()
       Notebook related configurations.
       
      .google.cloud.dataplex.v1.Content.Notebook notebook = 101;
      Specified by:
      getNotebookOrBuilder in interface ContentOrBuilder