Package com.cognite.client.dto
Interface EventOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Event,Event.Builder
public interface EventOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(String key)map<string, string> metadata = 11;longgetAssetIds(int index)repeated int64 asset_ids = 8;intgetAssetIdsCount()repeated int64 asset_ids = 8;List<Long>getAssetIdsList()repeated int64 asset_ids = 8;longgetCreatedTime()optional int64 created_time = 9;longgetDataSetId()optional int64 data_set_id = 14;StringgetDescription()optional string description = 5;com.google.protobuf.ByteStringgetDescriptionBytes()optional string description = 5;longgetEndTime()optional int64 end_time = 4;StringgetExternalId()optional string external_id = 2;com.google.protobuf.ByteStringgetExternalIdBytes()optional string external_id = 2;longgetId()optional int64 id = 1;longgetLastUpdatedTime()optional int64 last_updated_time = 10;Map<String,String>getMetadata()Deprecated.intgetMetadataCount()map<string, string> metadata = 11;Map<String,String>getMetadataMap()map<string, string> metadata = 11;StringgetMetadataOrDefault(String key, String defaultValue)map<string, string> metadata = 11;StringgetMetadataOrThrow(String key)map<string, string> metadata = 11;StringgetSource()optional string source = 13;com.google.protobuf.ByteStringgetSourceBytes()optional string source = 13;longgetStartTime()optional int64 start_time = 3;StringgetSubtype()optional string subtype = 7;com.google.protobuf.ByteStringgetSubtypeBytes()optional string subtype = 7;StringgetType()optional string type = 6;com.google.protobuf.ByteStringgetTypeBytes()optional string type = 6;booleanhasCreatedTime()optional int64 created_time = 9;booleanhasDataSetId()optional int64 data_set_id = 14;booleanhasDescription()optional string description = 5;booleanhasEndTime()optional int64 end_time = 4;booleanhasExternalId()optional string external_id = 2;booleanhasId()optional int64 id = 1;booleanhasLastUpdatedTime()optional int64 last_updated_time = 10;booleanhasSource()optional string source = 13;booleanhasStartTime()optional int64 start_time = 3;booleanhasSubtype()optional string subtype = 7;booleanhasType()optional string type = 6;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasId
boolean hasId()
optional int64 id = 1;- Returns:
- Whether the id field is set.
-
getId
long getId()
optional int64 id = 1;- Returns:
- The id.
-
hasExternalId
boolean hasExternalId()
optional string external_id = 2;- Returns:
- Whether the externalId field is set.
-
getExternalId
String getExternalId()
optional string external_id = 2;- Returns:
- The externalId.
-
getExternalIdBytes
com.google.protobuf.ByteString getExternalIdBytes()
optional string external_id = 2;- Returns:
- The bytes for externalId.
-
hasStartTime
boolean hasStartTime()
optional int64 start_time = 3;- Returns:
- Whether the startTime field is set.
-
getStartTime
long getStartTime()
optional int64 start_time = 3;- Returns:
- The startTime.
-
hasEndTime
boolean hasEndTime()
optional int64 end_time = 4;- Returns:
- Whether the endTime field is set.
-
getEndTime
long getEndTime()
optional int64 end_time = 4;- Returns:
- The endTime.
-
hasDescription
boolean hasDescription()
optional string description = 5;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()
optional string description = 5;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
optional string description = 5;- Returns:
- The bytes for description.
-
hasType
boolean hasType()
optional string type = 6;- Returns:
- Whether the type field is set.
-
getType
String getType()
optional string type = 6;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
optional string type = 6;- Returns:
- The bytes for type.
-
hasSubtype
boolean hasSubtype()
optional string subtype = 7;- Returns:
- Whether the subtype field is set.
-
getSubtype
String getSubtype()
optional string subtype = 7;- Returns:
- The subtype.
-
getSubtypeBytes
com.google.protobuf.ByteString getSubtypeBytes()
optional string subtype = 7;- Returns:
- The bytes for subtype.
-
getAssetIdsList
List<Long> getAssetIdsList()
repeated int64 asset_ids = 8;- Returns:
- A list containing the assetIds.
-
getAssetIdsCount
int getAssetIdsCount()
repeated int64 asset_ids = 8;- Returns:
- The count of assetIds.
-
getAssetIds
long getAssetIds(int index)
repeated int64 asset_ids = 8;- Parameters:
index- The index of the element to return.- Returns:
- The assetIds at the given index.
-
hasCreatedTime
boolean hasCreatedTime()
optional int64 created_time = 9;- Returns:
- Whether the createdTime field is set.
-
getCreatedTime
long getCreatedTime()
optional int64 created_time = 9;- Returns:
- The createdTime.
-
hasLastUpdatedTime
boolean hasLastUpdatedTime()
optional int64 last_updated_time = 10;- Returns:
- Whether the lastUpdatedTime field is set.
-
getLastUpdatedTime
long getLastUpdatedTime()
optional int64 last_updated_time = 10;- Returns:
- The lastUpdatedTime.
-
getMetadataCount
int getMetadataCount()
map<string, string> metadata = 11;
-
containsMetadata
boolean containsMetadata(String key)
map<string, string> metadata = 11;
-
getMetadata
@Deprecated Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.
-
getMetadataOrDefault
String getMetadataOrDefault(String key, String defaultValue)
map<string, string> metadata = 11;
-
hasSource
boolean hasSource()
optional string source = 13;- Returns:
- Whether the source field is set.
-
getSource
String getSource()
optional string source = 13;- Returns:
- The source.
-
getSourceBytes
com.google.protobuf.ByteString getSourceBytes()
optional string source = 13;- Returns:
- The bytes for source.
-
hasDataSetId
boolean hasDataSetId()
optional int64 data_set_id = 14;- Returns:
- Whether the dataSetId field is set.
-
getDataSetId
long getDataSetId()
optional int64 data_set_id = 14;- Returns:
- The dataSetId.
-
-