Package com.cognite.client.dto
Interface RelationshipOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Relationship,Relationship.Builder
public interface RelationshipOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatoptional float confidence = 8;longoptional int64 created_time = 11;longoptional int64 data_set_id = 9;longoptional int64 end_time = 7;string external_id = 1;com.google.protobuf.ByteStringstring external_id = 1;getLabels(int index) repeated string labels = 10;com.google.protobuf.ByteStringgetLabelsBytes(int index) repeated string labels = 10;intrepeated string labels = 10;repeated string labels = 10;longoptional int64 last_updated_time = 12;.com.cognite.client.dto.Asset source_asset = 13;.com.cognite.client.dto.Asset source_asset = 13;.com.cognite.client.dto.Event source_event = 14;.com.cognite.client.dto.Event source_event = 14;optional string source_external_id = 2;com.google.protobuf.ByteStringoptional string source_external_id = 2;.com.cognite.client.dto.FileMetadata source_file = 16;.com.cognite.client.dto.FileMetadata source_file = 16;.com.cognite.client.dto.SequenceMetadata source_sequence = 17;.com.cognite.client.dto.SequenceMetadata source_sequence = 17;.com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;.com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;.com.cognite.client.dto.Relationship.ResourceType source_type = 3;int.com.cognite.client.dto.Relationship.ResourceType source_type = 3;longoptional int64 start_time = 6;.com.cognite.client.dto.Asset target_asset = 18;.com.cognite.client.dto.Asset target_asset = 18;.com.cognite.client.dto.Event target_event = 19;.com.cognite.client.dto.Event target_event = 19;optional string target_external_id = 4;com.google.protobuf.ByteStringoptional string target_external_id = 4;.com.cognite.client.dto.FileMetadata target_file = 21;.com.cognite.client.dto.FileMetadata target_file = 21;.com.cognite.client.dto.SequenceMetadata target_sequence = 22;.com.cognite.client.dto.SequenceMetadata target_sequence = 22;.com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;.com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;.com.cognite.client.dto.Relationship.ResourceType target_type = 5;int.com.cognite.client.dto.Relationship.ResourceType target_type = 5;booleanoptional float confidence = 8;booleanoptional int64 created_time = 11;booleanoptional int64 data_set_id = 9;booleanoptional int64 end_time = 7;booleanoptional int64 last_updated_time = 12;boolean.com.cognite.client.dto.Asset source_asset = 13;boolean.com.cognite.client.dto.Event source_event = 14;booleanoptional string source_external_id = 2;boolean.com.cognite.client.dto.FileMetadata source_file = 16;boolean.com.cognite.client.dto.SequenceMetadata source_sequence = 17;boolean.com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;booleanoptional int64 start_time = 6;boolean.com.cognite.client.dto.Asset target_asset = 18;boolean.com.cognite.client.dto.Event target_event = 19;booleanoptional string target_external_id = 4;boolean.com.cognite.client.dto.FileMetadata target_file = 21;boolean.com.cognite.client.dto.SequenceMetadata target_sequence = 22;boolean.com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getExternalId
String getExternalId()string external_id = 1;- Returns:
- The externalId.
-
getExternalIdBytes
com.google.protobuf.ByteString getExternalIdBytes()string external_id = 1;- Returns:
- The bytes for externalId.
-
hasSourceExternalId
boolean hasSourceExternalId()optional string source_external_id = 2;- Returns:
- Whether the sourceExternalId field is set.
-
getSourceExternalId
String getSourceExternalId()optional string source_external_id = 2;- Returns:
- The sourceExternalId.
-
getSourceExternalIdBytes
com.google.protobuf.ByteString getSourceExternalIdBytes()optional string source_external_id = 2;- Returns:
- The bytes for sourceExternalId.
-
getSourceTypeValue
int getSourceTypeValue().com.cognite.client.dto.Relationship.ResourceType source_type = 3;- Returns:
- The enum numeric value on the wire for sourceType.
-
getSourceType
Relationship.ResourceType getSourceType().com.cognite.client.dto.Relationship.ResourceType source_type = 3;- Returns:
- The sourceType.
-
hasTargetExternalId
boolean hasTargetExternalId()optional string target_external_id = 4;- Returns:
- Whether the targetExternalId field is set.
-
getTargetExternalId
String getTargetExternalId()optional string target_external_id = 4;- Returns:
- The targetExternalId.
-
getTargetExternalIdBytes
com.google.protobuf.ByteString getTargetExternalIdBytes()optional string target_external_id = 4;- Returns:
- The bytes for targetExternalId.
-
getTargetTypeValue
int getTargetTypeValue().com.cognite.client.dto.Relationship.ResourceType target_type = 5;- Returns:
- The enum numeric value on the wire for targetType.
-
getTargetType
Relationship.ResourceType getTargetType().com.cognite.client.dto.Relationship.ResourceType target_type = 5;- Returns:
- The targetType.
-
hasStartTime
boolean hasStartTime()optional int64 start_time = 6;- Returns:
- Whether the startTime field is set.
-
getStartTime
long getStartTime()optional int64 start_time = 6;- Returns:
- The startTime.
-
hasEndTime
boolean hasEndTime()optional int64 end_time = 7;- Returns:
- Whether the endTime field is set.
-
getEndTime
long getEndTime()optional int64 end_time = 7;- Returns:
- The endTime.
-
hasConfidence
boolean hasConfidence()optional float confidence = 8;- Returns:
- Whether the confidence field is set.
-
getConfidence
float getConfidence()optional float confidence = 8;- Returns:
- The confidence.
-
hasDataSetId
boolean hasDataSetId()optional int64 data_set_id = 9;- Returns:
- Whether the dataSetId field is set.
-
getDataSetId
long getDataSetId()optional int64 data_set_id = 9;- Returns:
- The dataSetId.
-
getLabelsList
repeated string labels = 10;- Returns:
- A list containing the labels.
-
getLabelsCount
int getLabelsCount()repeated string labels = 10;- Returns:
- The count of labels.
-
getLabels
repeated string labels = 10;- Parameters:
index- The index of the element to return.- Returns:
- The labels at the given index.
-
getLabelsBytes
com.google.protobuf.ByteString getLabelsBytes(int index) repeated string labels = 10;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
hasCreatedTime
boolean hasCreatedTime()optional int64 created_time = 11;- Returns:
- Whether the createdTime field is set.
-
getCreatedTime
long getCreatedTime()optional int64 created_time = 11;- Returns:
- The createdTime.
-
hasLastUpdatedTime
boolean hasLastUpdatedTime()optional int64 last_updated_time = 12;- Returns:
- Whether the lastUpdatedTime field is set.
-
getLastUpdatedTime
long getLastUpdatedTime()optional int64 last_updated_time = 12;- Returns:
- The lastUpdatedTime.
-
hasSourceAsset
boolean hasSourceAsset().com.cognite.client.dto.Asset source_asset = 13;- Returns:
- Whether the sourceAsset field is set.
-
getSourceAsset
Asset getSourceAsset().com.cognite.client.dto.Asset source_asset = 13;- Returns:
- The sourceAsset.
-
getSourceAssetOrBuilder
AssetOrBuilder getSourceAssetOrBuilder().com.cognite.client.dto.Asset source_asset = 13; -
hasSourceEvent
boolean hasSourceEvent().com.cognite.client.dto.Event source_event = 14;- Returns:
- Whether the sourceEvent field is set.
-
getSourceEvent
Event getSourceEvent().com.cognite.client.dto.Event source_event = 14;- Returns:
- The sourceEvent.
-
getSourceEventOrBuilder
EventOrBuilder getSourceEventOrBuilder().com.cognite.client.dto.Event source_event = 14; -
hasSourceTimeseries
boolean hasSourceTimeseries().com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;- Returns:
- Whether the sourceTimeseries field is set.
-
getSourceTimeseries
TimeseriesMetadata getSourceTimeseries().com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;- Returns:
- The sourceTimeseries.
-
getSourceTimeseriesOrBuilder
TimeseriesMetadataOrBuilder getSourceTimeseriesOrBuilder().com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15; -
hasSourceFile
boolean hasSourceFile().com.cognite.client.dto.FileMetadata source_file = 16;- Returns:
- Whether the sourceFile field is set.
-
getSourceFile
FileMetadata getSourceFile().com.cognite.client.dto.FileMetadata source_file = 16;- Returns:
- The sourceFile.
-
getSourceFileOrBuilder
FileMetadataOrBuilder getSourceFileOrBuilder().com.cognite.client.dto.FileMetadata source_file = 16; -
hasSourceSequence
boolean hasSourceSequence().com.cognite.client.dto.SequenceMetadata source_sequence = 17;- Returns:
- Whether the sourceSequence field is set.
-
getSourceSequence
SequenceMetadata getSourceSequence().com.cognite.client.dto.SequenceMetadata source_sequence = 17;- Returns:
- The sourceSequence.
-
getSourceSequenceOrBuilder
SequenceMetadataOrBuilder getSourceSequenceOrBuilder().com.cognite.client.dto.SequenceMetadata source_sequence = 17; -
hasTargetAsset
boolean hasTargetAsset().com.cognite.client.dto.Asset target_asset = 18;- Returns:
- Whether the targetAsset field is set.
-
getTargetAsset
Asset getTargetAsset().com.cognite.client.dto.Asset target_asset = 18;- Returns:
- The targetAsset.
-
getTargetAssetOrBuilder
AssetOrBuilder getTargetAssetOrBuilder().com.cognite.client.dto.Asset target_asset = 18; -
hasTargetEvent
boolean hasTargetEvent().com.cognite.client.dto.Event target_event = 19;- Returns:
- Whether the targetEvent field is set.
-
getTargetEvent
Event getTargetEvent().com.cognite.client.dto.Event target_event = 19;- Returns:
- The targetEvent.
-
getTargetEventOrBuilder
EventOrBuilder getTargetEventOrBuilder().com.cognite.client.dto.Event target_event = 19; -
hasTargetTimeseries
boolean hasTargetTimeseries().com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;- Returns:
- Whether the targetTimeseries field is set.
-
getTargetTimeseries
TimeseriesMetadata getTargetTimeseries().com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;- Returns:
- The targetTimeseries.
-
getTargetTimeseriesOrBuilder
TimeseriesMetadataOrBuilder getTargetTimeseriesOrBuilder().com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20; -
hasTargetFile
boolean hasTargetFile().com.cognite.client.dto.FileMetadata target_file = 21;- Returns:
- Whether the targetFile field is set.
-
getTargetFile
FileMetadata getTargetFile().com.cognite.client.dto.FileMetadata target_file = 21;- Returns:
- The targetFile.
-
getTargetFileOrBuilder
FileMetadataOrBuilder getTargetFileOrBuilder().com.cognite.client.dto.FileMetadata target_file = 21; -
hasTargetSequence
boolean hasTargetSequence().com.cognite.client.dto.SequenceMetadata target_sequence = 22;- Returns:
- Whether the targetSequence field is set.
-
getTargetSequence
SequenceMetadata getTargetSequence().com.cognite.client.dto.SequenceMetadata target_sequence = 22;- Returns:
- The targetSequence.
-
getTargetSequenceOrBuilder
SequenceMetadataOrBuilder getTargetSequenceOrBuilder().com.cognite.client.dto.SequenceMetadata target_sequence = 22; -
getSourceCase
Relationship.SourceCase getSourceCase() -
getTargetCase
Relationship.TargetCase getTargetCase()
-