org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RSGroup.proto
package org.apache.hadoop.hbase.protobuf.generated;
public final class RSGroupProtos {
private RSGroupProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface RSGroupInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// repeated .hbase.pb.ServerName servers = 4;
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
java.util.List
getServersList();
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServers(int index);
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
int getServersCount();
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>
getServersOrBuilderList();
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServersOrBuilder(
int index);
// repeated .hbase.pb.TableName tables = 3;
/**
* repeated .hbase.pb.TableName tables = 3;
*/
java.util.List
getTablesList();
/**
* repeated .hbase.pb.TableName tables = 3;
*/
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName getTables(int index);
/**
* repeated .hbase.pb.TableName tables = 3;
*/
int getTablesCount();
/**
* repeated .hbase.pb.TableName tables = 3;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder>
getTablesOrBuilderList();
/**
* repeated .hbase.pb.TableName tables = 3;
*/
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder getTablesOrBuilder(
int index);
}
/**
* Protobuf type {@code hbase.pb.RSGroupInfo}
*/
public static final class RSGroupInfo extends
com.google.protobuf.GeneratedMessage
implements RSGroupInfoOrBuilder {
// Use RSGroupInfo.newBuilder() to construct.
private RSGroupInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RSGroupInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RSGroupInfo defaultInstance;
public static RSGroupInfo getDefaultInstance() {
return defaultInstance;
}
public RSGroupInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RSGroupInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
tables_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
tables_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
servers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
servers_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.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_ & 0x00000004) == 0x00000004)) {
tables_ = java.util.Collections.unmodifiableList(tables_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
servers_ = java.util.Collections.unmodifiableList(servers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.internal_static_hbase_pb_RSGroupInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.internal_static_hbase_pb_RSGroupInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.class, org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RSGroupInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RSGroupInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .hbase.pb.ServerName servers = 4;
public static final int SERVERS_FIELD_NUMBER = 4;
private java.util.List servers_;
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public java.util.List getServersList() {
return servers_;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>
getServersOrBuilderList() {
return servers_;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public int getServersCount() {
return servers_.size();
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServers(int index) {
return servers_.get(index);
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServersOrBuilder(
int index) {
return servers_.get(index);
}
// repeated .hbase.pb.TableName tables = 3;
public static final int TABLES_FIELD_NUMBER = 3;
private java.util.List tables_;
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public java.util.List getTablesList() {
return tables_;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder>
getTablesOrBuilderList() {
return tables_;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public int getTablesCount() {
return tables_.size();
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName getTables(int index) {
return tables_.get(index);
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder getTablesOrBuilder(
int index) {
return tables_.get(index);
}
private void initFields() {
name_ = "";
servers_ = java.util.Collections.emptyList();
tables_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getServersCount(); i++) {
if (!getServers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getTablesCount(); i++) {
if (!getTables(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
for (int i = 0; i < tables_.size(); i++) {
output.writeMessage(3, tables_.get(i));
}
for (int i = 0; i < servers_.size(); i++) {
output.writeMessage(4, servers_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
for (int i = 0; i < tables_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tables_.get(i));
}
for (int i = 0; i < servers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, servers_.get(i));
}
size += getUnknownFields().getSerializedSize();
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();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo other = (org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && getServersList()
.equals(other.getServersList());
result = result && getTablesList()
.equals(other.getTablesList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getServersCount() > 0) {
hash = (37 * hash) + SERVERS_FIELD_NUMBER;
hash = (53 * hash) + getServersList().hashCode();
}
if (getTablesCount() > 0) {
hash = (37 * hash) + TABLES_FIELD_NUMBER;
hash = (53 * hash) + getTablesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo 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.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.RSGroupInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.internal_static_hbase_pb_RSGroupInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.internal_static_hbase_pb_RSGroupInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.class, org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getServersFieldBuilder();
getTablesFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (serversBuilder_ == null) {
servers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
serversBuilder_.clear();
}
if (tablesBuilder_ == null) {
tables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
tablesBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.internal_static_hbase_pb_RSGroupInfo_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo build() {
org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo result = new org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (serversBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
servers_ = java.util.Collections.unmodifiableList(servers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.servers_ = servers_;
} else {
result.servers_ = serversBuilder_.build();
}
if (tablesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
tables_ = java.util.Collections.unmodifiableList(tables_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tables_ = tables_;
} else {
result.tables_ = tablesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (serversBuilder_ == null) {
if (!other.servers_.isEmpty()) {
if (servers_.isEmpty()) {
servers_ = other.servers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureServersIsMutable();
servers_.addAll(other.servers_);
}
onChanged();
}
} else {
if (!other.servers_.isEmpty()) {
if (serversBuilder_.isEmpty()) {
serversBuilder_.dispose();
serversBuilder_ = null;
servers_ = other.servers_;
bitField0_ = (bitField0_ & ~0x00000002);
serversBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getServersFieldBuilder() : null;
} else {
serversBuilder_.addAllMessages(other.servers_);
}
}
}
if (tablesBuilder_ == null) {
if (!other.tables_.isEmpty()) {
if (tables_.isEmpty()) {
tables_ = other.tables_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTablesIsMutable();
tables_.addAll(other.tables_);
}
onChanged();
}
} else {
if (!other.tables_.isEmpty()) {
if (tablesBuilder_.isEmpty()) {
tablesBuilder_.dispose();
tablesBuilder_ = null;
tables_ = other.tables_;
bitField0_ = (bitField0_ & ~0x00000004);
tablesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTablesFieldBuilder() : null;
} else {
tablesBuilder_.addAllMessages(other.tables_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
for (int i = 0; i < getServersCount(); i++) {
if (!getServers(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getTablesCount(); i++) {
if (!getTables(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos.RSGroupInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string name = 1;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// repeated .hbase.pb.ServerName servers = 4;
private java.util.List servers_ =
java.util.Collections.emptyList();
private void ensureServersIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
servers_ = new java.util.ArrayList(servers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder> serversBuilder_;
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public java.util.List getServersList() {
if (serversBuilder_ == null) {
return java.util.Collections.unmodifiableList(servers_);
} else {
return serversBuilder_.getMessageList();
}
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public int getServersCount() {
if (serversBuilder_ == null) {
return servers_.size();
} else {
return serversBuilder_.getCount();
}
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServers(int index) {
if (serversBuilder_ == null) {
return servers_.get(index);
} else {
return serversBuilder_.getMessage(index);
}
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder setServers(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) {
if (serversBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServersIsMutable();
servers_.set(index, value);
onChanged();
} else {
serversBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder setServers(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) {
if (serversBuilder_ == null) {
ensureServersIsMutable();
servers_.set(index, builderForValue.build());
onChanged();
} else {
serversBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder addServers(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) {
if (serversBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServersIsMutable();
servers_.add(value);
onChanged();
} else {
serversBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder addServers(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) {
if (serversBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServersIsMutable();
servers_.add(index, value);
onChanged();
} else {
serversBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder addServers(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) {
if (serversBuilder_ == null) {
ensureServersIsMutable();
servers_.add(builderForValue.build());
onChanged();
} else {
serversBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder addServers(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) {
if (serversBuilder_ == null) {
ensureServersIsMutable();
servers_.add(index, builderForValue.build());
onChanged();
} else {
serversBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder addAllServers(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName> values) {
if (serversBuilder_ == null) {
ensureServersIsMutable();
super.addAll(values, servers_);
onChanged();
} else {
serversBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder clearServers() {
if (serversBuilder_ == null) {
servers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
serversBuilder_.clear();
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public Builder removeServers(int index) {
if (serversBuilder_ == null) {
ensureServersIsMutable();
servers_.remove(index);
onChanged();
} else {
serversBuilder_.remove(index);
}
return this;
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder getServersBuilder(
int index) {
return getServersFieldBuilder().getBuilder(index);
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServersOrBuilder(
int index) {
if (serversBuilder_ == null) {
return servers_.get(index); } else {
return serversBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>
getServersOrBuilderList() {
if (serversBuilder_ != null) {
return serversBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(servers_);
}
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder addServersBuilder() {
return getServersFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance());
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder addServersBuilder(
int index) {
return getServersFieldBuilder().addBuilder(
index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance());
}
/**
* repeated .hbase.pb.ServerName servers = 4;
*/
public java.util.List
getServersBuilderList() {
return getServersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>
getServersFieldBuilder() {
if (serversBuilder_ == null) {
serversBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>(
servers_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
servers_ = null;
}
return serversBuilder_;
}
// repeated .hbase.pb.TableName tables = 3;
private java.util.List tables_ =
java.util.Collections.emptyList();
private void ensureTablesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
tables_ = new java.util.ArrayList(tables_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder> tablesBuilder_;
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public java.util.List getTablesList() {
if (tablesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tables_);
} else {
return tablesBuilder_.getMessageList();
}
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public int getTablesCount() {
if (tablesBuilder_ == null) {
return tables_.size();
} else {
return tablesBuilder_.getCount();
}
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName getTables(int index) {
if (tablesBuilder_ == null) {
return tables_.get(index);
} else {
return tablesBuilder_.getMessage(index);
}
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder setTables(
int index, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName value) {
if (tablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesIsMutable();
tables_.set(index, value);
onChanged();
} else {
tablesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder setTables(
int index, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder builderForValue) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
tables_.set(index, builderForValue.build());
onChanged();
} else {
tablesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder addTables(org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName value) {
if (tablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesIsMutable();
tables_.add(value);
onChanged();
} else {
tablesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder addTables(
int index, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName value) {
if (tablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesIsMutable();
tables_.add(index, value);
onChanged();
} else {
tablesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder addTables(
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder builderForValue) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
tables_.add(builderForValue.build());
onChanged();
} else {
tablesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder addTables(
int index, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder builderForValue) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
tables_.add(index, builderForValue.build());
onChanged();
} else {
tablesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder addAllTables(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName> values) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
super.addAll(values, tables_);
onChanged();
} else {
tablesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder clearTables() {
if (tablesBuilder_ == null) {
tables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tablesBuilder_.clear();
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public Builder removeTables(int index) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
tables_.remove(index);
onChanged();
} else {
tablesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder getTablesBuilder(
int index) {
return getTablesFieldBuilder().getBuilder(index);
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder getTablesOrBuilder(
int index) {
if (tablesBuilder_ == null) {
return tables_.get(index); } else {
return tablesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder>
getTablesOrBuilderList() {
if (tablesBuilder_ != null) {
return tablesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tables_);
}
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder addTablesBuilder() {
return getTablesFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.getDefaultInstance());
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder addTablesBuilder(
int index) {
return getTablesFieldBuilder().addBuilder(
index, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.getDefaultInstance());
}
/**
* repeated .hbase.pb.TableName tables = 3;
*/
public java.util.List
getTablesBuilderList() {
return getTablesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder>
getTablesFieldBuilder() {
if (tablesBuilder_ == null) {
tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.TableProtos.TableNameOrBuilder>(
tables_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
tables_ = null;
}
return tablesBuilder_;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.RSGroupInfo)
}
static {
defaultInstance = new RSGroupInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.RSGroupInfo)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_RSGroupInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_RSGroupInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rRSGroup.proto\022\010hbase.pb\032\013Table.proto\032\013" +
"HBase.proto\"g\n\013RSGroupInfo\022\014\n\004name\030\001 \002(\t" +
"\022%\n\007servers\030\004 \003(\0132\024.hbase.pb.ServerName\022" +
"#\n\006tables\030\003 \003(\0132\023.hbase.pb.TableNameBC\n*" +
"org.apache.hadoop.hbase.protobuf.generat" +
"edB\rRSGroupProtosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_hbase_pb_RSGroupInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_hbase_pb_RSGroupInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_RSGroupInfo_descriptor,
new java.lang.String[] { "Name", "Servers", "Tables", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.hadoop.hbase.protobuf.generated.TableProtos.getDescriptor(),
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy