Package com.cognite.client.dto
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 typecom.cognite.beam.proto.Relationship
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Relationship.Builder
Protobuf typecom.cognite.beam.proto.Relationship
static class
Relationship.ResourceType
Protobuf enumcom.cognite.beam.proto.Relationship.ResourceType
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONFIDENCE_FIELD_NUMBER
static int
CREATED_TIME_FIELD_NUMBER
static int
DATA_SET_ID_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
EXTERNAL_ID_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
LAST_UPDATED_TIME_FIELD_NUMBER
static int
SOURCE_EXTERNAL_ID_FIELD_NUMBER
static int
SOURCE_TYPE_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
TARGET_EXTERNAL_ID_FIELD_NUMBER
static int
TARGET_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
FloatValue
getConfidence()
.google.protobuf.FloatValue confidence = 8;
FloatValueOrBuilder
getConfidenceOrBuilder()
.google.protobuf.FloatValue confidence = 8;
Int64Value
getCreatedTime()
.google.protobuf.Int64Value created_time = 11;
Int64ValueOrBuilder
getCreatedTimeOrBuilder()
.google.protobuf.Int64Value created_time = 11;
Int64Value
getDataSetId()
.google.protobuf.Int64Value data_set_id = 9;
Int64ValueOrBuilder
getDataSetIdOrBuilder()
.google.protobuf.Int64Value data_set_id = 9;
static Relationship
getDefaultInstance()
Relationship
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Int64Value
getEndTime()
.google.protobuf.Int64Value end_time = 7;
Int64ValueOrBuilder
getEndTimeOrBuilder()
.google.protobuf.Int64Value end_time = 7;
String
getExternalId()
string external_id = 1;
com.google.protobuf.ByteString
getExternalIdBytes()
string external_id = 1;
String
getLabels(int index)
repeated string labels = 10;
com.google.protobuf.ByteString
getLabelsBytes(int index)
repeated string labels = 10;
int
getLabelsCount()
repeated string labels = 10;
com.google.protobuf.ProtocolStringList
getLabelsList()
repeated string labels = 10;
Int64Value
getLastUpdatedTime()
.google.protobuf.Int64Value last_updated_time = 12;
Int64ValueOrBuilder
getLastUpdatedTimeOrBuilder()
.google.protobuf.Int64Value last_updated_time = 12;
com.google.protobuf.Parser<Relationship>
getParserForType()
int
getSerializedSize()
String
getSourceExternalId()
string source_external_id = 2;
com.google.protobuf.ByteString
getSourceExternalIdBytes()
string source_external_id = 2;
Relationship.ResourceType
getSourceType()
.com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
int
getSourceTypeValue()
.com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
Int64Value
getStartTime()
.google.protobuf.Int64Value start_time = 6;
Int64ValueOrBuilder
getStartTimeOrBuilder()
.google.protobuf.Int64Value start_time = 6;
String
getTargetExternalId()
string target_external_id = 4;
com.google.protobuf.ByteString
getTargetExternalIdBytes()
string target_external_id = 4;
Relationship.ResourceType
getTargetType()
.com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
int
getTargetTypeValue()
.com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
hasConfidence()
.google.protobuf.FloatValue confidence = 8;
boolean
hasCreatedTime()
.google.protobuf.Int64Value created_time = 11;
boolean
hasDataSetId()
.google.protobuf.Int64Value data_set_id = 9;
boolean
hasEndTime()
.google.protobuf.Int64Value end_time = 7;
int
hashCode()
boolean
hasLastUpdatedTime()
.google.protobuf.Int64Value last_updated_time = 12;
boolean
hasStartTime()
.google.protobuf.Int64Value start_time = 6;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Relationship.Builder
newBuilder()
static Relationship.Builder
newBuilder(Relationship prototype)
Relationship.Builder
newBuilderForType()
protected Relationship.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Relationship
parseDelimitedFrom(InputStream input)
static Relationship
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Relationship
parseFrom(byte[] data)
static Relationship
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Relationship
parseFrom(com.google.protobuf.ByteString data)
static Relationship
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Relationship
parseFrom(com.google.protobuf.CodedInputStream input)
static Relationship
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Relationship
parseFrom(InputStream input)
static Relationship
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Relationship
parseFrom(ByteBuffer data)
static Relationship
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Relationship>
parser()
Relationship.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
EXTERNAL_ID_FIELD_NUMBER
public static final int EXTERNAL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_EXTERNAL_ID_FIELD_NUMBER
public static final int SOURCE_EXTERNAL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_TYPE_FIELD_NUMBER
public static final int SOURCE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_EXTERNAL_ID_FIELD_NUMBER
public static final int TARGET_EXTERNAL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_TYPE_FIELD_NUMBER
public static final int TARGET_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_SET_ID_FIELD_NUMBER
public static final int DATA_SET_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATED_TIME_FIELD_NUMBER
public static final int CREATED_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_UPDATED_TIME_FIELD_NUMBER
public static final int LAST_UPDATED_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getExternalId
public String getExternalId()
string external_id = 1;
- Specified by:
getExternalId
in interfaceRelationshipOrBuilder
- Returns:
- The externalId.
-
getExternalIdBytes
public com.google.protobuf.ByteString getExternalIdBytes()
string external_id = 1;
- Specified by:
getExternalIdBytes
in interfaceRelationshipOrBuilder
- Returns:
- The bytes for externalId.
-
getSourceExternalId
public String getSourceExternalId()
string source_external_id = 2;
- Specified by:
getSourceExternalId
in interfaceRelationshipOrBuilder
- Returns:
- The sourceExternalId.
-
getSourceExternalIdBytes
public com.google.protobuf.ByteString getSourceExternalIdBytes()
string source_external_id = 2;
- Specified by:
getSourceExternalIdBytes
in interfaceRelationshipOrBuilder
- Returns:
- The bytes for sourceExternalId.
-
getSourceTypeValue
public int getSourceTypeValue()
.com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
- Specified by:
getSourceTypeValue
in interfaceRelationshipOrBuilder
- Returns:
- The enum numeric value on the wire for sourceType.
-
getSourceType
public Relationship.ResourceType getSourceType()
.com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
- Specified by:
getSourceType
in interfaceRelationshipOrBuilder
- Returns:
- The sourceType.
-
getTargetExternalId
public String getTargetExternalId()
string target_external_id = 4;
- Specified by:
getTargetExternalId
in interfaceRelationshipOrBuilder
- Returns:
- The targetExternalId.
-
getTargetExternalIdBytes
public com.google.protobuf.ByteString getTargetExternalIdBytes()
string target_external_id = 4;
- Specified by:
getTargetExternalIdBytes
in interfaceRelationshipOrBuilder
- Returns:
- The bytes for targetExternalId.
-
getTargetTypeValue
public int getTargetTypeValue()
.com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
- Specified by:
getTargetTypeValue
in interfaceRelationshipOrBuilder
- Returns:
- The enum numeric value on the wire for targetType.
-
getTargetType
public Relationship.ResourceType getTargetType()
.com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
- Specified by:
getTargetType
in interfaceRelationshipOrBuilder
- Returns:
- The targetType.
-
hasStartTime
public boolean hasStartTime()
.google.protobuf.Int64Value start_time = 6;
- Specified by:
hasStartTime
in interfaceRelationshipOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public Int64Value getStartTime()
.google.protobuf.Int64Value start_time = 6;
- Specified by:
getStartTime
in interfaceRelationshipOrBuilder
- Returns:
- The startTime.
-
getStartTimeOrBuilder
public Int64ValueOrBuilder getStartTimeOrBuilder()
.google.protobuf.Int64Value start_time = 6;
- Specified by:
getStartTimeOrBuilder
in interfaceRelationshipOrBuilder
-
hasEndTime
public boolean hasEndTime()
.google.protobuf.Int64Value end_time = 7;
- Specified by:
hasEndTime
in interfaceRelationshipOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public Int64Value getEndTime()
.google.protobuf.Int64Value end_time = 7;
- Specified by:
getEndTime
in interfaceRelationshipOrBuilder
- Returns:
- The endTime.
-
getEndTimeOrBuilder
public Int64ValueOrBuilder getEndTimeOrBuilder()
.google.protobuf.Int64Value end_time = 7;
- Specified by:
getEndTimeOrBuilder
in interfaceRelationshipOrBuilder
-
hasConfidence
public boolean hasConfidence()
.google.protobuf.FloatValue confidence = 8;
- Specified by:
hasConfidence
in interfaceRelationshipOrBuilder
- Returns:
- Whether the confidence field is set.
-
getConfidence
public FloatValue getConfidence()
.google.protobuf.FloatValue confidence = 8;
- Specified by:
getConfidence
in interfaceRelationshipOrBuilder
- Returns:
- The confidence.
-
getConfidenceOrBuilder
public FloatValueOrBuilder getConfidenceOrBuilder()
.google.protobuf.FloatValue confidence = 8;
- Specified by:
getConfidenceOrBuilder
in interfaceRelationshipOrBuilder
-
hasDataSetId
public boolean hasDataSetId()
.google.protobuf.Int64Value data_set_id = 9;
- Specified by:
hasDataSetId
in interfaceRelationshipOrBuilder
- Returns:
- Whether the dataSetId field is set.
-
getDataSetId
public Int64Value getDataSetId()
.google.protobuf.Int64Value data_set_id = 9;
- Specified by:
getDataSetId
in interfaceRelationshipOrBuilder
- Returns:
- The dataSetId.
-
getDataSetIdOrBuilder
public Int64ValueOrBuilder getDataSetIdOrBuilder()
.google.protobuf.Int64Value data_set_id = 9;
- Specified by:
getDataSetIdOrBuilder
in interfaceRelationshipOrBuilder
-
getLabelsList
public com.google.protobuf.ProtocolStringList getLabelsList()
repeated string labels = 10;
- Specified by:
getLabelsList
in interfaceRelationshipOrBuilder
- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()
repeated string labels = 10;
- Specified by:
getLabelsCount
in interfaceRelationshipOrBuilder
- Returns:
- The count of labels.
-
getLabels
public String getLabels(int index)
repeated string labels = 10;
- Specified by:
getLabels
in interfaceRelationshipOrBuilder
- 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 interfaceRelationshipOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
hasCreatedTime
public boolean hasCreatedTime()
.google.protobuf.Int64Value created_time = 11;
- Specified by:
hasCreatedTime
in interfaceRelationshipOrBuilder
- Returns:
- Whether the createdTime field is set.
-
getCreatedTime
public Int64Value getCreatedTime()
.google.protobuf.Int64Value created_time = 11;
- Specified by:
getCreatedTime
in interfaceRelationshipOrBuilder
- Returns:
- The createdTime.
-
getCreatedTimeOrBuilder
public Int64ValueOrBuilder getCreatedTimeOrBuilder()
.google.protobuf.Int64Value created_time = 11;
- Specified by:
getCreatedTimeOrBuilder
in interfaceRelationshipOrBuilder
-
hasLastUpdatedTime
public boolean hasLastUpdatedTime()
.google.protobuf.Int64Value last_updated_time = 12;
- Specified by:
hasLastUpdatedTime
in interfaceRelationshipOrBuilder
- Returns:
- Whether the lastUpdatedTime field is set.
-
getLastUpdatedTime
public Int64Value getLastUpdatedTime()
.google.protobuf.Int64Value last_updated_time = 12;
- Specified by:
getLastUpdatedTime
in interfaceRelationshipOrBuilder
- Returns:
- The lastUpdatedTime.
-
getLastUpdatedTimeOrBuilder
public Int64ValueOrBuilder getLastUpdatedTimeOrBuilder()
.google.protobuf.Int64Value last_updated_time = 12;
- Specified by:
getLastUpdatedTimeOrBuilder
in interfaceRelationshipOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.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 interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Relationship.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Relationship getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-