Please wait. This can take some minutes ...
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.
io.opensergo.proto.service_contract.v1.FieldDescriptor Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opensergo/proto/service_contract/v1/service_contract.proto
package io.opensergo.proto.service_contract.v1;
/**
*
* Describes a field within a message.
*
*
* Protobuf type {@code opensergo.proto.service_contract.v1.FieldDescriptor}
*/
public final class FieldDescriptor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opensergo.proto.service_contract.v1.FieldDescriptor)
FieldDescriptorOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldDescriptor.newBuilder() to construct.
private FieldDescriptor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldDescriptor() {
name_ = "";
label_ = 0;
type_ = 0;
typeName_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldDescriptor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldDescriptor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
number_ = input.readInt32();
break;
}
case 32: {
int rawValue = input.readEnum();
bitField0_ |= 0x00000001;
label_ = rawValue;
break;
}
case 40: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
typeName_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
description_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_FieldDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_FieldDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opensergo.proto.service_contract.v1.FieldDescriptor.class, io.opensergo.proto.service_contract.v1.FieldDescriptor.Builder.class);
}
/**
* Protobuf enum {@code opensergo.proto.service_contract.v1.FieldDescriptor.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* Order is weird for historical reasons.
*
*
* TYPE_DOUBLE = 1;
*/
TYPE_DOUBLE(1),
/**
* TYPE_FLOAT = 2;
*/
TYPE_FLOAT(2),
/**
*
* Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
* negative values are likely.
*
*
* TYPE_INT64 = 3;
*/
TYPE_INT64(3),
/**
* TYPE_UINT64 = 4;
*/
TYPE_UINT64(4),
/**
*
* Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
* negative values are likely.
*
*
* TYPE_INT32 = 5;
*/
TYPE_INT32(5),
/**
* TYPE_FIXED64 = 6;
*/
TYPE_FIXED64(6),
/**
* TYPE_FIXED32 = 7;
*/
TYPE_FIXED32(7),
/**
* TYPE_BOOL = 8;
*/
TYPE_BOOL(8),
/**
* TYPE_STRING = 9;
*/
TYPE_STRING(9),
/**
*
* Tag-delimited aggregate.
* Group type is deprecated and not supported in proto3. However, Proto3
* implementations should still be able to parse the group wire format and
* treat group fields as unknown fields.
*
*
* TYPE_GROUP = 10;
*/
TYPE_GROUP(10),
/**
*
* Length-delimited aggregate.
*
*
* TYPE_MESSAGE = 11;
*/
TYPE_MESSAGE(11),
/**
*
* New in version 2.
*
*
* TYPE_BYTES = 12;
*/
TYPE_BYTES(12),
/**
* TYPE_UINT32 = 13;
*/
TYPE_UINT32(13),
/**
* TYPE_ENUM = 14;
*/
TYPE_ENUM(14),
/**
* TYPE_SFIXED32 = 15;
*/
TYPE_SFIXED32(15),
/**
* TYPE_SFIXED64 = 16;
*/
TYPE_SFIXED64(16),
/**
*
* Uses ZigZag encoding.
*
*
* TYPE_SINT32 = 17;
*/
TYPE_SINT32(17),
/**
*
* Uses ZigZag encoding.
*
*
* TYPE_SINT64 = 18;
*/
TYPE_SINT64(18),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Order is weird for historical reasons.
*
*
* TYPE_DOUBLE = 1;
*/
public static final int TYPE_DOUBLE_VALUE = 1;
/**
* TYPE_FLOAT = 2;
*/
public static final int TYPE_FLOAT_VALUE = 2;
/**
*
* Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
* negative values are likely.
*
*
* TYPE_INT64 = 3;
*/
public static final int TYPE_INT64_VALUE = 3;
/**
* TYPE_UINT64 = 4;
*/
public static final int TYPE_UINT64_VALUE = 4;
/**
*
* Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
* negative values are likely.
*
*
* TYPE_INT32 = 5;
*/
public static final int TYPE_INT32_VALUE = 5;
/**
* TYPE_FIXED64 = 6;
*/
public static final int TYPE_FIXED64_VALUE = 6;
/**
* TYPE_FIXED32 = 7;
*/
public static final int TYPE_FIXED32_VALUE = 7;
/**
* TYPE_BOOL = 8;
*/
public static final int TYPE_BOOL_VALUE = 8;
/**
* TYPE_STRING = 9;
*/
public static final int TYPE_STRING_VALUE = 9;
/**
*
* Tag-delimited aggregate.
* Group type is deprecated and not supported in proto3. However, Proto3
* implementations should still be able to parse the group wire format and
* treat group fields as unknown fields.
*
*
* TYPE_GROUP = 10;
*/
public static final int TYPE_GROUP_VALUE = 10;
/**
*
* Length-delimited aggregate.
*
*
* TYPE_MESSAGE = 11;
*/
public static final int TYPE_MESSAGE_VALUE = 11;
/**
*
* New in version 2.
*
*
* TYPE_BYTES = 12;
*/
public static final int TYPE_BYTES_VALUE = 12;
/**
* TYPE_UINT32 = 13;
*/
public static final int TYPE_UINT32_VALUE = 13;
/**
* TYPE_ENUM = 14;
*/
public static final int TYPE_ENUM_VALUE = 14;
/**
* TYPE_SFIXED32 = 15;
*/
public static final int TYPE_SFIXED32_VALUE = 15;
/**
* TYPE_SFIXED64 = 16;
*/
public static final int TYPE_SFIXED64_VALUE = 16;
/**
*
* Uses ZigZag encoding.
*
*
* TYPE_SINT32 = 17;
*/
public static final int TYPE_SINT32_VALUE = 17;
/**
*
* Uses ZigZag encoding.
*
*
* 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 Type 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 Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
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 com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final 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 com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opensergo.proto.service_contract.v1.FieldDescriptor.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opensergo.proto.service_contract.v1.FieldDescriptor.Type)
}
/**
* Protobuf enum {@code opensergo.proto.service_contract.v1.FieldDescriptor.Label}
*/
public enum Label
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* 0 is reserved for errors
*
*
* LABEL_UNSPECIFIED = 0;
*/
LABEL_UNSPECIFIED(0),
/**
* LABEL_OPTIONAL = 1;
*/
LABEL_OPTIONAL(1),
/**
* LABEL_REQUIRED = 2;
*/
LABEL_REQUIRED(2),
/**
* LABEL_REPEATED = 3;
*/
LABEL_REPEATED(3),
UNRECOGNIZED(-1),
;
/**
*
* 0 is reserved for errors
*
*
* LABEL_UNSPECIFIED = 0;
*/
public static final int LABEL_UNSPECIFIED_VALUE = 0;
/**
* LABEL_OPTIONAL = 1;
*/
public static final int LABEL_OPTIONAL_VALUE = 1;
/**
* LABEL_REQUIRED = 2;
*/
public static final int LABEL_REQUIRED_VALUE = 2;
/**
* LABEL_REPEATED = 3;
*/
public static final int LABEL_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 Label 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 Label forNumber(int value) {
switch (value) {
case 0: return LABEL_UNSPECIFIED;
case 1: return LABEL_OPTIONAL;
case 2: return LABEL_REQUIRED;
case 3: return LABEL_REPEATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Label> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Label findValueByNumber(int number) {
return Label.forNumber(number);
}
};
public final 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 com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opensergo.proto.service_contract.v1.FieldDescriptor.getDescriptor().getEnumTypes().get(1);
}
private static final Label[] VALUES = values();
public static Label valueOf(
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 Label(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opensergo.proto.service_contract.v1.FieldDescriptor.Label)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object 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 {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
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;
}
}
public static final int NUMBER_FIELD_NUMBER = 3;
private int number_;
/**
* int32 number = 3;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
public static final int LABEL_FIELD_NUMBER = 4;
private int label_;
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return Whether the label field is set.
*/
@java.lang.Override public boolean hasLabel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return The enum numeric value on the wire for label.
*/
@java.lang.Override public int getLabelValue() {
return label_;
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return The label.
*/
@java.lang.Override public io.opensergo.proto.service_contract.v1.FieldDescriptor.Label getLabel() {
@SuppressWarnings("deprecation")
io.opensergo.proto.service_contract.v1.FieldDescriptor.Label result = io.opensergo.proto.service_contract.v1.FieldDescriptor.Label.valueOf(label_);
return result == null ? io.opensergo.proto.service_contract.v1.FieldDescriptor.Label.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 5;
private int type_;
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @return The type.
*/
@java.lang.Override public io.opensergo.proto.service_contract.v1.FieldDescriptor.Type getType() {
@SuppressWarnings("deprecation")
io.opensergo.proto.service_contract.v1.FieldDescriptor.Type result = io.opensergo.proto.service_contract.v1.FieldDescriptor.Type.valueOf(type_);
return result == null ? io.opensergo.proto.service_contract.v1.FieldDescriptor.Type.UNRECOGNIZED : result;
}
public static final int TYPE_NAME_FIELD_NUMBER = 6;
private volatile java.lang.Object typeName_;
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return Whether the typeName field is set.
*/
@java.lang.Override
public boolean hasTypeName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return The typeName.
*/
@java.lang.Override
public java.lang.String getTypeName() {
java.lang.Object ref = typeName_;
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();
typeName_ = s;
return s;
}
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return The bytes for typeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeNameBytes() {
java.lang.Object ref = typeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 7;
private volatile java.lang.Object description_;
/**
*
* description of this field
*
*
* optional string description = 7;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (number_ != 0) {
output.writeInt32(3, number_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(4, label_);
}
if (type_ != io.opensergo.proto.service_contract.v1.FieldDescriptor.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (number_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, number_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, label_);
}
if (type_ != io.opensergo.proto.service_contract.v1.FieldDescriptor.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_);
}
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 io.opensergo.proto.service_contract.v1.FieldDescriptor)) {
return super.equals(obj);
}
io.opensergo.proto.service_contract.v1.FieldDescriptor other = (io.opensergo.proto.service_contract.v1.FieldDescriptor) obj;
if (!getName()
.equals(other.getName())) return false;
if (getNumber()
!= other.getNumber()) return false;
if (hasLabel() != other.hasLabel()) return false;
if (hasLabel()) {
if (label_ != other.label_) return false;
}
if (type_ != other.type_) return false;
if (hasTypeName() != other.hasTypeName()) return false;
if (hasTypeName()) {
if (!getTypeName()
.equals(other.getTypeName())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) 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();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
if (hasLabel()) {
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + label_;
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasTypeName()) {
hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTypeName().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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(io.opensergo.proto.service_contract.v1.FieldDescriptor 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Describes a field within a message.
*
*
* Protobuf type {@code opensergo.proto.service_contract.v1.FieldDescriptor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opensergo.proto.service_contract.v1.FieldDescriptor)
io.opensergo.proto.service_contract.v1.FieldDescriptorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_FieldDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_FieldDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opensergo.proto.service_contract.v1.FieldDescriptor.class, io.opensergo.proto.service_contract.v1.FieldDescriptor.Builder.class);
}
// Construct using io.opensergo.proto.service_contract.v1.FieldDescriptor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
number_ = 0;
label_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
typeName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opensergo.proto.service_contract.v1.ServiceContractProto.internal_static_opensergo_proto_service_contract_v1_FieldDescriptor_descriptor;
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.FieldDescriptor getDefaultInstanceForType() {
return io.opensergo.proto.service_contract.v1.FieldDescriptor.getDefaultInstance();
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.FieldDescriptor build() {
io.opensergo.proto.service_contract.v1.FieldDescriptor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.FieldDescriptor buildPartial() {
io.opensergo.proto.service_contract.v1.FieldDescriptor result = new io.opensergo.proto.service_contract.v1.FieldDescriptor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.number_ = number_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.label_ = label_;
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.typeName_ = typeName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.description_ = description_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.opensergo.proto.service_contract.v1.FieldDescriptor) {
return mergeFrom((io.opensergo.proto.service_contract.v1.FieldDescriptor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opensergo.proto.service_contract.v1.FieldDescriptor other) {
if (other == io.opensergo.proto.service_contract.v1.FieldDescriptor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getNumber() != 0) {
setNumber(other.getNumber());
}
if (other.hasLabel()) {
setLabel(other.getLabel());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasTypeName()) {
bitField0_ |= 0x00000002;
typeName_ = other.typeName_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000004;
description_ = other.description_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.opensergo.proto.service_contract.v1.FieldDescriptor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opensergo.proto.service_contract.v1.FieldDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
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;
}
}
/**
* 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;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int number_ ;
/**
* int32 number = 3;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return 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;
}
/**
* int32 number = 3;
* @return This builder for chaining.
*/
public Builder clearNumber() {
number_ = 0;
onChanged();
return this;
}
private int label_ = 0;
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return Whether the label field is set.
*/
@java.lang.Override public boolean hasLabel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return The enum numeric value on the wire for label.
*/
@java.lang.Override public int getLabelValue() {
return label_;
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @param value The enum numeric value on the wire for label to set.
* @return This builder for chaining.
*/
public Builder setLabelValue(int value) {
bitField0_ |= 0x00000001;
label_ = value;
onChanged();
return this;
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return The label.
*/
@java.lang.Override
public io.opensergo.proto.service_contract.v1.FieldDescriptor.Label getLabel() {
@SuppressWarnings("deprecation")
io.opensergo.proto.service_contract.v1.FieldDescriptor.Label result = io.opensergo.proto.service_contract.v1.FieldDescriptor.Label.valueOf(label_);
return result == null ? io.opensergo.proto.service_contract.v1.FieldDescriptor.Label.UNRECOGNIZED : result;
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(io.opensergo.proto.service_contract.v1.FieldDescriptor.Label value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
label_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .opensergo.proto.service_contract.v1.FieldDescriptor.Label label = 4;
* @return This builder for chaining.
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000001);
label_ = 0;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @return The type.
*/
@java.lang.Override
public io.opensergo.proto.service_contract.v1.FieldDescriptor.Type getType() {
@SuppressWarnings("deprecation")
io.opensergo.proto.service_contract.v1.FieldDescriptor.Type result = io.opensergo.proto.service_contract.v1.FieldDescriptor.Type.valueOf(type_);
return result == null ? io.opensergo.proto.service_contract.v1.FieldDescriptor.Type.UNRECOGNIZED : result;
}
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(io.opensergo.proto.service_contract.v1.FieldDescriptor.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If type_name is set, this need not be set. If both this and type_name
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
*
*
* .opensergo.proto.service_contract.v1.FieldDescriptor.Type type = 5;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object typeName_ = "";
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return Whether the typeName field is set.
*/
public boolean hasTypeName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return The typeName.
*/
public java.lang.String getTypeName() {
java.lang.Object ref = typeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return The bytes for typeName.
*/
public com.google.protobuf.ByteString
getTypeNameBytes() {
java.lang.Object ref = typeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @param value The typeName to set.
* @return This builder for chaining.
*/
public Builder setTypeName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
typeName_ = value;
onChanged();
return this;
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @return This builder for chaining.
*/
public Builder clearTypeName() {
bitField0_ = (bitField0_ & ~0x00000002);
typeName_ = getDefaultInstance().getTypeName();
onChanged();
return this;
}
/**
*
* For message and enum types, this is the name of the type. If the name
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
* rules are used to find the type (i.e. first the nested types within this
* message are searched, then within the parent, on up to the root
* namespace).
*
*
* optional string type_name = 6;
* @param value The bytes for typeName to set.
* @return This builder for chaining.
*/
public Builder setTypeNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
typeName_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* description of this field
*
*
* optional string description = 7;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
description_ = value;
onChanged();
return this;
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000004);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* description of this field
*
*
* optional string description = 7;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
description_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:opensergo.proto.service_contract.v1.FieldDescriptor)
}
// @@protoc_insertion_point(class_scope:opensergo.proto.service_contract.v1.FieldDescriptor)
private static final io.opensergo.proto.service_contract.v1.FieldDescriptor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opensergo.proto.service_contract.v1.FieldDescriptor();
}
public static io.opensergo.proto.service_contract.v1.FieldDescriptor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldDescriptor(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.opensergo.proto.service_contract.v1.FieldDescriptor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}