org.hbase.async.generated.MapReducePB Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asynchbase Show documentation
Show all versions of asynchbase Show documentation
An alternative HBase client library for applications requiring fully
asynchronous, non-blocking and thread-safe HBase connectivity.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MapReduce.proto
package org.hbase.async.generated;
public final class MapReducePB {
private MapReducePB() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface ScanMetricsOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// repeated .NameInt64Pair metrics = 1;
/**
* repeated .NameInt64Pair metrics = 1;
*/
java.util.List
getMetricsList();
/**
* repeated .NameInt64Pair metrics = 1;
*/
org.hbase.async.generated.HBasePB.NameInt64Pair getMetrics(int index);
/**
* repeated .NameInt64Pair metrics = 1;
*/
int getMetricsCount();
}
/**
* Protobuf type {@code ScanMetrics}
*/
public static final class ScanMetrics extends
com.google.protobuf.GeneratedMessageLite
implements ScanMetricsOrBuilder {
// Use ScanMetrics.newBuilder() to construct.
private ScanMetrics(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ScanMetrics(boolean noInit) {}
private static final ScanMetrics defaultInstance;
public static ScanMetrics getDefaultInstance() {
return defaultInstance;
}
public ScanMetrics getDefaultInstanceForType() {
return defaultInstance;
}
private ScanMetrics(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
metrics_.add(input.readMessage(org.hbase.async.generated.HBasePB.NameInt64Pair.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.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = java.util.Collections.unmodifiableList(metrics_);
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ScanMetrics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScanMetrics(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .NameInt64Pair metrics = 1;
public static final int METRICS_FIELD_NUMBER = 1;
private java.util.List metrics_;
/**
* repeated .NameInt64Pair metrics = 1;
*/
public java.util.List getMetricsList() {
return metrics_;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public java.util.List extends org.hbase.async.generated.HBasePB.NameInt64PairOrBuilder>
getMetricsOrBuilderList() {
return metrics_;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public int getMetricsCount() {
return metrics_.size();
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public org.hbase.async.generated.HBasePB.NameInt64Pair getMetrics(int index) {
return metrics_.get(index);
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public org.hbase.async.generated.HBasePB.NameInt64PairOrBuilder getMetricsOrBuilder(
int index) {
return metrics_.get(index);
}
private void initFields() {
metrics_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < metrics_.size(); i++) {
output.writeMessage(1, metrics_.get(i));
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < metrics_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, metrics_.get(i));
}
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.MapReducePB.ScanMetrics parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.MapReducePB.ScanMetrics prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code ScanMetrics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.MapReducePB.ScanMetrics, Builder>
implements org.hbase.async.generated.MapReducePB.ScanMetricsOrBuilder {
// Construct using org.hbase.async.generated.MapReducePB.ScanMetrics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
metrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.MapReducePB.ScanMetrics getDefaultInstanceForType() {
return org.hbase.async.generated.MapReducePB.ScanMetrics.getDefaultInstance();
}
public org.hbase.async.generated.MapReducePB.ScanMetrics build() {
org.hbase.async.generated.MapReducePB.ScanMetrics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.MapReducePB.ScanMetrics buildPartial() {
org.hbase.async.generated.MapReducePB.ScanMetrics result = new org.hbase.async.generated.MapReducePB.ScanMetrics(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = java.util.Collections.unmodifiableList(metrics_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.metrics_ = metrics_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.MapReducePB.ScanMetrics other) {
if (other == org.hbase.async.generated.MapReducePB.ScanMetrics.getDefaultInstance()) return this;
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
}
}
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 {
org.hbase.async.generated.MapReducePB.ScanMetrics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.MapReducePB.ScanMetrics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .NameInt64Pair metrics = 1;
private java.util.List metrics_ =
java.util.Collections.emptyList();
private void ensureMetricsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = new java.util.ArrayList(metrics_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public java.util.List getMetricsList() {
return java.util.Collections.unmodifiableList(metrics_);
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public int getMetricsCount() {
return metrics_.size();
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public org.hbase.async.generated.HBasePB.NameInt64Pair getMetrics(int index) {
return metrics_.get(index);
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder setMetrics(
int index, org.hbase.async.generated.HBasePB.NameInt64Pair value) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricsIsMutable();
metrics_.set(index, value);
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder setMetrics(
int index, org.hbase.async.generated.HBasePB.NameInt64Pair.Builder builderForValue) {
ensureMetricsIsMutable();
metrics_.set(index, builderForValue.build());
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder addMetrics(org.hbase.async.generated.HBasePB.NameInt64Pair value) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricsIsMutable();
metrics_.add(value);
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder addMetrics(
int index, org.hbase.async.generated.HBasePB.NameInt64Pair value) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricsIsMutable();
metrics_.add(index, value);
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder addMetrics(
org.hbase.async.generated.HBasePB.NameInt64Pair.Builder builderForValue) {
ensureMetricsIsMutable();
metrics_.add(builderForValue.build());
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder addMetrics(
int index, org.hbase.async.generated.HBasePB.NameInt64Pair.Builder builderForValue) {
ensureMetricsIsMutable();
metrics_.add(index, builderForValue.build());
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder addAllMetrics(
java.lang.Iterable extends org.hbase.async.generated.HBasePB.NameInt64Pair> values) {
ensureMetricsIsMutable();
super.addAll(values, metrics_);
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder clearMetrics() {
metrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* repeated .NameInt64Pair metrics = 1;
*/
public Builder removeMetrics(int index) {
ensureMetricsIsMutable();
metrics_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:ScanMetrics)
}
static {
defaultInstance = new ScanMetrics(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ScanMetrics)
}
public interface TableSnapshotRegionSplitOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// repeated string locations = 2;
/**
* repeated string locations = 2;
*/
java.util.List
getLocationsList();
/**
* repeated string locations = 2;
*/
int getLocationsCount();
/**
* repeated string locations = 2;
*/
java.lang.String getLocations(int index);
/**
* repeated string locations = 2;
*/
com.google.protobuf.ByteString
getLocationsBytes(int index);
// optional .TableSchema table = 3;
/**
* optional .TableSchema table = 3;
*/
boolean hasTable();
/**
* optional .TableSchema table = 3;
*/
org.hbase.async.generated.HBasePB.TableSchema getTable();
// optional .RegionInfo region = 4;
/**
* optional .RegionInfo region = 4;
*/
boolean hasRegion();
/**
* optional .RegionInfo region = 4;
*/
org.hbase.async.generated.HBasePB.RegionInfo getRegion();
}
/**
* Protobuf type {@code TableSnapshotRegionSplit}
*/
public static final class TableSnapshotRegionSplit extends
com.google.protobuf.GeneratedMessageLite
implements TableSnapshotRegionSplitOrBuilder {
// Use TableSnapshotRegionSplit.newBuilder() to construct.
private TableSnapshotRegionSplit(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private TableSnapshotRegionSplit(boolean noInit) {}
private static final TableSnapshotRegionSplit defaultInstance;
public static TableSnapshotRegionSplit getDefaultInstance() {
return defaultInstance;
}
public TableSnapshotRegionSplit getDefaultInstanceForType() {
return defaultInstance;
}
private TableSnapshotRegionSplit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
locations_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
locations_.add(input.readBytes());
break;
}
case 26: {
org.hbase.async.generated.HBasePB.TableSchema.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = table_.toBuilder();
}
table_ = input.readMessage(org.hbase.async.generated.HBasePB.TableSchema.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(table_);
table_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 34: {
org.hbase.async.generated.HBasePB.RegionInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = region_.toBuilder();
}
region_ = input.readMessage(org.hbase.async.generated.HBasePB.RegionInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(region_);
region_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
locations_ = new com.google.protobuf.UnmodifiableLazyStringList(locations_);
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TableSnapshotRegionSplit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableSnapshotRegionSplit(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated string locations = 2;
public static final int LOCATIONS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList locations_;
/**
* repeated string locations = 2;
*/
public java.util.List
getLocationsList() {
return locations_;
}
/**
* repeated string locations = 2;
*/
public int getLocationsCount() {
return locations_.size();
}
/**
* repeated string locations = 2;
*/
public java.lang.String getLocations(int index) {
return locations_.get(index);
}
/**
* repeated string locations = 2;
*/
public com.google.protobuf.ByteString
getLocationsBytes(int index) {
return locations_.getByteString(index);
}
// optional .TableSchema table = 3;
public static final int TABLE_FIELD_NUMBER = 3;
private org.hbase.async.generated.HBasePB.TableSchema table_;
/**
* optional .TableSchema table = 3;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .TableSchema table = 3;
*/
public org.hbase.async.generated.HBasePB.TableSchema getTable() {
return table_;
}
// optional .RegionInfo region = 4;
public static final int REGION_FIELD_NUMBER = 4;
private org.hbase.async.generated.HBasePB.RegionInfo region_;
/**
* optional .RegionInfo region = 4;
*/
public boolean hasRegion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .RegionInfo region = 4;
*/
public org.hbase.async.generated.HBasePB.RegionInfo getRegion() {
return region_;
}
private void initFields() {
locations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
table_ = org.hbase.async.generated.HBasePB.TableSchema.getDefaultInstance();
region_ = org.hbase.async.generated.HBasePB.RegionInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasTable()) {
if (!getTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasRegion()) {
if (!getRegion().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < locations_.size(); i++) {
output.writeBytes(2, locations_.getByteString(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(3, table_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(4, region_);
}
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < locations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(locations_.getByteString(i));
}
size += dataSize;
size += 1 * getLocationsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, table_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, region_);
}
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code TableSnapshotRegionSplit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit, Builder>
implements org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplitOrBuilder {
// Construct using org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
locations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
table_ = org.hbase.async.generated.HBasePB.TableSchema.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
region_ = org.hbase.async.generated.HBasePB.RegionInfo.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit getDefaultInstanceForType() {
return org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit.getDefaultInstance();
}
public org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit build() {
org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit buildPartial() {
org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit result = new org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
locations_ = new com.google.protobuf.UnmodifiableLazyStringList(
locations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.locations_ = locations_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.table_ = table_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.region_ = region_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit other) {
if (other == org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit.getDefaultInstance()) return this;
if (!other.locations_.isEmpty()) {
if (locations_.isEmpty()) {
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLocationsIsMutable();
locations_.addAll(other.locations_);
}
}
if (other.hasTable()) {
mergeTable(other.getTable());
}
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
return this;
}
public final boolean isInitialized() {
if (hasTable()) {
if (!getTable().isInitialized()) {
return false;
}
}
if (hasRegion()) {
if (!getRegion().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.MapReducePB.TableSnapshotRegionSplit) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated string locations = 2;
private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLocationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
locations_ = new com.google.protobuf.LazyStringArrayList(locations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string locations = 2;
*/
public java.util.List
getLocationsList() {
return java.util.Collections.unmodifiableList(locations_);
}
/**
* repeated string locations = 2;
*/
public int getLocationsCount() {
return locations_.size();
}
/**
* repeated string locations = 2;
*/
public java.lang.String getLocations(int index) {
return locations_.get(index);
}
/**
* repeated string locations = 2;
*/
public com.google.protobuf.ByteString
getLocationsBytes(int index) {
return locations_.getByteString(index);
}
/**
* repeated string locations = 2;
*/
public Builder setLocations(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.set(index, value);
return this;
}
/**
* repeated string locations = 2;
*/
public Builder addLocations(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(value);
return this;
}
/**
* repeated string locations = 2;
*/
public Builder addAllLocations(
java.lang.Iterable values) {
ensureLocationsIsMutable();
super.addAll(values, locations_);
return this;
}
/**
* repeated string locations = 2;
*/
public Builder clearLocations() {
locations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* repeated string locations = 2;
*/
public Builder addLocationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(value);
return this;
}
// optional .TableSchema table = 3;
private org.hbase.async.generated.HBasePB.TableSchema table_ = org.hbase.async.generated.HBasePB.TableSchema.getDefaultInstance();
/**
* optional .TableSchema table = 3;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .TableSchema table = 3;
*/
public org.hbase.async.generated.HBasePB.TableSchema getTable() {
return table_;
}
/**
* optional .TableSchema table = 3;
*/
public Builder setTable(org.hbase.async.generated.HBasePB.TableSchema value) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .TableSchema table = 3;
*/
public Builder setTable(
org.hbase.async.generated.HBasePB.TableSchema.Builder builderForValue) {
table_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .TableSchema table = 3;
*/
public Builder mergeTable(org.hbase.async.generated.HBasePB.TableSchema value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
table_ != org.hbase.async.generated.HBasePB.TableSchema.getDefaultInstance()) {
table_ =
org.hbase.async.generated.HBasePB.TableSchema.newBuilder(table_).mergeFrom(value).buildPartial();
} else {
table_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .TableSchema table = 3;
*/
public Builder clearTable() {
table_ = org.hbase.async.generated.HBasePB.TableSchema.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .RegionInfo region = 4;
private org.hbase.async.generated.HBasePB.RegionInfo region_ = org.hbase.async.generated.HBasePB.RegionInfo.getDefaultInstance();
/**
* optional .RegionInfo region = 4;
*/
public boolean hasRegion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .RegionInfo region = 4;
*/
public org.hbase.async.generated.HBasePB.RegionInfo getRegion() {
return region_;
}
/**
* optional .RegionInfo region = 4;
*/
public Builder setRegion(org.hbase.async.generated.HBasePB.RegionInfo value) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .RegionInfo region = 4;
*/
public Builder setRegion(
org.hbase.async.generated.HBasePB.RegionInfo.Builder builderForValue) {
region_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .RegionInfo region = 4;
*/
public Builder mergeRegion(org.hbase.async.generated.HBasePB.RegionInfo value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
region_ != org.hbase.async.generated.HBasePB.RegionInfo.getDefaultInstance()) {
region_ =
org.hbase.async.generated.HBasePB.RegionInfo.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .RegionInfo region = 4;
*/
public Builder clearRegion() {
region_ = org.hbase.async.generated.HBasePB.RegionInfo.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// @@protoc_insertion_point(builder_scope:TableSnapshotRegionSplit)
}
static {
defaultInstance = new TableSnapshotRegionSplit(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:TableSnapshotRegionSplit)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy