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

com.pingcap.tidb.tipb.Chunk Maven / Gradle / Ivy

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

package com.pingcap.tidb.tipb;

/**
 * 
 * Chunk contains multiple rows data and rows meta.
 * 
* * Protobuf type {@code tipb.Chunk} */ public final class Chunk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tipb.Chunk) ChunkOrBuilder { private static final long serialVersionUID = 0L; // Use Chunk.newBuilder() to construct. private Chunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Chunk() { rowsData_ = com.google.protobuf.ByteString.EMPTY; rowsMeta_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Chunk( 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; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 26: { bitField0_ |= 0x00000001; rowsData_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rowsMeta_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } rowsMeta_.add( input.readMessage(com.pingcap.tidb.tipb.RowMeta.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { rowsMeta_ = java.util.Collections.unmodifiableList(rowsMeta_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.Select.internal_static_tipb_Chunk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.Select.internal_static_tipb_Chunk_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.Chunk.class, com.pingcap.tidb.tipb.Chunk.Builder.class); } private int bitField0_; public static final int ROWS_DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString rowsData_; /** *
   * Data for all rows in the chunk.
   * 
* * optional bytes rows_data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"]; */ public boolean hasRowsData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
   * Data for all rows in the chunk.
   * 
* * optional bytes rows_data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"]; */ public com.google.protobuf.ByteString getRowsData() { return rowsData_; } public static final int ROWS_META_FIELD_NUMBER = 4; private java.util.List rowsMeta_; /** *
   * Meta data for every row.
   * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getRowsMetaList() { return rowsMeta_; } /** *
   * Meta data for every row.
   * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getRowsMetaOrBuilderList() { return rowsMeta_; } /** *
   * Meta data for every row.
   * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public int getRowsMetaCount() { return rowsMeta_.size(); } /** *
   * Meta data for every row.
   * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMeta getRowsMeta(int index) { return rowsMeta_.get(index); } /** *
   * Meta data for every row.
   * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMetaOrBuilder getRowsMetaOrBuilder( int index) { return rowsMeta_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(3, rowsData_); } for (int i = 0; i < rowsMeta_.size(); i++) { output.writeMessage(4, rowsMeta_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, rowsData_); } for (int i = 0; i < rowsMeta_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, rowsMeta_.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.pingcap.tidb.tipb.Chunk)) { return super.equals(obj); } com.pingcap.tidb.tipb.Chunk other = (com.pingcap.tidb.tipb.Chunk) obj; boolean result = true; result = result && (hasRowsData() == other.hasRowsData()); if (hasRowsData()) { result = result && getRowsData() .equals(other.getRowsData()); } result = result && getRowsMetaList() .equals(other.getRowsMetaList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRowsData()) { hash = (37 * hash) + ROWS_DATA_FIELD_NUMBER; hash = (53 * hash) + getRowsData().hashCode(); } if (getRowsMetaCount() > 0) { hash = (37 * hash) + ROWS_META_FIELD_NUMBER; hash = (53 * hash) + getRowsMetaList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.pingcap.tidb.tipb.Chunk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Chunk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Chunk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Chunk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Chunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Chunk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Chunk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Chunk 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.pingcap.tidb.tipb.Chunk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Chunk 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.pingcap.tidb.tipb.Chunk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Chunk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.pingcap.tidb.tipb.Chunk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
   * Chunk contains multiple rows data and rows meta.
   * 
* * Protobuf type {@code tipb.Chunk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tipb.Chunk) com.pingcap.tidb.tipb.ChunkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.Select.internal_static_tipb_Chunk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.Select.internal_static_tipb_Chunk_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.Chunk.class, com.pingcap.tidb.tipb.Chunk.Builder.class); } // Construct using com.pingcap.tidb.tipb.Chunk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRowsMetaFieldBuilder(); } } public Builder clear() { super.clear(); rowsData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (rowsMetaBuilder_ == null) { rowsMeta_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rowsMetaBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.pingcap.tidb.tipb.Select.internal_static_tipb_Chunk_descriptor; } public com.pingcap.tidb.tipb.Chunk getDefaultInstanceForType() { return com.pingcap.tidb.tipb.Chunk.getDefaultInstance(); } public com.pingcap.tidb.tipb.Chunk build() { com.pingcap.tidb.tipb.Chunk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.pingcap.tidb.tipb.Chunk buildPartial() { com.pingcap.tidb.tipb.Chunk result = new com.pingcap.tidb.tipb.Chunk(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rowsData_ = rowsData_; if (rowsMetaBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { rowsMeta_ = java.util.Collections.unmodifiableList(rowsMeta_); bitField0_ = (bitField0_ & ~0x00000002); } result.rowsMeta_ = rowsMeta_; } else { result.rowsMeta_ = rowsMetaBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.pingcap.tidb.tipb.Chunk) { return mergeFrom((com.pingcap.tidb.tipb.Chunk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.pingcap.tidb.tipb.Chunk other) { if (other == com.pingcap.tidb.tipb.Chunk.getDefaultInstance()) return this; if (other.hasRowsData()) { setRowsData(other.getRowsData()); } if (rowsMetaBuilder_ == null) { if (!other.rowsMeta_.isEmpty()) { if (rowsMeta_.isEmpty()) { rowsMeta_ = other.rowsMeta_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRowsMetaIsMutable(); rowsMeta_.addAll(other.rowsMeta_); } onChanged(); } } else { if (!other.rowsMeta_.isEmpty()) { if (rowsMetaBuilder_.isEmpty()) { rowsMetaBuilder_.dispose(); rowsMetaBuilder_ = null; rowsMeta_ = other.rowsMeta_; bitField0_ = (bitField0_ & ~0x00000002); rowsMetaBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRowsMetaFieldBuilder() : null; } else { rowsMetaBuilder_.addAllMessages(other.rowsMeta_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.pingcap.tidb.tipb.Chunk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.pingcap.tidb.tipb.Chunk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString rowsData_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Data for all rows in the chunk.
     * 
* * optional bytes rows_data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"]; */ public boolean hasRowsData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Data for all rows in the chunk.
     * 
* * optional bytes rows_data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"]; */ public com.google.protobuf.ByteString getRowsData() { return rowsData_; } /** *
     * Data for all rows in the chunk.
     * 
* * optional bytes rows_data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"]; */ public Builder setRowsData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rowsData_ = value; onChanged(); return this; } /** *
     * Data for all rows in the chunk.
     * 
* * optional bytes rows_data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"]; */ public Builder clearRowsData() { bitField0_ = (bitField0_ & ~0x00000001); rowsData_ = getDefaultInstance().getRowsData(); onChanged(); return this; } private java.util.List rowsMeta_ = java.util.Collections.emptyList(); private void ensureRowsMetaIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rowsMeta_ = new java.util.ArrayList(rowsMeta_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.RowMeta, com.pingcap.tidb.tipb.RowMeta.Builder, com.pingcap.tidb.tipb.RowMetaOrBuilder> rowsMetaBuilder_; /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getRowsMetaList() { if (rowsMetaBuilder_ == null) { return java.util.Collections.unmodifiableList(rowsMeta_); } else { return rowsMetaBuilder_.getMessageList(); } } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public int getRowsMetaCount() { if (rowsMetaBuilder_ == null) { return rowsMeta_.size(); } else { return rowsMetaBuilder_.getCount(); } } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMeta getRowsMeta(int index) { if (rowsMetaBuilder_ == null) { return rowsMeta_.get(index); } else { return rowsMetaBuilder_.getMessage(index); } } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder setRowsMeta( int index, com.pingcap.tidb.tipb.RowMeta value) { if (rowsMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsMetaIsMutable(); rowsMeta_.set(index, value); onChanged(); } else { rowsMetaBuilder_.setMessage(index, value); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder setRowsMeta( int index, com.pingcap.tidb.tipb.RowMeta.Builder builderForValue) { if (rowsMetaBuilder_ == null) { ensureRowsMetaIsMutable(); rowsMeta_.set(index, builderForValue.build()); onChanged(); } else { rowsMetaBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder addRowsMeta(com.pingcap.tidb.tipb.RowMeta value) { if (rowsMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsMetaIsMutable(); rowsMeta_.add(value); onChanged(); } else { rowsMetaBuilder_.addMessage(value); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder addRowsMeta( int index, com.pingcap.tidb.tipb.RowMeta value) { if (rowsMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsMetaIsMutable(); rowsMeta_.add(index, value); onChanged(); } else { rowsMetaBuilder_.addMessage(index, value); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder addRowsMeta( com.pingcap.tidb.tipb.RowMeta.Builder builderForValue) { if (rowsMetaBuilder_ == null) { ensureRowsMetaIsMutable(); rowsMeta_.add(builderForValue.build()); onChanged(); } else { rowsMetaBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder addRowsMeta( int index, com.pingcap.tidb.tipb.RowMeta.Builder builderForValue) { if (rowsMetaBuilder_ == null) { ensureRowsMetaIsMutable(); rowsMeta_.add(index, builderForValue.build()); onChanged(); } else { rowsMetaBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder addAllRowsMeta( java.lang.Iterable values) { if (rowsMetaBuilder_ == null) { ensureRowsMetaIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rowsMeta_); onChanged(); } else { rowsMetaBuilder_.addAllMessages(values); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder clearRowsMeta() { if (rowsMetaBuilder_ == null) { rowsMeta_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rowsMetaBuilder_.clear(); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public Builder removeRowsMeta(int index) { if (rowsMetaBuilder_ == null) { ensureRowsMetaIsMutable(); rowsMeta_.remove(index); onChanged(); } else { rowsMetaBuilder_.remove(index); } return this; } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMeta.Builder getRowsMetaBuilder( int index) { return getRowsMetaFieldBuilder().getBuilder(index); } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMetaOrBuilder getRowsMetaOrBuilder( int index) { if (rowsMetaBuilder_ == null) { return rowsMeta_.get(index); } else { return rowsMetaBuilder_.getMessageOrBuilder(index); } } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getRowsMetaOrBuilderList() { if (rowsMetaBuilder_ != null) { return rowsMetaBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rowsMeta_); } } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMeta.Builder addRowsMetaBuilder() { return getRowsMetaFieldBuilder().addBuilder( com.pingcap.tidb.tipb.RowMeta.getDefaultInstance()); } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.RowMeta.Builder addRowsMetaBuilder( int index) { return getRowsMetaFieldBuilder().addBuilder( index, com.pingcap.tidb.tipb.RowMeta.getDefaultInstance()); } /** *
     * Meta data for every row.
     * 
* * repeated .tipb.RowMeta rows_meta = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getRowsMetaBuilderList() { return getRowsMetaFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.RowMeta, com.pingcap.tidb.tipb.RowMeta.Builder, com.pingcap.tidb.tipb.RowMetaOrBuilder> getRowsMetaFieldBuilder() { if (rowsMetaBuilder_ == null) { rowsMetaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.RowMeta, com.pingcap.tidb.tipb.RowMeta.Builder, com.pingcap.tidb.tipb.RowMetaOrBuilder>( rowsMeta_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); rowsMeta_ = null; } return rowsMetaBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tipb.Chunk) } // @@protoc_insertion_point(class_scope:tipb.Chunk) private static final com.pingcap.tidb.tipb.Chunk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.Chunk(); } public static com.pingcap.tidb.tipb.Chunk getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Chunk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Chunk(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.pingcap.tidb.tipb.Chunk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy