Class Content

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataplex.v1.Content
All Implemented Interfaces:
ContentOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Content extends com.google.protobuf.GeneratedMessage implements ContentOrBuilder
 Content represents a user-visible notebook or a sql script
 
Protobuf type google.cloud.dataplex.v1.Content
See Also:
  • Field Details

  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDataCase

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

      public Content.ContentCase getContentCase()
      Specified by:
      getContentCase in interface ContentOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • getNotebookOrBuilder

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Content parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Content parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Content parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Content parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Content parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Content parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Content parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Content parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Content parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Content parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Content parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Content parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Content.Builder newBuilder()
    • newBuilder

      public static Content.Builder newBuilder(Content prototype)
    • toBuilder

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

      protected Content.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Content getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Content> parser()
    • getParserForType

      public com.google.protobuf.Parser<Content> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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