Class Relationship.Builder

  • All Implemented Interfaces:
    RelationshipOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Relationship

    public static final class Relationship.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Relationship.Builder>
    implements RelationshipOrBuilder
    Protobuf type com.cognite.beam.proto.Relationship
    • Method Detail

      • 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.Builder<Relationship.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public Relationship.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<Relationship.Builder>
      • isInitialized

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

        public Relationship.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<Relationship.Builder>
        Throws:
        IOException
      • getExternalIdBytes

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

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

        public Relationship.Builder clearExternalId()
        string external_id = 1;
        Returns:
        This builder for chaining.
      • setExternalIdBytes

        public Relationship.Builder setExternalIdBytes​(com.google.protobuf.ByteString value)
        string external_id = 1;
        Parameters:
        value - The bytes for externalId to set.
        Returns:
        This builder for chaining.
      • hasSourceExternalId

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

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

        public Relationship.Builder setSourceExternalId​(String value)
        optional string source_external_id = 2;
        Parameters:
        value - The sourceExternalId to set.
        Returns:
        This builder for chaining.
      • clearSourceExternalId

        public Relationship.Builder clearSourceExternalId()
        optional string source_external_id = 2;
        Returns:
        This builder for chaining.
      • setSourceExternalIdBytes

        public Relationship.Builder setSourceExternalIdBytes​(com.google.protobuf.ByteString value)
        optional string source_external_id = 2;
        Parameters:
        value - The bytes for sourceExternalId to set.
        Returns:
        This builder for chaining.
      • getSourceTypeValue

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

        public Relationship.Builder setSourceTypeValue​(int value)
        .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
        Parameters:
        value - The enum numeric value on the wire for sourceType to set.
        Returns:
        This builder for chaining.
      • setSourceType

        public Relationship.Builder setSourceType​(Relationship.ResourceType value)
        .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
        Parameters:
        value - The sourceType to set.
        Returns:
        This builder for chaining.
      • clearSourceType

        public Relationship.Builder clearSourceType()
        .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
        Returns:
        This builder for chaining.
      • hasTargetExternalId

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

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

        public Relationship.Builder setTargetExternalId​(String value)
        optional string target_external_id = 4;
        Parameters:
        value - The targetExternalId to set.
        Returns:
        This builder for chaining.
      • clearTargetExternalId

        public Relationship.Builder clearTargetExternalId()
        optional string target_external_id = 4;
        Returns:
        This builder for chaining.
      • setTargetExternalIdBytes

        public Relationship.Builder setTargetExternalIdBytes​(com.google.protobuf.ByteString value)
        optional string target_external_id = 4;
        Parameters:
        value - The bytes for targetExternalId to set.
        Returns:
        This builder for chaining.
      • getTargetTypeValue

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

        public Relationship.Builder setTargetTypeValue​(int value)
        .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
        Parameters:
        value - The enum numeric value on the wire for targetType to set.
        Returns:
        This builder for chaining.
      • setTargetType

        public Relationship.Builder setTargetType​(Relationship.ResourceType value)
        .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
        Parameters:
        value - The targetType to set.
        Returns:
        This builder for chaining.
      • clearTargetType

        public Relationship.Builder clearTargetType()
        .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
        Returns:
        This builder for chaining.
      • hasStartTime

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

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

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

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

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

        public Relationship.Builder clearEndTime()
        optional int64 end_time = 7;
        Returns:
        This builder for chaining.
      • hasConfidence

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

        public Relationship.Builder setConfidence​(float value)
        optional float confidence = 8;
        Parameters:
        value - The confidence to set.
        Returns:
        This builder for chaining.
      • clearConfidence

        public Relationship.Builder clearConfidence()
        optional float confidence = 8;
        Returns:
        This builder for chaining.
      • hasDataSetId

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

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

        public Relationship.Builder clearDataSetId()
        optional int64 data_set_id = 9;
        Returns:
        This builder for chaining.
      • getLabelsList

        public com.google.protobuf.ProtocolStringList getLabelsList()
        repeated string labels = 10;
        Specified by:
        getLabelsList in interface RelationshipOrBuilder
        Returns:
        A list containing the 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.
      • setLabels

        public Relationship.Builder setLabels​(int index,
                                              String value)
        repeated string labels = 10;
        Parameters:
        index - The index to set the value at.
        value - The labels to set.
        Returns:
        This builder for chaining.
      • addLabels

        public Relationship.Builder addLabels​(String value)
        repeated string labels = 10;
        Parameters:
        value - The labels to add.
        Returns:
        This builder for chaining.
      • addAllLabels

        public Relationship.Builder addAllLabels​(Iterable<String> values)
        repeated string labels = 10;
        Parameters:
        values - The labels to add.
        Returns:
        This builder for chaining.
      • clearLabels

        public Relationship.Builder clearLabels()
        repeated string labels = 10;
        Returns:
        This builder for chaining.
      • addLabelsBytes

        public Relationship.Builder addLabelsBytes​(com.google.protobuf.ByteString value)
        repeated string labels = 10;
        Parameters:
        value - The bytes of the labels to add.
        Returns:
        This builder for chaining.
      • hasCreatedTime

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

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

        public Relationship.Builder clearCreatedTime()
        optional int64 created_time = 11;
        Returns:
        This builder for chaining.
      • hasLastUpdatedTime

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

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

        public Relationship.Builder clearLastUpdatedTime()
        optional int64 last_updated_time = 12;
        Returns:
        This builder for chaining.
      • hasSourceAsset

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

        public Relationship.Builder setSourceAsset​(Asset value)
        .com.cognite.beam.proto.Asset source_asset = 13;
      • mergeSourceAsset

        public Relationship.Builder mergeSourceAsset​(Asset value)
        .com.cognite.beam.proto.Asset source_asset = 13;
      • clearSourceAsset

        public Relationship.Builder clearSourceAsset()
        .com.cognite.beam.proto.Asset source_asset = 13;
      • getSourceAssetBuilder

        public Asset.Builder getSourceAssetBuilder()
        .com.cognite.beam.proto.Asset source_asset = 13;
      • hasSourceEvent

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

        public Relationship.Builder setSourceEvent​(Event value)
        .com.cognite.beam.proto.Event source_event = 14;
      • mergeSourceEvent

        public Relationship.Builder mergeSourceEvent​(Event value)
        .com.cognite.beam.proto.Event source_event = 14;
      • clearSourceEvent

        public Relationship.Builder clearSourceEvent()
        .com.cognite.beam.proto.Event source_event = 14;
      • getSourceEventBuilder

        public Event.Builder getSourceEventBuilder()
        .com.cognite.beam.proto.Event source_event = 14;
      • hasSourceTimeseries

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

        public Relationship.Builder clearSourceTimeseries()
        .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
      • getSourceTimeseriesBuilder

        public TimeseriesMetadata.Builder getSourceTimeseriesBuilder()
        .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
      • hasSourceFile

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

        public Relationship.Builder clearSourceFile()
        .com.cognite.beam.proto.FileMetadata source_file = 16;
      • getSourceFileBuilder

        public FileMetadata.Builder getSourceFileBuilder()
        .com.cognite.beam.proto.FileMetadata source_file = 16;
      • hasSourceSequence

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

        public Relationship.Builder clearSourceSequence()
        .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
      • getSourceSequenceBuilder

        public SequenceMetadata.Builder getSourceSequenceBuilder()
        .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
      • hasTargetAsset

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

        public Relationship.Builder setTargetAsset​(Asset value)
        .com.cognite.beam.proto.Asset target_asset = 18;
      • mergeTargetAsset

        public Relationship.Builder mergeTargetAsset​(Asset value)
        .com.cognite.beam.proto.Asset target_asset = 18;
      • clearTargetAsset

        public Relationship.Builder clearTargetAsset()
        .com.cognite.beam.proto.Asset target_asset = 18;
      • getTargetAssetBuilder

        public Asset.Builder getTargetAssetBuilder()
        .com.cognite.beam.proto.Asset target_asset = 18;
      • hasTargetEvent

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

        public Relationship.Builder setTargetEvent​(Event value)
        .com.cognite.beam.proto.Event target_event = 19;
      • mergeTargetEvent

        public Relationship.Builder mergeTargetEvent​(Event value)
        .com.cognite.beam.proto.Event target_event = 19;
      • clearTargetEvent

        public Relationship.Builder clearTargetEvent()
        .com.cognite.beam.proto.Event target_event = 19;
      • getTargetEventBuilder

        public Event.Builder getTargetEventBuilder()
        .com.cognite.beam.proto.Event target_event = 19;
      • hasTargetTimeseries

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

        public Relationship.Builder clearTargetTimeseries()
        .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
      • getTargetTimeseriesBuilder

        public TimeseriesMetadata.Builder getTargetTimeseriesBuilder()
        .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
      • hasTargetFile

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

        public Relationship.Builder clearTargetFile()
        .com.cognite.beam.proto.FileMetadata target_file = 21;
      • getTargetFileBuilder

        public FileMetadata.Builder getTargetFileBuilder()
        .com.cognite.beam.proto.FileMetadata target_file = 21;
      • hasTargetSequence

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

        public Relationship.Builder clearTargetSequence()
        .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
      • getTargetSequenceBuilder

        public SequenceMetadata.Builder getTargetSequenceBuilder()
        .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
      • setUnknownFields

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

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