Package com.cognite.client.dto
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 Summary
Modifier and TypeMethodDescriptionaddAllLabels(Iterable<String> values) repeated string labels = 11;repeated string labels = 11;addLabelsBytes(com.google.protobuf.ByteString value) repeated string labels = 11;build()clear().com.cognite.client.dto.Asset.Aggregates aggregates = 15;optional int64 created_time = 8;optional int64 data_set_id = 13;optional string description = 6;optional string external_id = 2;optional .com.cognite.client.dto.geo.Feature geo_location = 14;clearId()optional int64 id = 1;repeated string labels = 11;optional int64 last_updated_time = 9;optional string name = 3;optional string parent_external_id = 5;optional int64 parent_id = 4;optional int64 root_id = 7;optional string source = 12;booleancontainsMetadata(String key) map<string, string> metadata = 10;.com.cognite.client.dto.Asset.Aggregates aggregates = 15;.com.cognite.client.dto.Asset.Aggregates aggregates = 15;.com.cognite.client.dto.Asset.Aggregates aggregates = 15;longoptional int64 created_time = 8;longoptional int64 data_set_id = 13;optional string description = 6;com.google.protobuf.ByteStringoptional string description = 6;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional string external_id = 2;com.google.protobuf.ByteStringoptional string external_id = 2;optional .com.cognite.client.dto.geo.Feature geo_location = 14;optional .com.cognite.client.dto.geo.Feature geo_location = 14;optional .com.cognite.client.dto.geo.Feature geo_location = 14;longgetId()optional int64 id = 1;getLabels(int index) repeated string labels = 11;com.google.protobuf.ByteStringgetLabelsBytes(int index) repeated string labels = 11;intrepeated string labels = 11;com.google.protobuf.ProtocolStringListrepeated string labels = 11;longoptional int64 last_updated_time = 9;Deprecated.intmap<string, string> metadata = 10;map<string, string> metadata = 10;getMetadataOrDefault(String key, String defaultValue) map<string, string> metadata = 10;getMetadataOrThrow(String key) map<string, string> metadata = 10;Deprecated.getName()optional string name = 3;com.google.protobuf.ByteStringoptional string name = 3;optional string parent_external_id = 5;com.google.protobuf.ByteStringoptional string parent_external_id = 5;longoptional int64 parent_id = 4;longoptional int64 root_id = 7;optional string source = 12;com.google.protobuf.ByteStringoptional string source = 12;boolean.com.cognite.client.dto.Asset.Aggregates aggregates = 15;booleanoptional int64 created_time = 8;booleanoptional int64 data_set_id = 13;booleanoptional string description = 6;booleanoptional string external_id = 2;booleanoptional .com.cognite.client.dto.geo.Feature geo_location = 14;booleanhasId()optional int64 id = 1;booleanoptional int64 last_updated_time = 9;booleanhasName()optional string name = 3;booleanoptional string parent_external_id = 5;booleanoptional int64 parent_id = 4;booleanoptional int64 root_id = 7;booleanoptional string source = 12;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeAggregates(Asset.Aggregates value) .com.cognite.client.dto.Asset.Aggregates aggregates = 15;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGeoLocation(Feature value) optional .com.cognite.client.dto.geo.Feature geo_location = 14;final Asset.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata(Map<String, String> values) map<string, string> metadata = 10;putMetadata(String key, String value) map<string, string> metadata = 10;removeMetadata(String key) map<string, string> metadata = 10;setAggregates(Asset.Aggregates value) .com.cognite.client.dto.Asset.Aggregates aggregates = 15;setAggregates(Asset.Aggregates.Builder builderForValue) .com.cognite.client.dto.Asset.Aggregates aggregates = 15;setCreatedTime(long value) optional int64 created_time = 8;setDataSetId(long value) optional int64 data_set_id = 13;setDescription(String value) optional string description = 6;setDescriptionBytes(com.google.protobuf.ByteString value) optional string description = 6;setExternalId(String value) optional string external_id = 2;setExternalIdBytes(com.google.protobuf.ByteString value) optional string external_id = 2;setGeoLocation(Feature value) optional .com.cognite.client.dto.geo.Feature geo_location = 14;setGeoLocation(Feature.Builder builderForValue) optional .com.cognite.client.dto.geo.Feature geo_location = 14;setId(long value) optional int64 id = 1;repeated string labels = 11;setLastUpdatedTime(long value) optional int64 last_updated_time = 9;optional string name = 3;setNameBytes(com.google.protobuf.ByteString value) optional string name = 3;setParentExternalId(String value) optional string parent_external_id = 5;setParentExternalIdBytes(com.google.protobuf.ByteString value) optional string parent_external_id = 5;setParentId(long value) optional int64 parent_id = 4;setRootId(long value) optional int64 root_id = 7;optional string source = 12;setSourceBytes(com.google.protobuf.ByteString value) optional string source = 12;final Asset.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Asset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Asset.Builder>- Throws:
IOException
-
hasId
public boolean hasId()optional int64 id = 1;- Specified by:
hasIdin interfaceAssetOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()optional int64 id = 1;- Specified by:
getIdin interfaceAssetOrBuilder- Returns:
- The id.
-
setId
optional int64 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
optional int64 id = 1;- Returns:
- This builder for chaining.
-
hasExternalId
public boolean hasExternalId()optional string external_id = 2;- Specified by:
hasExternalIdin interfaceAssetOrBuilder- Returns:
- Whether the externalId field is set.
-
getExternalId
optional string external_id = 2;- Specified by:
getExternalIdin interfaceAssetOrBuilder- Returns:
- The externalId.
-
getExternalIdBytes
public com.google.protobuf.ByteString getExternalIdBytes()optional string external_id = 2;- Specified by:
getExternalIdBytesin interfaceAssetOrBuilder- Returns:
- The bytes for externalId.
-
setExternalId
optional string external_id = 2;- Parameters:
value- The externalId to set.- Returns:
- This builder for chaining.
-
clearExternalId
optional string external_id = 2;- Returns:
- This builder for chaining.
-
setExternalIdBytes
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:
hasNamein interfaceAssetOrBuilder- Returns:
- Whether the name field is set.
-
getName
optional string name = 3;- Specified by:
getNamein interfaceAssetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 3;- Specified by:
getNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for name.
-
setName
optional string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
optional string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
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:
hasParentIdin interfaceAssetOrBuilder- Returns:
- Whether the parentId field is set.
-
getParentId
public long getParentId()optional int64 parent_id = 4;- Specified by:
getParentIdin interfaceAssetOrBuilder- Returns:
- The parentId.
-
setParentId
optional int64 parent_id = 4;- Parameters:
value- The parentId to set.- Returns:
- This builder for chaining.
-
clearParentId
optional int64 parent_id = 4;- Returns:
- This builder for chaining.
-
hasParentExternalId
public boolean hasParentExternalId()optional string parent_external_id = 5;- Specified by:
hasParentExternalIdin interfaceAssetOrBuilder- Returns:
- Whether the parentExternalId field is set.
-
getParentExternalId
optional string parent_external_id = 5;- Specified by:
getParentExternalIdin interfaceAssetOrBuilder- Returns:
- The parentExternalId.
-
getParentExternalIdBytes
public com.google.protobuf.ByteString getParentExternalIdBytes()optional string parent_external_id = 5;- Specified by:
getParentExternalIdBytesin interfaceAssetOrBuilder- Returns:
- The bytes for parentExternalId.
-
setParentExternalId
optional string parent_external_id = 5;- Parameters:
value- The parentExternalId to set.- Returns:
- This builder for chaining.
-
clearParentExternalId
optional string parent_external_id = 5;- Returns:
- This builder for chaining.
-
setParentExternalIdBytes
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:
hasDescriptionin interfaceAssetOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
optional string description = 6;- Specified by:
getDescriptionin interfaceAssetOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()optional string description = 6;- Specified by:
getDescriptionBytesin interfaceAssetOrBuilder- Returns:
- The bytes for description.
-
setDescription
optional string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
optional string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
hasRootIdin interfaceAssetOrBuilder- Returns:
- Whether the rootId field is set.
-
getRootId
public long getRootId()optional int64 root_id = 7;- Specified by:
getRootIdin interfaceAssetOrBuilder- Returns:
- The rootId.
-
setRootId
optional int64 root_id = 7;- Parameters:
value- The rootId to set.- Returns:
- This builder for chaining.
-
clearRootId
optional int64 root_id = 7;- Returns:
- This builder for chaining.
-
hasCreatedTime
public boolean hasCreatedTime()optional int64 created_time = 8;- Specified by:
hasCreatedTimein interfaceAssetOrBuilder- Returns:
- Whether the createdTime field is set.
-
getCreatedTime
public long getCreatedTime()optional int64 created_time = 8;- Specified by:
getCreatedTimein interfaceAssetOrBuilder- Returns:
- The createdTime.
-
setCreatedTime
optional int64 created_time = 8;- Parameters:
value- The createdTime to set.- Returns:
- This builder for chaining.
-
clearCreatedTime
optional int64 created_time = 8;- Returns:
- This builder for chaining.
-
hasLastUpdatedTime
public boolean hasLastUpdatedTime()optional int64 last_updated_time = 9;- Specified by:
hasLastUpdatedTimein interfaceAssetOrBuilder- Returns:
- Whether the lastUpdatedTime field is set.
-
getLastUpdatedTime
public long getLastUpdatedTime()optional int64 last_updated_time = 9;- Specified by:
getLastUpdatedTimein interfaceAssetOrBuilder- Returns:
- The lastUpdatedTime.
-
setLastUpdatedTime
optional int64 last_updated_time = 9;- Parameters:
value- The lastUpdatedTime to set.- Returns:
- This builder for chaining.
-
clearLastUpdatedTime
optional int64 last_updated_time = 9;- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:AssetOrBuildermap<string, string> metadata = 10;- Specified by:
getMetadataCountin interfaceAssetOrBuilder
-
containsMetadata
map<string, string> metadata = 10;- Specified by:
containsMetadatain interfaceAssetOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceAssetOrBuilder
-
getMetadataMap
map<string, string> metadata = 10;- Specified by:
getMetadataMapin interfaceAssetOrBuilder
-
getMetadataOrDefault
map<string, string> metadata = 10;- Specified by:
getMetadataOrDefaultin interfaceAssetOrBuilder
-
getMetadataOrThrow
map<string, string> metadata = 10;- Specified by:
getMetadataOrThrowin interfaceAssetOrBuilder
-
clearMetadata
-
removeMetadata
map<string, string> metadata = 10; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
map<string, string> metadata = 10; -
putAllMetadata
map<string, string> metadata = 10; -
getLabelsList
public com.google.protobuf.ProtocolStringList getLabelsList()repeated string labels = 11;- Specified by:
getLabelsListin interfaceAssetOrBuilder- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()repeated string labels = 11;- Specified by:
getLabelsCountin interfaceAssetOrBuilder- Returns:
- The count of labels.
-
getLabels
repeated string labels = 11;- Specified by:
getLabelsin interfaceAssetOrBuilder- 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:
getLabelsBytesin interfaceAssetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
setLabels
repeated string labels = 11;- Parameters:
index- The index to set the value at.value- The labels to set.- Returns:
- This builder for chaining.
-
addLabels
repeated string labels = 11;- Parameters:
value- The labels to add.- Returns:
- This builder for chaining.
-
addAllLabels
repeated string labels = 11;- Parameters:
values- The labels to add.- Returns:
- This builder for chaining.
-
clearLabels
repeated string labels = 11;- Returns:
- This builder for chaining.
-
addLabelsBytes
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:
hasSourcein interfaceAssetOrBuilder- Returns:
- Whether the source field is set.
-
getSource
optional string source = 12;- Specified by:
getSourcein interfaceAssetOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()optional string source = 12;- Specified by:
getSourceBytesin interfaceAssetOrBuilder- Returns:
- The bytes for source.
-
setSource
optional string source = 12;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
optional string source = 12;- Returns:
- This builder for chaining.
-
setSourceBytes
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:
hasDataSetIdin interfaceAssetOrBuilder- Returns:
- Whether the dataSetId field is set.
-
getDataSetId
public long getDataSetId()optional int64 data_set_id = 13;- Specified by:
getDataSetIdin interfaceAssetOrBuilder- Returns:
- The dataSetId.
-
setDataSetId
optional int64 data_set_id = 13;- Parameters:
value- The dataSetId to set.- Returns:
- This builder for chaining.
-
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:
hasGeoLocationin interfaceAssetOrBuilder- Returns:
- Whether the geoLocation field is set.
-
getGeoLocation
optional .com.cognite.client.dto.geo.Feature geo_location = 14;- Specified by:
getGeoLocationin interfaceAssetOrBuilder- Returns:
- The geoLocation.
-
setGeoLocation
optional .com.cognite.client.dto.geo.Feature geo_location = 14; -
setGeoLocation
optional .com.cognite.client.dto.geo.Feature geo_location = 14; -
mergeGeoLocation
optional .com.cognite.client.dto.geo.Feature geo_location = 14; -
clearGeoLocation
optional .com.cognite.client.dto.geo.Feature geo_location = 14; -
getGeoLocationBuilder
optional .com.cognite.client.dto.geo.Feature geo_location = 14; -
getGeoLocationOrBuilder
optional .com.cognite.client.dto.geo.Feature geo_location = 14;- Specified by:
getGeoLocationOrBuilderin interfaceAssetOrBuilder
-
hasAggregates
public boolean hasAggregates().com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
hasAggregatesin interfaceAssetOrBuilder- Returns:
- Whether the aggregates field is set.
-
getAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
getAggregatesin interfaceAssetOrBuilder- Returns:
- The aggregates.
-
setAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15; -
setAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15; -
mergeAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15; -
clearAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15; -
getAggregatesBuilder
.com.cognite.client.dto.Asset.Aggregates aggregates = 15; -
getAggregatesOrBuilder
.com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
getAggregatesOrBuilderin interfaceAssetOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
-