Class Annotation

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

public final class Annotation extends com.google.protobuf.GeneratedMessageV3 implements AnnotationOrBuilder
Protobuf type com.cognite.client.dto.Annotation
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Protobuf enum com.cognite.client.dto.Annotation.AnnotationType
    static final class 
    Protobuf type com.cognite.client.dto.Annotation

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    int64 annotated_resource_id = 3;
    .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
    int
    .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
    long
    optional int64 created_time = 9;
    optional string creating_app = 4;
    com.google.protobuf.ByteString
    optional string creating_app = 4;
    optional string creating_app_version = 5;
    com.google.protobuf.ByteString
    optional string creating_app_version = 5;
    optional string creating_user = 6;
    com.google.protobuf.ByteString
    optional string creating_user = 6;
    static Annotation
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    long
    optional int64 id = 1;
    long
    optional int64 last_updated_time = 10;
    com.google.protobuf.Parser<Annotation>
     
    int
     
    string status = 8;
    com.google.protobuf.ByteString
    string status = 8;
    boolean
    optional int64 created_time = 9;
    boolean
    optional string creating_app = 4;
    boolean
    optional string creating_app_version = 5;
    boolean
    optional string creating_user = 6;
    int
     
    boolean
    optional int64 id = 1;
    boolean
    optional int64 last_updated_time = 10;
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Annotation
     
    static Annotation
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Annotation
    parseFrom(byte[] data)
     
    static Annotation
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Annotation
    parseFrom(com.google.protobuf.ByteString data)
     
    static Annotation
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Annotation
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Annotation
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Annotation
     
    static Annotation
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Annotation
     
    static Annotation
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Annotation>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • ANNOTATED_RESOURCE_TYPE_FIELD_NUMBER

      public static final int ANNOTATED_RESOURCE_TYPE_FIELD_NUMBER
      See Also:
    • ANNOTATED_RESOURCE_ID_FIELD_NUMBER

      public static final int ANNOTATED_RESOURCE_ID_FIELD_NUMBER
      See Also:
    • CREATING_APP_FIELD_NUMBER

      public static final int CREATING_APP_FIELD_NUMBER
      See Also:
    • CREATING_APP_VERSION_FIELD_NUMBER

      public static final int CREATING_APP_VERSION_FIELD_NUMBER
      See Also:
    • CREATING_USER_FIELD_NUMBER

      public static final int CREATING_USER_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • CREATED_TIME_FIELD_NUMBER

      public static final int CREATED_TIME_FIELD_NUMBER
      See Also:
    • LAST_UPDATED_TIME_FIELD_NUMBER

      public static final int LAST_UPDATED_TIME_FIELD_NUMBER
      See Also:
  • 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()
    • internalGetFieldAccessorTable

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

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

      public long getId()
      optional int64 id = 1;
      Specified by:
      getId in interface AnnotationOrBuilder
      Returns:
      The id.
    • getAnnotatedResourceTypeValue

      public int getAnnotatedResourceTypeValue()
      .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
      Specified by:
      getAnnotatedResourceTypeValue in interface AnnotationOrBuilder
      Returns:
      The enum numeric value on the wire for annotatedResourceType.
    • getAnnotatedResourceType

      public Annotation.AnnotationType getAnnotatedResourceType()
      .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
      Specified by:
      getAnnotatedResourceType in interface AnnotationOrBuilder
      Returns:
      The annotatedResourceType.
    • getAnnotatedResourceId

      public long getAnnotatedResourceId()
      int64 annotated_resource_id = 3;
      Specified by:
      getAnnotatedResourceId in interface AnnotationOrBuilder
      Returns:
      The annotatedResourceId.
    • hasCreatingApp

      public boolean hasCreatingApp()
      optional string creating_app = 4;
      Specified by:
      hasCreatingApp in interface AnnotationOrBuilder
      Returns:
      Whether the creatingApp field is set.
    • getCreatingApp

      public String getCreatingApp()
      optional string creating_app = 4;
      Specified by:
      getCreatingApp in interface AnnotationOrBuilder
      Returns:
      The creatingApp.
    • getCreatingAppBytes

      public com.google.protobuf.ByteString getCreatingAppBytes()
      optional string creating_app = 4;
      Specified by:
      getCreatingAppBytes in interface AnnotationOrBuilder
      Returns:
      The bytes for creatingApp.
    • hasCreatingAppVersion

      public boolean hasCreatingAppVersion()
      optional string creating_app_version = 5;
      Specified by:
      hasCreatingAppVersion in interface AnnotationOrBuilder
      Returns:
      Whether the creatingAppVersion field is set.
    • getCreatingAppVersion

      public String getCreatingAppVersion()
      optional string creating_app_version = 5;
      Specified by:
      getCreatingAppVersion in interface AnnotationOrBuilder
      Returns:
      The creatingAppVersion.
    • getCreatingAppVersionBytes

      public com.google.protobuf.ByteString getCreatingAppVersionBytes()
      optional string creating_app_version = 5;
      Specified by:
      getCreatingAppVersionBytes in interface AnnotationOrBuilder
      Returns:
      The bytes for creatingAppVersion.
    • hasCreatingUser

      public boolean hasCreatingUser()
      optional string creating_user = 6;
      Specified by:
      hasCreatingUser in interface AnnotationOrBuilder
      Returns:
      Whether the creatingUser field is set.
    • getCreatingUser

      public String getCreatingUser()
      optional string creating_user = 6;
      Specified by:
      getCreatingUser in interface AnnotationOrBuilder
      Returns:
      The creatingUser.
    • getCreatingUserBytes

      public com.google.protobuf.ByteString getCreatingUserBytes()
      optional string creating_user = 6;
      Specified by:
      getCreatingUserBytes in interface AnnotationOrBuilder
      Returns:
      The bytes for creatingUser.
    • getStatus

      public String getStatus()
      string status = 8;
      Specified by:
      getStatus in interface AnnotationOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
      string status = 8;
      Specified by:
      getStatusBytes in interface AnnotationOrBuilder
      Returns:
      The bytes for status.
    • hasCreatedTime

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

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

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

      public long getLastUpdatedTime()
      optional int64 last_updated_time = 10;
      Specified by:
      getLastUpdatedTime in interface AnnotationOrBuilder
      Returns:
      The lastUpdatedTime.
    • 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 Annotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Annotation.Builder newBuilder()
    • newBuilder

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

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

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

      public static Annotation getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Annotation> 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 Annotation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder