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.rocketmq.shaded.com.google.protobuf;
/**
*
* A single field of a message type.
*
*
* Protobuf type {@code google.protobuf.Field}
*/
public final class Field extends
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.protobuf.Field)
FieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use Field.newBuilder() to construct.
private Field(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Field() {
kind_ = 0;
cardinality_ = 0;
name_ = "";
typeUrl_ = "";
options_ = java.util.Collections.emptyList();
jsonName_ = "";
defaultValue_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Field();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.rocketmq.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.protobuf.Field.class, org.apache.rocketmq.shaded.com.google.protobuf.Field.Builder.class);
}
/**
*
*
* TYPE_UNKNOWN = 0;
*/
public static final int TYPE_UNKNOWN_VALUE = 0;
/**
*
* Field type double.
*
*
* TYPE_DOUBLE = 1;
*/
public static final int TYPE_DOUBLE_VALUE = 1;
/**
*
* Field type float.
*
*
* TYPE_FLOAT = 2;
*/
public static final int TYPE_FLOAT_VALUE = 2;
/**
*
* Field type int64.
*
*
* TYPE_INT64 = 3;
*/
public static final int TYPE_INT64_VALUE = 3;
/**
*
* Field type uint64.
*
*
* TYPE_UINT64 = 4;
*/
public static final int TYPE_UINT64_VALUE = 4;
/**
*
* Field type int32.
*
*
* TYPE_INT32 = 5;
*/
public static final int TYPE_INT32_VALUE = 5;
/**
*
* Field type fixed64.
*
*
* TYPE_FIXED64 = 6;
*/
public static final int TYPE_FIXED64_VALUE = 6;
/**
*
* Field type fixed32.
*
*
* TYPE_FIXED32 = 7;
*/
public static final int TYPE_FIXED32_VALUE = 7;
/**
*
* Field type bool.
*
*
* TYPE_BOOL = 8;
*/
public static final int TYPE_BOOL_VALUE = 8;
/**
*
* Field type string.
*
*
* TYPE_STRING = 9;
*/
public static final int TYPE_STRING_VALUE = 9;
/**
*
* Field type group. Proto2 syntax only, and deprecated.
*
*
* TYPE_GROUP = 10;
*/
public static final int TYPE_GROUP_VALUE = 10;
/**
*
* Field type message.
*
*
* TYPE_MESSAGE = 11;
*/
public static final int TYPE_MESSAGE_VALUE = 11;
/**
*
* Field type bytes.
*
*
* TYPE_BYTES = 12;
*/
public static final int TYPE_BYTES_VALUE = 12;
/**
*
* Field type uint32.
*
*
* TYPE_UINT32 = 13;
*/
public static final int TYPE_UINT32_VALUE = 13;
/**
*
* Field type enum.
*
*
* TYPE_ENUM = 14;
*/
public static final int TYPE_ENUM_VALUE = 14;
/**
*
* Field type sfixed32.
*
*
* TYPE_SFIXED32 = 15;
*/
public static final int TYPE_SFIXED32_VALUE = 15;
/**
*
* Field type sfixed64.
*
*
* TYPE_SFIXED64 = 16;
*/
public static final int TYPE_SFIXED64_VALUE = 16;
/**
*
* Field type sint32.
*
*
* TYPE_SINT32 = 17;
*/
public static final int TYPE_SINT32_VALUE = 17;
/**
*
* Field type sint64.
*
*
* TYPE_SINT64 = 18;
*/
public static final int TYPE_SINT64_VALUE = 18;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Kind valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Kind forNumber(int value) {
switch (value) {
case 0: return TYPE_UNKNOWN;
case 1: return TYPE_DOUBLE;
case 2: return TYPE_FLOAT;
case 3: return TYPE_INT64;
case 4: return TYPE_UINT64;
case 5: return TYPE_INT32;
case 6: return TYPE_FIXED64;
case 7: return TYPE_FIXED32;
case 8: return TYPE_BOOL;
case 9: return TYPE_STRING;
case 10: return TYPE_GROUP;
case 11: return TYPE_MESSAGE;
case 12: return TYPE_BYTES;
case 13: return TYPE_UINT32;
case 14: return TYPE_ENUM;
case 15: return TYPE_SFIXED32;
case 16: return TYPE_SFIXED64;
case 17: return TYPE_SINT32;
case 18: return TYPE_SINT64;
default: return null;
}
}
public static org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap<
Kind> internalValueMap =
new org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap() {
public Kind findValueByNumber(int number) {
return Kind.forNumber(number);
}
};
public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.rocketmq.shaded.com.google.protobuf.Field.getDescriptor().getEnumTypes().get(0);
}
private static final Kind[] VALUES = values();
public static Kind valueOf(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Kind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.protobuf.Field.Kind)
}
/**
*
* Whether a field is optional, required, or repeated.
*
*
* CARDINALITY_UNKNOWN = 0;
*/
public static final int CARDINALITY_UNKNOWN_VALUE = 0;
/**
*
* For optional fields.
*
*
* CARDINALITY_OPTIONAL = 1;
*/
public static final int CARDINALITY_OPTIONAL_VALUE = 1;
/**
*
* For required fields. Proto2 syntax only.
*
*
* CARDINALITY_REQUIRED = 2;
*/
public static final int CARDINALITY_REQUIRED_VALUE = 2;
/**
*
* For repeated fields.
*
*
* CARDINALITY_REPEATED = 3;
*/
public static final int CARDINALITY_REPEATED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Cardinality valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Cardinality forNumber(int value) {
switch (value) {
case 0: return CARDINALITY_UNKNOWN;
case 1: return CARDINALITY_OPTIONAL;
case 2: return CARDINALITY_REQUIRED;
case 3: return CARDINALITY_REPEATED;
default: return null;
}
}
public static org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap<
Cardinality> internalValueMap =
new org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap() {
public Cardinality findValueByNumber(int number) {
return Cardinality.forNumber(number);
}
};
public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.rocketmq.shaded.com.google.protobuf.Field.getDescriptor().getEnumTypes().get(1);
}
private static final Cardinality[] VALUES = values();
public static Cardinality valueOf(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Cardinality(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.protobuf.Field.Cardinality)
}
public static final int KIND_FIELD_NUMBER = 1;
private int kind_;
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @return The enum numeric value on the wire for kind.
*/
@java.lang.Override public int getKindValue() {
return kind_;
}
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @return The kind.
*/
@java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind getKind() {
@SuppressWarnings("deprecation")
org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind result = org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind.valueOf(kind_);
return result == null ? org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind.UNRECOGNIZED : result;
}
public static final int CARDINALITY_FIELD_NUMBER = 2;
private int cardinality_;
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @return The enum numeric value on the wire for cardinality.
*/
@java.lang.Override public int getCardinalityValue() {
return cardinality_;
}
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @return The cardinality.
*/
@java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality getCardinality() {
@SuppressWarnings("deprecation")
org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality result = org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality.valueOf(cardinality_);
return result == null ? org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality.UNRECOGNIZED : result;
}
public static final int NUMBER_FIELD_NUMBER = 3;
private int number_;
/**
*
* The field number.
*
*
* int32 number = 3;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* The field name.
*
*
* string name = 4;
* @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.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The field name.
*
*
* string name = 4;
* @return The bytes for name.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_URL_FIELD_NUMBER = 6;
private volatile java.lang.Object typeUrl_;
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
* @return The bytes for typeUrl.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int ONEOF_INDEX_FIELD_NUMBER = 7;
private int oneofIndex_;
/**
*
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
*
* int32 oneof_index = 7;
* @return The oneofIndex.
*/
@java.lang.Override
public int getOneofIndex() {
return oneofIndex_;
}
public static final int PACKED_FIELD_NUMBER = 8;
private boolean packed_;
/**
*
* Whether to use alternative packed wire representation.
*
*
* bool packed = 8;
* @return The packed.
*/
@java.lang.Override
public boolean getPacked() {
return packed_;
}
public static final int OPTIONS_FIELD_NUMBER = 9;
private java.util.List options_;
/**
*
*
* Protobuf type {@code google.protobuf.Field}
*/
public static final class Builder extends
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.protobuf.Field)
org.apache.rocketmq.shaded.com.google.protobuf.FieldOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.rocketmq.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.protobuf.Field.class, org.apache.rocketmq.shaded.com.google.protobuf.Field.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.protobuf.Field.newBuilder()
private Builder() {
}
private Builder(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
kind_ = 0;
cardinality_ = 0;
number_ = 0;
name_ = "";
typeUrl_ = "";
oneofIndex_ = 0;
packed_ = false;
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
} else {
options_ = null;
optionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
jsonName_ = "";
defaultValue_ = "";
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Field getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.protobuf.Field.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Field build() {
org.apache.rocketmq.shaded.com.google.protobuf.Field result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Field buildPartial() {
org.apache.rocketmq.shaded.com.google.protobuf.Field result = new org.apache.rocketmq.shaded.com.google.protobuf.Field(this);
int from_bitField0_ = bitField0_;
result.kind_ = kind_;
result.cardinality_ = cardinality_;
result.number_ = number_;
result.name_ = name_;
result.typeUrl_ = typeUrl_;
result.oneofIndex_ = oneofIndex_;
result.packed_ = packed_;
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.jsonName_ = jsonName_;
result.defaultValue_ = defaultValue_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.protobuf.Field) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.protobuf.Field)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Field other) {
if (other == org.apache.rocketmq.shaded.com.google.protobuf.Field.getDefaultInstance()) return this;
if (other.kind_ != 0) {
setKindValue(other.getKindValue());
}
if (other.cardinality_ != 0) {
setCardinalityValue(other.getCardinalityValue());
}
if (other.getNumber() != 0) {
setNumber(other.getNumber());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
onChanged();
}
if (other.getOneofIndex() != 0) {
setOneofIndex(other.getOneofIndex());
}
if (other.getPacked() != false) {
setPacked(other.getPacked());
}
if (optionsBuilder_ == null) {
if (!other.options_.isEmpty()) {
if (options_.isEmpty()) {
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOptionsIsMutable();
options_.addAll(other.options_);
}
onChanged();
}
} else {
if (!other.options_.isEmpty()) {
if (optionsBuilder_.isEmpty()) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000001);
optionsBuilder_ =
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionsFieldBuilder() : null;
} else {
optionsBuilder_.addAllMessages(other.options_);
}
}
}
if (!other.getJsonName().isEmpty()) {
jsonName_ = other.jsonName_;
onChanged();
}
if (!other.getDefaultValue().isEmpty()) {
defaultValue_ = other.defaultValue_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
kind_ = input.readEnum();
break;
} // case 8
case 16: {
cardinality_ = input.readEnum();
break;
} // case 16
case 24: {
number_ = input.readInt32();
break;
} // case 24
case 34: {
name_ = input.readStringRequireUtf8();
break;
} // case 34
case 50: {
typeUrl_ = input.readStringRequireUtf8();
break;
} // case 50
case 56: {
oneofIndex_ = input.readInt32();
break;
} // case 56
case 64: {
packed_ = input.readBool();
break;
} // case 64
case 74: {
org.apache.rocketmq.shaded.com.google.protobuf.Option m =
input.readMessage(
org.apache.rocketmq.shaded.com.google.protobuf.Option.parser(),
extensionRegistry);
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(m);
} else {
optionsBuilder_.addMessage(m);
}
break;
} // case 74
case 82: {
jsonName_ = input.readStringRequireUtf8();
break;
} // case 82
case 90: {
defaultValue_ = input.readStringRequireUtf8();
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int kind_ = 0;
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @return The enum numeric value on the wire for kind.
*/
@java.lang.Override public int getKindValue() {
return kind_;
}
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @param value The enum numeric value on the wire for kind to set.
* @return This builder for chaining.
*/
public Builder setKindValue(int value) {
kind_ = value;
onChanged();
return this;
}
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @return The kind.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind getKind() {
@SuppressWarnings("deprecation")
org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind result = org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind.valueOf(kind_);
return result == null ? org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind.UNRECOGNIZED : result;
}
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(org.apache.rocketmq.shaded.com.google.protobuf.Field.Kind value) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The field type.
*
*
* .google.protobuf.Field.Kind kind = 1;
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = 0;
onChanged();
return this;
}
private int cardinality_ = 0;
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @return The enum numeric value on the wire for cardinality.
*/
@java.lang.Override public int getCardinalityValue() {
return cardinality_;
}
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @param value The enum numeric value on the wire for cardinality to set.
* @return This builder for chaining.
*/
public Builder setCardinalityValue(int value) {
cardinality_ = value;
onChanged();
return this;
}
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @return The cardinality.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality getCardinality() {
@SuppressWarnings("deprecation")
org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality result = org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality.valueOf(cardinality_);
return result == null ? org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality.UNRECOGNIZED : result;
}
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @param value The cardinality to set.
* @return This builder for chaining.
*/
public Builder setCardinality(org.apache.rocketmq.shaded.com.google.protobuf.Field.Cardinality value) {
if (value == null) {
throw new NullPointerException();
}
cardinality_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The field cardinality.
*
*
* .google.protobuf.Field.Cardinality cardinality = 2;
* @return This builder for chaining.
*/
public Builder clearCardinality() {
cardinality_ = 0;
onChanged();
return this;
}
private int number_ ;
/**
*
* The field number.
*
*
* int32 number = 3;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
/**
*
* The field number.
*
*
* int32 number = 3;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(int value) {
number_ = value;
onChanged();
return this;
}
/**
*
* The field number.
*
*
* int32 number = 3;
* @return This builder for chaining.
*/
public Builder clearNumber() {
number_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* The field name.
*
*
* string name = 4;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The field name.
*
*
* string name = 4;
* @return The bytes for name.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The field name.
*
*
* string name = 4;
* @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 field name.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The field name.
*
*
* string name = 4;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object typeUrl_ = "";
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
* @return The bytes for typeUrl.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
* @param value The typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typeUrl_ = value;
onChanged();
return this;
}
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
* @return This builder for chaining.
*/
public Builder clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
onChanged();
return this;
}
/**
*
* The field type URL, without the scheme, for message or enumeration
* types. Example: `"type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.Timestamp"`.
*
*
* string type_url = 6;
* @param value The bytes for typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrlBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeUrl_ = value;
onChanged();
return this;
}
private int oneofIndex_ ;
/**
*
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
*
* int32 oneof_index = 7;
* @return The oneofIndex.
*/
@java.lang.Override
public int getOneofIndex() {
return oneofIndex_;
}
/**
*
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
*
* int32 oneof_index = 7;
* @param value The oneofIndex to set.
* @return This builder for chaining.
*/
public Builder setOneofIndex(int value) {
oneofIndex_ = value;
onChanged();
return this;
}
/**
*
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
*
* int32 oneof_index = 7;
* @return This builder for chaining.
*/
public Builder clearOneofIndex() {
oneofIndex_ = 0;
onChanged();
return this;
}
private boolean packed_ ;
/**
*
* Whether to use alternative packed wire representation.
*