Class Relationship

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

public final class Relationship extends com.google.protobuf.GeneratedMessageV3 implements RelationshipOrBuilder
Protobuf type com.cognite.client.dto.Relationship
See Also:
  • Field Details

    • EXTERNAL_ID_FIELD_NUMBER

      public static final int EXTERNAL_ID_FIELD_NUMBER
      See Also:
    • SOURCE_EXTERNAL_ID_FIELD_NUMBER

      public static final int SOURCE_EXTERNAL_ID_FIELD_NUMBER
      See Also:
    • SOURCE_TYPE_FIELD_NUMBER

      public static final int SOURCE_TYPE_FIELD_NUMBER
      See Also:
    • TARGET_EXTERNAL_ID_FIELD_NUMBER

      public static final int TARGET_EXTERNAL_ID_FIELD_NUMBER
      See Also:
    • TARGET_TYPE_FIELD_NUMBER

      public static final int TARGET_TYPE_FIELD_NUMBER
      See Also:
    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • CONFIDENCE_FIELD_NUMBER

      public static final int CONFIDENCE_FIELD_NUMBER
      See Also:
    • DATA_SET_ID_FIELD_NUMBER

      public static final int DATA_SET_ID_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_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:
    • SOURCE_ASSET_FIELD_NUMBER

      public static final int SOURCE_ASSET_FIELD_NUMBER
      See Also:
    • SOURCE_EVENT_FIELD_NUMBER

      public static final int SOURCE_EVENT_FIELD_NUMBER
      See Also:
    • SOURCE_TIMESERIES_FIELD_NUMBER

      public static final int SOURCE_TIMESERIES_FIELD_NUMBER
      See Also:
    • SOURCE_FILE_FIELD_NUMBER

      public static final int SOURCE_FILE_FIELD_NUMBER
      See Also:
    • SOURCE_SEQUENCE_FIELD_NUMBER

      public static final int SOURCE_SEQUENCE_FIELD_NUMBER
      See Also:
    • TARGET_ASSET_FIELD_NUMBER

      public static final int TARGET_ASSET_FIELD_NUMBER
      See Also:
    • TARGET_EVENT_FIELD_NUMBER

      public static final int TARGET_EVENT_FIELD_NUMBER
      See Also:
    • TARGET_TIMESERIES_FIELD_NUMBER

      public static final int TARGET_TIMESERIES_FIELD_NUMBER
      See Also:
    • TARGET_FILE_FIELD_NUMBER

      public static final int TARGET_FILE_FIELD_NUMBER
      See Also:
    • TARGET_SEQUENCE_FIELD_NUMBER

      public static final int TARGET_SEQUENCE_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
    • getSourceCase

      public Relationship.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface RelationshipOrBuilder
    • getTargetCase

      public Relationship.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface RelationshipOrBuilder
    • getExternalId

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

      public com.google.protobuf.ByteString getExternalIdBytes()
      string external_id = 1;
      Specified by:
      getExternalIdBytes in interface RelationshipOrBuilder
      Returns:
      The bytes for externalId.
    • hasSourceExternalId

      public boolean hasSourceExternalId()
      optional string source_external_id = 2;
      Specified by:
      hasSourceExternalId in interface RelationshipOrBuilder
      Returns:
      Whether the sourceExternalId field is set.
    • getSourceExternalId

      public String getSourceExternalId()
      optional string source_external_id = 2;
      Specified by:
      getSourceExternalId in interface RelationshipOrBuilder
      Returns:
      The sourceExternalId.
    • getSourceExternalIdBytes

      public com.google.protobuf.ByteString getSourceExternalIdBytes()
      optional string source_external_id = 2;
      Specified by:
      getSourceExternalIdBytes in interface RelationshipOrBuilder
      Returns:
      The bytes for sourceExternalId.
    • getSourceTypeValue

      public int getSourceTypeValue()
      .com.cognite.client.dto.Relationship.ResourceType source_type = 3;
      Specified by:
      getSourceTypeValue in interface RelationshipOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • getSourceType

      public Relationship.ResourceType getSourceType()
      .com.cognite.client.dto.Relationship.ResourceType source_type = 3;
      Specified by:
      getSourceType in interface RelationshipOrBuilder
      Returns:
      The sourceType.
    • hasTargetExternalId

      public boolean hasTargetExternalId()
      optional string target_external_id = 4;
      Specified by:
      hasTargetExternalId in interface RelationshipOrBuilder
      Returns:
      Whether the targetExternalId field is set.
    • getTargetExternalId

      public String getTargetExternalId()
      optional string target_external_id = 4;
      Specified by:
      getTargetExternalId in interface RelationshipOrBuilder
      Returns:
      The targetExternalId.
    • getTargetExternalIdBytes

      public com.google.protobuf.ByteString getTargetExternalIdBytes()
      optional string target_external_id = 4;
      Specified by:
      getTargetExternalIdBytes in interface RelationshipOrBuilder
      Returns:
      The bytes for targetExternalId.
    • getTargetTypeValue

      public int getTargetTypeValue()
      .com.cognite.client.dto.Relationship.ResourceType target_type = 5;
      Specified by:
      getTargetTypeValue in interface RelationshipOrBuilder
      Returns:
      The enum numeric value on the wire for targetType.
    • getTargetType

      public Relationship.ResourceType getTargetType()
      .com.cognite.client.dto.Relationship.ResourceType target_type = 5;
      Specified by:
      getTargetType in interface RelationshipOrBuilder
      Returns:
      The targetType.
    • hasStartTime

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

      public long getStartTime()
      optional int64 start_time = 6;
      Specified by:
      getStartTime in interface RelationshipOrBuilder
      Returns:
      The startTime.
    • hasEndTime

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

      public long getEndTime()
      optional int64 end_time = 7;
      Specified by:
      getEndTime in interface RelationshipOrBuilder
      Returns:
      The endTime.
    • hasConfidence

      public boolean hasConfidence()
      optional float confidence = 8;
      Specified by:
      hasConfidence in interface RelationshipOrBuilder
      Returns:
      Whether the confidence field is set.
    • getConfidence

      public float getConfidence()
      optional float confidence = 8;
      Specified by:
      getConfidence in interface RelationshipOrBuilder
      Returns:
      The confidence.
    • hasDataSetId

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

      public long getDataSetId()
      optional int64 data_set_id = 9;
      Specified by:
      getDataSetId in interface RelationshipOrBuilder
      Returns:
      The dataSetId.
    • getLabelsList

      public com.google.protobuf.ProtocolStringList getLabelsList()
      repeated string labels = 10;
      Specified by:
      getLabelsList in interface RelationshipOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
      repeated string labels = 10;
      Specified by:
      getLabelsCount in interface RelationshipOrBuilder
      Returns:
      The count of labels.
    • getLabels

      public String getLabels(int index)
      repeated string labels = 10;
      Specified by:
      getLabels in interface RelationshipOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The labels at the given index.
    • getLabelsBytes

      public com.google.protobuf.ByteString getLabelsBytes(int index)
      repeated string labels = 10;
      Specified by:
      getLabelsBytes in interface RelationshipOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • hasCreatedTime

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

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

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

      public long getLastUpdatedTime()
      optional int64 last_updated_time = 12;
      Specified by:
      getLastUpdatedTime in interface RelationshipOrBuilder
      Returns:
      The lastUpdatedTime.
    • hasSourceAsset

      public boolean hasSourceAsset()
      .com.cognite.client.dto.Asset source_asset = 13;
      Specified by:
      hasSourceAsset in interface RelationshipOrBuilder
      Returns:
      Whether the sourceAsset field is set.
    • getSourceAsset

      public Asset getSourceAsset()
      .com.cognite.client.dto.Asset source_asset = 13;
      Specified by:
      getSourceAsset in interface RelationshipOrBuilder
      Returns:
      The sourceAsset.
    • getSourceAssetOrBuilder

      public AssetOrBuilder getSourceAssetOrBuilder()
      .com.cognite.client.dto.Asset source_asset = 13;
      Specified by:
      getSourceAssetOrBuilder in interface RelationshipOrBuilder
    • hasSourceEvent

      public boolean hasSourceEvent()
      .com.cognite.client.dto.Event source_event = 14;
      Specified by:
      hasSourceEvent in interface RelationshipOrBuilder
      Returns:
      Whether the sourceEvent field is set.
    • getSourceEvent

      public Event getSourceEvent()
      .com.cognite.client.dto.Event source_event = 14;
      Specified by:
      getSourceEvent in interface RelationshipOrBuilder
      Returns:
      The sourceEvent.
    • getSourceEventOrBuilder

      public EventOrBuilder getSourceEventOrBuilder()
      .com.cognite.client.dto.Event source_event = 14;
      Specified by:
      getSourceEventOrBuilder in interface RelationshipOrBuilder
    • hasSourceTimeseries

      public boolean hasSourceTimeseries()
      .com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;
      Specified by:
      hasSourceTimeseries in interface RelationshipOrBuilder
      Returns:
      Whether the sourceTimeseries field is set.
    • getSourceTimeseries

      public TimeseriesMetadata getSourceTimeseries()
      .com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;
      Specified by:
      getSourceTimeseries in interface RelationshipOrBuilder
      Returns:
      The sourceTimeseries.
    • getSourceTimeseriesOrBuilder

      public TimeseriesMetadataOrBuilder getSourceTimeseriesOrBuilder()
      .com.cognite.client.dto.TimeseriesMetadata source_timeseries = 15;
      Specified by:
      getSourceTimeseriesOrBuilder in interface RelationshipOrBuilder
    • hasSourceFile

      public boolean hasSourceFile()
      .com.cognite.client.dto.FileMetadata source_file = 16;
      Specified by:
      hasSourceFile in interface RelationshipOrBuilder
      Returns:
      Whether the sourceFile field is set.
    • getSourceFile

      public FileMetadata getSourceFile()
      .com.cognite.client.dto.FileMetadata source_file = 16;
      Specified by:
      getSourceFile in interface RelationshipOrBuilder
      Returns:
      The sourceFile.
    • getSourceFileOrBuilder

      public FileMetadataOrBuilder getSourceFileOrBuilder()
      .com.cognite.client.dto.FileMetadata source_file = 16;
      Specified by:
      getSourceFileOrBuilder in interface RelationshipOrBuilder
    • hasSourceSequence

      public boolean hasSourceSequence()
      .com.cognite.client.dto.SequenceMetadata source_sequence = 17;
      Specified by:
      hasSourceSequence in interface RelationshipOrBuilder
      Returns:
      Whether the sourceSequence field is set.
    • getSourceSequence

      public SequenceMetadata getSourceSequence()
      .com.cognite.client.dto.SequenceMetadata source_sequence = 17;
      Specified by:
      getSourceSequence in interface RelationshipOrBuilder
      Returns:
      The sourceSequence.
    • getSourceSequenceOrBuilder

      public SequenceMetadataOrBuilder getSourceSequenceOrBuilder()
      .com.cognite.client.dto.SequenceMetadata source_sequence = 17;
      Specified by:
      getSourceSequenceOrBuilder in interface RelationshipOrBuilder
    • hasTargetAsset

      public boolean hasTargetAsset()
      .com.cognite.client.dto.Asset target_asset = 18;
      Specified by:
      hasTargetAsset in interface RelationshipOrBuilder
      Returns:
      Whether the targetAsset field is set.
    • getTargetAsset

      public Asset getTargetAsset()
      .com.cognite.client.dto.Asset target_asset = 18;
      Specified by:
      getTargetAsset in interface RelationshipOrBuilder
      Returns:
      The targetAsset.
    • getTargetAssetOrBuilder

      public AssetOrBuilder getTargetAssetOrBuilder()
      .com.cognite.client.dto.Asset target_asset = 18;
      Specified by:
      getTargetAssetOrBuilder in interface RelationshipOrBuilder
    • hasTargetEvent

      public boolean hasTargetEvent()
      .com.cognite.client.dto.Event target_event = 19;
      Specified by:
      hasTargetEvent in interface RelationshipOrBuilder
      Returns:
      Whether the targetEvent field is set.
    • getTargetEvent

      public Event getTargetEvent()
      .com.cognite.client.dto.Event target_event = 19;
      Specified by:
      getTargetEvent in interface RelationshipOrBuilder
      Returns:
      The targetEvent.
    • getTargetEventOrBuilder

      public EventOrBuilder getTargetEventOrBuilder()
      .com.cognite.client.dto.Event target_event = 19;
      Specified by:
      getTargetEventOrBuilder in interface RelationshipOrBuilder
    • hasTargetTimeseries

      public boolean hasTargetTimeseries()
      .com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;
      Specified by:
      hasTargetTimeseries in interface RelationshipOrBuilder
      Returns:
      Whether the targetTimeseries field is set.
    • getTargetTimeseries

      public TimeseriesMetadata getTargetTimeseries()
      .com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;
      Specified by:
      getTargetTimeseries in interface RelationshipOrBuilder
      Returns:
      The targetTimeseries.
    • getTargetTimeseriesOrBuilder

      public TimeseriesMetadataOrBuilder getTargetTimeseriesOrBuilder()
      .com.cognite.client.dto.TimeseriesMetadata target_timeseries = 20;
      Specified by:
      getTargetTimeseriesOrBuilder in interface RelationshipOrBuilder
    • hasTargetFile

      public boolean hasTargetFile()
      .com.cognite.client.dto.FileMetadata target_file = 21;
      Specified by:
      hasTargetFile in interface RelationshipOrBuilder
      Returns:
      Whether the targetFile field is set.
    • getTargetFile

      public FileMetadata getTargetFile()
      .com.cognite.client.dto.FileMetadata target_file = 21;
      Specified by:
      getTargetFile in interface RelationshipOrBuilder
      Returns:
      The targetFile.
    • getTargetFileOrBuilder

      public FileMetadataOrBuilder getTargetFileOrBuilder()
      .com.cognite.client.dto.FileMetadata target_file = 21;
      Specified by:
      getTargetFileOrBuilder in interface RelationshipOrBuilder
    • hasTargetSequence

      public boolean hasTargetSequence()
      .com.cognite.client.dto.SequenceMetadata target_sequence = 22;
      Specified by:
      hasTargetSequence in interface RelationshipOrBuilder
      Returns:
      Whether the targetSequence field is set.
    • getTargetSequence

      public SequenceMetadata getTargetSequence()
      .com.cognite.client.dto.SequenceMetadata target_sequence = 22;
      Specified by:
      getTargetSequence in interface RelationshipOrBuilder
      Returns:
      The targetSequence.
    • getTargetSequenceOrBuilder

      public SequenceMetadataOrBuilder getTargetSequenceOrBuilder()
      .com.cognite.client.dto.SequenceMetadata target_sequence = 22;
      Specified by:
      getTargetSequenceOrBuilder in interface RelationshipOrBuilder
    • 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 Relationship parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Relationship.Builder newBuilder()
    • newBuilder

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

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

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

      public static Relationship getDefaultInstance()
    • parser

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

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