Home | History | Annotate | Download | only in internal
      1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
      2 // source: grpc/gcp/transport_security_common.proto
      3 
      4 package io.grpc.alts.internal;
      5 
      6 public final class TransportSecurityCommon {
      7   private TransportSecurityCommon() {}
      8   public static void registerAllExtensions(
      9       com.google.protobuf.ExtensionRegistryLite registry) {
     10   }
     11 
     12   public static void registerAllExtensions(
     13       com.google.protobuf.ExtensionRegistry registry) {
     14     registerAllExtensions(
     15         (com.google.protobuf.ExtensionRegistryLite) registry);
     16   }
     17   /**
     18    * <pre>
     19    * The security level of the created channel. The list is sorted in increasing
     20    * level of security. This order must always be maintained.
     21    * </pre>
     22    *
     23    * Protobuf enum {@code grpc.gcp.SecurityLevel}
     24    */
     25   public enum SecurityLevel
     26       implements com.google.protobuf.ProtocolMessageEnum {
     27     /**
     28      * <code>SECURITY_NONE = 0;</code>
     29      */
     30     SECURITY_NONE(0),
     31     /**
     32      * <code>INTEGRITY_ONLY = 1;</code>
     33      */
     34     INTEGRITY_ONLY(1),
     35     /**
     36      * <code>INTEGRITY_AND_PRIVACY = 2;</code>
     37      */
     38     INTEGRITY_AND_PRIVACY(2),
     39     UNRECOGNIZED(-1),
     40     ;
     41 
     42     /**
     43      * <code>SECURITY_NONE = 0;</code>
     44      */
     45     public static final int SECURITY_NONE_VALUE = 0;
     46     /**
     47      * <code>INTEGRITY_ONLY = 1;</code>
     48      */
     49     public static final int INTEGRITY_ONLY_VALUE = 1;
     50     /**
     51      * <code>INTEGRITY_AND_PRIVACY = 2;</code>
     52      */
     53     public static final int INTEGRITY_AND_PRIVACY_VALUE = 2;
     54 
     55 
     56     public final int getNumber() {
     57       if (this == UNRECOGNIZED) {
     58         throw new java.lang.IllegalArgumentException(
     59             "Can't get the number of an unknown enum value.");
     60       }
     61       return value;
     62     }
     63 
     64     /**
     65      * @deprecated Use {@link #forNumber(int)} instead.
     66      */
     67     @java.lang.Deprecated
     68     public static SecurityLevel valueOf(int value) {
     69       return forNumber(value);
     70     }
     71 
     72     public static SecurityLevel forNumber(int value) {
     73       switch (value) {
     74         case 0: return SECURITY_NONE;
     75         case 1: return INTEGRITY_ONLY;
     76         case 2: return INTEGRITY_AND_PRIVACY;
     77         default: return null;
     78       }
     79     }
     80 
     81     public static com.google.protobuf.Internal.EnumLiteMap<SecurityLevel>
     82         internalGetValueMap() {
     83       return internalValueMap;
     84     }
     85     private static final com.google.protobuf.Internal.EnumLiteMap<
     86         SecurityLevel> internalValueMap =
     87           new com.google.protobuf.Internal.EnumLiteMap<SecurityLevel>() {
     88             public SecurityLevel findValueByNumber(int number) {
     89               return SecurityLevel.forNumber(number);
     90             }
     91           };
     92 
     93     public final com.google.protobuf.Descriptors.EnumValueDescriptor
     94         getValueDescriptor() {
     95       return getDescriptor().getValues().get(ordinal());
     96     }
     97     public final com.google.protobuf.Descriptors.EnumDescriptor
     98         getDescriptorForType() {
     99       return getDescriptor();
    100     }
    101     public static final com.google.protobuf.Descriptors.EnumDescriptor
    102         getDescriptor() {
    103       return io.grpc.alts.internal.TransportSecurityCommon.getDescriptor().getEnumTypes().get(0);
    104     }
    105 
    106     private static final SecurityLevel[] VALUES = values();
    107 
    108     public static SecurityLevel valueOf(
    109         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    110       if (desc.getType() != getDescriptor()) {
    111         throw new java.lang.IllegalArgumentException(
    112           "EnumValueDescriptor is not for this type.");
    113       }
    114       if (desc.getIndex() == -1) {
    115         return UNRECOGNIZED;
    116       }
    117       return VALUES[desc.getIndex()];
    118     }
    119 
    120     private final int value;
    121 
    122     private SecurityLevel(int value) {
    123       this.value = value;
    124     }
    125 
    126     // @@protoc_insertion_point(enum_scope:grpc.gcp.SecurityLevel)
    127   }
    128 
    129   public interface RpcProtocolVersionsOrBuilder extends
    130       // @@protoc_insertion_point(interface_extends:grpc.gcp.RpcProtocolVersions)
    131       com.google.protobuf.MessageOrBuilder {
    132 
    133     /**
    134      * <pre>
    135      * Maximum supported RPC version.
    136      * </pre>
    137      *
    138      * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
    139      */
    140     boolean hasMaxRpcVersion();
    141     /**
    142      * <pre>
    143      * Maximum supported RPC version.
    144      * </pre>
    145      *
    146      * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
    147      */
    148     io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getMaxRpcVersion();
    149     /**
    150      * <pre>
    151      * Maximum supported RPC version.
    152      * </pre>
    153      *
    154      * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
    155      */
    156     io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder getMaxRpcVersionOrBuilder();
    157 
    158     /**
    159      * <pre>
    160      * Minimum supported RPC version.
    161      * </pre>
    162      *
    163      * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
    164      */
    165     boolean hasMinRpcVersion();
    166     /**
    167      * <pre>
    168      * Minimum supported RPC version.
    169      * </pre>
    170      *
    171      * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
    172      */
    173     io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getMinRpcVersion();
    174     /**
    175      * <pre>
    176      * Minimum supported RPC version.
    177      * </pre>
    178      *
    179      * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
    180      */
    181     io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder getMinRpcVersionOrBuilder();
    182   }
    183   /**
    184    * <pre>
    185    * Max and min supported RPC protocol versions.
    186    * </pre>
    187    *
    188    * Protobuf type {@code grpc.gcp.RpcProtocolVersions}
    189    */
    190   public  static final class RpcProtocolVersions extends
    191       com.google.protobuf.GeneratedMessageV3 implements
    192       // @@protoc_insertion_point(message_implements:grpc.gcp.RpcProtocolVersions)
    193       RpcProtocolVersionsOrBuilder {
    194   private static final long serialVersionUID = 0L;
    195     // Use RpcProtocolVersions.newBuilder() to construct.
    196     private RpcProtocolVersions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    197       super(builder);
    198     }
    199     private RpcProtocolVersions() {
    200     }
    201 
    202     @java.lang.Override
    203     public final com.google.protobuf.UnknownFieldSet
    204     getUnknownFields() {
    205       return this.unknownFields;
    206     }
    207     private RpcProtocolVersions(
    208         com.google.protobuf.CodedInputStream input,
    209         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    210         throws com.google.protobuf.InvalidProtocolBufferException {
    211       this();
    212       if (extensionRegistry == null) {
    213         throw new java.lang.NullPointerException();
    214       }
    215       int mutable_bitField0_ = 0;
    216       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    217           com.google.protobuf.UnknownFieldSet.newBuilder();
    218       try {
    219         boolean done = false;
    220         while (!done) {
    221           int tag = input.readTag();
    222           switch (tag) {
    223             case 0:
    224               done = true;
    225               break;
    226             default: {
    227               if (!parseUnknownFieldProto3(
    228                   input, unknownFields, extensionRegistry, tag)) {
    229                 done = true;
    230               }
    231               break;
    232             }
    233             case 10: {
    234               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder subBuilder = null;
    235               if (maxRpcVersion_ != null) {
    236                 subBuilder = maxRpcVersion_.toBuilder();
    237               }
    238               maxRpcVersion_ = input.readMessage(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.parser(), extensionRegistry);
    239               if (subBuilder != null) {
    240                 subBuilder.mergeFrom(maxRpcVersion_);
    241                 maxRpcVersion_ = subBuilder.buildPartial();
    242               }
    243 
    244               break;
    245             }
    246             case 18: {
    247               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder subBuilder = null;
    248               if (minRpcVersion_ != null) {
    249                 subBuilder = minRpcVersion_.toBuilder();
    250               }
    251               minRpcVersion_ = input.readMessage(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.parser(), extensionRegistry);
    252               if (subBuilder != null) {
    253                 subBuilder.mergeFrom(minRpcVersion_);
    254                 minRpcVersion_ = subBuilder.buildPartial();
    255               }
    256 
    257               break;
    258             }
    259           }
    260         }
    261       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    262         throw e.setUnfinishedMessage(this);
    263       } catch (java.io.IOException e) {
    264         throw new com.google.protobuf.InvalidProtocolBufferException(
    265             e).setUnfinishedMessage(this);
    266       } finally {
    267         this.unknownFields = unknownFields.build();
    268         makeExtensionsImmutable();
    269       }
    270     }
    271     public static final com.google.protobuf.Descriptors.Descriptor
    272         getDescriptor() {
    273       return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_descriptor;
    274     }
    275 
    276     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    277         internalGetFieldAccessorTable() {
    278       return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_fieldAccessorTable
    279           .ensureFieldAccessorsInitialized(
    280               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.class, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Builder.class);
    281     }
    282 
    283     public interface VersionOrBuilder extends
    284         // @@protoc_insertion_point(interface_extends:grpc.gcp.RpcProtocolVersions.Version)
    285         com.google.protobuf.MessageOrBuilder {
    286 
    287       /**
    288        * <code>uint32 major = 1;</code>
    289        */
    290       int getMajor();
    291 
    292       /**
    293        * <code>uint32 minor = 2;</code>
    294        */
    295       int getMinor();
    296     }
    297     /**
    298      * <pre>
    299      * RPC version contains a major version and a minor version.
    300      * </pre>
    301      *
    302      * Protobuf type {@code grpc.gcp.RpcProtocolVersions.Version}
    303      */
    304     public  static final class Version extends
    305         com.google.protobuf.GeneratedMessageV3 implements
    306         // @@protoc_insertion_point(message_implements:grpc.gcp.RpcProtocolVersions.Version)
    307         VersionOrBuilder {
    308     private static final long serialVersionUID = 0L;
    309       // Use Version.newBuilder() to construct.
    310       private Version(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    311         super(builder);
    312       }
    313       private Version() {
    314         major_ = 0;
    315         minor_ = 0;
    316       }
    317 
    318       @java.lang.Override
    319       public final com.google.protobuf.UnknownFieldSet
    320       getUnknownFields() {
    321         return this.unknownFields;
    322       }
    323       private Version(
    324           com.google.protobuf.CodedInputStream input,
    325           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    326           throws com.google.protobuf.InvalidProtocolBufferException {
    327         this();
    328         if (extensionRegistry == null) {
    329           throw new java.lang.NullPointerException();
    330         }
    331         int mutable_bitField0_ = 0;
    332         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    333             com.google.protobuf.UnknownFieldSet.newBuilder();
    334         try {
    335           boolean done = false;
    336           while (!done) {
    337             int tag = input.readTag();
    338             switch (tag) {
    339               case 0:
    340                 done = true;
    341                 break;
    342               default: {
    343                 if (!parseUnknownFieldProto3(
    344                     input, unknownFields, extensionRegistry, tag)) {
    345                   done = true;
    346                 }
    347                 break;
    348               }
    349               case 8: {
    350 
    351                 major_ = input.readUInt32();
    352                 break;
    353               }
    354               case 16: {
    355 
    356                 minor_ = input.readUInt32();
    357                 break;
    358               }
    359             }
    360           }
    361         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    362           throw e.setUnfinishedMessage(this);
    363         } catch (java.io.IOException e) {
    364           throw new com.google.protobuf.InvalidProtocolBufferException(
    365               e).setUnfinishedMessage(this);
    366         } finally {
    367           this.unknownFields = unknownFields.build();
    368           makeExtensionsImmutable();
    369         }
    370       }
    371       public static final com.google.protobuf.Descriptors.Descriptor
    372           getDescriptor() {
    373         return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor;
    374       }
    375 
    376       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    377           internalGetFieldAccessorTable() {
    378         return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_Version_fieldAccessorTable
    379             .ensureFieldAccessorsInitialized(
    380                 io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.class, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder.class);
    381       }
    382 
    383       public static final int MAJOR_FIELD_NUMBER = 1;
    384       private int major_;
    385       /**
    386        * <code>uint32 major = 1;</code>
    387        */
    388       public int getMajor() {
    389         return major_;
    390       }
    391 
    392       public static final int MINOR_FIELD_NUMBER = 2;
    393       private int minor_;
    394       /**
    395        * <code>uint32 minor = 2;</code>
    396        */
    397       public int getMinor() {
    398         return minor_;
    399       }
    400 
    401       private byte memoizedIsInitialized = -1;
    402       public final boolean isInitialized() {
    403         byte isInitialized = memoizedIsInitialized;
    404         if (isInitialized == 1) return true;
    405         if (isInitialized == 0) return false;
    406 
    407         memoizedIsInitialized = 1;
    408         return true;
    409       }
    410 
    411       public void writeTo(com.google.protobuf.CodedOutputStream output)
    412                           throws java.io.IOException {
    413         if (major_ != 0) {
    414           output.writeUInt32(1, major_);
    415         }
    416         if (minor_ != 0) {
    417           output.writeUInt32(2, minor_);
    418         }
    419         unknownFields.writeTo(output);
    420       }
    421 
    422       public int getSerializedSize() {
    423         int size = memoizedSize;
    424         if (size != -1) return size;
    425 
    426         size = 0;
    427         if (major_ != 0) {
    428           size += com.google.protobuf.CodedOutputStream
    429             .computeUInt32Size(1, major_);
    430         }
    431         if (minor_ != 0) {
    432           size += com.google.protobuf.CodedOutputStream
    433             .computeUInt32Size(2, minor_);
    434         }
    435         size += unknownFields.getSerializedSize();
    436         memoizedSize = size;
    437         return size;
    438       }
    439 
    440       @java.lang.Override
    441       public boolean equals(final java.lang.Object obj) {
    442         if (obj == this) {
    443          return true;
    444         }
    445         if (!(obj instanceof io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version)) {
    446           return super.equals(obj);
    447         }
    448         io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version other = (io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version) obj;
    449 
    450         boolean result = true;
    451         result = result && (getMajor()
    452             == other.getMajor());
    453         result = result && (getMinor()
    454             == other.getMinor());
    455         result = result && unknownFields.equals(other.unknownFields);
    456         return result;
    457       }
    458 
    459       @java.lang.Override
    460       public int hashCode() {
    461         if (memoizedHashCode != 0) {
    462           return memoizedHashCode;
    463         }
    464         int hash = 41;
    465         hash = (19 * hash) + getDescriptor().hashCode();
    466         hash = (37 * hash) + MAJOR_FIELD_NUMBER;
    467         hash = (53 * hash) + getMajor();
    468         hash = (37 * hash) + MINOR_FIELD_NUMBER;
    469         hash = (53 * hash) + getMinor();
    470         hash = (29 * hash) + unknownFields.hashCode();
    471         memoizedHashCode = hash;
    472         return hash;
    473       }
    474 
    475       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    476           java.nio.ByteBuffer data)
    477           throws com.google.protobuf.InvalidProtocolBufferException {
    478         return PARSER.parseFrom(data);
    479       }
    480       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    481           java.nio.ByteBuffer data,
    482           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    483           throws com.google.protobuf.InvalidProtocolBufferException {
    484         return PARSER.parseFrom(data, extensionRegistry);
    485       }
    486       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    487           com.google.protobuf.ByteString data)
    488           throws com.google.protobuf.InvalidProtocolBufferException {
    489         return PARSER.parseFrom(data);
    490       }
    491       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    492           com.google.protobuf.ByteString data,
    493           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    494           throws com.google.protobuf.InvalidProtocolBufferException {
    495         return PARSER.parseFrom(data, extensionRegistry);
    496       }
    497       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(byte[] data)
    498           throws com.google.protobuf.InvalidProtocolBufferException {
    499         return PARSER.parseFrom(data);
    500       }
    501       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    502           byte[] data,
    503           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    504           throws com.google.protobuf.InvalidProtocolBufferException {
    505         return PARSER.parseFrom(data, extensionRegistry);
    506       }
    507       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(java.io.InputStream input)
    508           throws java.io.IOException {
    509         return com.google.protobuf.GeneratedMessageV3
    510             .parseWithIOException(PARSER, input);
    511       }
    512       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    513           java.io.InputStream input,
    514           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    515           throws java.io.IOException {
    516         return com.google.protobuf.GeneratedMessageV3
    517             .parseWithIOException(PARSER, input, extensionRegistry);
    518       }
    519       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseDelimitedFrom(java.io.InputStream input)
    520           throws java.io.IOException {
    521         return com.google.protobuf.GeneratedMessageV3
    522             .parseDelimitedWithIOException(PARSER, input);
    523       }
    524       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseDelimitedFrom(
    525           java.io.InputStream input,
    526           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    527           throws java.io.IOException {
    528         return com.google.protobuf.GeneratedMessageV3
    529             .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    530       }
    531       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    532           com.google.protobuf.CodedInputStream input)
    533           throws java.io.IOException {
    534         return com.google.protobuf.GeneratedMessageV3
    535             .parseWithIOException(PARSER, input);
    536       }
    537       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parseFrom(
    538           com.google.protobuf.CodedInputStream input,
    539           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    540           throws java.io.IOException {
    541         return com.google.protobuf.GeneratedMessageV3
    542             .parseWithIOException(PARSER, input, extensionRegistry);
    543       }
    544 
    545       public Builder newBuilderForType() { return newBuilder(); }
    546       public static Builder newBuilder() {
    547         return DEFAULT_INSTANCE.toBuilder();
    548       }
    549       public static Builder newBuilder(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version prototype) {
    550         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    551       }
    552       public Builder toBuilder() {
    553         return this == DEFAULT_INSTANCE
    554             ? new Builder() : new Builder().mergeFrom(this);
    555       }
    556 
    557       @java.lang.Override
    558       protected Builder newBuilderForType(
    559           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    560         Builder builder = new Builder(parent);
    561         return builder;
    562       }
    563       /**
    564        * <pre>
    565        * RPC version contains a major version and a minor version.
    566        * </pre>
    567        *
    568        * Protobuf type {@code grpc.gcp.RpcProtocolVersions.Version}
    569        */
    570       public static final class Builder extends
    571           com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
    572           // @@protoc_insertion_point(builder_implements:grpc.gcp.RpcProtocolVersions.Version)
    573           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder {
    574         public static final com.google.protobuf.Descriptors.Descriptor
    575             getDescriptor() {
    576           return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor;
    577         }
    578 
    579         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    580             internalGetFieldAccessorTable() {
    581           return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_Version_fieldAccessorTable
    582               .ensureFieldAccessorsInitialized(
    583                   io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.class, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder.class);
    584         }
    585 
    586         // Construct using io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.newBuilder()
    587         private Builder() {
    588           maybeForceBuilderInitialization();
    589         }
    590 
    591         private Builder(
    592             com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    593           super(parent);
    594           maybeForceBuilderInitialization();
    595         }
    596         private void maybeForceBuilderInitialization() {
    597           if (com.google.protobuf.GeneratedMessageV3
    598                   .alwaysUseFieldBuilders) {
    599           }
    600         }
    601         public Builder clear() {
    602           super.clear();
    603           major_ = 0;
    604 
    605           minor_ = 0;
    606 
    607           return this;
    608         }
    609 
    610         public com.google.protobuf.Descriptors.Descriptor
    611             getDescriptorForType() {
    612           return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor;
    613         }
    614 
    615         public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getDefaultInstanceForType() {
    616           return io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance();
    617         }
    618 
    619         public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version build() {
    620           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version result = buildPartial();
    621           if (!result.isInitialized()) {
    622             throw newUninitializedMessageException(result);
    623           }
    624           return result;
    625         }
    626 
    627         public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version buildPartial() {
    628           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version result = new io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version(this);
    629           result.major_ = major_;
    630           result.minor_ = minor_;
    631           onBuilt();
    632           return result;
    633         }
    634 
    635         public Builder clone() {
    636           return (Builder) super.clone();
    637         }
    638         public Builder setField(
    639             com.google.protobuf.Descriptors.FieldDescriptor field,
    640             java.lang.Object value) {
    641           return (Builder) super.setField(field, value);
    642         }
    643         public Builder clearField(
    644             com.google.protobuf.Descriptors.FieldDescriptor field) {
    645           return (Builder) super.clearField(field);
    646         }
    647         public Builder clearOneof(
    648             com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    649           return (Builder) super.clearOneof(oneof);
    650         }
    651         public Builder setRepeatedField(
    652             com.google.protobuf.Descriptors.FieldDescriptor field,
    653             int index, java.lang.Object value) {
    654           return (Builder) super.setRepeatedField(field, index, value);
    655         }
    656         public Builder addRepeatedField(
    657             com.google.protobuf.Descriptors.FieldDescriptor field,
    658             java.lang.Object value) {
    659           return (Builder) super.addRepeatedField(field, value);
    660         }
    661         public Builder mergeFrom(com.google.protobuf.Message other) {
    662           if (other instanceof io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version) {
    663             return mergeFrom((io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version)other);
    664           } else {
    665             super.mergeFrom(other);
    666             return this;
    667           }
    668         }
    669 
    670         public Builder mergeFrom(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version other) {
    671           if (other == io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance()) return this;
    672           if (other.getMajor() != 0) {
    673             setMajor(other.getMajor());
    674           }
    675           if (other.getMinor() != 0) {
    676             setMinor(other.getMinor());
    677           }
    678           this.mergeUnknownFields(other.unknownFields);
    679           onChanged();
    680           return this;
    681         }
    682 
    683         public final boolean isInitialized() {
    684           return true;
    685         }
    686 
    687         public Builder mergeFrom(
    688             com.google.protobuf.CodedInputStream input,
    689             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    690             throws java.io.IOException {
    691           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version parsedMessage = null;
    692           try {
    693             parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    694           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    695             parsedMessage = (io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version) e.getUnfinishedMessage();
    696             throw e.unwrapIOException();
    697           } finally {
    698             if (parsedMessage != null) {
    699               mergeFrom(parsedMessage);
    700             }
    701           }
    702           return this;
    703         }
    704 
    705         private int major_ ;
    706         /**
    707          * <code>uint32 major = 1;</code>
    708          */
    709         public int getMajor() {
    710           return major_;
    711         }
    712         /**
    713          * <code>uint32 major = 1;</code>
    714          */
    715         public Builder setMajor(int value) {
    716 
    717           major_ = value;
    718           onChanged();
    719           return this;
    720         }
    721         /**
    722          * <code>uint32 major = 1;</code>
    723          */
    724         public Builder clearMajor() {
    725 
    726           major_ = 0;
    727           onChanged();
    728           return this;
    729         }
    730 
    731         private int minor_ ;
    732         /**
    733          * <code>uint32 minor = 2;</code>
    734          */
    735         public int getMinor() {
    736           return minor_;
    737         }
    738         /**
    739          * <code>uint32 minor = 2;</code>
    740          */
    741         public Builder setMinor(int value) {
    742 
    743           minor_ = value;
    744           onChanged();
    745           return this;
    746         }
    747         /**
    748          * <code>uint32 minor = 2;</code>
    749          */
    750         public Builder clearMinor() {
    751 
    752           minor_ = 0;
    753           onChanged();
    754           return this;
    755         }
    756         public final Builder setUnknownFields(
    757             final com.google.protobuf.UnknownFieldSet unknownFields) {
    758           return super.setUnknownFieldsProto3(unknownFields);
    759         }
    760 
    761         public final Builder mergeUnknownFields(
    762             final com.google.protobuf.UnknownFieldSet unknownFields) {
    763           return super.mergeUnknownFields(unknownFields);
    764         }
    765 
    766 
    767         // @@protoc_insertion_point(builder_scope:grpc.gcp.RpcProtocolVersions.Version)
    768       }
    769 
    770       // @@protoc_insertion_point(class_scope:grpc.gcp.RpcProtocolVersions.Version)
    771       private static final io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version DEFAULT_INSTANCE;
    772       static {
    773         DEFAULT_INSTANCE = new io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version();
    774       }
    775 
    776       public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getDefaultInstance() {
    777         return DEFAULT_INSTANCE;
    778       }
    779 
    780       private static final com.google.protobuf.Parser<Version>
    781           PARSER = new com.google.protobuf.AbstractParser<Version>() {
    782         public Version parsePartialFrom(
    783             com.google.protobuf.CodedInputStream input,
    784             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    785             throws com.google.protobuf.InvalidProtocolBufferException {
    786           return new Version(input, extensionRegistry);
    787         }
    788       };
    789 
    790       public static com.google.protobuf.Parser<Version> parser() {
    791         return PARSER;
    792       }
    793 
    794       @java.lang.Override
    795       public com.google.protobuf.Parser<Version> getParserForType() {
    796         return PARSER;
    797       }
    798 
    799       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getDefaultInstanceForType() {
    800         return DEFAULT_INSTANCE;
    801       }
    802 
    803     }
    804 
    805     public static final int MAX_RPC_VERSION_FIELD_NUMBER = 1;
    806     private io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version maxRpcVersion_;
    807     /**
    808      * <pre>
    809      * Maximum supported RPC version.
    810      * </pre>
    811      *
    812      * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
    813      */
    814     public boolean hasMaxRpcVersion() {
    815       return maxRpcVersion_ != null;
    816     }
    817     /**
    818      * <pre>
    819      * Maximum supported RPC version.
    820      * </pre>
    821      *
    822      * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
    823      */
    824     public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getMaxRpcVersion() {
    825       return maxRpcVersion_ == null ? io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_;
    826     }
    827     /**
    828      * <pre>
    829      * Maximum supported RPC version.
    830      * </pre>
    831      *
    832      * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
    833      */
    834     public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder getMaxRpcVersionOrBuilder() {
    835       return getMaxRpcVersion();
    836     }
    837 
    838     public static final int MIN_RPC_VERSION_FIELD_NUMBER = 2;
    839     private io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version minRpcVersion_;
    840     /**
    841      * <pre>
    842      * Minimum supported RPC version.
    843      * </pre>
    844      *
    845      * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
    846      */
    847     public boolean hasMinRpcVersion() {
    848       return minRpcVersion_ != null;
    849     }
    850     /**
    851      * <pre>
    852      * Minimum supported RPC version.
    853      * </pre>
    854      *
    855      * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
    856      */
    857     public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getMinRpcVersion() {
    858       return minRpcVersion_ == null ? io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_;
    859     }
    860     /**
    861      * <pre>
    862      * Minimum supported RPC version.
    863      * </pre>
    864      *
    865      * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
    866      */
    867     public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder getMinRpcVersionOrBuilder() {
    868       return getMinRpcVersion();
    869     }
    870 
    871     private byte memoizedIsInitialized = -1;
    872     public final boolean isInitialized() {
    873       byte isInitialized = memoizedIsInitialized;
    874       if (isInitialized == 1) return true;
    875       if (isInitialized == 0) return false;
    876 
    877       memoizedIsInitialized = 1;
    878       return true;
    879     }
    880 
    881     public void writeTo(com.google.protobuf.CodedOutputStream output)
    882                         throws java.io.IOException {
    883       if (maxRpcVersion_ != null) {
    884         output.writeMessage(1, getMaxRpcVersion());
    885       }
    886       if (minRpcVersion_ != null) {
    887         output.writeMessage(2, getMinRpcVersion());
    888       }
    889       unknownFields.writeTo(output);
    890     }
    891 
    892     public int getSerializedSize() {
    893       int size = memoizedSize;
    894       if (size != -1) return size;
    895 
    896       size = 0;
    897       if (maxRpcVersion_ != null) {
    898         size += com.google.protobuf.CodedOutputStream
    899           .computeMessageSize(1, getMaxRpcVersion());
    900       }
    901       if (minRpcVersion_ != null) {
    902         size += com.google.protobuf.CodedOutputStream
    903           .computeMessageSize(2, getMinRpcVersion());
    904       }
    905       size += unknownFields.getSerializedSize();
    906       memoizedSize = size;
    907       return size;
    908     }
    909 
    910     @java.lang.Override
    911     public boolean equals(final java.lang.Object obj) {
    912       if (obj == this) {
    913        return true;
    914       }
    915       if (!(obj instanceof io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions)) {
    916         return super.equals(obj);
    917       }
    918       io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions other = (io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions) obj;
    919 
    920       boolean result = true;
    921       result = result && (hasMaxRpcVersion() == other.hasMaxRpcVersion());
    922       if (hasMaxRpcVersion()) {
    923         result = result && getMaxRpcVersion()
    924             .equals(other.getMaxRpcVersion());
    925       }
    926       result = result && (hasMinRpcVersion() == other.hasMinRpcVersion());
    927       if (hasMinRpcVersion()) {
    928         result = result && getMinRpcVersion()
    929             .equals(other.getMinRpcVersion());
    930       }
    931       result = result && unknownFields.equals(other.unknownFields);
    932       return result;
    933     }
    934 
    935     @java.lang.Override
    936     public int hashCode() {
    937       if (memoizedHashCode != 0) {
    938         return memoizedHashCode;
    939       }
    940       int hash = 41;
    941       hash = (19 * hash) + getDescriptor().hashCode();
    942       if (hasMaxRpcVersion()) {
    943         hash = (37 * hash) + MAX_RPC_VERSION_FIELD_NUMBER;
    944         hash = (53 * hash) + getMaxRpcVersion().hashCode();
    945       }
    946       if (hasMinRpcVersion()) {
    947         hash = (37 * hash) + MIN_RPC_VERSION_FIELD_NUMBER;
    948         hash = (53 * hash) + getMinRpcVersion().hashCode();
    949       }
    950       hash = (29 * hash) + unknownFields.hashCode();
    951       memoizedHashCode = hash;
    952       return hash;
    953     }
    954 
    955     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
    956         java.nio.ByteBuffer data)
    957         throws com.google.protobuf.InvalidProtocolBufferException {
    958       return PARSER.parseFrom(data);
    959     }
    960     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
    961         java.nio.ByteBuffer data,
    962         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    963         throws com.google.protobuf.InvalidProtocolBufferException {
    964       return PARSER.parseFrom(data, extensionRegistry);
    965     }
    966     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
    967         com.google.protobuf.ByteString data)
    968         throws com.google.protobuf.InvalidProtocolBufferException {
    969       return PARSER.parseFrom(data);
    970     }
    971     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
    972         com.google.protobuf.ByteString data,
    973         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    974         throws com.google.protobuf.InvalidProtocolBufferException {
    975       return PARSER.parseFrom(data, extensionRegistry);
    976     }
    977     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(byte[] data)
    978         throws com.google.protobuf.InvalidProtocolBufferException {
    979       return PARSER.parseFrom(data);
    980     }
    981     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
    982         byte[] data,
    983         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    984         throws com.google.protobuf.InvalidProtocolBufferException {
    985       return PARSER.parseFrom(data, extensionRegistry);
    986     }
    987     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(java.io.InputStream input)
    988         throws java.io.IOException {
    989       return com.google.protobuf.GeneratedMessageV3
    990           .parseWithIOException(PARSER, input);
    991     }
    992     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
    993         java.io.InputStream input,
    994         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    995         throws java.io.IOException {
    996       return com.google.protobuf.GeneratedMessageV3
    997           .parseWithIOException(PARSER, input, extensionRegistry);
    998     }
    999     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseDelimitedFrom(java.io.InputStream input)
   1000         throws java.io.IOException {
   1001       return com.google.protobuf.GeneratedMessageV3
   1002           .parseDelimitedWithIOException(PARSER, input);
   1003     }
   1004     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseDelimitedFrom(
   1005         java.io.InputStream input,
   1006         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
   1007         throws java.io.IOException {
   1008       return com.google.protobuf.GeneratedMessageV3
   1009           .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   1010     }
   1011     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
   1012         com.google.protobuf.CodedInputStream input)
   1013         throws java.io.IOException {
   1014       return com.google.protobuf.GeneratedMessageV3
   1015           .parseWithIOException(PARSER, input);
   1016     }
   1017     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parseFrom(
   1018         com.google.protobuf.CodedInputStream input,
   1019         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
   1020         throws java.io.IOException {
   1021       return com.google.protobuf.GeneratedMessageV3
   1022           .parseWithIOException(PARSER, input, extensionRegistry);
   1023     }
   1024 
   1025     public Builder newBuilderForType() { return newBuilder(); }
   1026     public static Builder newBuilder() {
   1027       return DEFAULT_INSTANCE.toBuilder();
   1028     }
   1029     public static Builder newBuilder(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions prototype) {
   1030       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   1031     }
   1032     public Builder toBuilder() {
   1033       return this == DEFAULT_INSTANCE
   1034           ? new Builder() : new Builder().mergeFrom(this);
   1035     }
   1036 
   1037     @java.lang.Override
   1038     protected Builder newBuilderForType(
   1039         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
   1040       Builder builder = new Builder(parent);
   1041       return builder;
   1042     }
   1043     /**
   1044      * <pre>
   1045      * Max and min supported RPC protocol versions.
   1046      * </pre>
   1047      *
   1048      * Protobuf type {@code grpc.gcp.RpcProtocolVersions}
   1049      */
   1050     public static final class Builder extends
   1051         com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
   1052         // @@protoc_insertion_point(builder_implements:grpc.gcp.RpcProtocolVersions)
   1053         io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersionsOrBuilder {
   1054       public static final com.google.protobuf.Descriptors.Descriptor
   1055           getDescriptor() {
   1056         return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_descriptor;
   1057       }
   1058 
   1059       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
   1060           internalGetFieldAccessorTable() {
   1061         return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_fieldAccessorTable
   1062             .ensureFieldAccessorsInitialized(
   1063                 io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.class, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Builder.class);
   1064       }
   1065 
   1066       // Construct using io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.newBuilder()
   1067       private Builder() {
   1068         maybeForceBuilderInitialization();
   1069       }
   1070 
   1071       private Builder(
   1072           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
   1073         super(parent);
   1074         maybeForceBuilderInitialization();
   1075       }
   1076       private void maybeForceBuilderInitialization() {
   1077         if (com.google.protobuf.GeneratedMessageV3
   1078                 .alwaysUseFieldBuilders) {
   1079         }
   1080       }
   1081       public Builder clear() {
   1082         super.clear();
   1083         if (maxRpcVersionBuilder_ == null) {
   1084           maxRpcVersion_ = null;
   1085         } else {
   1086           maxRpcVersion_ = null;
   1087           maxRpcVersionBuilder_ = null;
   1088         }
   1089         if (minRpcVersionBuilder_ == null) {
   1090           minRpcVersion_ = null;
   1091         } else {
   1092           minRpcVersion_ = null;
   1093           minRpcVersionBuilder_ = null;
   1094         }
   1095         return this;
   1096       }
   1097 
   1098       public com.google.protobuf.Descriptors.Descriptor
   1099           getDescriptorForType() {
   1100         return io.grpc.alts.internal.TransportSecurityCommon.internal_static_grpc_gcp_RpcProtocolVersions_descriptor;
   1101       }
   1102 
   1103       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions getDefaultInstanceForType() {
   1104         return io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.getDefaultInstance();
   1105       }
   1106 
   1107       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions build() {
   1108         io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions result = buildPartial();
   1109         if (!result.isInitialized()) {
   1110           throw newUninitializedMessageException(result);
   1111         }
   1112         return result;
   1113       }
   1114 
   1115       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions buildPartial() {
   1116         io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions result = new io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions(this);
   1117         if (maxRpcVersionBuilder_ == null) {
   1118           result.maxRpcVersion_ = maxRpcVersion_;
   1119         } else {
   1120           result.maxRpcVersion_ = maxRpcVersionBuilder_.build();
   1121         }
   1122         if (minRpcVersionBuilder_ == null) {
   1123           result.minRpcVersion_ = minRpcVersion_;
   1124         } else {
   1125           result.minRpcVersion_ = minRpcVersionBuilder_.build();
   1126         }
   1127         onBuilt();
   1128         return result;
   1129       }
   1130 
   1131       public Builder clone() {
   1132         return (Builder) super.clone();
   1133       }
   1134       public Builder setField(
   1135           com.google.protobuf.Descriptors.FieldDescriptor field,
   1136           java.lang.Object value) {
   1137         return (Builder) super.setField(field, value);
   1138       }
   1139       public Builder clearField(
   1140           com.google.protobuf.Descriptors.FieldDescriptor field) {
   1141         return (Builder) super.clearField(field);
   1142       }
   1143       public Builder clearOneof(
   1144           com.google.protobuf.Descriptors.OneofDescriptor oneof) {
   1145         return (Builder) super.clearOneof(oneof);
   1146       }
   1147       public Builder setRepeatedField(
   1148           com.google.protobuf.Descriptors.FieldDescriptor field,
   1149           int index, java.lang.Object value) {
   1150         return (Builder) super.setRepeatedField(field, index, value);
   1151       }
   1152       public Builder addRepeatedField(
   1153           com.google.protobuf.Descriptors.FieldDescriptor field,
   1154           java.lang.Object value) {
   1155         return (Builder) super.addRepeatedField(field, value);
   1156       }
   1157       public Builder mergeFrom(com.google.protobuf.Message other) {
   1158         if (other instanceof io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions) {
   1159           return mergeFrom((io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions)other);
   1160         } else {
   1161           super.mergeFrom(other);
   1162           return this;
   1163         }
   1164       }
   1165 
   1166       public Builder mergeFrom(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions other) {
   1167         if (other == io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.getDefaultInstance()) return this;
   1168         if (other.hasMaxRpcVersion()) {
   1169           mergeMaxRpcVersion(other.getMaxRpcVersion());
   1170         }
   1171         if (other.hasMinRpcVersion()) {
   1172           mergeMinRpcVersion(other.getMinRpcVersion());
   1173         }
   1174         this.mergeUnknownFields(other.unknownFields);
   1175         onChanged();
   1176         return this;
   1177       }
   1178 
   1179       public final boolean isInitialized() {
   1180         return true;
   1181       }
   1182 
   1183       public Builder mergeFrom(
   1184           com.google.protobuf.CodedInputStream input,
   1185           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
   1186           throws java.io.IOException {
   1187         io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions parsedMessage = null;
   1188         try {
   1189           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
   1190         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
   1191           parsedMessage = (io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions) e.getUnfinishedMessage();
   1192           throw e.unwrapIOException();
   1193         } finally {
   1194           if (parsedMessage != null) {
   1195             mergeFrom(parsedMessage);
   1196           }
   1197         }
   1198         return this;
   1199       }
   1200 
   1201       private io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version maxRpcVersion_ = null;
   1202       private com.google.protobuf.SingleFieldBuilderV3<
   1203           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder> maxRpcVersionBuilder_;
   1204       /**
   1205        * <pre>
   1206        * Maximum supported RPC version.
   1207        * </pre>
   1208        *
   1209        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1210        */
   1211       public boolean hasMaxRpcVersion() {
   1212         return maxRpcVersionBuilder_ != null || maxRpcVersion_ != null;
   1213       }
   1214       /**
   1215        * <pre>
   1216        * Maximum supported RPC version.
   1217        * </pre>
   1218        *
   1219        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1220        */
   1221       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getMaxRpcVersion() {
   1222         if (maxRpcVersionBuilder_ == null) {
   1223           return maxRpcVersion_ == null ? io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_;
   1224         } else {
   1225           return maxRpcVersionBuilder_.getMessage();
   1226         }
   1227       }
   1228       /**
   1229        * <pre>
   1230        * Maximum supported RPC version.
   1231        * </pre>
   1232        *
   1233        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1234        */
   1235       public Builder setMaxRpcVersion(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version value) {
   1236         if (maxRpcVersionBuilder_ == null) {
   1237           if (value == null) {
   1238             throw new NullPointerException();
   1239           }
   1240           maxRpcVersion_ = value;
   1241           onChanged();
   1242         } else {
   1243           maxRpcVersionBuilder_.setMessage(value);
   1244         }
   1245 
   1246         return this;
   1247       }
   1248       /**
   1249        * <pre>
   1250        * Maximum supported RPC version.
   1251        * </pre>
   1252        *
   1253        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1254        */
   1255       public Builder setMaxRpcVersion(
   1256           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder builderForValue) {
   1257         if (maxRpcVersionBuilder_ == null) {
   1258           maxRpcVersion_ = builderForValue.build();
   1259           onChanged();
   1260         } else {
   1261           maxRpcVersionBuilder_.setMessage(builderForValue.build());
   1262         }
   1263 
   1264         return this;
   1265       }
   1266       /**
   1267        * <pre>
   1268        * Maximum supported RPC version.
   1269        * </pre>
   1270        *
   1271        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1272        */
   1273       public Builder mergeMaxRpcVersion(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version value) {
   1274         if (maxRpcVersionBuilder_ == null) {
   1275           if (maxRpcVersion_ != null) {
   1276             maxRpcVersion_ =
   1277               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.newBuilder(maxRpcVersion_).mergeFrom(value).buildPartial();
   1278           } else {
   1279             maxRpcVersion_ = value;
   1280           }
   1281           onChanged();
   1282         } else {
   1283           maxRpcVersionBuilder_.mergeFrom(value);
   1284         }
   1285 
   1286         return this;
   1287       }
   1288       /**
   1289        * <pre>
   1290        * Maximum supported RPC version.
   1291        * </pre>
   1292        *
   1293        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1294        */
   1295       public Builder clearMaxRpcVersion() {
   1296         if (maxRpcVersionBuilder_ == null) {
   1297           maxRpcVersion_ = null;
   1298           onChanged();
   1299         } else {
   1300           maxRpcVersion_ = null;
   1301           maxRpcVersionBuilder_ = null;
   1302         }
   1303 
   1304         return this;
   1305       }
   1306       /**
   1307        * <pre>
   1308        * Maximum supported RPC version.
   1309        * </pre>
   1310        *
   1311        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1312        */
   1313       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder getMaxRpcVersionBuilder() {
   1314 
   1315         onChanged();
   1316         return getMaxRpcVersionFieldBuilder().getBuilder();
   1317       }
   1318       /**
   1319        * <pre>
   1320        * Maximum supported RPC version.
   1321        * </pre>
   1322        *
   1323        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1324        */
   1325       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder getMaxRpcVersionOrBuilder() {
   1326         if (maxRpcVersionBuilder_ != null) {
   1327           return maxRpcVersionBuilder_.getMessageOrBuilder();
   1328         } else {
   1329           return maxRpcVersion_ == null ?
   1330               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_;
   1331         }
   1332       }
   1333       /**
   1334        * <pre>
   1335        * Maximum supported RPC version.
   1336        * </pre>
   1337        *
   1338        * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code>
   1339        */
   1340       private com.google.protobuf.SingleFieldBuilderV3<
   1341           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder>
   1342           getMaxRpcVersionFieldBuilder() {
   1343         if (maxRpcVersionBuilder_ == null) {
   1344           maxRpcVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
   1345               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder>(
   1346                   getMaxRpcVersion(),
   1347                   getParentForChildren(),
   1348                   isClean());
   1349           maxRpcVersion_ = null;
   1350         }
   1351         return maxRpcVersionBuilder_;
   1352       }
   1353 
   1354       private io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version minRpcVersion_ = null;
   1355       private com.google.protobuf.SingleFieldBuilderV3<
   1356           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder> minRpcVersionBuilder_;
   1357       /**
   1358        * <pre>
   1359        * Minimum supported RPC version.
   1360        * </pre>
   1361        *
   1362        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1363        */
   1364       public boolean hasMinRpcVersion() {
   1365         return minRpcVersionBuilder_ != null || minRpcVersion_ != null;
   1366       }
   1367       /**
   1368        * <pre>
   1369        * Minimum supported RPC version.
   1370        * </pre>
   1371        *
   1372        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1373        */
   1374       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version getMinRpcVersion() {
   1375         if (minRpcVersionBuilder_ == null) {
   1376           return minRpcVersion_ == null ? io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_;
   1377         } else {
   1378           return minRpcVersionBuilder_.getMessage();
   1379         }
   1380       }
   1381       /**
   1382        * <pre>
   1383        * Minimum supported RPC version.
   1384        * </pre>
   1385        *
   1386        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1387        */
   1388       public Builder setMinRpcVersion(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version value) {
   1389         if (minRpcVersionBuilder_ == null) {
   1390           if (value == null) {
   1391             throw new NullPointerException();
   1392           }
   1393           minRpcVersion_ = value;
   1394           onChanged();
   1395         } else {
   1396           minRpcVersionBuilder_.setMessage(value);
   1397         }
   1398 
   1399         return this;
   1400       }
   1401       /**
   1402        * <pre>
   1403        * Minimum supported RPC version.
   1404        * </pre>
   1405        *
   1406        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1407        */
   1408       public Builder setMinRpcVersion(
   1409           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder builderForValue) {
   1410         if (minRpcVersionBuilder_ == null) {
   1411           minRpcVersion_ = builderForValue.build();
   1412           onChanged();
   1413         } else {
   1414           minRpcVersionBuilder_.setMessage(builderForValue.build());
   1415         }
   1416 
   1417         return this;
   1418       }
   1419       /**
   1420        * <pre>
   1421        * Minimum supported RPC version.
   1422        * </pre>
   1423        *
   1424        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1425        */
   1426       public Builder mergeMinRpcVersion(io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version value) {
   1427         if (minRpcVersionBuilder_ == null) {
   1428           if (minRpcVersion_ != null) {
   1429             minRpcVersion_ =
   1430               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.newBuilder(minRpcVersion_).mergeFrom(value).buildPartial();
   1431           } else {
   1432             minRpcVersion_ = value;
   1433           }
   1434           onChanged();
   1435         } else {
   1436           minRpcVersionBuilder_.mergeFrom(value);
   1437         }
   1438 
   1439         return this;
   1440       }
   1441       /**
   1442        * <pre>
   1443        * Minimum supported RPC version.
   1444        * </pre>
   1445        *
   1446        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1447        */
   1448       public Builder clearMinRpcVersion() {
   1449         if (minRpcVersionBuilder_ == null) {
   1450           minRpcVersion_ = null;
   1451           onChanged();
   1452         } else {
   1453           minRpcVersion_ = null;
   1454           minRpcVersionBuilder_ = null;
   1455         }
   1456 
   1457         return this;
   1458       }
   1459       /**
   1460        * <pre>
   1461        * Minimum supported RPC version.
   1462        * </pre>
   1463        *
   1464        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1465        */
   1466       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder getMinRpcVersionBuilder() {
   1467 
   1468         onChanged();
   1469         return getMinRpcVersionFieldBuilder().getBuilder();
   1470       }
   1471       /**
   1472        * <pre>
   1473        * Minimum supported RPC version.
   1474        * </pre>
   1475        *
   1476        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1477        */
   1478       public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder getMinRpcVersionOrBuilder() {
   1479         if (minRpcVersionBuilder_ != null) {
   1480           return minRpcVersionBuilder_.getMessageOrBuilder();
   1481         } else {
   1482           return minRpcVersion_ == null ?
   1483               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_;
   1484         }
   1485       }
   1486       /**
   1487        * <pre>
   1488        * Minimum supported RPC version.
   1489        * </pre>
   1490        *
   1491        * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code>
   1492        */
   1493       private com.google.protobuf.SingleFieldBuilderV3<
   1494           io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder>
   1495           getMinRpcVersionFieldBuilder() {
   1496         if (minRpcVersionBuilder_ == null) {
   1497           minRpcVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
   1498               io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions.VersionOrBuilder>(
   1499                   getMinRpcVersion(),
   1500                   getParentForChildren(),
   1501                   isClean());
   1502           minRpcVersion_ = null;
   1503         }
   1504         return minRpcVersionBuilder_;
   1505       }
   1506       public final Builder setUnknownFields(
   1507           final com.google.protobuf.UnknownFieldSet unknownFields) {
   1508         return super.setUnknownFieldsProto3(unknownFields);
   1509       }
   1510 
   1511       public final Builder mergeUnknownFields(
   1512           final com.google.protobuf.UnknownFieldSet unknownFields) {
   1513         return super.mergeUnknownFields(unknownFields);
   1514       }
   1515 
   1516 
   1517       // @@protoc_insertion_point(builder_scope:grpc.gcp.RpcProtocolVersions)
   1518     }
   1519 
   1520     // @@protoc_insertion_point(class_scope:grpc.gcp.RpcProtocolVersions)
   1521     private static final io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions DEFAULT_INSTANCE;
   1522     static {
   1523       DEFAULT_INSTANCE = new io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions();
   1524     }
   1525 
   1526     public static io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions getDefaultInstance() {
   1527       return DEFAULT_INSTANCE;
   1528     }
   1529 
   1530     private static final com.google.protobuf.Parser<RpcProtocolVersions>
   1531         PARSER = new com.google.protobuf.AbstractParser<RpcProtocolVersions>() {
   1532       public RpcProtocolVersions parsePartialFrom(
   1533           com.google.protobuf.CodedInputStream input,
   1534           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
   1535           throws com.google.protobuf.InvalidProtocolBufferException {
   1536         return new RpcProtocolVersions(input, extensionRegistry);
   1537       }
   1538     };
   1539 
   1540     public static com.google.protobuf.Parser<RpcProtocolVersions> parser() {
   1541       return PARSER;
   1542     }
   1543 
   1544     @java.lang.Override
   1545     public com.google.protobuf.Parser<RpcProtocolVersions> getParserForType() {
   1546       return PARSER;
   1547     }
   1548 
   1549     public io.grpc.alts.internal.TransportSecurityCommon.RpcProtocolVersions getDefaultInstanceForType() {
   1550       return DEFAULT_INSTANCE;
   1551     }
   1552 
   1553   }
   1554 
   1555   private static final com.google.protobuf.Descriptors.Descriptor
   1556     internal_static_grpc_gcp_RpcProtocolVersions_descriptor;
   1557   private static final
   1558     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
   1559       internal_static_grpc_gcp_RpcProtocolVersions_fieldAccessorTable;
   1560   private static final com.google.protobuf.Descriptors.Descriptor
   1561     internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor;
   1562   private static final
   1563     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
   1564       internal_static_grpc_gcp_RpcProtocolVersions_Version_fieldAccessorTable;
   1565 
   1566   public static com.google.protobuf.Descriptors.FileDescriptor
   1567       getDescriptor() {
   1568     return descriptor;
   1569   }
   1570   private static  com.google.protobuf.Descriptors.FileDescriptor
   1571       descriptor;
   1572   static {
   1573     java.lang.String[] descriptorData = {
   1574       "\n(grpc/gcp/transport_security_common.pro" +
   1575       "to\022\010grpc.gcp\"\276\001\n\023RpcProtocolVersions\022>\n\017" +
   1576       "max_rpc_version\030\001 \001(\0132%.grpc.gcp.RpcProt" +
   1577       "ocolVersions.Version\022>\n\017min_rpc_version\030" +
   1578       "\002 \001(\0132%.grpc.gcp.RpcProtocolVersions.Ver" +
   1579       "sion\032\'\n\007Version\022\r\n\005major\030\001 \001(\r\022\r\n\005minor\030" +
   1580       "\002 \001(\r*Q\n\rSecurityLevel\022\021\n\rSECURITY_NONE\020" +
   1581       "\000\022\022\n\016INTEGRITY_ONLY\020\001\022\031\n\025INTEGRITY_AND_P" +
   1582       "RIVACY\020\002B\027\n\025io.grpc.alts.internalb\006proto" +
   1583       "3"
   1584     };
   1585     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
   1586         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
   1587           public com.google.protobuf.ExtensionRegistry assignDescriptors(
   1588               com.google.protobuf.Descriptors.FileDescriptor root) {
   1589             descriptor = root;
   1590             return null;
   1591           }
   1592         };
   1593     com.google.protobuf.Descriptors.FileDescriptor
   1594       .internalBuildGeneratedFileFrom(descriptorData,
   1595         new com.google.protobuf.Descriptors.FileDescriptor[] {
   1596         }, assigner);
   1597     internal_static_grpc_gcp_RpcProtocolVersions_descriptor =
   1598       getDescriptor().getMessageTypes().get(0);
   1599     internal_static_grpc_gcp_RpcProtocolVersions_fieldAccessorTable = new
   1600       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
   1601         internal_static_grpc_gcp_RpcProtocolVersions_descriptor,
   1602         new java.lang.String[] { "MaxRpcVersion", "MinRpcVersion", });
   1603     internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor =
   1604       internal_static_grpc_gcp_RpcProtocolVersions_descriptor.getNestedTypes().get(0);
   1605     internal_static_grpc_gcp_RpcProtocolVersions_Version_fieldAccessorTable = new
   1606       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
   1607         internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor,
   1608         new java.lang.String[] { "Major", "Minor", });
   1609   }
   1610 
   1611   // @@protoc_insertion_point(outer_class_scope)
   1612 }
   1613