Class Event.Builder

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

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

    • 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.Builder<Event.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Event.Builder mergeFrom(Event other)
    • isInitialized

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

      public Event.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<Event.Builder>
      Throws:
      IOException
    • hasId

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

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

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

      public Event.Builder clearId()
      optional int64 id = 1;
      Returns:
      This builder for chaining.
    • hasExternalId

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

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

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

      public Event.Builder setExternalId(String value)
      optional string external_id = 2;
      Parameters:
      value - The externalId to set.
      Returns:
      This builder for chaining.
    • clearExternalId

      public Event.Builder clearExternalId()
      optional string external_id = 2;
      Returns:
      This builder for chaining.
    • setExternalIdBytes

      public Event.Builder setExternalIdBytes(com.google.protobuf.ByteString value)
      optional string external_id = 2;
      Parameters:
      value - The bytes for externalId to set.
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
      optional int64 start_time = 3;
      Specified by:
      hasStartTime in interface EventOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public long getStartTime()
      optional int64 start_time = 3;
      Specified by:
      getStartTime in interface EventOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Event.Builder setStartTime(long value)
      optional int64 start_time = 3;
      Parameters:
      value - The startTime to set.
      Returns:
      This builder for chaining.
    • clearStartTime

      public Event.Builder clearStartTime()
      optional int64 start_time = 3;
      Returns:
      This builder for chaining.
    • hasEndTime

      public boolean hasEndTime()
      optional int64 end_time = 4;
      Specified by:
      hasEndTime in interface EventOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public long getEndTime()
      optional int64 end_time = 4;
      Specified by:
      getEndTime in interface EventOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public Event.Builder setEndTime(long value)
      optional int64 end_time = 4;
      Parameters:
      value - The endTime to set.
      Returns:
      This builder for chaining.
    • clearEndTime

      public Event.Builder clearEndTime()
      optional int64 end_time = 4;
      Returns:
      This builder for chaining.
    • hasDescription

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

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

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

      public Event.Builder setDescription(String value)
      optional string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Event.Builder clearDescription()
      optional string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Event.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      optional string description = 5;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
      optional string type = 6;
      Specified by:
      hasType in interface EventOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
      optional string type = 6;
      Specified by:
      getType in interface EventOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      optional string type = 6;
      Specified by:
      getTypeBytes in interface EventOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Event.Builder setType(String value)
      optional string type = 6;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Event.Builder clearType()
      optional string type = 6;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Event.Builder setTypeBytes(com.google.protobuf.ByteString value)
      optional string type = 6;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasSubtype

      public boolean hasSubtype()
      optional string subtype = 7;
      Specified by:
      hasSubtype in interface EventOrBuilder
      Returns:
      Whether the subtype field is set.
    • getSubtype

      public String getSubtype()
      optional string subtype = 7;
      Specified by:
      getSubtype in interface EventOrBuilder
      Returns:
      The subtype.
    • getSubtypeBytes

      public com.google.protobuf.ByteString getSubtypeBytes()
      optional string subtype = 7;
      Specified by:
      getSubtypeBytes in interface EventOrBuilder
      Returns:
      The bytes for subtype.
    • setSubtype

      public Event.Builder setSubtype(String value)
      optional string subtype = 7;
      Parameters:
      value - The subtype to set.
      Returns:
      This builder for chaining.
    • clearSubtype

      public Event.Builder clearSubtype()
      optional string subtype = 7;
      Returns:
      This builder for chaining.
    • setSubtypeBytes

      public Event.Builder setSubtypeBytes(com.google.protobuf.ByteString value)
      optional string subtype = 7;
      Parameters:
      value - The bytes for subtype to set.
      Returns:
      This builder for chaining.
    • getAssetIdsList

      public List<Long> getAssetIdsList()
      repeated int64 asset_ids = 8;
      Specified by:
      getAssetIdsList in interface EventOrBuilder
      Returns:
      A list containing the assetIds.
    • getAssetIdsCount

      public int getAssetIdsCount()
      repeated int64 asset_ids = 8;
      Specified by:
      getAssetIdsCount in interface EventOrBuilder
      Returns:
      The count of assetIds.
    • getAssetIds

      public long getAssetIds(int index)
      repeated int64 asset_ids = 8;
      Specified by:
      getAssetIds in interface EventOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The assetIds at the given index.
    • setAssetIds

      public Event.Builder setAssetIds(int index, long value)
      repeated int64 asset_ids = 8;
      Parameters:
      index - The index to set the value at.
      value - The assetIds to set.
      Returns:
      This builder for chaining.
    • addAssetIds

      public Event.Builder addAssetIds(long value)
      repeated int64 asset_ids = 8;
      Parameters:
      value - The assetIds to add.
      Returns:
      This builder for chaining.
    • addAllAssetIds

      public Event.Builder addAllAssetIds(Iterable<? extends Long> values)
      repeated int64 asset_ids = 8;
      Parameters:
      values - The assetIds to add.
      Returns:
      This builder for chaining.
    • clearAssetIds

      public Event.Builder clearAssetIds()
      repeated int64 asset_ids = 8;
      Returns:
      This builder for chaining.
    • hasCreatedTime

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

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

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

      public Event.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 EventOrBuilder
      Returns:
      Whether the lastUpdatedTime field is set.
    • getLastUpdatedTime

      public long getLastUpdatedTime()
      optional int64 last_updated_time = 10;
      Specified by:
      getLastUpdatedTime in interface EventOrBuilder
      Returns:
      The lastUpdatedTime.
    • setLastUpdatedTime

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

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

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

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

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

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

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

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 11;
      Specified by:
      getMetadataOrThrow in interface EventOrBuilder
    • clearMetadata

      public Event.Builder clearMetadata()
    • removeMetadata

      public Event.Builder removeMetadata(String key)
      map<string, string> metadata = 11;
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public Event.Builder putMetadata(String key, String value)
      map<string, string> metadata = 11;
    • putAllMetadata

      public Event.Builder putAllMetadata(Map<String,String> values)
      map<string, string> metadata = 11;
    • hasSource

      public boolean hasSource()
      optional string source = 13;
      Specified by:
      hasSource in interface EventOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
      optional string source = 13;
      Specified by:
      getSource in interface EventOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
      optional string source = 13;
      Specified by:
      getSourceBytes in interface EventOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public Event.Builder setSource(String value)
      optional string source = 13;
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public Event.Builder clearSource()
      optional string source = 13;
      Returns:
      This builder for chaining.
    • setSourceBytes

      public Event.Builder setSourceBytes(com.google.protobuf.ByteString value)
      optional string source = 13;
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.
    • hasDataSetId

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

      public long getDataSetId()
      optional int64 data_set_id = 14;
      Specified by:
      getDataSetId in interface EventOrBuilder
      Returns:
      The dataSetId.
    • setDataSetId

      public Event.Builder setDataSetId(long value)
      optional int64 data_set_id = 14;
      Parameters:
      value - The dataSetId to set.
      Returns:
      This builder for chaining.
    • clearDataSetId

      public Event.Builder clearDataSetId()
      optional int64 data_set_id = 14;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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