proto.com.cognite.client.dto.ThreeDAssetMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdf-sdk-java Show documentation
Show all versions of cdf-sdk-java Show documentation
Java SDK for reading and writing from/to CDF resources.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: three_d_model.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.ThreeDAssetMapping}
*/
public final class ThreeDAssetMapping extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.ThreeDAssetMapping)
ThreeDAssetMappingOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThreeDAssetMapping.newBuilder() to construct.
private ThreeDAssetMapping(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThreeDAssetMapping() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThreeDAssetMapping();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThreeDAssetMapping(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nodeId_ = input.readInt64();
break;
}
case 16: {
assetId_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000001;
treeIndex_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000002;
subtreeSize_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDAssetMapping_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDAssetMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ThreeDAssetMapping.class, com.cognite.client.dto.ThreeDAssetMapping.Builder.class);
}
private int bitField0_;
public static final int NODEID_FIELD_NUMBER = 1;
private long nodeId_;
/**
* int64 nodeId = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
public static final int ASSETID_FIELD_NUMBER = 2;
private long assetId_;
/**
* int64 assetId = 2;
* @return The assetId.
*/
@java.lang.Override
public long getAssetId() {
return assetId_;
}
public static final int TREEINDEX_FIELD_NUMBER = 3;
private long treeIndex_;
/**
* optional int64 treeIndex = 3;
* @return Whether the treeIndex field is set.
*/
@java.lang.Override
public boolean hasTreeIndex() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 treeIndex = 3;
* @return The treeIndex.
*/
@java.lang.Override
public long getTreeIndex() {
return treeIndex_;
}
public static final int SUBTREESIZE_FIELD_NUMBER = 4;
private long subtreeSize_;
/**
* optional int64 subtreeSize = 4;
* @return Whether the subtreeSize field is set.
*/
@java.lang.Override
public boolean hasSubtreeSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 subtreeSize = 4;
* @return The subtreeSize.
*/
@java.lang.Override
public long getSubtreeSize() {
return subtreeSize_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0L) {
output.writeInt64(1, nodeId_);
}
if (assetId_ != 0L) {
output.writeInt64(2, assetId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(3, treeIndex_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(4, subtreeSize_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, nodeId_);
}
if (assetId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, assetId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, treeIndex_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, subtreeSize_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.cognite.client.dto.ThreeDAssetMapping)) {
return super.equals(obj);
}
com.cognite.client.dto.ThreeDAssetMapping other = (com.cognite.client.dto.ThreeDAssetMapping) obj;
if (getNodeId()
!= other.getNodeId()) return false;
if (getAssetId()
!= other.getAssetId()) return false;
if (hasTreeIndex() != other.hasTreeIndex()) return false;
if (hasTreeIndex()) {
if (getTreeIndex()
!= other.getTreeIndex()) return false;
}
if (hasSubtreeSize() != other.hasSubtreeSize()) return false;
if (hasSubtreeSize()) {
if (getSubtreeSize()
!= other.getSubtreeSize()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
hash = (37 * hash) + ASSETID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAssetId());
if (hasTreeIndex()) {
hash = (37 * hash) + TREEINDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTreeIndex());
}
if (hasSubtreeSize()) {
hash = (37 * hash) + SUBTREESIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSubtreeSize());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDAssetMapping parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.cognite.client.dto.ThreeDAssetMapping prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.cognite.beam.proto.ThreeDAssetMapping}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.ThreeDAssetMapping)
com.cognite.client.dto.ThreeDAssetMappingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDAssetMapping_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDAssetMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ThreeDAssetMapping.class, com.cognite.client.dto.ThreeDAssetMapping.Builder.class);
}
// Construct using com.cognite.client.dto.ThreeDAssetMapping.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
nodeId_ = 0L;
assetId_ = 0L;
treeIndex_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
subtreeSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDAssetMapping_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDAssetMapping getDefaultInstanceForType() {
return com.cognite.client.dto.ThreeDAssetMapping.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.ThreeDAssetMapping build() {
com.cognite.client.dto.ThreeDAssetMapping result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDAssetMapping buildPartial() {
com.cognite.client.dto.ThreeDAssetMapping result = new com.cognite.client.dto.ThreeDAssetMapping(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.nodeId_ = nodeId_;
result.assetId_ = assetId_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.treeIndex_ = treeIndex_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.subtreeSize_ = subtreeSize_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.cognite.client.dto.ThreeDAssetMapping) {
return mergeFrom((com.cognite.client.dto.ThreeDAssetMapping)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.ThreeDAssetMapping other) {
if (other == com.cognite.client.dto.ThreeDAssetMapping.getDefaultInstance()) return this;
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
if (other.getAssetId() != 0L) {
setAssetId(other.getAssetId());
}
if (other.hasTreeIndex()) {
setTreeIndex(other.getTreeIndex());
}
if (other.hasSubtreeSize()) {
setSubtreeSize(other.getSubtreeSize());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.cognite.client.dto.ThreeDAssetMapping parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.ThreeDAssetMapping) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long nodeId_ ;
/**
* int64 nodeId = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
* int64 nodeId = 1;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int64 nodeId = 1;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = 0L;
onChanged();
return this;
}
private long assetId_ ;
/**
* int64 assetId = 2;
* @return The assetId.
*/
@java.lang.Override
public long getAssetId() {
return assetId_;
}
/**
* int64 assetId = 2;
* @param value The assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetId(long value) {
assetId_ = value;
onChanged();
return this;
}
/**
* int64 assetId = 2;
* @return This builder for chaining.
*/
public Builder clearAssetId() {
assetId_ = 0L;
onChanged();
return this;
}
private long treeIndex_ ;
/**
* optional int64 treeIndex = 3;
* @return Whether the treeIndex field is set.
*/
@java.lang.Override
public boolean hasTreeIndex() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 treeIndex = 3;
* @return The treeIndex.
*/
@java.lang.Override
public long getTreeIndex() {
return treeIndex_;
}
/**
* optional int64 treeIndex = 3;
* @param value The treeIndex to set.
* @return This builder for chaining.
*/
public Builder setTreeIndex(long value) {
bitField0_ |= 0x00000001;
treeIndex_ = value;
onChanged();
return this;
}
/**
* optional int64 treeIndex = 3;
* @return This builder for chaining.
*/
public Builder clearTreeIndex() {
bitField0_ = (bitField0_ & ~0x00000001);
treeIndex_ = 0L;
onChanged();
return this;
}
private long subtreeSize_ ;
/**
* optional int64 subtreeSize = 4;
* @return Whether the subtreeSize field is set.
*/
@java.lang.Override
public boolean hasSubtreeSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 subtreeSize = 4;
* @return The subtreeSize.
*/
@java.lang.Override
public long getSubtreeSize() {
return subtreeSize_;
}
/**
* optional int64 subtreeSize = 4;
* @param value The subtreeSize to set.
* @return This builder for chaining.
*/
public Builder setSubtreeSize(long value) {
bitField0_ |= 0x00000002;
subtreeSize_ = value;
onChanged();
return this;
}
/**
* optional int64 subtreeSize = 4;
* @return This builder for chaining.
*/
public Builder clearSubtreeSize() {
bitField0_ = (bitField0_ & ~0x00000002);
subtreeSize_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.cognite.beam.proto.ThreeDAssetMapping)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ThreeDAssetMapping)
private static final com.cognite.client.dto.ThreeDAssetMapping DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.ThreeDAssetMapping();
}
public static com.cognite.client.dto.ThreeDAssetMapping getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThreeDAssetMapping parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ThreeDAssetMapping(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDAssetMapping getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy