All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proto.com.cognite.client.dto.SequenceBody Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: sequence.proto

package com.cognite.client.dto;

/**
 * 
 *SequenceBody encapsulates the main data payload (the rows and columns) of a sequence.
 * 
* * Protobuf type {@code com.cognite.beam.proto.SequenceBody} */ public final class SequenceBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.cognite.beam.proto.SequenceBody) SequenceBodyOrBuilder { private static final long serialVersionUID = 0L; // Use SequenceBody.newBuilder() to construct. private SequenceBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SequenceBody() { externalId_ = ""; columns_ = java.util.Collections.emptyList(); rows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SequenceBody(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SequenceBody( 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; externalId_ = s; break; } case 16: { bitField0_ |= 0x00000002; id_ = input.readInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { columns_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } columns_.add( input.readMessage(com.cognite.client.dto.SequenceColumn.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { rows_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } rows_.add( input.readMessage(com.cognite.client.dto.SequenceRow.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)) { columns_ = java.util.Collections.unmodifiableList(columns_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.cognite.client.dto.Sequence.internal_static_com_cognite_beam_proto_SequenceBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.Sequence.internal_static_com_cognite_beam_proto_SequenceBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.SequenceBody.class, com.cognite.client.dto.SequenceBody.Builder.class); } private int bitField0_; public static final int EXTERNAL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object externalId_; /** * optional string external_id = 1; * @return Whether the externalId field is set. */ @java.lang.Override public boolean hasExternalId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string external_id = 1; * @return The externalId. */ @java.lang.Override public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; } } /** * optional string external_id = 1; * @return The bytes for externalId. */ @java.lang.Override public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); externalId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private long id_; /** * optional int64 id = 2; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 id = 2; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int COLUMNS_FIELD_NUMBER = 3; private java.util.List columns_; /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ @java.lang.Override public java.util.List getColumnsList() { return columns_; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ @java.lang.Override public java.util.List getColumnsOrBuilderList() { return columns_; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ @java.lang.Override public int getColumnsCount() { return columns_.size(); } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ @java.lang.Override public com.cognite.client.dto.SequenceColumn getColumns(int index) { return columns_.get(index); } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ @java.lang.Override public com.cognite.client.dto.SequenceColumnOrBuilder getColumnsOrBuilder( int index) { return columns_.get(index); } public static final int ROWS_FIELD_NUMBER = 4; private java.util.List rows_; /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ @java.lang.Override public java.util.List getRowsList() { return rows_; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ @java.lang.Override public java.util.List getRowsOrBuilderList() { return rows_; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ @java.lang.Override public int getRowsCount() { return rows_.size(); } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ @java.lang.Override public com.cognite.client.dto.SequenceRow getRows(int index) { return rows_.get(index); } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ @java.lang.Override public com.cognite.client.dto.SequenceRowOrBuilder getRowsOrBuilder( int index) { return rows_.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, externalId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, id_); } for (int i = 0; i < columns_.size(); i++) { output.writeMessage(3, columns_.get(i)); } for (int i = 0; i < rows_.size(); i++) { output.writeMessage(4, rows_.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, externalId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, id_); } for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, columns_.get(i)); } for (int i = 0; i < rows_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, rows_.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.SequenceBody)) { return super.equals(obj); } com.cognite.client.dto.SequenceBody other = (com.cognite.client.dto.SequenceBody) obj; if (hasExternalId() != other.hasExternalId()) return false; if (hasExternalId()) { if (!getExternalId() .equals(other.getExternalId())) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (!getColumnsList() .equals(other.getColumnsList())) return false; if (!getRowsList() .equals(other.getRowsList())) 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 (hasExternalId()) { hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; hash = (53 * hash) + getExternalId().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } if (getColumnsCount() > 0) { hash = (37 * hash) + COLUMNS_FIELD_NUMBER; hash = (53 * hash) + getColumnsList().hashCode(); } if (getRowsCount() > 0) { hash = (37 * hash) + ROWS_FIELD_NUMBER; hash = (53 * hash) + getRowsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.cognite.client.dto.SequenceBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.SequenceBody 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.SequenceBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.SequenceBody 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.SequenceBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.SequenceBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.cognite.client.dto.SequenceBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.SequenceBody 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.SequenceBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.cognite.client.dto.SequenceBody 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.SequenceBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.SequenceBody 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.SequenceBody 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; } /** *
   *SequenceBody encapsulates the main data payload (the rows and columns) of a sequence.
   * 
* * Protobuf type {@code com.cognite.beam.proto.SequenceBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.SequenceBody) com.cognite.client.dto.SequenceBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.cognite.client.dto.Sequence.internal_static_com_cognite_beam_proto_SequenceBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.Sequence.internal_static_com_cognite_beam_proto_SequenceBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.SequenceBody.class, com.cognite.client.dto.SequenceBody.Builder.class); } // Construct using com.cognite.client.dto.SequenceBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getColumnsFieldBuilder(); getRowsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); externalId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { columnsBuilder_.clear(); } if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { rowsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.cognite.client.dto.Sequence.internal_static_com_cognite_beam_proto_SequenceBody_descriptor; } @java.lang.Override public com.cognite.client.dto.SequenceBody getDefaultInstanceForType() { return com.cognite.client.dto.SequenceBody.getDefaultInstance(); } @java.lang.Override public com.cognite.client.dto.SequenceBody build() { com.cognite.client.dto.SequenceBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.cognite.client.dto.SequenceBody buildPartial() { com.cognite.client.dto.SequenceBody result = new com.cognite.client.dto.SequenceBody(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.externalId_ = externalId_; if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000002; } if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000004); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } if (rowsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); bitField0_ = (bitField0_ & ~0x00000008); } result.rows_ = rows_; } else { result.rows_ = rowsBuilder_.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.SequenceBody) { return mergeFrom((com.cognite.client.dto.SequenceBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.cognite.client.dto.SequenceBody other) { if (other == com.cognite.client.dto.SequenceBody.getDefaultInstance()) return this; if (other.hasExternalId()) { bitField0_ |= 0x00000001; externalId_ = other.externalId_; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000004); columnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } if (rowsBuilder_ == null) { if (!other.rows_.isEmpty()) { if (rows_.isEmpty()) { rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRowsIsMutable(); rows_.addAll(other.rows_); } onChanged(); } } else { if (!other.rows_.isEmpty()) { if (rowsBuilder_.isEmpty()) { rowsBuilder_.dispose(); rowsBuilder_ = null; rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000008); rowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRowsFieldBuilder() : null; } else { rowsBuilder_.addAllMessages(other.rows_); } } } 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.SequenceBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.cognite.client.dto.SequenceBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object externalId_ = ""; /** * optional string external_id = 1; * @return Whether the externalId field is set. */ public boolean hasExternalId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string external_id = 1; * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string external_id = 1; * @return The bytes for externalId. */ public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); externalId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string external_id = 1; * @param value The externalId to set. * @return This builder for chaining. */ public Builder setExternalId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; externalId_ = value; onChanged(); return this; } /** * optional string external_id = 1; * @return This builder for chaining. */ public Builder clearExternalId() { bitField0_ = (bitField0_ & ~0x00000001); externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** * optional string external_id = 1; * @param value The bytes for externalId to set. * @return This builder for chaining. */ public Builder setExternalIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; externalId_ = value; onChanged(); return this; } private long id_ ; /** * optional int64 id = 2; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 id = 2; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** * optional int64 id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } /** * optional int64 id = 2; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = 0L; onChanged(); return this; } private java.util.List columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { columns_ = new java.util.ArrayList(columns_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.SequenceColumn, com.cognite.client.dto.SequenceColumn.Builder, com.cognite.client.dto.SequenceColumnOrBuilder> columnsBuilder_; /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public java.util.List getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public com.cognite.client.dto.SequenceColumn getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder setColumns( int index, com.cognite.client.dto.SequenceColumn value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); } else { columnsBuilder_.setMessage(index, value); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder setColumns( int index, com.cognite.client.dto.SequenceColumn.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder addColumns(com.cognite.client.dto.SequenceColumn value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder addColumns( int index, com.cognite.client.dto.SequenceColumn value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(index, value); onChanged(); } else { columnsBuilder_.addMessage(index, value); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder addColumns( com.cognite.client.dto.SequenceColumn.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder addColumns( int index, com.cognite.client.dto.SequenceColumn.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder addAllColumns( java.lang.Iterable values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public com.cognite.client.dto.SequenceColumn.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public com.cognite.client.dto.SequenceColumnOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public java.util.List getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public com.cognite.client.dto.SequenceColumn.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( com.cognite.client.dto.SequenceColumn.getDefaultInstance()); } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public com.cognite.client.dto.SequenceColumn.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, com.cognite.client.dto.SequenceColumn.getDefaultInstance()); } /** * repeated .com.cognite.beam.proto.SequenceColumn columns = 3; */ public java.util.List getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.SequenceColumn, com.cognite.client.dto.SequenceColumn.Builder, com.cognite.client.dto.SequenceColumnOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.SequenceColumn, com.cognite.client.dto.SequenceColumn.Builder, com.cognite.client.dto.SequenceColumnOrBuilder>( columns_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } private java.util.List rows_ = java.util.Collections.emptyList(); private void ensureRowsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { rows_ = new java.util.ArrayList(rows_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.SequenceRow, com.cognite.client.dto.SequenceRow.Builder, com.cognite.client.dto.SequenceRowOrBuilder> rowsBuilder_; /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { return rowsBuilder_.getMessageList(); } } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public int getRowsCount() { if (rowsBuilder_ == null) { return rows_.size(); } else { return rowsBuilder_.getCount(); } } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public com.cognite.client.dto.SequenceRow getRows(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessage(index); } } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder setRows( int index, com.cognite.client.dto.SequenceRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.set(index, value); onChanged(); } else { rowsBuilder_.setMessage(index, value); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder setRows( int index, com.cognite.client.dto.SequenceRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder addRows(com.cognite.client.dto.SequenceRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(value); onChanged(); } else { rowsBuilder_.addMessage(value); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder addRows( int index, com.cognite.client.dto.SequenceRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(index, value); onChanged(); } else { rowsBuilder_.addMessage(index, value); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder addRows( com.cognite.client.dto.SequenceRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder addRows( int index, com.cognite.client.dto.SequenceRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder addAllRows( java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder clearRows() { if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { rowsBuilder_.clear(); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.remove(index); onChanged(); } else { rowsBuilder_.remove(index); } return this; } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public com.cognite.client.dto.SequenceRow.Builder getRowsBuilder( int index) { return getRowsFieldBuilder().getBuilder(index); } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public com.cognite.client.dto.SequenceRowOrBuilder getRowsOrBuilder( int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public java.util.List getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rows_); } } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public com.cognite.client.dto.SequenceRow.Builder addRowsBuilder() { return getRowsFieldBuilder().addBuilder( com.cognite.client.dto.SequenceRow.getDefaultInstance()); } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public com.cognite.client.dto.SequenceRow.Builder addRowsBuilder( int index) { return getRowsFieldBuilder().addBuilder( index, com.cognite.client.dto.SequenceRow.getDefaultInstance()); } /** * repeated .com.cognite.beam.proto.SequenceRow rows = 4; */ public java.util.List getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.SequenceRow, com.cognite.client.dto.SequenceRow.Builder, com.cognite.client.dto.SequenceRowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.SequenceRow, com.cognite.client.dto.SequenceRow.Builder, com.cognite.client.dto.SequenceRowOrBuilder>( rows_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } @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.SequenceBody) } // @@protoc_insertion_point(class_scope:com.cognite.beam.proto.SequenceBody) private static final com.cognite.client.dto.SequenceBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.cognite.client.dto.SequenceBody(); } public static com.cognite.client.dto.SequenceBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SequenceBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SequenceBody(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.SequenceBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy