All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opensergo.proto.service_contract.v1.FieldDescriptor Maven / Gradle / Ivy

The newest version!
// 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy