Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/type.proto
package org.apache.hbase.thirdparty.com.google.protobuf;
/**
*
* A protocol buffer message type.
*
*
* Protobuf type {@code google.protobuf.Type}
*/
public final class Type extends
org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.protobuf.Type)
TypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Type.newBuilder() to construct.
private Type(org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Type() {
name_ = "";
fields_ = java.util.Collections.emptyList();
oneofs_ = org.apache.hbase.thirdparty.com.google.protobuf.LazyStringArrayList.EMPTY;
options_ = java.util.Collections.emptyList();
syntax_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Type();
}
@java.lang.Override
public final org.apache.hbase.thirdparty.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Type(
org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hbase.thirdparty.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hbase.thirdparty.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fields_.add(
input.readMessage(org.apache.hbase.thirdparty.com.google.protobuf.Field.parser(), extensionRegistry));
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
oneofs_ = new org.apache.hbase.thirdparty.com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
oneofs_.add(s);
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
options_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
options_.add(
input.readMessage(org.apache.hbase.thirdparty.com.google.protobuf.Option.parser(), extensionRegistry));
break;
}
case 42: {
org.apache.hbase.thirdparty.com.google.protobuf.SourceContext.Builder subBuilder = null;
if (sourceContext_ != null) {
subBuilder = sourceContext_.toBuilder();
}
sourceContext_ = input.readMessage(org.apache.hbase.thirdparty.com.google.protobuf.SourceContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sourceContext_);
sourceContext_ = subBuilder.buildPartial();
}
break;
}
case 48: {
int rawValue = input.readEnum();
syntax_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
oneofs_ = oneofs_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hbase.thirdparty.com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_descriptor;
}
@java.lang.Override
protected org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hbase.thirdparty.com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hbase.thirdparty.com.google.protobuf.Type.class, org.apache.hbase.thirdparty.com.google.protobuf.Type.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* The fully qualified message name.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hbase.thirdparty.com.google.protobuf.ByteString bs =
(org.apache.hbase.thirdparty.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The fully qualified message name.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.apache.hbase.thirdparty.com.google.protobuf.ByteString b =
org.apache.hbase.thirdparty.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hbase.thirdparty.com.google.protobuf.ByteString) ref;
}
}
public static final int FIELDS_FIELD_NUMBER = 2;
private java.util.List fields_;
/**
*
*
* repeated .google.protobuf.Field fields = 2;
*/
@java.lang.Override
public org.apache.hbase.thirdparty.com.google.protobuf.FieldOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
public static final int ONEOFS_FIELD_NUMBER = 3;
private org.apache.hbase.thirdparty.com.google.protobuf.LazyStringList oneofs_;
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @return A list containing the oneofs.
*/
public org.apache.hbase.thirdparty.com.google.protobuf.ProtocolStringList
getOneofsList() {
return oneofs_;
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @return The count of oneofs.
*/
public int getOneofsCount() {
return oneofs_.size();
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param index The index of the element to return.
* @return The oneofs at the given index.
*/
public java.lang.String getOneofs(int index) {
return oneofs_.get(index);
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param index The index of the value to return.
* @return The bytes of the oneofs at the given index.
*/
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString
getOneofsBytes(int index) {
return oneofs_.getByteString(index);
}
public static final int OPTIONS_FIELD_NUMBER = 4;
private java.util.List options_;
/**
*
*
* .google.protobuf.SourceContext source_context = 5;
*/
@java.lang.Override
public org.apache.hbase.thirdparty.com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() {
return getSourceContext();
}
public static final int SYNTAX_FIELD_NUMBER = 6;
private int syntax_;
/**
*
* The source syntax.
*
*
* .google.protobuf.Syntax syntax = 6;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
*
* The source syntax.
*
*
* .google.protobuf.Syntax syntax = 6;
* @return The syntax.
*/
@java.lang.Override public org.apache.hbase.thirdparty.com.google.protobuf.Syntax getSyntax() {
@SuppressWarnings("deprecation")
org.apache.hbase.thirdparty.com.google.protobuf.Syntax result = org.apache.hbase.thirdparty.com.google.protobuf.Syntax.valueOf(syntax_);
return result == null ? org.apache.hbase.thirdparty.com.google.protobuf.Syntax.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(2, fields_.get(i));
}
for (int i = 0; i < oneofs_.size(); i++) {
org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oneofs_.getRaw(i));
}
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(4, options_.get(i));
}
if (sourceContext_ != null) {
output.writeMessage(5, getSourceContext());
}
if (syntax_ != org.apache.hbase.thirdparty.com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) {
output.writeEnum(6, syntax_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < fields_.size(); i++) {
size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, fields_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < oneofs_.size(); i++) {
dataSize += computeStringSizeNoTag(oneofs_.getRaw(i));
}
size += dataSize;
size += 1 * getOneofsList().size();
}
for (int i = 0; i < options_.size(); i++) {
size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream
.computeMessageSize(4, options_.get(i));
}
if (sourceContext_ != null) {
size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSourceContext());
}
if (syntax_ != org.apache.hbase.thirdparty.com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) {
size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream
.computeEnumSize(6, syntax_);
}
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 org.apache.hbase.thirdparty.com.google.protobuf.Type)) {
return super.equals(obj);
}
org.apache.hbase.thirdparty.com.google.protobuf.Type other = (org.apache.hbase.thirdparty.com.google.protobuf.Type) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!getOneofsList()
.equals(other.getOneofsList())) return false;
if (!getOptionsList()
.equals(other.getOptionsList())) return false;
if (hasSourceContext() != other.hasSourceContext()) return false;
if (hasSourceContext()) {
if (!getSourceContext()
.equals(other.getSourceContext())) return false;
}
if (syntax_ != other.syntax_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
if (getOneofsCount() > 0) {
hash = (37 * hash) + ONEOFS_FIELD_NUMBER;
hash = (53 * hash) + getOneofsList().hashCode();
}
if (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
if (hasSourceContext()) {
hash = (37 * hash) + SOURCE_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getSourceContext().hashCode();
}
hash = (37 * hash) + SYNTAX_FIELD_NUMBER;
hash = (53 * hash) + syntax_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
java.nio.ByteBuffer data,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
org.apache.hbase.thirdparty.com.google.protobuf.ByteString data)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
org.apache.hbase.thirdparty.com.google.protobuf.ByteString data,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(byte[] data)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
byte[] data,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
java.io.InputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseDelimitedFrom(
java.io.InputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type parseFrom(
org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hbase.thirdparty.com.google.protobuf.Type prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hbase.thirdparty.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.apache.hbase.thirdparty.com.google.protobuf.ByteString bs =
(org.apache.hbase.thirdparty.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The fully qualified message name.
*
*
* string name = 1;
* @return The bytes for name.
*/
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.apache.hbase.thirdparty.com.google.protobuf.ByteString b =
org.apache.hbase.thirdparty.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hbase.thirdparty.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The fully qualified message name.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The fully qualified message name.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The fully qualified message name.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
org.apache.hbase.thirdparty.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private org.apache.hbase.thirdparty.com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.hbase.thirdparty.com.google.protobuf.Field, org.apache.hbase.thirdparty.com.google.protobuf.Field.Builder, org.apache.hbase.thirdparty.com.google.protobuf.FieldOrBuilder> fieldsBuilder_;
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @return A list containing the oneofs.
*/
public org.apache.hbase.thirdparty.com.google.protobuf.ProtocolStringList
getOneofsList() {
return oneofs_.getUnmodifiableView();
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @return The count of oneofs.
*/
public int getOneofsCount() {
return oneofs_.size();
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param index The index of the element to return.
* @return The oneofs at the given index.
*/
public java.lang.String getOneofs(int index) {
return oneofs_.get(index);
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param index The index of the value to return.
* @return The bytes of the oneofs at the given index.
*/
public org.apache.hbase.thirdparty.com.google.protobuf.ByteString
getOneofsBytes(int index) {
return oneofs_.getByteString(index);
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param index The index to set the value at.
* @param value The oneofs to set.
* @return This builder for chaining.
*/
public Builder setOneofs(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOneofsIsMutable();
oneofs_.set(index, value);
onChanged();
return this;
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param value The oneofs to add.
* @return This builder for chaining.
*/
public Builder addOneofs(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOneofsIsMutable();
oneofs_.add(value);
onChanged();
return this;
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* repeated string oneofs = 3;
* @param values The oneofs to add.
* @return This builder for chaining.
*/
public Builder addAllOneofs(
java.lang.Iterable values) {
ensureOneofsIsMutable();
org.apache.hbase.thirdparty.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, oneofs_);
onChanged();
return this;
}
/**
*
* The list of types appearing in `oneof` definitions in this type.
*
*
* .google.protobuf.Syntax syntax = 6;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
*
* The source syntax.
*
*
* .google.protobuf.Syntax syntax = 6;
* @param value The enum numeric value on the wire for syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntaxValue(int value) {
syntax_ = value;
onChanged();
return this;
}
/**
*
* The source syntax.
*
*
* .google.protobuf.Syntax syntax = 6;
* @return The syntax.
*/
@java.lang.Override
public org.apache.hbase.thirdparty.com.google.protobuf.Syntax getSyntax() {
@SuppressWarnings("deprecation")
org.apache.hbase.thirdparty.com.google.protobuf.Syntax result = org.apache.hbase.thirdparty.com.google.protobuf.Syntax.valueOf(syntax_);
return result == null ? org.apache.hbase.thirdparty.com.google.protobuf.Syntax.UNRECOGNIZED : result;
}
/**
*
* The source syntax.
*
*
* .google.protobuf.Syntax syntax = 6;
* @param value The syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntax(org.apache.hbase.thirdparty.com.google.protobuf.Syntax value) {
if (value == null) {
throw new NullPointerException();
}
syntax_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The source syntax.
*
*
* .google.protobuf.Syntax syntax = 6;
* @return This builder for chaining.
*/
public Builder clearSyntax() {
syntax_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hbase.thirdparty.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hbase.thirdparty.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.protobuf.Type)
}
// @@protoc_insertion_point(class_scope:google.protobuf.Type)
private static final org.apache.hbase.thirdparty.com.google.protobuf.Type DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hbase.thirdparty.com.google.protobuf.Type();
}
public static org.apache.hbase.thirdparty.com.google.protobuf.Type getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.hbase.thirdparty.com.google.protobuf.Parser
PARSER = new org.apache.hbase.thirdparty.com.google.protobuf.AbstractParser() {
@java.lang.Override
public Type parsePartialFrom(
org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException {
return new Type(input, extensionRegistry);
}
};
public static org.apache.hbase.thirdparty.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hbase.thirdparty.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hbase.thirdparty.com.google.protobuf.Type getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}