Class Asset.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
com.cognite.client.dto.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.client.dto.Asset
  • Method Details

    • 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>
    • mergeFrom

      public Asset.Builder mergeFrom(Asset other)
    • 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.
    • getExternalId

      public String getExternalId()
      optional string external_id = 2;
      Specified by:
      getExternalId in interface AssetOrBuilder
      Returns:
      The externalId.
    • 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.
    • getName

      public String getName()
      optional string name = 3;
      Specified by:
      getName in interface AssetOrBuilder
      Returns:
      The name.
    • 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.
    • getParentExternalId

      public String getParentExternalId()
      optional string parent_external_id = 5;
      Specified by:
      getParentExternalId in interface AssetOrBuilder
      Returns:
      The parentExternalId.
    • 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.
    • getDescription

      public String getDescription()
      optional string description = 6;
      Specified by:
      getDescription in interface AssetOrBuilder
      Returns:
      The description.
    • 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.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: AssetOrBuilder
      map<string, string> metadata = 10;
      Specified by:
      getMetadataCount in interface AssetOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
      map<string, string> metadata = 10;
      Specified by:
      containsMetadata in interface AssetOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface AssetOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
      map<string, string> metadata = 10;
      Specified by:
      getMetadataMap in interface AssetOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
      map<string, string> metadata = 10;
      Specified by:
      getMetadataOrDefault in interface AssetOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 10;
      Specified by:
      getMetadataOrThrow in interface AssetOrBuilder
    • clearMetadata

      public Asset.Builder clearMetadata()
    • 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.
    • putMetadata

      public Asset.Builder putMetadata(String key, String value)
      map<string, string> metadata = 10;
    • putAllMetadata

      public Asset.Builder putAllMetadata(Map<String,String> values)
      map<string, string> metadata = 10;
    • 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.
    • getSource

      public String getSource()
      optional string source = 12;
      Specified by:
      getSource in interface AssetOrBuilder
      Returns:
      The source.
    • 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.
    • hasGeoLocation

      public boolean hasGeoLocation()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
      Specified by:
      hasGeoLocation in interface AssetOrBuilder
      Returns:
      Whether the geoLocation field is set.
    • getGeoLocation

      public Feature getGeoLocation()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
      Specified by:
      getGeoLocation in interface AssetOrBuilder
      Returns:
      The geoLocation.
    • setGeoLocation

      public Asset.Builder setGeoLocation(Feature value)
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
    • setGeoLocation

      public Asset.Builder setGeoLocation(Feature.Builder builderForValue)
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
    • mergeGeoLocation

      public Asset.Builder mergeGeoLocation(Feature value)
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
    • clearGeoLocation

      public Asset.Builder clearGeoLocation()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
    • getGeoLocationBuilder

      public Feature.Builder getGeoLocationBuilder()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
    • getGeoLocationOrBuilder

      public FeatureOrBuilder getGeoLocationOrBuilder()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
      Specified by:
      getGeoLocationOrBuilder in interface AssetOrBuilder
    • hasAggregates

      public boolean hasAggregates()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
      Specified by:
      hasAggregates in interface AssetOrBuilder
      Returns:
      Whether the aggregates field is set.
    • getAggregates

      public Asset.Aggregates getAggregates()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
      Specified by:
      getAggregates in interface AssetOrBuilder
      Returns:
      The aggregates.
    • setAggregates

      public Asset.Builder setAggregates(Asset.Aggregates value)
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
    • setAggregates

      public Asset.Builder setAggregates(Asset.Aggregates.Builder builderForValue)
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
    • mergeAggregates

      public Asset.Builder mergeAggregates(Asset.Aggregates value)
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
    • clearAggregates

      public Asset.Builder clearAggregates()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
    • getAggregatesBuilder

      public Asset.Aggregates.Builder getAggregatesBuilder()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
    • getAggregatesOrBuilder

      public Asset.AggregatesOrBuilder getAggregatesOrBuilder()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
      Specified by:
      getAggregatesOrBuilder in interface AssetOrBuilder
    • 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>