proto.com.cognite.client.dto.Annotation 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.Annotation}
*/
public final class Annotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Annotation)
AnnotationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Annotation.newBuilder() to construct.
private Annotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Annotation() {
text_ = "";
entities_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Annotation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Annotation(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
text_ = s;
break;
}
case 17: {
bitField0_ |= 0x00000002;
confidence_ = input.readDouble();
break;
}
case 26: {
com.cognite.client.dto.Annotation.Region.Builder subBuilder = null;
if (region_ != null) {
subBuilder = region_.toBuilder();
}
region_ = input.readMessage(com.cognite.client.dto.Annotation.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(region_);
region_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
entities_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
entities_.add(
input.readMessage(com.google.protobuf.Struct.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)) {
entities_ = java.util.Collections.unmodifiableList(entities_);
}
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_Annotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Annotation.class, com.cognite.client.dto.Annotation.Builder.class);
}
public interface VertexOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.Annotation.Vertex)
com.google.protobuf.MessageOrBuilder {
/**
* double x = 1;
* @return The x.
*/
double getX();
/**
* double y = 2;
* @return The y.
*/
double getY();
}
/**
* Protobuf type {@code com.cognite.beam.proto.Annotation.Vertex}
*/
public static final class Vertex extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Annotation.Vertex)
VertexOrBuilder {
private static final long serialVersionUID = 0L;
// Use Vertex.newBuilder() to construct.
private Vertex(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Vertex() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Vertex();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Vertex(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
x_ = input.readDouble();
break;
}
case 17: {
y_ = input.readDouble();
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_Annotation_Vertex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Vertex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Annotation.Vertex.class, com.cognite.client.dto.Annotation.Vertex.Builder.class);
}
public static final int X_FIELD_NUMBER = 1;
private double x_;
/**
* double x = 1;
* @return The x.
*/
@java.lang.Override
public double getX() {
return x_;
}
public static final int Y_FIELD_NUMBER = 2;
private double y_;
/**
* double y = 2;
* @return The y.
*/
@java.lang.Override
public double getY() {
return y_;
}
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 (java.lang.Double.doubleToRawLongBits(x_) != 0) {
output.writeDouble(1, x_);
}
if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
output.writeDouble(2, y_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, x_);
}
if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, y_);
}
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.Annotation.Vertex)) {
return super.equals(obj);
}
com.cognite.client.dto.Annotation.Vertex other = (com.cognite.client.dto.Annotation.Vertex) obj;
if (java.lang.Double.doubleToLongBits(getX())
!= java.lang.Double.doubleToLongBits(
other.getX())) return false;
if (java.lang.Double.doubleToLongBits(getY())
!= java.lang.Double.doubleToLongBits(
other.getY())) 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) + X_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getX()));
hash = (37 * hash) + Y_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getY()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.Annotation.Vertex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation.Vertex 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.Annotation.Vertex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation.Vertex 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.Annotation.Vertex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation.Vertex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Annotation.Vertex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation.Vertex 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.Annotation.Vertex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation.Vertex 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.Annotation.Vertex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation.Vertex 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.Annotation.Vertex 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.Annotation.Vertex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Annotation.Vertex)
com.cognite.client.dto.Annotation.VertexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Vertex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Vertex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Annotation.Vertex.class, com.cognite.client.dto.Annotation.Vertex.Builder.class);
}
// Construct using com.cognite.client.dto.Annotation.Vertex.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();
x_ = 0D;
y_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Vertex_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.Annotation.Vertex getDefaultInstanceForType() {
return com.cognite.client.dto.Annotation.Vertex.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.Annotation.Vertex build() {
com.cognite.client.dto.Annotation.Vertex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.Annotation.Vertex buildPartial() {
com.cognite.client.dto.Annotation.Vertex result = new com.cognite.client.dto.Annotation.Vertex(this);
result.x_ = x_;
result.y_ = y_;
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.Annotation.Vertex) {
return mergeFrom((com.cognite.client.dto.Annotation.Vertex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.Annotation.Vertex other) {
if (other == com.cognite.client.dto.Annotation.Vertex.getDefaultInstance()) return this;
if (other.getX() != 0D) {
setX(other.getX());
}
if (other.getY() != 0D) {
setY(other.getY());
}
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.Annotation.Vertex parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.Annotation.Vertex) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double x_ ;
/**
* double x = 1;
* @return The x.
*/
@java.lang.Override
public double getX() {
return x_;
}
/**
* double x = 1;
* @param value The x to set.
* @return This builder for chaining.
*/
public Builder setX(double value) {
x_ = value;
onChanged();
return this;
}
/**
* double x = 1;
* @return This builder for chaining.
*/
public Builder clearX() {
x_ = 0D;
onChanged();
return this;
}
private double y_ ;
/**
* double y = 2;
* @return The y.
*/
@java.lang.Override
public double getY() {
return y_;
}
/**
* double y = 2;
* @param value The y to set.
* @return This builder for chaining.
*/
public Builder setY(double value) {
y_ = value;
onChanged();
return this;
}
/**
* double y = 2;
* @return This builder for chaining.
*/
public Builder clearY() {
y_ = 0D;
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.Annotation.Vertex)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Annotation.Vertex)
private static final com.cognite.client.dto.Annotation.Vertex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.Annotation.Vertex();
}
public static com.cognite.client.dto.Annotation.Vertex getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Vertex parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Vertex(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.Annotation.Vertex getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.Annotation.Region)
com.google.protobuf.MessageOrBuilder {
/**
* string shape = 1;
* @return The shape.
*/
java.lang.String getShape();
/**
* string shape = 1;
* @return The bytes for shape.
*/
com.google.protobuf.ByteString
getShapeBytes();
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
java.util.List
getVerticesList();
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
com.cognite.client.dto.Annotation.Vertex getVertices(int index);
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
int getVerticesCount();
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
java.util.List extends com.cognite.client.dto.Annotation.VertexOrBuilder>
getVerticesOrBuilderList();
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
com.cognite.client.dto.Annotation.VertexOrBuilder getVerticesOrBuilder(
int index);
/**
* int32 page = 3;
* @return The page.
*/
int getPage();
}
/**
* Protobuf type {@code com.cognite.beam.proto.Annotation.Region}
*/
public static final class Region extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Annotation.Region)
RegionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Region.newBuilder() to construct.
private Region(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Region() {
shape_ = "";
vertices_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Region();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Region(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
shape_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
vertices_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
vertices_.add(
input.readMessage(com.cognite.client.dto.Annotation.Vertex.parser(), extensionRegistry));
break;
}
case 24: {
page_ = input.readInt32();
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)) {
vertices_ = java.util.Collections.unmodifiableList(vertices_);
}
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_Annotation_Region_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Region_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Annotation.Region.class, com.cognite.client.dto.Annotation.Region.Builder.class);
}
public static final int SHAPE_FIELD_NUMBER = 1;
private volatile java.lang.Object shape_;
/**
* string shape = 1;
* @return The shape.
*/
@java.lang.Override
public java.lang.String getShape() {
java.lang.Object ref = shape_;
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();
shape_ = s;
return s;
}
}
/**
* string shape = 1;
* @return The bytes for shape.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getShapeBytes() {
java.lang.Object ref = shape_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shape_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERTICES_FIELD_NUMBER = 2;
private java.util.List vertices_;
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
@java.lang.Override
public java.util.List getVerticesList() {
return vertices_;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.Annotation.VertexOrBuilder>
getVerticesOrBuilderList() {
return vertices_;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
@java.lang.Override
public int getVerticesCount() {
return vertices_.size();
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
@java.lang.Override
public com.cognite.client.dto.Annotation.Vertex getVertices(int index) {
return vertices_.get(index);
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
@java.lang.Override
public com.cognite.client.dto.Annotation.VertexOrBuilder getVerticesOrBuilder(
int index) {
return vertices_.get(index);
}
public static final int PAGE_FIELD_NUMBER = 3;
private int page_;
/**
* int32 page = 3;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shape_);
}
for (int i = 0; i < vertices_.size(); i++) {
output.writeMessage(2, vertices_.get(i));
}
if (page_ != 0) {
output.writeInt32(3, page_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shape_);
}
for (int i = 0; i < vertices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, vertices_.get(i));
}
if (page_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, page_);
}
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.Annotation.Region)) {
return super.equals(obj);
}
com.cognite.client.dto.Annotation.Region other = (com.cognite.client.dto.Annotation.Region) obj;
if (!getShape()
.equals(other.getShape())) return false;
if (!getVerticesList()
.equals(other.getVerticesList())) return false;
if (getPage()
!= other.getPage()) 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) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShape().hashCode();
if (getVerticesCount() > 0) {
hash = (37 * hash) + VERTICES_FIELD_NUMBER;
hash = (53 * hash) + getVerticesList().hashCode();
}
hash = (37 * hash) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.Annotation.Region parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation.Region 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.Annotation.Region parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation.Region 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.Annotation.Region parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation.Region parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Annotation.Region parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation.Region 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.Annotation.Region parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation.Region 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.Annotation.Region parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation.Region 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.Annotation.Region 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.Annotation.Region}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Annotation.Region)
com.cognite.client.dto.Annotation.RegionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Region_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Region_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Annotation.Region.class, com.cognite.client.dto.Annotation.Region.Builder.class);
}
// Construct using com.cognite.client.dto.Annotation.Region.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVerticesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
shape_ = "";
if (verticesBuilder_ == null) {
vertices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
verticesBuilder_.clear();
}
page_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_Region_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.Annotation.Region getDefaultInstanceForType() {
return com.cognite.client.dto.Annotation.Region.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.Annotation.Region build() {
com.cognite.client.dto.Annotation.Region result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.Annotation.Region buildPartial() {
com.cognite.client.dto.Annotation.Region result = new com.cognite.client.dto.Annotation.Region(this);
int from_bitField0_ = bitField0_;
result.shape_ = shape_;
if (verticesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
vertices_ = java.util.Collections.unmodifiableList(vertices_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.vertices_ = vertices_;
} else {
result.vertices_ = verticesBuilder_.build();
}
result.page_ = page_;
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.Annotation.Region) {
return mergeFrom((com.cognite.client.dto.Annotation.Region)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.Annotation.Region other) {
if (other == com.cognite.client.dto.Annotation.Region.getDefaultInstance()) return this;
if (!other.getShape().isEmpty()) {
shape_ = other.shape_;
onChanged();
}
if (verticesBuilder_ == null) {
if (!other.vertices_.isEmpty()) {
if (vertices_.isEmpty()) {
vertices_ = other.vertices_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVerticesIsMutable();
vertices_.addAll(other.vertices_);
}
onChanged();
}
} else {
if (!other.vertices_.isEmpty()) {
if (verticesBuilder_.isEmpty()) {
verticesBuilder_.dispose();
verticesBuilder_ = null;
vertices_ = other.vertices_;
bitField0_ = (bitField0_ & ~0x00000001);
verticesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVerticesFieldBuilder() : null;
} else {
verticesBuilder_.addAllMessages(other.vertices_);
}
}
}
if (other.getPage() != 0) {
setPage(other.getPage());
}
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.Annotation.Region parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.Annotation.Region) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object shape_ = "";
/**
* string shape = 1;
* @return The shape.
*/
public java.lang.String getShape() {
java.lang.Object ref = shape_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
shape_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string shape = 1;
* @return The bytes for shape.
*/
public com.google.protobuf.ByteString
getShapeBytes() {
java.lang.Object ref = shape_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shape_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string shape = 1;
* @param value The shape to set.
* @return This builder for chaining.
*/
public Builder setShape(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
shape_ = value;
onChanged();
return this;
}
/**
* string shape = 1;
* @return This builder for chaining.
*/
public Builder clearShape() {
shape_ = getDefaultInstance().getShape();
onChanged();
return this;
}
/**
* string shape = 1;
* @param value The bytes for shape to set.
* @return This builder for chaining.
*/
public Builder setShapeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
shape_ = value;
onChanged();
return this;
}
private java.util.List vertices_ =
java.util.Collections.emptyList();
private void ensureVerticesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
vertices_ = new java.util.ArrayList(vertices_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Annotation.Vertex, com.cognite.client.dto.Annotation.Vertex.Builder, com.cognite.client.dto.Annotation.VertexOrBuilder> verticesBuilder_;
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public java.util.List getVerticesList() {
if (verticesBuilder_ == null) {
return java.util.Collections.unmodifiableList(vertices_);
} else {
return verticesBuilder_.getMessageList();
}
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public int getVerticesCount() {
if (verticesBuilder_ == null) {
return vertices_.size();
} else {
return verticesBuilder_.getCount();
}
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public com.cognite.client.dto.Annotation.Vertex getVertices(int index) {
if (verticesBuilder_ == null) {
return vertices_.get(index);
} else {
return verticesBuilder_.getMessage(index);
}
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder setVertices(
int index, com.cognite.client.dto.Annotation.Vertex value) {
if (verticesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVerticesIsMutable();
vertices_.set(index, value);
onChanged();
} else {
verticesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder setVertices(
int index, com.cognite.client.dto.Annotation.Vertex.Builder builderForValue) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.set(index, builderForValue.build());
onChanged();
} else {
verticesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder addVertices(com.cognite.client.dto.Annotation.Vertex value) {
if (verticesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVerticesIsMutable();
vertices_.add(value);
onChanged();
} else {
verticesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder addVertices(
int index, com.cognite.client.dto.Annotation.Vertex value) {
if (verticesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVerticesIsMutable();
vertices_.add(index, value);
onChanged();
} else {
verticesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder addVertices(
com.cognite.client.dto.Annotation.Vertex.Builder builderForValue) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.add(builderForValue.build());
onChanged();
} else {
verticesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder addVertices(
int index, com.cognite.client.dto.Annotation.Vertex.Builder builderForValue) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.add(index, builderForValue.build());
onChanged();
} else {
verticesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder addAllVertices(
java.lang.Iterable extends com.cognite.client.dto.Annotation.Vertex> values) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vertices_);
onChanged();
} else {
verticesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder clearVertices() {
if (verticesBuilder_ == null) {
vertices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
verticesBuilder_.clear();
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public Builder removeVertices(int index) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.remove(index);
onChanged();
} else {
verticesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public com.cognite.client.dto.Annotation.Vertex.Builder getVerticesBuilder(
int index) {
return getVerticesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public com.cognite.client.dto.Annotation.VertexOrBuilder getVerticesOrBuilder(
int index) {
if (verticesBuilder_ == null) {
return vertices_.get(index); } else {
return verticesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public java.util.List extends com.cognite.client.dto.Annotation.VertexOrBuilder>
getVerticesOrBuilderList() {
if (verticesBuilder_ != null) {
return verticesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(vertices_);
}
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public com.cognite.client.dto.Annotation.Vertex.Builder addVerticesBuilder() {
return getVerticesFieldBuilder().addBuilder(
com.cognite.client.dto.Annotation.Vertex.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public com.cognite.client.dto.Annotation.Vertex.Builder addVerticesBuilder(
int index) {
return getVerticesFieldBuilder().addBuilder(
index, com.cognite.client.dto.Annotation.Vertex.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.Annotation.Vertex vertices = 2;
*/
public java.util.List
getVerticesBuilderList() {
return getVerticesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Annotation.Vertex, com.cognite.client.dto.Annotation.Vertex.Builder, com.cognite.client.dto.Annotation.VertexOrBuilder>
getVerticesFieldBuilder() {
if (verticesBuilder_ == null) {
verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Annotation.Vertex, com.cognite.client.dto.Annotation.Vertex.Builder, com.cognite.client.dto.Annotation.VertexOrBuilder>(
vertices_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
vertices_ = null;
}
return verticesBuilder_;
}
private int page_ ;
/**
* int32 page = 3;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
/**
* int32 page = 3;
* @param value The page to set.
* @return This builder for chaining.
*/
public Builder setPage(int value) {
page_ = value;
onChanged();
return this;
}
/**
* int32 page = 3;
* @return This builder for chaining.
*/
public Builder clearPage() {
page_ = 0;
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.Annotation.Region)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Annotation.Region)
private static final com.cognite.client.dto.Annotation.Region DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.Annotation.Region();
}
public static com.cognite.client.dto.Annotation.Region getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Region parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Region(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.Annotation.Region getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object text_;
/**
* optional string text = 1;
* @return Whether the text field is set.
*/
@java.lang.Override
public boolean hasText() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string text = 1;
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = text_;
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();
text_ = s;
return s;
}
}
/**
* optional string text = 1;
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIDENCE_FIELD_NUMBER = 2;
private double confidence_;
/**
* optional double confidence = 2;
* @return Whether the confidence field is set.
*/
@java.lang.Override
public boolean hasConfidence() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double confidence = 2;
* @return The confidence.
*/
@java.lang.Override
public double getConfidence() {
return confidence_;
}
public static final int REGION_FIELD_NUMBER = 3;
private com.cognite.client.dto.Annotation.Region region_;
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
* @return Whether the region field is set.
*/
@java.lang.Override
public boolean hasRegion() {
return region_ != null;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
* @return The region.
*/
@java.lang.Override
public com.cognite.client.dto.Annotation.Region getRegion() {
return region_ == null ? com.cognite.client.dto.Annotation.Region.getDefaultInstance() : region_;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
@java.lang.Override
public com.cognite.client.dto.Annotation.RegionOrBuilder getRegionOrBuilder() {
return getRegion();
}
public static final int ENTITIES_FIELD_NUMBER = 4;
private java.util.List entities_;
/**
* repeated .google.protobuf.Struct entities = 4;
*/
@java.lang.Override
public java.util.List getEntitiesList() {
return entities_;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.StructOrBuilder>
getEntitiesOrBuilderList() {
return entities_;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
@java.lang.Override
public int getEntitiesCount() {
return entities_.size();
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
@java.lang.Override
public com.google.protobuf.Struct getEntities(int index) {
return entities_.get(index);
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getEntitiesOrBuilder(
int index) {
return entities_.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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, confidence_);
}
if (region_ != null) {
output.writeMessage(3, getRegion());
}
for (int i = 0; i < entities_.size(); i++) {
output.writeMessage(4, entities_.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.GeneratedMessageV3.computeStringSize(1, text_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, confidence_);
}
if (region_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRegion());
}
for (int i = 0; i < entities_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, entities_.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.Annotation)) {
return super.equals(obj);
}
com.cognite.client.dto.Annotation other = (com.cognite.client.dto.Annotation) obj;
if (hasText() != other.hasText()) return false;
if (hasText()) {
if (!getText()
.equals(other.getText())) return false;
}
if (hasConfidence() != other.hasConfidence()) return false;
if (hasConfidence()) {
if (java.lang.Double.doubleToLongBits(getConfidence())
!= java.lang.Double.doubleToLongBits(
other.getConfidence())) return false;
}
if (hasRegion() != other.hasRegion()) return false;
if (hasRegion()) {
if (!getRegion()
.equals(other.getRegion())) return false;
}
if (!getEntitiesList()
.equals(other.getEntitiesList())) 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 (hasText()) {
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
}
if (hasConfidence()) {
hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getConfidence()));
}
if (hasRegion()) {
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
}
if (getEntitiesCount() > 0) {
hash = (37 * hash) + ENTITIES_FIELD_NUMBER;
hash = (53 * hash) + getEntitiesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.Annotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation 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.Annotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation 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.Annotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Annotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Annotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation 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.Annotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation 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.Annotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Annotation 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.Annotation 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.Annotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Annotation)
com.cognite.client.dto.AnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.DiagramResponseOuterClass.internal_static_com_cognite_beam_proto_Annotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Annotation.class, com.cognite.client.dto.Annotation.Builder.class);
}
// Construct using com.cognite.client.dto.Annotation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntitiesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
text_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
confidence_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
if (regionBuilder_ == null) {
region_ = null;
} else {
region_ = null;
regionBuilder_ = null;
}
if (entitiesBuilder_ == null) {
entities_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
entitiesBuilder_.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_Annotation_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.Annotation getDefaultInstanceForType() {
return com.cognite.client.dto.Annotation.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.Annotation build() {
com.cognite.client.dto.Annotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.Annotation buildPartial() {
com.cognite.client.dto.Annotation result = new com.cognite.client.dto.Annotation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.text_ = text_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.confidence_ = confidence_;
to_bitField0_ |= 0x00000002;
}
if (regionBuilder_ == null) {
result.region_ = region_;
} else {
result.region_ = regionBuilder_.build();
}
if (entitiesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
entities_ = java.util.Collections.unmodifiableList(entities_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.entities_ = entities_;
} else {
result.entities_ = entitiesBuilder_.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.Annotation) {
return mergeFrom((com.cognite.client.dto.Annotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.Annotation other) {
if (other == com.cognite.client.dto.Annotation.getDefaultInstance()) return this;
if (other.hasText()) {
bitField0_ |= 0x00000001;
text_ = other.text_;
onChanged();
}
if (other.hasConfidence()) {
setConfidence(other.getConfidence());
}
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
if (entitiesBuilder_ == null) {
if (!other.entities_.isEmpty()) {
if (entities_.isEmpty()) {
entities_ = other.entities_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEntitiesIsMutable();
entities_.addAll(other.entities_);
}
onChanged();
}
} else {
if (!other.entities_.isEmpty()) {
if (entitiesBuilder_.isEmpty()) {
entitiesBuilder_.dispose();
entitiesBuilder_ = null;
entities_ = other.entities_;
bitField0_ = (bitField0_ & ~0x00000004);
entitiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntitiesFieldBuilder() : null;
} else {
entitiesBuilder_.addAllMessages(other.entities_);
}
}
}
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.Annotation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.Annotation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object text_ = "";
/**
* optional string text = 1;
* @return Whether the text field is set.
*/
public boolean hasText() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string text = 1;
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string text = 1;
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string text = 1;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
/**
* optional string text = 1;
* @return This builder for chaining.
*/
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00000001);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* optional string text = 1;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
private double confidence_ ;
/**
* optional double confidence = 2;
* @return Whether the confidence field is set.
*/
@java.lang.Override
public boolean hasConfidence() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double confidence = 2;
* @return The confidence.
*/
@java.lang.Override
public double getConfidence() {
return confidence_;
}
/**
* optional double confidence = 2;
* @param value The confidence to set.
* @return This builder for chaining.
*/
public Builder setConfidence(double value) {
bitField0_ |= 0x00000002;
confidence_ = value;
onChanged();
return this;
}
/**
* optional double confidence = 2;
* @return This builder for chaining.
*/
public Builder clearConfidence() {
bitField0_ = (bitField0_ & ~0x00000002);
confidence_ = 0D;
onChanged();
return this;
}
private com.cognite.client.dto.Annotation.Region region_;
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Annotation.Region, com.cognite.client.dto.Annotation.Region.Builder, com.cognite.client.dto.Annotation.RegionOrBuilder> regionBuilder_;
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
* @return Whether the region field is set.
*/
public boolean hasRegion() {
return regionBuilder_ != null || region_ != null;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
* @return The region.
*/
public com.cognite.client.dto.Annotation.Region getRegion() {
if (regionBuilder_ == null) {
return region_ == null ? com.cognite.client.dto.Annotation.Region.getDefaultInstance() : region_;
} else {
return regionBuilder_.getMessage();
}
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
public Builder setRegion(com.cognite.client.dto.Annotation.Region value) {
if (regionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
onChanged();
} else {
regionBuilder_.setMessage(value);
}
return this;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
public Builder setRegion(
com.cognite.client.dto.Annotation.Region.Builder builderForValue) {
if (regionBuilder_ == null) {
region_ = builderForValue.build();
onChanged();
} else {
regionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
public Builder mergeRegion(com.cognite.client.dto.Annotation.Region value) {
if (regionBuilder_ == null) {
if (region_ != null) {
region_ =
com.cognite.client.dto.Annotation.Region.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
onChanged();
} else {
regionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
public Builder clearRegion() {
if (regionBuilder_ == null) {
region_ = null;
onChanged();
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
public com.cognite.client.dto.Annotation.Region.Builder getRegionBuilder() {
onChanged();
return getRegionFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
public com.cognite.client.dto.Annotation.RegionOrBuilder getRegionOrBuilder() {
if (regionBuilder_ != null) {
return regionBuilder_.getMessageOrBuilder();
} else {
return region_ == null ?
com.cognite.client.dto.Annotation.Region.getDefaultInstance() : region_;
}
}
/**
* .com.cognite.beam.proto.Annotation.Region region = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Annotation.Region, com.cognite.client.dto.Annotation.Region.Builder, com.cognite.client.dto.Annotation.RegionOrBuilder>
getRegionFieldBuilder() {
if (regionBuilder_ == null) {
regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Annotation.Region, com.cognite.client.dto.Annotation.Region.Builder, com.cognite.client.dto.Annotation.RegionOrBuilder>(
getRegion(),
getParentForChildren(),
isClean());
region_ = null;
}
return regionBuilder_;
}
private java.util.List entities_ =
java.util.Collections.emptyList();
private void ensureEntitiesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
entities_ = new java.util.ArrayList(entities_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> entitiesBuilder_;
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public java.util.List getEntitiesList() {
if (entitiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(entities_);
} else {
return entitiesBuilder_.getMessageList();
}
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public int getEntitiesCount() {
if (entitiesBuilder_ == null) {
return entities_.size();
} else {
return entitiesBuilder_.getCount();
}
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public com.google.protobuf.Struct getEntities(int index) {
if (entitiesBuilder_ == null) {
return entities_.get(index);
} else {
return entitiesBuilder_.getMessage(index);
}
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder setEntities(
int index, com.google.protobuf.Struct value) {
if (entitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntitiesIsMutable();
entities_.set(index, value);
onChanged();
} else {
entitiesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder setEntities(
int index, com.google.protobuf.Struct.Builder builderForValue) {
if (entitiesBuilder_ == null) {
ensureEntitiesIsMutable();
entities_.set(index, builderForValue.build());
onChanged();
} else {
entitiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder addEntities(com.google.protobuf.Struct value) {
if (entitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntitiesIsMutable();
entities_.add(value);
onChanged();
} else {
entitiesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder addEntities(
int index, com.google.protobuf.Struct value) {
if (entitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntitiesIsMutable();
entities_.add(index, value);
onChanged();
} else {
entitiesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder addEntities(
com.google.protobuf.Struct.Builder builderForValue) {
if (entitiesBuilder_ == null) {
ensureEntitiesIsMutable();
entities_.add(builderForValue.build());
onChanged();
} else {
entitiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder addEntities(
int index, com.google.protobuf.Struct.Builder builderForValue) {
if (entitiesBuilder_ == null) {
ensureEntitiesIsMutable();
entities_.add(index, builderForValue.build());
onChanged();
} else {
entitiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder addAllEntities(
java.lang.Iterable extends com.google.protobuf.Struct> values) {
if (entitiesBuilder_ == null) {
ensureEntitiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entities_);
onChanged();
} else {
entitiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder clearEntities() {
if (entitiesBuilder_ == null) {
entities_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
entitiesBuilder_.clear();
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public Builder removeEntities(int index) {
if (entitiesBuilder_ == null) {
ensureEntitiesIsMutable();
entities_.remove(index);
onChanged();
} else {
entitiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public com.google.protobuf.Struct.Builder getEntitiesBuilder(
int index) {
return getEntitiesFieldBuilder().getBuilder(index);
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public com.google.protobuf.StructOrBuilder getEntitiesOrBuilder(
int index) {
if (entitiesBuilder_ == null) {
return entities_.get(index); } else {
return entitiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public java.util.List extends com.google.protobuf.StructOrBuilder>
getEntitiesOrBuilderList() {
if (entitiesBuilder_ != null) {
return entitiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entities_);
}
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public com.google.protobuf.Struct.Builder addEntitiesBuilder() {
return getEntitiesFieldBuilder().addBuilder(
com.google.protobuf.Struct.getDefaultInstance());
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public com.google.protobuf.Struct.Builder addEntitiesBuilder(
int index) {
return getEntitiesFieldBuilder().addBuilder(
index, com.google.protobuf.Struct.getDefaultInstance());
}
/**
* repeated .google.protobuf.Struct entities = 4;
*/
public java.util.List
getEntitiesBuilderList() {
return getEntitiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getEntitiesFieldBuilder() {
if (entitiesBuilder_ == null) {
entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
entities_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
entities_ = null;
}
return entitiesBuilder_;
}
@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.Annotation)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Annotation)
private static final com.cognite.client.dto.Annotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.Annotation();
}
public static com.cognite.client.dto.Annotation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Annotation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Annotation(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.Annotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy