proto.com.cognite.client.dto.DiagramResponse 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: diagram_response.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.DiagramResponse}
*/
public final class DiagramResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.DiagramResponse)
DiagramResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiagramResponse.newBuilder() to construct.
private DiagramResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiagramResponse() {
fileExternalId_ = "";
items_ = java.util.Collections.emptyList();
convertResults_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiagramResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DiagramResponse(
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;
fileId_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
fileExternalId_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
items_.add(
input.readMessage(com.cognite.client.dto.Annotation.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
convertResults_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
convertResults_.add(
input.readMessage(com.cognite.client.dto.DiagramResponse.ConvertResult.parser(), extensionRegistry));
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_ & 0x00000004) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
convertResults_ = java.util.Collections.unmodifiableList(convertResults_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.DiagramResponse.class, com.cognite.client.dto.DiagramResponse.Builder.class);
}
public interface ConvertResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.DiagramResponse.ConvertResult)
com.google.protobuf.MessageOrBuilder {
/**
* int32 page = 1;
* @return The page.
*/
int getPage();
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return Whether the svgBinary field is set.
*/
boolean hasSvgBinary();
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return The svgBinary.
*/
com.google.protobuf.ByteString getSvgBinary();
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return Whether the pngBinary field is set.
*/
boolean hasPngBinary();
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return The pngBinary.
*/
com.google.protobuf.ByteString getPngBinary();
/**
* optional string error_message = 4;
* @return Whether the errorMessage field is set.
*/
boolean hasErrorMessage();
/**
* optional string error_message = 4;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* optional string error_message = 4;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code com.cognite.beam.proto.DiagramResponse.ConvertResult}
*/
public static final class ConvertResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.DiagramResponse.ConvertResult)
ConvertResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConvertResult.newBuilder() to construct.
private ConvertResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConvertResult() {
svgBinary_ = com.google.protobuf.ByteString.EMPTY;
pngBinary_ = com.google.protobuf.ByteString.EMPTY;
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConvertResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConvertResult(
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: {
page_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000001;
svgBinary_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000002;
pngBinary_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
errorMessage_ = s;
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.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_ConvertResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_ConvertResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.DiagramResponse.ConvertResult.class, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder.class);
}
private int bitField0_;
public static final int PAGE_FIELD_NUMBER = 1;
private int page_;
/**
* int32 page = 1;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
public static final int SVG_BINARY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString svgBinary_;
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return Whether the svgBinary field is set.
*/
@java.lang.Override
public boolean hasSvgBinary() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return The svgBinary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSvgBinary() {
return svgBinary_;
}
public static final int PNG_BINARY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString pngBinary_;
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return Whether the pngBinary field is set.
*/
@java.lang.Override
public boolean hasPngBinary() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return The pngBinary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPngBinary() {
return pngBinary_;
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object errorMessage_;
/**
* optional string error_message = 4;
* @return Whether the errorMessage field is set.
*/
@java.lang.Override
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string error_message = 4;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* optional string error_message = 4;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (page_ != 0) {
output.writeInt32(1, page_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(2, svgBinary_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(3, pngBinary_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, errorMessage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (page_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, page_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, svgBinary_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, pngBinary_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorMessage_);
}
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.DiagramResponse.ConvertResult)) {
return super.equals(obj);
}
com.cognite.client.dto.DiagramResponse.ConvertResult other = (com.cognite.client.dto.DiagramResponse.ConvertResult) obj;
if (getPage()
!= other.getPage()) return false;
if (hasSvgBinary() != other.hasSvgBinary()) return false;
if (hasSvgBinary()) {
if (!getSvgBinary()
.equals(other.getSvgBinary())) return false;
}
if (hasPngBinary() != other.hasPngBinary()) return false;
if (hasPngBinary()) {
if (!getPngBinary()
.equals(other.getPngBinary())) return false;
}
if (hasErrorMessage() != other.hasErrorMessage()) return false;
if (hasErrorMessage()) {
if (!getErrorMessage()
.equals(other.getErrorMessage())) 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) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage();
if (hasSvgBinary()) {
hash = (37 * hash) + SVG_BINARY_FIELD_NUMBER;
hash = (53 * hash) + getSvgBinary().hashCode();
}
if (hasPngBinary()) {
hash = (37 * hash) + PNG_BINARY_FIELD_NUMBER;
hash = (53 * hash) + getPngBinary().hashCode();
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult 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.DiagramResponse.ConvertResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult 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.DiagramResponse.ConvertResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult 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.DiagramResponse.ConvertResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult 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.DiagramResponse.ConvertResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult 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.DiagramResponse.ConvertResult 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.DiagramResponse.ConvertResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.DiagramResponse.ConvertResult)
com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_ConvertResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_ConvertResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.DiagramResponse.ConvertResult.class, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder.class);
}
// Construct using com.cognite.client.dto.DiagramResponse.ConvertResult.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();
page_ = 0;
svgBinary_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
pngBinary_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
errorMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_ConvertResult_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.DiagramResponse.ConvertResult getDefaultInstanceForType() {
return com.cognite.client.dto.DiagramResponse.ConvertResult.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.DiagramResponse.ConvertResult build() {
com.cognite.client.dto.DiagramResponse.ConvertResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.DiagramResponse.ConvertResult buildPartial() {
com.cognite.client.dto.DiagramResponse.ConvertResult result = new com.cognite.client.dto.DiagramResponse.ConvertResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.page_ = page_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.svgBinary_ = svgBinary_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.pngBinary_ = pngBinary_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.errorMessage_ = errorMessage_;
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.DiagramResponse.ConvertResult) {
return mergeFrom((com.cognite.client.dto.DiagramResponse.ConvertResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.DiagramResponse.ConvertResult other) {
if (other == com.cognite.client.dto.DiagramResponse.ConvertResult.getDefaultInstance()) return this;
if (other.getPage() != 0) {
setPage(other.getPage());
}
if (other.hasSvgBinary()) {
setSvgBinary(other.getSvgBinary());
}
if (other.hasPngBinary()) {
setPngBinary(other.getPngBinary());
}
if (other.hasErrorMessage()) {
bitField0_ |= 0x00000004;
errorMessage_ = other.errorMessage_;
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.DiagramResponse.ConvertResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.DiagramResponse.ConvertResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int page_ ;
/**
* int32 page = 1;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
/**
* int32 page = 1;
* @param value The page to set.
* @return This builder for chaining.
*/
public Builder setPage(int value) {
page_ = value;
onChanged();
return this;
}
/**
* int32 page = 1;
* @return This builder for chaining.
*/
public Builder clearPage() {
page_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString svgBinary_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return Whether the svgBinary field is set.
*/
@java.lang.Override
public boolean hasSvgBinary() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return The svgBinary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSvgBinary() {
return svgBinary_;
}
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @param value The svgBinary to set.
* @return This builder for chaining.
*/
public Builder setSvgBinary(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
svgBinary_ = value;
onChanged();
return this;
}
/**
*
* The binary for the converted SVG file
*
*
* optional bytes svg_binary = 2;
* @return This builder for chaining.
*/
public Builder clearSvgBinary() {
bitField0_ = (bitField0_ & ~0x00000001);
svgBinary_ = getDefaultInstance().getSvgBinary();
onChanged();
return this;
}
private com.google.protobuf.ByteString pngBinary_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return Whether the pngBinary field is set.
*/
@java.lang.Override
public boolean hasPngBinary() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return The pngBinary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPngBinary() {
return pngBinary_;
}
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @param value The pngBinary to set.
* @return This builder for chaining.
*/
public Builder setPngBinary(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pngBinary_ = value;
onChanged();
return this;
}
/**
*
* The binary for the converted PNG file
*
*
* optional bytes png_binary = 3;
* @return This builder for chaining.
*/
public Builder clearPngBinary() {
bitField0_ = (bitField0_ & ~0x00000002);
pngBinary_ = getDefaultInstance().getPngBinary();
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* optional string error_message = 4;
* @return Whether the errorMessage field is set.
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string error_message = 4;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string error_message = 4;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string error_message = 4;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
errorMessage_ = value;
onChanged();
return this;
}
/**
* optional string error_message = 4;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* optional string error_message = 4;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
errorMessage_ = value;
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.DiagramResponse.ConvertResult)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.DiagramResponse.ConvertResult)
private static final com.cognite.client.dto.DiagramResponse.ConvertResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.DiagramResponse.ConvertResult();
}
public static com.cognite.client.dto.DiagramResponse.ConvertResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConvertResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConvertResult(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.DiagramResponse.ConvertResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int FILE_ID_FIELD_NUMBER = 1;
private long fileId_;
/**
*
*The id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional int64 file_id = 1;
* @return Whether the fileId field is set.
*/
@java.lang.Override
public boolean hasFileId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*The id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional int64 file_id = 1;
* @return The fileId.
*/
@java.lang.Override
public long getFileId() {
return fileId_;
}
public static final int FILE_EXTERNAL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object fileExternalId_;
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return Whether the fileExternalId field is set.
*/
@java.lang.Override
public boolean hasFileExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return The fileExternalId.
*/
@java.lang.Override
public java.lang.String getFileExternalId() {
java.lang.Object ref = fileExternalId_;
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();
fileExternalId_ = s;
return s;
}
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return The bytes for fileExternalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileExternalIdBytes() {
java.lang.Object ref = fileExternalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileExternalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ITEMS_FIELD_NUMBER = 3;
private java.util.List items_;
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.AnnotationOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
@java.lang.Override
public com.cognite.client.dto.Annotation getItems(int index) {
return items_.get(index);
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
@java.lang.Override
public com.cognite.client.dto.AnnotationOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int CONVERTRESULTS_FIELD_NUMBER = 4;
private java.util.List convertResults_;
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
@java.lang.Override
public java.util.List getConvertResultsList() {
return convertResults_;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder>
getConvertResultsOrBuilderList() {
return convertResults_;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
@java.lang.Override
public int getConvertResultsCount() {
return convertResults_.size();
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
@java.lang.Override
public com.cognite.client.dto.DiagramResponse.ConvertResult getConvertResults(int index) {
return convertResults_.get(index);
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
@java.lang.Override
public com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder getConvertResultsOrBuilder(
int index) {
return convertResults_.get(index);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, fileId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileExternalId_);
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(3, items_.get(i));
}
for (int i = 0; i < convertResults_.size(); i++) {
output.writeMessage(4, convertResults_.get(i));
}
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, fileId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileExternalId_);
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, items_.get(i));
}
for (int i = 0; i < convertResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, convertResults_.get(i));
}
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.DiagramResponse)) {
return super.equals(obj);
}
com.cognite.client.dto.DiagramResponse other = (com.cognite.client.dto.DiagramResponse) obj;
if (hasFileId() != other.hasFileId()) return false;
if (hasFileId()) {
if (getFileId()
!= other.getFileId()) return false;
}
if (hasFileExternalId() != other.hasFileExternalId()) return false;
if (hasFileExternalId()) {
if (!getFileExternalId()
.equals(other.getFileExternalId())) return false;
}
if (!getItemsList()
.equals(other.getItemsList())) return false;
if (!getConvertResultsList()
.equals(other.getConvertResultsList())) 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 (hasFileId()) {
hash = (37 * hash) + FILE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFileId());
}
if (hasFileExternalId()) {
hash = (37 * hash) + FILE_EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getFileExternalId().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
if (getConvertResultsCount() > 0) {
hash = (37 * hash) + CONVERTRESULTS_FIELD_NUMBER;
hash = (53 * hash) + getConvertResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.DiagramResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.DiagramResponse 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.DiagramResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.DiagramResponse 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.DiagramResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.DiagramResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.DiagramResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.DiagramResponse 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.DiagramResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.DiagramResponse 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.DiagramResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.DiagramResponse 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.DiagramResponse 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.DiagramResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.DiagramResponse)
com.cognite.client.dto.DiagramResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.DiagramResponse.class, com.cognite.client.dto.DiagramResponse.Builder.class);
}
// Construct using com.cognite.client.dto.DiagramResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
getConvertResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
fileId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
fileExternalId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
itemsBuilder_.clear();
}
if (convertResultsBuilder_ == null) {
convertResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
convertResultsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_DiagramResponse_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.DiagramResponse getDefaultInstanceForType() {
return com.cognite.client.dto.DiagramResponse.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.DiagramResponse build() {
com.cognite.client.dto.DiagramResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.DiagramResponse buildPartial() {
com.cognite.client.dto.DiagramResponse result = new com.cognite.client.dto.DiagramResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fileId_ = fileId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.fileExternalId_ = fileExternalId_;
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
if (convertResultsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
convertResults_ = java.util.Collections.unmodifiableList(convertResults_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.convertResults_ = convertResults_;
} else {
result.convertResults_ = convertResultsBuilder_.build();
}
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.DiagramResponse) {
return mergeFrom((com.cognite.client.dto.DiagramResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.DiagramResponse other) {
if (other == com.cognite.client.dto.DiagramResponse.getDefaultInstance()) return this;
if (other.hasFileId()) {
setFileId(other.getFileId());
}
if (other.hasFileExternalId()) {
bitField0_ |= 0x00000002;
fileExternalId_ = other.fileExternalId_;
onChanged();
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000004);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (convertResultsBuilder_ == null) {
if (!other.convertResults_.isEmpty()) {
if (convertResults_.isEmpty()) {
convertResults_ = other.convertResults_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureConvertResultsIsMutable();
convertResults_.addAll(other.convertResults_);
}
onChanged();
}
} else {
if (!other.convertResults_.isEmpty()) {
if (convertResultsBuilder_.isEmpty()) {
convertResultsBuilder_.dispose();
convertResultsBuilder_ = null;
convertResults_ = other.convertResults_;
bitField0_ = (bitField0_ & ~0x00000008);
convertResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConvertResultsFieldBuilder() : null;
} else {
convertResultsBuilder_.addAllMessages(other.convertResults_);
}
}
}
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.DiagramResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.DiagramResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long fileId_ ;
/**
*
*The id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional int64 file_id = 1;
* @return Whether the fileId field is set.
*/
@java.lang.Override
public boolean hasFileId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*The id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional int64 file_id = 1;
* @return The fileId.
*/
@java.lang.Override
public long getFileId() {
return fileId_;
}
/**
*
*The id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional int64 file_id = 1;
* @param value The fileId to set.
* @return This builder for chaining.
*/
public Builder setFileId(long value) {
bitField0_ |= 0x00000001;
fileId_ = value;
onChanged();
return this;
}
/**
*
*The id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional int64 file_id = 1;
* @return This builder for chaining.
*/
public Builder clearFileId() {
bitField0_ = (bitField0_ & ~0x00000001);
fileId_ = 0L;
onChanged();
return this;
}
private java.lang.Object fileExternalId_ = "";
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return Whether the fileExternalId field is set.
*/
public boolean hasFileExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return The fileExternalId.
*/
public java.lang.String getFileExternalId() {
java.lang.Object ref = fileExternalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileExternalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return The bytes for fileExternalId.
*/
public com.google.protobuf.ByteString
getFileExternalIdBytes() {
java.lang.Object ref = fileExternalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileExternalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @param value The fileExternalId to set.
* @return This builder for chaining.
*/
public Builder setFileExternalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fileExternalId_ = value;
onChanged();
return this;
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @return This builder for chaining.
*/
public Builder clearFileExternalId() {
bitField0_ = (bitField0_ & ~0x00000002);
fileExternalId_ = getDefaultInstance().getFileExternalId();
onChanged();
return this;
}
/**
*
*The external id of the source file used for detecting annotations and building
*the interactive engineering diagram
*
*
* optional string file_external_id = 2;
* @param value The bytes for fileExternalId to set.
* @return This builder for chaining.
*/
public Builder setFileExternalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
fileExternalId_ = value;
onChanged();
return this;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Annotation, com.cognite.client.dto.Annotation.Builder, com.cognite.client.dto.AnnotationOrBuilder> itemsBuilder_;
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public com.cognite.client.dto.Annotation getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder setItems(
int index, com.cognite.client.dto.Annotation value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder setItems(
int index, com.cognite.client.dto.Annotation.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder addItems(com.cognite.client.dto.Annotation value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder addItems(
int index, com.cognite.client.dto.Annotation value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder addItems(
com.cognite.client.dto.Annotation.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder addItems(
int index, com.cognite.client.dto.Annotation.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder addAllItems(
java.lang.Iterable extends com.cognite.client.dto.Annotation> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public com.cognite.client.dto.Annotation.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public com.cognite.client.dto.AnnotationOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public java.util.List extends com.cognite.client.dto.AnnotationOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public com.cognite.client.dto.Annotation.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
com.cognite.client.dto.Annotation.getDefaultInstance());
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public com.cognite.client.dto.Annotation.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, com.cognite.client.dto.Annotation.getDefaultInstance());
}
/**
*
* The identified entity annotations with bounding boxes
*
*
* repeated .com.cognite.beam.proto.Annotation items = 3;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Annotation, com.cognite.client.dto.Annotation.Builder, com.cognite.client.dto.AnnotationOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Annotation, com.cognite.client.dto.Annotation.Builder, com.cognite.client.dto.AnnotationOrBuilder>(
items_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private java.util.List convertResults_ =
java.util.Collections.emptyList();
private void ensureConvertResultsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
convertResults_ = new java.util.ArrayList(convertResults_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.DiagramResponse.ConvertResult, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder, com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder> convertResultsBuilder_;
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public java.util.List getConvertResultsList() {
if (convertResultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(convertResults_);
} else {
return convertResultsBuilder_.getMessageList();
}
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public int getConvertResultsCount() {
if (convertResultsBuilder_ == null) {
return convertResults_.size();
} else {
return convertResultsBuilder_.getCount();
}
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public com.cognite.client.dto.DiagramResponse.ConvertResult getConvertResults(int index) {
if (convertResultsBuilder_ == null) {
return convertResults_.get(index);
} else {
return convertResultsBuilder_.getMessage(index);
}
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder setConvertResults(
int index, com.cognite.client.dto.DiagramResponse.ConvertResult value) {
if (convertResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConvertResultsIsMutable();
convertResults_.set(index, value);
onChanged();
} else {
convertResultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder setConvertResults(
int index, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder builderForValue) {
if (convertResultsBuilder_ == null) {
ensureConvertResultsIsMutable();
convertResults_.set(index, builderForValue.build());
onChanged();
} else {
convertResultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder addConvertResults(com.cognite.client.dto.DiagramResponse.ConvertResult value) {
if (convertResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConvertResultsIsMutable();
convertResults_.add(value);
onChanged();
} else {
convertResultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder addConvertResults(
int index, com.cognite.client.dto.DiagramResponse.ConvertResult value) {
if (convertResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConvertResultsIsMutable();
convertResults_.add(index, value);
onChanged();
} else {
convertResultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder addConvertResults(
com.cognite.client.dto.DiagramResponse.ConvertResult.Builder builderForValue) {
if (convertResultsBuilder_ == null) {
ensureConvertResultsIsMutable();
convertResults_.add(builderForValue.build());
onChanged();
} else {
convertResultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder addConvertResults(
int index, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder builderForValue) {
if (convertResultsBuilder_ == null) {
ensureConvertResultsIsMutable();
convertResults_.add(index, builderForValue.build());
onChanged();
} else {
convertResultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder addAllConvertResults(
java.lang.Iterable extends com.cognite.client.dto.DiagramResponse.ConvertResult> values) {
if (convertResultsBuilder_ == null) {
ensureConvertResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, convertResults_);
onChanged();
} else {
convertResultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder clearConvertResults() {
if (convertResultsBuilder_ == null) {
convertResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
convertResultsBuilder_.clear();
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public Builder removeConvertResults(int index) {
if (convertResultsBuilder_ == null) {
ensureConvertResultsIsMutable();
convertResults_.remove(index);
onChanged();
} else {
convertResultsBuilder_.remove(index);
}
return this;
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public com.cognite.client.dto.DiagramResponse.ConvertResult.Builder getConvertResultsBuilder(
int index) {
return getConvertResultsFieldBuilder().getBuilder(index);
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder getConvertResultsOrBuilder(
int index) {
if (convertResultsBuilder_ == null) {
return convertResults_.get(index); } else {
return convertResultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public java.util.List extends com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder>
getConvertResultsOrBuilderList() {
if (convertResultsBuilder_ != null) {
return convertResultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(convertResults_);
}
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public com.cognite.client.dto.DiagramResponse.ConvertResult.Builder addConvertResultsBuilder() {
return getConvertResultsFieldBuilder().addBuilder(
com.cognite.client.dto.DiagramResponse.ConvertResult.getDefaultInstance());
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public com.cognite.client.dto.DiagramResponse.ConvertResult.Builder addConvertResultsBuilder(
int index) {
return getConvertResultsFieldBuilder().addBuilder(
index, com.cognite.client.dto.DiagramResponse.ConvertResult.getDefaultInstance());
}
/**
*
* Converted SVGs / PNGs
*
*
* repeated .com.cognite.beam.proto.DiagramResponse.ConvertResult convertResults = 4;
*/
public java.util.List
getConvertResultsBuilderList() {
return getConvertResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.DiagramResponse.ConvertResult, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder, com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder>
getConvertResultsFieldBuilder() {
if (convertResultsBuilder_ == null) {
convertResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.DiagramResponse.ConvertResult, com.cognite.client.dto.DiagramResponse.ConvertResult.Builder, com.cognite.client.dto.DiagramResponse.ConvertResultOrBuilder>(
convertResults_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
convertResults_ = null;
}
return convertResultsBuilder_;
}
@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.DiagramResponse)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.DiagramResponse)
private static final com.cognite.client.dto.DiagramResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.DiagramResponse();
}
public static com.cognite.client.dto.DiagramResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiagramResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DiagramResponse(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.DiagramResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy