Class SequenceMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.cognite.client.dto.SequenceMetadata
All Implemented Interfaces:
SequenceMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class SequenceMetadata extends com.google.protobuf.GeneratedMessageV3 implements SequenceMetadataOrBuilder

The sequence header. The header contains common metadata for all rows (SequenceBody) in a sequence.
 
Protobuf type com.cognite.client.dto.SequenceMetadata
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasExternalId

      public boolean hasExternalId()
      optional string external_id = 1;
      Specified by:
      hasExternalId in interface SequenceMetadataOrBuilder
      Returns:
      Whether the externalId field is set.
    • getExternalId

      public String getExternalId()
      optional string external_id = 1;
      Specified by:
      getExternalId in interface SequenceMetadataOrBuilder
      Returns:
      The externalId.
    • getExternalIdBytes

      public com.google.protobuf.ByteString getExternalIdBytes()
      optional string external_id = 1;
      Specified by:
      getExternalIdBytes in interface SequenceMetadataOrBuilder
      Returns:
      The bytes for externalId.
    • hasId

      public boolean hasId()
      optional int64 id = 2;
      Specified by:
      hasId in interface SequenceMetadataOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
      optional int64 id = 2;
      Specified by:
      getId in interface SequenceMetadataOrBuilder
      Returns:
      The id.
    • hasName

      public boolean hasName()
      optional string name = 3;
      Specified by:
      hasName in interface SequenceMetadataOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
      optional string name = 3;
      Specified by:
      getName in interface SequenceMetadataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      optional string name = 3;
      Specified by:
      getNameBytes in interface SequenceMetadataOrBuilder
      Returns:
      The bytes for name.
    • hasDescription

      public boolean hasDescription()
      optional string description = 4;
      Specified by:
      hasDescription in interface SequenceMetadataOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
      optional string description = 4;
      Specified by:
      getDescription in interface SequenceMetadataOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      optional string description = 4;
      Specified by:
      getDescriptionBytes in interface SequenceMetadataOrBuilder
      Returns:
      The bytes for description.
    • hasAssetId

      public boolean hasAssetId()
      optional int64 asset_id = 5;
      Specified by:
      hasAssetId in interface SequenceMetadataOrBuilder
      Returns:
      Whether the assetId field is set.
    • getAssetId

      public long getAssetId()
      optional int64 asset_id = 5;
      Specified by:
      getAssetId in interface SequenceMetadataOrBuilder
      Returns:
      The assetId.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: SequenceMetadataOrBuilder
      map<string, string> metadata = 6;
      Specified by:
      getMetadataCount in interface SequenceMetadataOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
      map<string, string> metadata = 6;
      Specified by:
      containsMetadata in interface SequenceMetadataOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface SequenceMetadataOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
      map<string, string> metadata = 6;
      Specified by:
      getMetadataMap in interface SequenceMetadataOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrDefault in interface SequenceMetadataOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrThrow in interface SequenceMetadataOrBuilder
    • getColumnsList

      public List<SequenceColumn> getColumnsList()
      repeated .com.cognite.client.dto.SequenceColumn columns = 7;
      Specified by:
      getColumnsList in interface SequenceMetadataOrBuilder
    • getColumnsOrBuilderList

      public List<? extends SequenceColumnOrBuilder> getColumnsOrBuilderList()
      repeated .com.cognite.client.dto.SequenceColumn columns = 7;
      Specified by:
      getColumnsOrBuilderList in interface SequenceMetadataOrBuilder
    • getColumnsCount

      public int getColumnsCount()
      repeated .com.cognite.client.dto.SequenceColumn columns = 7;
      Specified by:
      getColumnsCount in interface SequenceMetadataOrBuilder
    • getColumns

      public SequenceColumn getColumns(int index)
      repeated .com.cognite.client.dto.SequenceColumn columns = 7;
      Specified by:
      getColumns in interface SequenceMetadataOrBuilder
    • getColumnsOrBuilder

      public SequenceColumnOrBuilder getColumnsOrBuilder(int index)
      repeated .com.cognite.client.dto.SequenceColumn columns = 7;
      Specified by:
      getColumnsOrBuilder in interface SequenceMetadataOrBuilder
    • hasCreatedTime

      public boolean hasCreatedTime()
      optional int64 created_time = 8;
      Specified by:
      hasCreatedTime in interface SequenceMetadataOrBuilder
      Returns:
      Whether the createdTime field is set.
    • getCreatedTime

      public long getCreatedTime()
      optional int64 created_time = 8;
      Specified by:
      getCreatedTime in interface SequenceMetadataOrBuilder
      Returns:
      The createdTime.
    • hasLastUpdatedTime

      public boolean hasLastUpdatedTime()
      optional int64 last_updated_time = 9;
      Specified by:
      hasLastUpdatedTime in interface SequenceMetadataOrBuilder
      Returns:
      Whether the lastUpdatedTime field is set.
    • getLastUpdatedTime

      public long getLastUpdatedTime()
      optional int64 last_updated_time = 9;
      Specified by:
      getLastUpdatedTime in interface SequenceMetadataOrBuilder
      Returns:
      The lastUpdatedTime.
    • hasDataSetId

      public boolean hasDataSetId()
      optional int64 data_set_id = 10;
      Specified by:
      hasDataSetId in interface SequenceMetadataOrBuilder
      Returns:
      Whether the dataSetId field is set.
    • getDataSetId

      public long getDataSetId()
      optional int64 data_set_id = 10;
      Specified by:
      getDataSetId in interface SequenceMetadataOrBuilder
      Returns:
      The dataSetId.
    • isInitialized

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

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 SequenceMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static SequenceMetadata.Builder newBuilder()
    • newBuilder

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

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

      protected SequenceMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static SequenceMetadata getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SequenceMetadata> 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.GeneratedMessageV3
    • getDefaultInstanceForType

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