Class AssetLookup.Builder

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

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

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AssetLookup.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AssetLookup.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AssetLookup.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public AssetLookup.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<AssetLookup.Builder>
        Throws:
        IOException
      • hasId

        public boolean hasId()
        optional int64 id = 1;
        Specified by:
        hasId in interface AssetLookupOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
        optional int64 id = 1;
        Specified by:
        getId in interface AssetLookupOrBuilder
        Returns:
        The id.
      • setId

        public AssetLookup.Builder setId​(long value)
        optional int64 id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public AssetLookup.Builder clearId()
        optional int64 id = 1;
        Returns:
        This builder for chaining.
      • hasExternalId

        public boolean hasExternalId()
        optional string external_id = 2;
        Specified by:
        hasExternalId in interface AssetLookupOrBuilder
        Returns:
        Whether the externalId field is set.
      • getExternalIdBytes

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

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

        public AssetLookup.Builder clearExternalId()
        optional string external_id = 2;
        Returns:
        This builder for chaining.
      • setExternalIdBytes

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

        public com.google.protobuf.ByteString getNameBytes()
        string name = 3;
        Specified by:
        getNameBytes in interface AssetLookupOrBuilder
        Returns:
        The bytes for name.
      • setName

        public AssetLookup.Builder setName​(String value)
        string name = 3;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public AssetLookup.Builder clearName()
        string name = 3;
        Returns:
        This builder for chaining.
      • setNameBytes

        public AssetLookup.Builder setNameBytes​(com.google.protobuf.ByteString value)
        string name = 3;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasParentId

        public boolean hasParentId()
        optional int64 parent_id = 4;
        Specified by:
        hasParentId in interface AssetLookupOrBuilder
        Returns:
        Whether the parentId field is set.
      • getParentId

        public long getParentId()
        optional int64 parent_id = 4;
        Specified by:
        getParentId in interface AssetLookupOrBuilder
        Returns:
        The parentId.
      • setParentId

        public AssetLookup.Builder setParentId​(long value)
        optional int64 parent_id = 4;
        Parameters:
        value - The parentId to set.
        Returns:
        This builder for chaining.
      • clearParentId

        public AssetLookup.Builder clearParentId()
        optional int64 parent_id = 4;
        Returns:
        This builder for chaining.
      • hasParentExternalId

        public boolean hasParentExternalId()
        optional string parent_external_id = 5;
        Specified by:
        hasParentExternalId in interface AssetLookupOrBuilder
        Returns:
        Whether the parentExternalId field is set.
      • getParentExternalIdBytes

        public com.google.protobuf.ByteString getParentExternalIdBytes()
        optional string parent_external_id = 5;
        Specified by:
        getParentExternalIdBytes in interface AssetLookupOrBuilder
        Returns:
        The bytes for parentExternalId.
      • setParentExternalId

        public AssetLookup.Builder setParentExternalId​(String value)
        optional string parent_external_id = 5;
        Parameters:
        value - The parentExternalId to set.
        Returns:
        This builder for chaining.
      • clearParentExternalId

        public AssetLookup.Builder clearParentExternalId()
        optional string parent_external_id = 5;
        Returns:
        This builder for chaining.
      • setParentExternalIdBytes

        public AssetLookup.Builder setParentExternalIdBytes​(com.google.protobuf.ByteString value)
        optional string parent_external_id = 5;
        Parameters:
        value - The bytes for parentExternalId to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
        optional string description = 6;
        Specified by:
        hasDescription in interface AssetLookupOrBuilder
        Returns:
        Whether the description field is set.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
        optional string description = 6;
        Specified by:
        getDescriptionBytes in interface AssetLookupOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public AssetLookup.Builder setDescription​(String value)
        optional string description = 6;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public AssetLookup.Builder clearDescription()
        optional string description = 6;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public AssetLookup.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
        optional string description = 6;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasRootId

        public boolean hasRootId()
        optional int64 root_id = 7;
        Specified by:
        hasRootId in interface AssetLookupOrBuilder
        Returns:
        Whether the rootId field is set.
      • getRootId

        public long getRootId()
        optional int64 root_id = 7;
        Specified by:
        getRootId in interface AssetLookupOrBuilder
        Returns:
        The rootId.
      • setRootId

        public AssetLookup.Builder setRootId​(long value)
        optional int64 root_id = 7;
        Parameters:
        value - The rootId to set.
        Returns:
        This builder for chaining.
      • clearRootId

        public AssetLookup.Builder clearRootId()
        optional int64 root_id = 7;
        Returns:
        This builder for chaining.
      • hasCreatedTime

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

        public long getCreatedTime()
        optional int64 created_time = 8;
        Specified by:
        getCreatedTime in interface AssetLookupOrBuilder
        Returns:
        The createdTime.
      • setCreatedTime

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

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

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

        public long getLastUpdatedTime()
        optional int64 last_updated_time = 9;
        Specified by:
        getLastUpdatedTime in interface AssetLookupOrBuilder
        Returns:
        The lastUpdatedTime.
      • setLastUpdatedTime

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

        public AssetLookup.Builder clearLastUpdatedTime()
        optional int64 last_updated_time = 9;
        Returns:
        This builder for chaining.
      • getMutableMetadata

        @Deprecated
        public Map<String,​String> getMutableMetadata()
        Deprecated.
        Use alternate mutation accessors instead.
      • getLabelsList

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

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

        public String getLabels​(int index)
        repeated string labels = 11;
        Specified by:
        getLabels in interface AssetLookupOrBuilder
        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 = 11;
        Specified by:
        getLabelsBytes in interface AssetLookupOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the labels at the given index.
      • setLabels

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

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

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

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

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

        public boolean hasSource()
        optional string source = 12;
        Specified by:
        hasSource in interface AssetLookupOrBuilder
        Returns:
        Whether the source field is set.
      • getSourceBytes

        public com.google.protobuf.ByteString getSourceBytes()
        optional string source = 12;
        Specified by:
        getSourceBytes in interface AssetLookupOrBuilder
        Returns:
        The bytes for source.
      • setSource

        public AssetLookup.Builder setSource​(String value)
        optional string source = 12;
        Parameters:
        value - The source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public AssetLookup.Builder clearSource()
        optional string source = 12;
        Returns:
        This builder for chaining.
      • setSourceBytes

        public AssetLookup.Builder setSourceBytes​(com.google.protobuf.ByteString value)
        optional string source = 12;
        Parameters:
        value - The bytes for source to set.
        Returns:
        This builder for chaining.
      • hasDataSetId

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

        public long getDataSetId()
        optional int64 data_set_id = 13;
        Specified by:
        getDataSetId in interface AssetLookupOrBuilder
        Returns:
        The dataSetId.
      • setDataSetId

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

        public AssetLookup.Builder clearDataSetId()
        optional int64 data_set_id = 13;
        Returns:
        This builder for chaining.
      • hasRootName

        public boolean hasRootName()
         The name of the root asset node in the hierarchy. 
         
        optional string root_name = 14;
        Specified by:
        hasRootName in interface AssetLookupOrBuilder
        Returns:
        Whether the rootName field is set.
      • getRootName

        public String getRootName()
         The name of the root asset node in the hierarchy. 
         
        optional string root_name = 14;
        Specified by:
        getRootName in interface AssetLookupOrBuilder
        Returns:
        The rootName.
      • getRootNameBytes

        public com.google.protobuf.ByteString getRootNameBytes()
         The name of the root asset node in the hierarchy. 
         
        optional string root_name = 14;
        Specified by:
        getRootNameBytes in interface AssetLookupOrBuilder
        Returns:
        The bytes for rootName.
      • setRootName

        public AssetLookup.Builder setRootName​(String value)
         The name of the root asset node in the hierarchy. 
         
        optional string root_name = 14;
        Parameters:
        value - The rootName to set.
        Returns:
        This builder for chaining.
      • clearRootName

        public AssetLookup.Builder clearRootName()
         The name of the root asset node in the hierarchy. 
         
        optional string root_name = 14;
        Returns:
        This builder for chaining.
      • setRootNameBytes

        public AssetLookup.Builder setRootNameBytes​(com.google.protobuf.ByteString value)
         The name of the root asset node in the hierarchy. 
         
        optional string root_name = 14;
        Parameters:
        value - The bytes for rootName to set.
        Returns:
        This builder for chaining.
      • hasAggregates

        public boolean hasAggregates()
        .com.cognite.beam.proto.Asset.Aggregates aggregates = 15;
        Specified by:
        hasAggregates in interface AssetLookupOrBuilder
        Returns:
        Whether the aggregates field is set.
      • clearAggregates

        public AssetLookup.Builder clearAggregates()
        .com.cognite.beam.proto.Asset.Aggregates aggregates = 15;
      • getAggregatesBuilder

        public Asset.Aggregates.Builder getAggregatesBuilder()
        .com.cognite.beam.proto.Asset.Aggregates aggregates = 15;
      • setUnknownFields

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

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