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.
      • getSourceExternalIdBytes

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

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

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

        public Relationship.Builder setSourceExternalIdBytes​(com.google.protobuf.ByteString value)
        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.
      • getTargetExternalIdBytes

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

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

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

        public Relationship.Builder setTargetExternalIdBytes​(com.google.protobuf.ByteString value)
        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()
        .google.protobuf.Int64Value start_time = 6;
        Specified by:
        hasStartTime in interface RelationshipOrBuilder
        Returns:
        Whether the startTime field is set.
      • clearStartTime

        public Relationship.Builder clearStartTime()
        .google.protobuf.Int64Value start_time = 6;
      • getStartTimeBuilder

        public Int64Value.Builder getStartTimeBuilder()
        .google.protobuf.Int64Value start_time = 6;
      • hasEndTime

        public boolean hasEndTime()
        .google.protobuf.Int64Value end_time = 7;
        Specified by:
        hasEndTime in interface RelationshipOrBuilder
        Returns:
        Whether the endTime field is set.
      • clearEndTime

        public Relationship.Builder clearEndTime()
        .google.protobuf.Int64Value end_time = 7;
      • getEndTimeBuilder

        public Int64Value.Builder getEndTimeBuilder()
        .google.protobuf.Int64Value end_time = 7;
      • hasConfidence

        public boolean hasConfidence()
        .google.protobuf.FloatValue confidence = 8;
        Specified by:
        hasConfidence in interface RelationshipOrBuilder
        Returns:
        Whether the confidence field is set.
      • clearConfidence

        public Relationship.Builder clearConfidence()
        .google.protobuf.FloatValue confidence = 8;
      • getConfidenceBuilder

        public FloatValue.Builder getConfidenceBuilder()
        .google.protobuf.FloatValue confidence = 8;
      • hasDataSetId

        public boolean hasDataSetId()
        .google.protobuf.Int64Value data_set_id = 9;
        Specified by:
        hasDataSetId in interface RelationshipOrBuilder
        Returns:
        Whether the dataSetId field is set.
      • clearDataSetId

        public Relationship.Builder clearDataSetId()
        .google.protobuf.Int64Value data_set_id = 9;
      • getDataSetIdBuilder

        public Int64Value.Builder getDataSetIdBuilder()
        .google.protobuf.Int64Value data_set_id = 9;
      • 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()
        .google.protobuf.Int64Value created_time = 11;
        Specified by:
        hasCreatedTime in interface RelationshipOrBuilder
        Returns:
        Whether the createdTime field is set.
      • clearCreatedTime

        public Relationship.Builder clearCreatedTime()
        .google.protobuf.Int64Value created_time = 11;
      • getCreatedTimeBuilder

        public Int64Value.Builder getCreatedTimeBuilder()
        .google.protobuf.Int64Value created_time = 11;
      • hasLastUpdatedTime

        public boolean hasLastUpdatedTime()
        .google.protobuf.Int64Value last_updated_time = 12;
        Specified by:
        hasLastUpdatedTime in interface RelationshipOrBuilder
        Returns:
        Whether the lastUpdatedTime field is set.
      • clearLastUpdatedTime

        public Relationship.Builder clearLastUpdatedTime()
        .google.protobuf.Int64Value last_updated_time = 12;
      • getLastUpdatedTimeBuilder

        public Int64Value.Builder getLastUpdatedTimeBuilder()
        .google.protobuf.Int64Value last_updated_time = 12;
      • 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>