Class Annotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
com.cognite.client.dto.Annotation.Builder
All Implemented Interfaces:
AnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Annotation

public static final class Annotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder> implements AnnotationOrBuilder
Protobuf type com.cognite.client.dto.Annotation
  • Method Details

    • 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.Builder<Annotation.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Annotation.Builder mergeFrom(Annotation other)
    • isInitialized

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

      public Annotation.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<Annotation.Builder>
      Throws:
      IOException
    • 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.
    • setId

      public Annotation.Builder setId(long value)
      optional int64 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Annotation.Builder clearId()
      optional int64 id = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setAnnotatedResourceTypeValue

      public Annotation.Builder setAnnotatedResourceTypeValue(int value)
      .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
      Parameters:
      value - The enum numeric value on the wire for annotatedResourceType to set.
      Returns:
      This builder for chaining.
    • getAnnotatedResourceType

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

      public Annotation.Builder setAnnotatedResourceType(Annotation.AnnotationType value)
      .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
      Parameters:
      value - The annotatedResourceType to set.
      Returns:
      This builder for chaining.
    • clearAnnotatedResourceType

      public Annotation.Builder clearAnnotatedResourceType()
      .com.cognite.client.dto.Annotation.AnnotationType annotated_resource_type = 2;
      Returns:
      This builder for chaining.
    • getAnnotatedResourceId

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

      public Annotation.Builder setAnnotatedResourceId(long value)
      int64 annotated_resource_id = 3;
      Parameters:
      value - The annotatedResourceId to set.
      Returns:
      This builder for chaining.
    • clearAnnotatedResourceId

      public Annotation.Builder clearAnnotatedResourceId()
      int64 annotated_resource_id = 3;
      Returns:
      This builder for chaining.
    • 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.
    • setCreatingApp

      public Annotation.Builder setCreatingApp(String value)
      optional string creating_app = 4;
      Parameters:
      value - The creatingApp to set.
      Returns:
      This builder for chaining.
    • clearCreatingApp

      public Annotation.Builder clearCreatingApp()
      optional string creating_app = 4;
      Returns:
      This builder for chaining.
    • setCreatingAppBytes

      public Annotation.Builder setCreatingAppBytes(com.google.protobuf.ByteString value)
      optional string creating_app = 4;
      Parameters:
      value - The bytes for creatingApp to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreatingAppVersion

      public Annotation.Builder setCreatingAppVersion(String value)
      optional string creating_app_version = 5;
      Parameters:
      value - The creatingAppVersion to set.
      Returns:
      This builder for chaining.
    • clearCreatingAppVersion

      public Annotation.Builder clearCreatingAppVersion()
      optional string creating_app_version = 5;
      Returns:
      This builder for chaining.
    • setCreatingAppVersionBytes

      public Annotation.Builder setCreatingAppVersionBytes(com.google.protobuf.ByteString value)
      optional string creating_app_version = 5;
      Parameters:
      value - The bytes for creatingAppVersion to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreatingUser

      public Annotation.Builder setCreatingUser(String value)
      optional string creating_user = 6;
      Parameters:
      value - The creatingUser to set.
      Returns:
      This builder for chaining.
    • clearCreatingUser

      public Annotation.Builder clearCreatingUser()
      optional string creating_user = 6;
      Returns:
      This builder for chaining.
    • setCreatingUserBytes

      public Annotation.Builder setCreatingUserBytes(com.google.protobuf.ByteString value)
      optional string creating_user = 6;
      Parameters:
      value - The bytes for creatingUser to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStatus

      public Annotation.Builder setStatus(String value)
      string status = 8;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public Annotation.Builder clearStatus()
      string status = 8;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public Annotation.Builder setStatusBytes(com.google.protobuf.ByteString value)
      string status = 8;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreatedTime

      public Annotation.Builder setCreatedTime(long value)
      optional int64 created_time = 9;
      Parameters:
      value - The createdTime to set.
      Returns:
      This builder for chaining.
    • clearCreatedTime

      public Annotation.Builder clearCreatedTime()
      optional int64 created_time = 9;
      Returns:
      This builder for chaining.
    • 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.
    • setLastUpdatedTime

      public Annotation.Builder setLastUpdatedTime(long value)
      optional int64 last_updated_time = 10;
      Parameters:
      value - The lastUpdatedTime to set.
      Returns:
      This builder for chaining.
    • clearLastUpdatedTime

      public Annotation.Builder clearLastUpdatedTime()
      optional int64 last_updated_time = 10;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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