proto.com.cognite.client.dto.Aggregate 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: aggregate.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.Aggregate}
*/
public final class Aggregate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Aggregate)
AggregateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Aggregate.newBuilder() to construct.
private Aggregate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Aggregate() {
aggregates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Aggregate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Aggregate(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
aggregates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
aggregates_.add(
input.readMessage(com.cognite.client.dto.Aggregate.Record.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_ & 0x00000001) != 0)) {
aggregates_ = java.util.Collections.unmodifiableList(aggregates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Aggregate.class, com.cognite.client.dto.Aggregate.Builder.class);
}
public interface RecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.Aggregate.Record)
com.google.protobuf.MessageOrBuilder {
/**
* optional string value = 1;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional string value = 1;
* @return The value.
*/
java.lang.String getValue();
/**
* optional string value = 1;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* int64 count = 2;
* @return The count.
*/
long getCount();
}
/**
* Protobuf type {@code com.cognite.beam.proto.Aggregate.Record}
*/
public static final class Record extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Aggregate.Record)
RecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use Record.newBuilder() to construct.
private Record(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Record() {
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Record();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Record(
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;
value_ = s;
break;
}
case 16: {
count_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_Record_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_Record_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Aggregate.Record.class, com.cognite.client.dto.Aggregate.Record.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private volatile java.lang.Object value_;
/**
* optional string value = 1;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string value = 1;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
* optional string value = 1;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 2;
private long count_;
/**
* int64 count = 2;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
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, value_);
}
if (count_ != 0L) {
output.writeInt64(2, count_);
}
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, value_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, count_);
}
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.Aggregate.Record)) {
return super.equals(obj);
}
com.cognite.client.dto.Aggregate.Record other = (com.cognite.client.dto.Aggregate.Record) obj;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (getCount()
!= other.getCount()) 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 (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.Aggregate.Record parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Aggregate.Record 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.Aggregate.Record parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Aggregate.Record 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.Aggregate.Record parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Aggregate.Record parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Aggregate.Record parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Aggregate.Record 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.Aggregate.Record parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Aggregate.Record 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.Aggregate.Record parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Aggregate.Record 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.Aggregate.Record 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.Aggregate.Record}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Aggregate.Record)
com.cognite.client.dto.Aggregate.RecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_Record_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_Record_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Aggregate.Record.class, com.cognite.client.dto.Aggregate.Record.Builder.class);
}
// Construct using com.cognite.client.dto.Aggregate.Record.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();
value_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
count_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_Record_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.Aggregate.Record getDefaultInstanceForType() {
return com.cognite.client.dto.Aggregate.Record.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.Aggregate.Record build() {
com.cognite.client.dto.Aggregate.Record result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.Aggregate.Record buildPartial() {
com.cognite.client.dto.Aggregate.Record result = new com.cognite.client.dto.Aggregate.Record(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
result.count_ = count_;
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.Aggregate.Record) {
return mergeFrom((com.cognite.client.dto.Aggregate.Record)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.Aggregate.Record other) {
if (other == com.cognite.client.dto.Aggregate.Record.getDefaultInstance()) return this;
if (other.hasValue()) {
bitField0_ |= 0x00000001;
value_ = other.value_;
onChanged();
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
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.Aggregate.Record parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.Aggregate.Record) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object value_ = "";
/**
* optional string value = 1;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string value = 1;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 1;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 1;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
private long count_ ;
/**
* int64 count = 2;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
* int64 count = 2;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
* int64 count = 2;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.cognite.beam.proto.Aggregate.Record)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Aggregate.Record)
private static final com.cognite.client.dto.Aggregate.Record DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.Aggregate.Record();
}
public static com.cognite.client.dto.Aggregate.Record getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Record parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Record(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.Aggregate.Record getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int AGGREGATES_FIELD_NUMBER = 1;
private java.util.List aggregates_;
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
@java.lang.Override
public java.util.List getAggregatesList() {
return aggregates_;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.Aggregate.RecordOrBuilder>
getAggregatesOrBuilderList() {
return aggregates_;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
@java.lang.Override
public int getAggregatesCount() {
return aggregates_.size();
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
@java.lang.Override
public com.cognite.client.dto.Aggregate.Record getAggregates(int index) {
return aggregates_.get(index);
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
@java.lang.Override
public com.cognite.client.dto.Aggregate.RecordOrBuilder getAggregatesOrBuilder(
int index) {
return aggregates_.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 {
for (int i = 0; i < aggregates_.size(); i++) {
output.writeMessage(1, aggregates_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < aggregates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, aggregates_.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.Aggregate)) {
return super.equals(obj);
}
com.cognite.client.dto.Aggregate other = (com.cognite.client.dto.Aggregate) obj;
if (!getAggregatesList()
.equals(other.getAggregatesList())) 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 (getAggregatesCount() > 0) {
hash = (37 * hash) + AGGREGATES_FIELD_NUMBER;
hash = (53 * hash) + getAggregatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.Aggregate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Aggregate 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.Aggregate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Aggregate 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.Aggregate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Aggregate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Aggregate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Aggregate 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.Aggregate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Aggregate 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.Aggregate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Aggregate 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.Aggregate 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.Aggregate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Aggregate)
com.cognite.client.dto.AggregateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Aggregate.class, com.cognite.client.dto.Aggregate.Builder.class);
}
// Construct using com.cognite.client.dto.Aggregate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAggregatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (aggregatesBuilder_ == null) {
aggregates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
aggregatesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.AggregateOuterClass.internal_static_com_cognite_beam_proto_Aggregate_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.Aggregate getDefaultInstanceForType() {
return com.cognite.client.dto.Aggregate.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.Aggregate build() {
com.cognite.client.dto.Aggregate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.Aggregate buildPartial() {
com.cognite.client.dto.Aggregate result = new com.cognite.client.dto.Aggregate(this);
int from_bitField0_ = bitField0_;
if (aggregatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
aggregates_ = java.util.Collections.unmodifiableList(aggregates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.aggregates_ = aggregates_;
} else {
result.aggregates_ = aggregatesBuilder_.build();
}
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.Aggregate) {
return mergeFrom((com.cognite.client.dto.Aggregate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.Aggregate other) {
if (other == com.cognite.client.dto.Aggregate.getDefaultInstance()) return this;
if (aggregatesBuilder_ == null) {
if (!other.aggregates_.isEmpty()) {
if (aggregates_.isEmpty()) {
aggregates_ = other.aggregates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAggregatesIsMutable();
aggregates_.addAll(other.aggregates_);
}
onChanged();
}
} else {
if (!other.aggregates_.isEmpty()) {
if (aggregatesBuilder_.isEmpty()) {
aggregatesBuilder_.dispose();
aggregatesBuilder_ = null;
aggregates_ = other.aggregates_;
bitField0_ = (bitField0_ & ~0x00000001);
aggregatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAggregatesFieldBuilder() : null;
} else {
aggregatesBuilder_.addAllMessages(other.aggregates_);
}
}
}
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.Aggregate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.Aggregate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List aggregates_ =
java.util.Collections.emptyList();
private void ensureAggregatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
aggregates_ = new java.util.ArrayList(aggregates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Aggregate.Record, com.cognite.client.dto.Aggregate.Record.Builder, com.cognite.client.dto.Aggregate.RecordOrBuilder> aggregatesBuilder_;
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public java.util.List getAggregatesList() {
if (aggregatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(aggregates_);
} else {
return aggregatesBuilder_.getMessageList();
}
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public int getAggregatesCount() {
if (aggregatesBuilder_ == null) {
return aggregates_.size();
} else {
return aggregatesBuilder_.getCount();
}
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public com.cognite.client.dto.Aggregate.Record getAggregates(int index) {
if (aggregatesBuilder_ == null) {
return aggregates_.get(index);
} else {
return aggregatesBuilder_.getMessage(index);
}
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder setAggregates(
int index, com.cognite.client.dto.Aggregate.Record value) {
if (aggregatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregatesIsMutable();
aggregates_.set(index, value);
onChanged();
} else {
aggregatesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder setAggregates(
int index, com.cognite.client.dto.Aggregate.Record.Builder builderForValue) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.set(index, builderForValue.build());
onChanged();
} else {
aggregatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder addAggregates(com.cognite.client.dto.Aggregate.Record value) {
if (aggregatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregatesIsMutable();
aggregates_.add(value);
onChanged();
} else {
aggregatesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder addAggregates(
int index, com.cognite.client.dto.Aggregate.Record value) {
if (aggregatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregatesIsMutable();
aggregates_.add(index, value);
onChanged();
} else {
aggregatesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder addAggregates(
com.cognite.client.dto.Aggregate.Record.Builder builderForValue) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.add(builderForValue.build());
onChanged();
} else {
aggregatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder addAggregates(
int index, com.cognite.client.dto.Aggregate.Record.Builder builderForValue) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.add(index, builderForValue.build());
onChanged();
} else {
aggregatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder addAllAggregates(
java.lang.Iterable extends com.cognite.client.dto.Aggregate.Record> values) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aggregates_);
onChanged();
} else {
aggregatesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder clearAggregates() {
if (aggregatesBuilder_ == null) {
aggregates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
aggregatesBuilder_.clear();
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public Builder removeAggregates(int index) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.remove(index);
onChanged();
} else {
aggregatesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public com.cognite.client.dto.Aggregate.Record.Builder getAggregatesBuilder(
int index) {
return getAggregatesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public com.cognite.client.dto.Aggregate.RecordOrBuilder getAggregatesOrBuilder(
int index) {
if (aggregatesBuilder_ == null) {
return aggregates_.get(index); } else {
return aggregatesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public java.util.List extends com.cognite.client.dto.Aggregate.RecordOrBuilder>
getAggregatesOrBuilderList() {
if (aggregatesBuilder_ != null) {
return aggregatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(aggregates_);
}
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public com.cognite.client.dto.Aggregate.Record.Builder addAggregatesBuilder() {
return getAggregatesFieldBuilder().addBuilder(
com.cognite.client.dto.Aggregate.Record.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public com.cognite.client.dto.Aggregate.Record.Builder addAggregatesBuilder(
int index) {
return getAggregatesFieldBuilder().addBuilder(
index, com.cognite.client.dto.Aggregate.Record.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.Aggregate.Record aggregates = 1;
*/
public java.util.List
getAggregatesBuilderList() {
return getAggregatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Aggregate.Record, com.cognite.client.dto.Aggregate.Record.Builder, com.cognite.client.dto.Aggregate.RecordOrBuilder>
getAggregatesFieldBuilder() {
if (aggregatesBuilder_ == null) {
aggregatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.Aggregate.Record, com.cognite.client.dto.Aggregate.Record.Builder, com.cognite.client.dto.Aggregate.RecordOrBuilder>(
aggregates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
aggregates_ = null;
}
return aggregatesBuilder_;
}
@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.Aggregate)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Aggregate)
private static final com.cognite.client.dto.Aggregate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.Aggregate();
}
public static com.cognite.client.dto.Aggregate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Aggregate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Aggregate(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.Aggregate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy