Class Asset.Builder

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

    public static final class Asset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
    implements AssetOrBuilder
    Protobuf type com.cognite.beam.proto.Asset
    • 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<Asset.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the externalId field is set.
      • getExternalIdBytes

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

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

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

        public Asset.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.
      • hasName

        public boolean hasName()
        optional string name = 3;
        Specified by:
        hasName in interface AssetOrBuilder
        Returns:
        Whether the name field is set.
      • getNameBytes

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

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

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

        public Asset.Builder setNameBytes​(com.google.protobuf.ByteString value)
        optional 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 AssetOrBuilder
        Returns:
        Whether the parentId field is set.
      • getParentId

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

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

        public Asset.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 AssetOrBuilder
        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 AssetOrBuilder
        Returns:
        The bytes for parentExternalId.
      • setParentExternalId

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the description field is set.
      • getDescriptionBytes

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

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the rootId field is set.
      • getRootId

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the createdTime field is set.
      • getCreatedTime

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the lastUpdatedTime field is set.
      • getLastUpdatedTime

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

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

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

        public Asset.Builder removeMetadata​(String key)
        map<string, string> metadata = 10;
      • 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 AssetOrBuilder
        Returns:
        A list containing the labels.
      • getLabelsCount

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

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

        public Asset.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 Asset.Builder addLabels​(String value)
        repeated string labels = 11;
        Parameters:
        value - The labels to add.
        Returns:
        This builder for chaining.
      • addAllLabels

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the source field is set.
      • getSourceBytes

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

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

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

        public Asset.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 AssetOrBuilder
        Returns:
        Whether the dataSetId field is set.
      • getDataSetId

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

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

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

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

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

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

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

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