proto.com.cognite.client.dto.ThreeDModelRevision 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.ThreeDModelRevision}
*/
public final class ThreeDModelRevision extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.ThreeDModelRevision)
ThreeDModelRevisionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThreeDModelRevision.newBuilder() to construct.
private ThreeDModelRevision(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThreeDModelRevision() {
status_ = "";
thumbnailURL_ = "";
rotation_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThreeDModelRevision();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThreeDModelRevision(
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: {
bitField0_ |= 0x00000001;
id_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
fileId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
status_ = s;
break;
}
case 32: {
bitField0_ |= 0x00000008;
thumbnailThreedFileId_ = input.readInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
thumbnailURL_ = s;
break;
}
case 48: {
bitField0_ |= 0x00000020;
assetMappingCount_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000040;
createdTime_ = input.readInt64();
break;
}
case 64: {
bitField0_ |= 0x00000080;
published_ = input.readBool();
break;
}
case 74: {
com.cognite.client.dto.ThreeDModelRevision.Camera.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) != 0)) {
subBuilder = camera_.toBuilder();
}
camera_ = input.readMessage(com.cognite.client.dto.ThreeDModelRevision.Camera.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(camera_);
camera_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 81: {
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
rotation_ = newDoubleList();
mutable_bitField0_ |= 0x00000200;
}
rotation_.addDouble(input.readDouble());
break;
}
case 82: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000200) != 0) && input.getBytesUntilLimit() > 0) {
rotation_ = newDoubleList();
mutable_bitField0_ |= 0x00000200;
}
while (input.getBytesUntilLimit() > 0) {
rotation_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000400;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
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 {
if (((mutable_bitField0_ & 0x00000200) != 0)) {
rotation_.makeImmutable(); // C
}
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_ThreeDModelRevision_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 11:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ThreeDModelRevision.class, com.cognite.client.dto.ThreeDModelRevision.Builder.class);
}
public interface CameraOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.ThreeDModelRevision.Camera)
com.google.protobuf.MessageOrBuilder {
/**
* repeated double target = 1;
* @return A list containing the target.
*/
java.util.List getTargetList();
/**
* repeated double target = 1;
* @return The count of target.
*/
int getTargetCount();
/**
* repeated double target = 1;
* @param index The index of the element to return.
* @return The target at the given index.
*/
double getTarget(int index);
/**
* repeated double position = 2;
* @return A list containing the position.
*/
java.util.List getPositionList();
/**
* repeated double position = 2;
* @return The count of position.
*/
int getPositionCount();
/**
* repeated double position = 2;
* @param index The index of the element to return.
* @return The position at the given index.
*/
double getPosition(int index);
}
/**
* Protobuf type {@code com.cognite.beam.proto.ThreeDModelRevision.Camera}
*/
public static final class Camera extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.ThreeDModelRevision.Camera)
CameraOrBuilder {
private static final long serialVersionUID = 0L;
// Use Camera.newBuilder() to construct.
private Camera(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Camera() {
target_ = emptyDoubleList();
position_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Camera();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Camera(
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 9: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
target_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
target_.addDouble(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
target_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
target_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
position_ = newDoubleList();
mutable_bitField0_ |= 0x00000002;
}
position_.addDouble(input.readDouble());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
position_ = newDoubleList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
position_.addDouble(input.readDouble());
}
input.popLimit(limit);
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
target_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
position_.makeImmutable(); // C
}
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_ThreeDModelRevision_Camera_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_Camera_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ThreeDModelRevision.Camera.class, com.cognite.client.dto.ThreeDModelRevision.Camera.Builder.class);
}
public static final int TARGET_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.DoubleList target_;
/**
* repeated double target = 1;
* @return A list containing the target.
*/
@java.lang.Override
public java.util.List
getTargetList() {
return target_;
}
/**
* repeated double target = 1;
* @return The count of target.
*/
public int getTargetCount() {
return target_.size();
}
/**
* repeated double target = 1;
* @param index The index of the element to return.
* @return The target at the given index.
*/
public double getTarget(int index) {
return target_.getDouble(index);
}
private int targetMemoizedSerializedSize = -1;
public static final int POSITION_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.DoubleList position_;
/**
* repeated double position = 2;
* @return A list containing the position.
*/
@java.lang.Override
public java.util.List
getPositionList() {
return position_;
}
/**
* repeated double position = 2;
* @return The count of position.
*/
public int getPositionCount() {
return position_.size();
}
/**
* repeated double position = 2;
* @param index The index of the element to return.
* @return The position at the given index.
*/
public double getPosition(int index) {
return position_.getDouble(index);
}
private int positionMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getTargetList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(targetMemoizedSerializedSize);
}
for (int i = 0; i < target_.size(); i++) {
output.writeDoubleNoTag(target_.getDouble(i));
}
if (getPositionList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(positionMemoizedSerializedSize);
}
for (int i = 0; i < position_.size(); i++) {
output.writeDoubleNoTag(position_.getDouble(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getTargetList().size();
size += dataSize;
if (!getTargetList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
targetMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getPositionList().size();
size += dataSize;
if (!getPositionList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
positionMemoizedSerializedSize = dataSize;
}
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.ThreeDModelRevision.Camera)) {
return super.equals(obj);
}
com.cognite.client.dto.ThreeDModelRevision.Camera other = (com.cognite.client.dto.ThreeDModelRevision.Camera) obj;
if (!getTargetList()
.equals(other.getTargetList())) return false;
if (!getPositionList()
.equals(other.getPositionList())) 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();
if (getTargetCount() > 0) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTargetList().hashCode();
}
if (getPositionCount() > 0) {
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPositionList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera 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.ThreeDModelRevision.Camera parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera 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.ThreeDModelRevision.Camera parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera 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.ThreeDModelRevision.Camera parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera 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.ThreeDModelRevision.Camera parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera 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.ThreeDModelRevision.Camera 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.ThreeDModelRevision.Camera}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.ThreeDModelRevision.Camera)
com.cognite.client.dto.ThreeDModelRevision.CameraOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_Camera_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_Camera_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ThreeDModelRevision.Camera.class, com.cognite.client.dto.ThreeDModelRevision.Camera.Builder.class);
}
// Construct using com.cognite.client.dto.ThreeDModelRevision.Camera.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();
target_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
position_ = emptyDoubleList();
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_ThreeDModelRevision_Camera_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision.Camera getDefaultInstanceForType() {
return com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision.Camera build() {
com.cognite.client.dto.ThreeDModelRevision.Camera result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision.Camera buildPartial() {
com.cognite.client.dto.ThreeDModelRevision.Camera result = new com.cognite.client.dto.ThreeDModelRevision.Camera(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
target_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.target_ = target_;
if (((bitField0_ & 0x00000002) != 0)) {
position_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.position_ = position_;
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.ThreeDModelRevision.Camera) {
return mergeFrom((com.cognite.client.dto.ThreeDModelRevision.Camera)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.ThreeDModelRevision.Camera other) {
if (other == com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance()) return this;
if (!other.target_.isEmpty()) {
if (target_.isEmpty()) {
target_ = other.target_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTargetIsMutable();
target_.addAll(other.target_);
}
onChanged();
}
if (!other.position_.isEmpty()) {
if (position_.isEmpty()) {
position_ = other.position_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePositionIsMutable();
position_.addAll(other.position_);
}
onChanged();
}
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.ThreeDModelRevision.Camera parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.ThreeDModelRevision.Camera) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.DoubleList target_ = emptyDoubleList();
private void ensureTargetIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
target_ = mutableCopy(target_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated double target = 1;
* @return A list containing the target.
*/
public java.util.List
getTargetList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(target_) : target_;
}
/**
* repeated double target = 1;
* @return The count of target.
*/
public int getTargetCount() {
return target_.size();
}
/**
* repeated double target = 1;
* @param index The index of the element to return.
* @return The target at the given index.
*/
public double getTarget(int index) {
return target_.getDouble(index);
}
/**
* repeated double target = 1;
* @param index The index to set the value at.
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
int index, double value) {
ensureTargetIsMutable();
target_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double target = 1;
* @param value The target to add.
* @return This builder for chaining.
*/
public Builder addTarget(double value) {
ensureTargetIsMutable();
target_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double target = 1;
* @param values The target to add.
* @return This builder for chaining.
*/
public Builder addAllTarget(
java.lang.Iterable extends java.lang.Double> values) {
ensureTargetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, target_);
onChanged();
return this;
}
/**
* repeated double target = 1;
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList position_ = emptyDoubleList();
private void ensurePositionIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
position_ = mutableCopy(position_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated double position = 2;
* @return A list containing the position.
*/
public java.util.List
getPositionList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(position_) : position_;
}
/**
* repeated double position = 2;
* @return The count of position.
*/
public int getPositionCount() {
return position_.size();
}
/**
* repeated double position = 2;
* @param index The index of the element to return.
* @return The position at the given index.
*/
public double getPosition(int index) {
return position_.getDouble(index);
}
/**
* repeated double position = 2;
* @param index The index to set the value at.
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPosition(
int index, double value) {
ensurePositionIsMutable();
position_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double position = 2;
* @param value The position to add.
* @return This builder for chaining.
*/
public Builder addPosition(double value) {
ensurePositionIsMutable();
position_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double position = 2;
* @param values The position to add.
* @return This builder for chaining.
*/
public Builder addAllPosition(
java.lang.Iterable extends java.lang.Double> values) {
ensurePositionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, position_);
onChanged();
return this;
}
/**
* repeated double position = 2;
* @return This builder for chaining.
*/
public Builder clearPosition() {
position_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000002);
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.ThreeDModelRevision.Camera)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ThreeDModelRevision.Camera)
private static final com.cognite.client.dto.ThreeDModelRevision.Camera DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.ThreeDModelRevision.Camera();
}
public static com.cognite.client.dto.ThreeDModelRevision.Camera getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Camera parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Camera(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.ThreeDModelRevision.Camera getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* optional int64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int FILE_ID_FIELD_NUMBER = 2;
private long fileId_;
/**
* optional int64 file_id = 2;
* @return Whether the fileId field is set.
*/
@java.lang.Override
public boolean hasFileId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 file_id = 2;
* @return The fileId.
*/
@java.lang.Override
public long getFileId() {
return fileId_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private volatile java.lang.Object status_;
/**
* optional string status = 3;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string status = 3;
* @return The status.
*/
@java.lang.Override
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
}
}
/**
* optional string status = 3;
* @return The bytes for status.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int THUMBNAIL_THREED_FILE_ID_FIELD_NUMBER = 4;
private long thumbnailThreedFileId_;
/**
* optional int64 thumbnail_threed_file_id = 4;
* @return Whether the thumbnailThreedFileId field is set.
*/
@java.lang.Override
public boolean hasThumbnailThreedFileId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 thumbnail_threed_file_id = 4;
* @return The thumbnailThreedFileId.
*/
@java.lang.Override
public long getThumbnailThreedFileId() {
return thumbnailThreedFileId_;
}
public static final int THUMBNAIL_URL_FIELD_NUMBER = 5;
private volatile java.lang.Object thumbnailURL_;
/**
* optional string thumbnail_URL = 5;
* @return Whether the thumbnailURL field is set.
*/
@java.lang.Override
public boolean hasThumbnailURL() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string thumbnail_URL = 5;
* @return The thumbnailURL.
*/
@java.lang.Override
public java.lang.String getThumbnailURL() {
java.lang.Object ref = thumbnailURL_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
thumbnailURL_ = s;
return s;
}
}
/**
* optional string thumbnail_URL = 5;
* @return The bytes for thumbnailURL.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getThumbnailURLBytes() {
java.lang.Object ref = thumbnailURL_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thumbnailURL_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSET_MAPPING_COUNT_FIELD_NUMBER = 6;
private long assetMappingCount_;
/**
* optional int64 asset_mapping_count = 6;
* @return Whether the assetMappingCount field is set.
*/
@java.lang.Override
public boolean hasAssetMappingCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 asset_mapping_count = 6;
* @return The assetMappingCount.
*/
@java.lang.Override
public long getAssetMappingCount() {
return assetMappingCount_;
}
public static final int CREATED_TIME_FIELD_NUMBER = 7;
private long createdTime_;
/**
* optional int64 created_time = 7;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 created_time = 7;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
public static final int PUBLISHED_FIELD_NUMBER = 8;
private boolean published_;
/**
* optional bool published = 8;
* @return Whether the published field is set.
*/
@java.lang.Override
public boolean hasPublished() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool published = 8;
* @return The published.
*/
@java.lang.Override
public boolean getPublished() {
return published_;
}
public static final int CAMERA_FIELD_NUMBER = 9;
private com.cognite.client.dto.ThreeDModelRevision.Camera camera_;
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
* @return Whether the camera field is set.
*/
@java.lang.Override
public boolean hasCamera() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
* @return The camera.
*/
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision.Camera getCamera() {
return camera_ == null ? com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance() : camera_;
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision.CameraOrBuilder getCameraOrBuilder() {
return camera_ == null ? com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance() : camera_;
}
public static final int ROTATION_FIELD_NUMBER = 10;
private com.google.protobuf.Internal.DoubleList rotation_;
/**
* repeated double rotation = 10;
* @return A list containing the rotation.
*/
@java.lang.Override
public java.util.List
getRotationList() {
return rotation_;
}
/**
* repeated double rotation = 10;
* @return The count of rotation.
*/
public int getRotationCount() {
return rotation_.size();
}
/**
* repeated double rotation = 10;
* @param index The index of the element to return.
* @return The rotation at the given index.
*/
public double getRotation(int index) {
return rotation_.getDouble(index);
}
private int rotationMemoizedSerializedSize = -1;
public static final int METADATA_FIELD_NUMBER = 11;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, fileId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, status_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, thumbnailThreedFileId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, thumbnailURL_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(6, assetMappingCount_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(7, createdTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(8, published_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(9, getCamera());
}
if (getRotationList().size() > 0) {
output.writeUInt32NoTag(82);
output.writeUInt32NoTag(rotationMemoizedSerializedSize);
}
for (int i = 0; i < rotation_.size(); i++) {
output.writeDoubleNoTag(rotation_.getDouble(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
11);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, fileId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, status_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, thumbnailThreedFileId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, thumbnailURL_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, assetMappingCount_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, createdTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, published_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getCamera());
}
{
int dataSize = 0;
dataSize = 8 * getRotationList().size();
size += dataSize;
if (!getRotationList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
rotationMemoizedSerializedSize = dataSize;
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, metadata__);
}
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.ThreeDModelRevision)) {
return super.equals(obj);
}
com.cognite.client.dto.ThreeDModelRevision other = (com.cognite.client.dto.ThreeDModelRevision) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasFileId() != other.hasFileId()) return false;
if (hasFileId()) {
if (getFileId()
!= other.getFileId()) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasThumbnailThreedFileId() != other.hasThumbnailThreedFileId()) return false;
if (hasThumbnailThreedFileId()) {
if (getThumbnailThreedFileId()
!= other.getThumbnailThreedFileId()) return false;
}
if (hasThumbnailURL() != other.hasThumbnailURL()) return false;
if (hasThumbnailURL()) {
if (!getThumbnailURL()
.equals(other.getThumbnailURL())) return false;
}
if (hasAssetMappingCount() != other.hasAssetMappingCount()) return false;
if (hasAssetMappingCount()) {
if (getAssetMappingCount()
!= other.getAssetMappingCount()) return false;
}
if (hasCreatedTime() != other.hasCreatedTime()) return false;
if (hasCreatedTime()) {
if (getCreatedTime()
!= other.getCreatedTime()) return false;
}
if (hasPublished() != other.hasPublished()) return false;
if (hasPublished()) {
if (getPublished()
!= other.getPublished()) return false;
}
if (hasCamera() != other.hasCamera()) return false;
if (hasCamera()) {
if (!getCamera()
.equals(other.getCamera())) return false;
}
if (!getRotationList()
.equals(other.getRotationList())) return false;
if (!internalGetMetadata().equals(
other.internalGetMetadata())) 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();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasFileId()) {
hash = (37 * hash) + FILE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFileId());
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasThumbnailThreedFileId()) {
hash = (37 * hash) + THUMBNAIL_THREED_FILE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getThumbnailThreedFileId());
}
if (hasThumbnailURL()) {
hash = (37 * hash) + THUMBNAIL_URL_FIELD_NUMBER;
hash = (53 * hash) + getThumbnailURL().hashCode();
}
if (hasAssetMappingCount()) {
hash = (37 * hash) + ASSET_MAPPING_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAssetMappingCount());
}
if (hasCreatedTime()) {
hash = (37 * hash) + CREATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreatedTime());
}
if (hasPublished()) {
hash = (37 * hash) + PUBLISHED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPublished());
}
if (hasCamera()) {
hash = (37 * hash) + CAMERA_FIELD_NUMBER;
hash = (53 * hash) + getCamera().hashCode();
}
if (getRotationCount() > 0) {
hash = (37 * hash) + ROTATION_FIELD_NUMBER;
hash = (53 * hash) + getRotationList().hashCode();
}
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.ThreeDModelRevision parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDModelRevision 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.ThreeDModelRevision parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDModelRevision 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.ThreeDModelRevision parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ThreeDModelRevision parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ThreeDModelRevision parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDModelRevision 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.ThreeDModelRevision parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDModelRevision 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.ThreeDModelRevision parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ThreeDModelRevision 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.ThreeDModelRevision 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.ThreeDModelRevision}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.ThreeDModelRevision)
com.cognite.client.dto.ThreeDModelRevisionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 11:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 11:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ThreeDModelRevision.class, com.cognite.client.dto.ThreeDModelRevision.Builder.class);
}
// Construct using com.cognite.client.dto.ThreeDModelRevision.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCameraFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
fileId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
status_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
thumbnailThreedFileId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
thumbnailURL_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
assetMappingCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
createdTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
published_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
if (cameraBuilder_ == null) {
camera_ = null;
} else {
cameraBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
rotation_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000200);
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDModelRevision_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision getDefaultInstanceForType() {
return com.cognite.client.dto.ThreeDModelRevision.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision build() {
com.cognite.client.dto.ThreeDModelRevision result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.ThreeDModelRevision buildPartial() {
com.cognite.client.dto.ThreeDModelRevision result = new com.cognite.client.dto.ThreeDModelRevision(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fileId_ = fileId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.thumbnailThreedFileId_ = thumbnailThreedFileId_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.thumbnailURL_ = thumbnailURL_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.assetMappingCount_ = assetMappingCount_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.createdTime_ = createdTime_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.published_ = published_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
if (cameraBuilder_ == null) {
result.camera_ = camera_;
} else {
result.camera_ = cameraBuilder_.build();
}
to_bitField0_ |= 0x00000100;
}
if (((bitField0_ & 0x00000200) != 0)) {
rotation_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.rotation_ = rotation_;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
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.ThreeDModelRevision) {
return mergeFrom((com.cognite.client.dto.ThreeDModelRevision)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.ThreeDModelRevision other) {
if (other == com.cognite.client.dto.ThreeDModelRevision.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasFileId()) {
setFileId(other.getFileId());
}
if (other.hasStatus()) {
bitField0_ |= 0x00000004;
status_ = other.status_;
onChanged();
}
if (other.hasThumbnailThreedFileId()) {
setThumbnailThreedFileId(other.getThumbnailThreedFileId());
}
if (other.hasThumbnailURL()) {
bitField0_ |= 0x00000010;
thumbnailURL_ = other.thumbnailURL_;
onChanged();
}
if (other.hasAssetMappingCount()) {
setAssetMappingCount(other.getAssetMappingCount());
}
if (other.hasCreatedTime()) {
setCreatedTime(other.getCreatedTime());
}
if (other.hasPublished()) {
setPublished(other.getPublished());
}
if (other.hasCamera()) {
mergeCamera(other.getCamera());
}
if (!other.rotation_.isEmpty()) {
if (rotation_.isEmpty()) {
rotation_ = other.rotation_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureRotationIsMutable();
rotation_.addAll(other.rotation_);
}
onChanged();
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
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.ThreeDModelRevision parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.ThreeDModelRevision) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
* optional int64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* optional int64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private long fileId_ ;
/**
* optional int64 file_id = 2;
* @return Whether the fileId field is set.
*/
@java.lang.Override
public boolean hasFileId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 file_id = 2;
* @return The fileId.
*/
@java.lang.Override
public long getFileId() {
return fileId_;
}
/**
* optional int64 file_id = 2;
* @param value The fileId to set.
* @return This builder for chaining.
*/
public Builder setFileId(long value) {
bitField0_ |= 0x00000002;
fileId_ = value;
onChanged();
return this;
}
/**
* optional int64 file_id = 2;
* @return This builder for chaining.
*/
public Builder clearFileId() {
bitField0_ = (bitField0_ & ~0x00000002);
fileId_ = 0L;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
* optional string status = 3;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string status = 3;
* @return The status.
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string status = 3;
* @return The bytes for status.
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string status = 3;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
/**
* optional string status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = getDefaultInstance().getStatus();
onChanged();
return this;
}
/**
* optional string status = 3;
* @param value The bytes for status to set.
* @return This builder for chaining.
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
private long thumbnailThreedFileId_ ;
/**
* optional int64 thumbnail_threed_file_id = 4;
* @return Whether the thumbnailThreedFileId field is set.
*/
@java.lang.Override
public boolean hasThumbnailThreedFileId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 thumbnail_threed_file_id = 4;
* @return The thumbnailThreedFileId.
*/
@java.lang.Override
public long getThumbnailThreedFileId() {
return thumbnailThreedFileId_;
}
/**
* optional int64 thumbnail_threed_file_id = 4;
* @param value The thumbnailThreedFileId to set.
* @return This builder for chaining.
*/
public Builder setThumbnailThreedFileId(long value) {
bitField0_ |= 0x00000008;
thumbnailThreedFileId_ = value;
onChanged();
return this;
}
/**
* optional int64 thumbnail_threed_file_id = 4;
* @return This builder for chaining.
*/
public Builder clearThumbnailThreedFileId() {
bitField0_ = (bitField0_ & ~0x00000008);
thumbnailThreedFileId_ = 0L;
onChanged();
return this;
}
private java.lang.Object thumbnailURL_ = "";
/**
* optional string thumbnail_URL = 5;
* @return Whether the thumbnailURL field is set.
*/
public boolean hasThumbnailURL() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string thumbnail_URL = 5;
* @return The thumbnailURL.
*/
public java.lang.String getThumbnailURL() {
java.lang.Object ref = thumbnailURL_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
thumbnailURL_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string thumbnail_URL = 5;
* @return The bytes for thumbnailURL.
*/
public com.google.protobuf.ByteString
getThumbnailURLBytes() {
java.lang.Object ref = thumbnailURL_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thumbnailURL_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string thumbnail_URL = 5;
* @param value The thumbnailURL to set.
* @return This builder for chaining.
*/
public Builder setThumbnailURL(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
thumbnailURL_ = value;
onChanged();
return this;
}
/**
* optional string thumbnail_URL = 5;
* @return This builder for chaining.
*/
public Builder clearThumbnailURL() {
bitField0_ = (bitField0_ & ~0x00000010);
thumbnailURL_ = getDefaultInstance().getThumbnailURL();
onChanged();
return this;
}
/**
* optional string thumbnail_URL = 5;
* @param value The bytes for thumbnailURL to set.
* @return This builder for chaining.
*/
public Builder setThumbnailURLBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000010;
thumbnailURL_ = value;
onChanged();
return this;
}
private long assetMappingCount_ ;
/**
* optional int64 asset_mapping_count = 6;
* @return Whether the assetMappingCount field is set.
*/
@java.lang.Override
public boolean hasAssetMappingCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 asset_mapping_count = 6;
* @return The assetMappingCount.
*/
@java.lang.Override
public long getAssetMappingCount() {
return assetMappingCount_;
}
/**
* optional int64 asset_mapping_count = 6;
* @param value The assetMappingCount to set.
* @return This builder for chaining.
*/
public Builder setAssetMappingCount(long value) {
bitField0_ |= 0x00000020;
assetMappingCount_ = value;
onChanged();
return this;
}
/**
* optional int64 asset_mapping_count = 6;
* @return This builder for chaining.
*/
public Builder clearAssetMappingCount() {
bitField0_ = (bitField0_ & ~0x00000020);
assetMappingCount_ = 0L;
onChanged();
return this;
}
private long createdTime_ ;
/**
* optional int64 created_time = 7;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 created_time = 7;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
/**
* optional int64 created_time = 7;
* @param value The createdTime to set.
* @return This builder for chaining.
*/
public Builder setCreatedTime(long value) {
bitField0_ |= 0x00000040;
createdTime_ = value;
onChanged();
return this;
}
/**
* optional int64 created_time = 7;
* @return This builder for chaining.
*/
public Builder clearCreatedTime() {
bitField0_ = (bitField0_ & ~0x00000040);
createdTime_ = 0L;
onChanged();
return this;
}
private boolean published_ ;
/**
* optional bool published = 8;
* @return Whether the published field is set.
*/
@java.lang.Override
public boolean hasPublished() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool published = 8;
* @return The published.
*/
@java.lang.Override
public boolean getPublished() {
return published_;
}
/**
* optional bool published = 8;
* @param value The published to set.
* @return This builder for chaining.
*/
public Builder setPublished(boolean value) {
bitField0_ |= 0x00000080;
published_ = value;
onChanged();
return this;
}
/**
* optional bool published = 8;
* @return This builder for chaining.
*/
public Builder clearPublished() {
bitField0_ = (bitField0_ & ~0x00000080);
published_ = false;
onChanged();
return this;
}
private com.cognite.client.dto.ThreeDModelRevision.Camera camera_;
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.ThreeDModelRevision.Camera, com.cognite.client.dto.ThreeDModelRevision.Camera.Builder, com.cognite.client.dto.ThreeDModelRevision.CameraOrBuilder> cameraBuilder_;
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
* @return Whether the camera field is set.
*/
public boolean hasCamera() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
* @return The camera.
*/
public com.cognite.client.dto.ThreeDModelRevision.Camera getCamera() {
if (cameraBuilder_ == null) {
return camera_ == null ? com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance() : camera_;
} else {
return cameraBuilder_.getMessage();
}
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
public Builder setCamera(com.cognite.client.dto.ThreeDModelRevision.Camera value) {
if (cameraBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
camera_ = value;
onChanged();
} else {
cameraBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
public Builder setCamera(
com.cognite.client.dto.ThreeDModelRevision.Camera.Builder builderForValue) {
if (cameraBuilder_ == null) {
camera_ = builderForValue.build();
onChanged();
} else {
cameraBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
public Builder mergeCamera(com.cognite.client.dto.ThreeDModelRevision.Camera value) {
if (cameraBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
camera_ != null &&
camera_ != com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance()) {
camera_ =
com.cognite.client.dto.ThreeDModelRevision.Camera.newBuilder(camera_).mergeFrom(value).buildPartial();
} else {
camera_ = value;
}
onChanged();
} else {
cameraBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
public Builder clearCamera() {
if (cameraBuilder_ == null) {
camera_ = null;
onChanged();
} else {
cameraBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
public com.cognite.client.dto.ThreeDModelRevision.Camera.Builder getCameraBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getCameraFieldBuilder().getBuilder();
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
public com.cognite.client.dto.ThreeDModelRevision.CameraOrBuilder getCameraOrBuilder() {
if (cameraBuilder_ != null) {
return cameraBuilder_.getMessageOrBuilder();
} else {
return camera_ == null ?
com.cognite.client.dto.ThreeDModelRevision.Camera.getDefaultInstance() : camera_;
}
}
/**
* optional .com.cognite.beam.proto.ThreeDModelRevision.Camera camera = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.ThreeDModelRevision.Camera, com.cognite.client.dto.ThreeDModelRevision.Camera.Builder, com.cognite.client.dto.ThreeDModelRevision.CameraOrBuilder>
getCameraFieldBuilder() {
if (cameraBuilder_ == null) {
cameraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.ThreeDModelRevision.Camera, com.cognite.client.dto.ThreeDModelRevision.Camera.Builder, com.cognite.client.dto.ThreeDModelRevision.CameraOrBuilder>(
getCamera(),
getParentForChildren(),
isClean());
camera_ = null;
}
return cameraBuilder_;
}
private com.google.protobuf.Internal.DoubleList rotation_ = emptyDoubleList();
private void ensureRotationIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
rotation_ = mutableCopy(rotation_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated double rotation = 10;
* @return A list containing the rotation.
*/
public java.util.List
getRotationList() {
return ((bitField0_ & 0x00000200) != 0) ?
java.util.Collections.unmodifiableList(rotation_) : rotation_;
}
/**
* repeated double rotation = 10;
* @return The count of rotation.
*/
public int getRotationCount() {
return rotation_.size();
}
/**
* repeated double rotation = 10;
* @param index The index of the element to return.
* @return The rotation at the given index.
*/
public double getRotation(int index) {
return rotation_.getDouble(index);
}
/**
* repeated double rotation = 10;
* @param index The index to set the value at.
* @param value The rotation to set.
* @return This builder for chaining.
*/
public Builder setRotation(
int index, double value) {
ensureRotationIsMutable();
rotation_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double rotation = 10;
* @param value The rotation to add.
* @return This builder for chaining.
*/
public Builder addRotation(double value) {
ensureRotationIsMutable();
rotation_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double rotation = 10;
* @param values The rotation to add.
* @return This builder for chaining.
*/
public Builder addAllRotation(
java.lang.Iterable extends java.lang.Double> values) {
ensureRotationIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rotation_);
onChanged();
return this;
}
/**
* repeated double rotation = 10;
* @return This builder for chaining.
*/
public Builder clearRotation() {
rotation_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 11;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
internalGetMutableMetadata().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> metadata = 11;
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetadata().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
* map<string, string> metadata = 11;
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetadata().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> metadata = 11;
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
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.ThreeDModelRevision)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ThreeDModelRevision)
private static final com.cognite.client.dto.ThreeDModelRevision DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.ThreeDModelRevision();
}
public static com.cognite.client.dto.ThreeDModelRevision getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThreeDModelRevision parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ThreeDModelRevision(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.ThreeDModelRevision getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy