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

io.grpc.alts.internal.RpcProtocolVersions Maven / Gradle / Ivy

There is a newer version: 1.68.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/gcp/transport_security_common.proto

// Protobuf Java Version: 3.25.1
package io.grpc.alts.internal;

/**
 * 
 * Max and min supported RPC protocol versions.
 * 
* * Protobuf type {@code grpc.gcp.RpcProtocolVersions} */ public final class RpcProtocolVersions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gcp.RpcProtocolVersions) RpcProtocolVersionsOrBuilder { private static final long serialVersionUID = 0L; // Use RpcProtocolVersions.newBuilder() to construct. private RpcProtocolVersions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RpcProtocolVersions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RpcProtocolVersions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.RpcProtocolVersions.class, io.grpc.alts.internal.RpcProtocolVersions.Builder.class); } public interface VersionOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gcp.RpcProtocolVersions.Version) com.google.protobuf.MessageOrBuilder { /** * uint32 major = 1; * @return The major. */ int getMajor(); /** * uint32 minor = 2; * @return The minor. */ int getMinor(); } /** *
   * RPC version contains a major version and a minor version.
   * 
* * Protobuf type {@code grpc.gcp.RpcProtocolVersions.Version} */ public static final class Version extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gcp.RpcProtocolVersions.Version) VersionOrBuilder { private static final long serialVersionUID = 0L; // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Version() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Version(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.RpcProtocolVersions.Version.class, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder.class); } public static final int MAJOR_FIELD_NUMBER = 1; private int major_ = 0; /** * uint32 major = 1; * @return The major. */ @java.lang.Override public int getMajor() { return major_; } public static final int MINOR_FIELD_NUMBER = 2; private int minor_ = 0; /** * uint32 minor = 2; * @return The minor. */ @java.lang.Override public int getMinor() { return minor_; } 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 (major_ != 0) { output.writeUInt32(1, major_); } if (minor_ != 0) { output.writeUInt32(2, minor_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (major_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, major_); } if (minor_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, minor_); } size += getUnknownFields().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.grpc.alts.internal.RpcProtocolVersions.Version)) { return super.equals(obj); } io.grpc.alts.internal.RpcProtocolVersions.Version other = (io.grpc.alts.internal.RpcProtocolVersions.Version) obj; if (getMajor() != other.getMajor()) return false; if (getMinor() != other.getMinor()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MAJOR_FIELD_NUMBER; hash = (53 * hash) + getMajor(); hash = (37 * hash) + MINOR_FIELD_NUMBER; hash = (53 * hash) + getMinor(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.RpcProtocolVersions.Version parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.RpcProtocolVersions.Version 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.grpc.alts.internal.RpcProtocolVersions.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.alts.internal.RpcProtocolVersions.Version 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.grpc.alts.internal.RpcProtocolVersions.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.RpcProtocolVersions.Version 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.grpc.alts.internal.RpcProtocolVersions.Version 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; } /** *
     * RPC version contains a major version and a minor version.
     * 
* * Protobuf type {@code grpc.gcp.RpcProtocolVersions.Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gcp.RpcProtocolVersions.Version) io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.RpcProtocolVersions.Version.class, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder.class); } // Construct using io.grpc.alts.internal.RpcProtocolVersions.Version.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; major_ = 0; minor_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor; } @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.Version getDefaultInstanceForType() { return io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance(); } @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.Version build() { io.grpc.alts.internal.RpcProtocolVersions.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.Version buildPartial() { io.grpc.alts.internal.RpcProtocolVersions.Version result = new io.grpc.alts.internal.RpcProtocolVersions.Version(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.alts.internal.RpcProtocolVersions.Version result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.major_ = major_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minor_ = minor_; } } @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.grpc.alts.internal.RpcProtocolVersions.Version) { return mergeFrom((io.grpc.alts.internal.RpcProtocolVersions.Version)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.alts.internal.RpcProtocolVersions.Version other) { if (other == io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance()) return this; if (other.getMajor() != 0) { setMajor(other.getMajor()); } if (other.getMinor() != 0) { setMinor(other.getMinor()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { major_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { minor_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int major_ ; /** * uint32 major = 1; * @return The major. */ @java.lang.Override public int getMajor() { return major_; } /** * uint32 major = 1; * @param value The major to set. * @return This builder for chaining. */ public Builder setMajor(int value) { major_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * uint32 major = 1; * @return This builder for chaining. */ public Builder clearMajor() { bitField0_ = (bitField0_ & ~0x00000001); major_ = 0; onChanged(); return this; } private int minor_ ; /** * uint32 minor = 2; * @return The minor. */ @java.lang.Override public int getMinor() { return minor_; } /** * uint32 minor = 2; * @param value The minor to set. * @return This builder for chaining. */ public Builder setMinor(int value) { minor_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint32 minor = 2; * @return This builder for chaining. */ public Builder clearMinor() { bitField0_ = (bitField0_ & ~0x00000002); minor_ = 0; 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:grpc.gcp.RpcProtocolVersions.Version) } // @@protoc_insertion_point(class_scope:grpc.gcp.RpcProtocolVersions.Version) private static final io.grpc.alts.internal.RpcProtocolVersions.Version DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.alts.internal.RpcProtocolVersions.Version(); } public static io.grpc.alts.internal.RpcProtocolVersions.Version getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.grpc.alts.internal.RpcProtocolVersions.Version getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int MAX_RPC_VERSION_FIELD_NUMBER = 1; private io.grpc.alts.internal.RpcProtocolVersions.Version maxRpcVersion_; /** *
   * Maximum supported RPC version.
   * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; * @return Whether the maxRpcVersion field is set. */ @java.lang.Override public boolean hasMaxRpcVersion() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Maximum supported RPC version.
   * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; * @return The maxRpcVersion. */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.Version getMaxRpcVersion() { return maxRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_; } /** *
   * Maximum supported RPC version.
   * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder getMaxRpcVersionOrBuilder() { return maxRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_; } public static final int MIN_RPC_VERSION_FIELD_NUMBER = 2; private io.grpc.alts.internal.RpcProtocolVersions.Version minRpcVersion_; /** *
   * Minimum supported RPC version.
   * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; * @return Whether the minRpcVersion field is set. */ @java.lang.Override public boolean hasMinRpcVersion() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Minimum supported RPC version.
   * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; * @return The minRpcVersion. */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.Version getMinRpcVersion() { return minRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_; } /** *
   * Minimum supported RPC version.
   * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder getMinRpcVersionOrBuilder() { return minRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMaxRpcVersion()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMinRpcVersion()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMaxRpcVersion()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMinRpcVersion()); } size += getUnknownFields().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.grpc.alts.internal.RpcProtocolVersions)) { return super.equals(obj); } io.grpc.alts.internal.RpcProtocolVersions other = (io.grpc.alts.internal.RpcProtocolVersions) obj; if (hasMaxRpcVersion() != other.hasMaxRpcVersion()) return false; if (hasMaxRpcVersion()) { if (!getMaxRpcVersion() .equals(other.getMaxRpcVersion())) return false; } if (hasMinRpcVersion() != other.hasMinRpcVersion()) return false; if (hasMinRpcVersion()) { if (!getMinRpcVersion() .equals(other.getMinRpcVersion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMaxRpcVersion()) { hash = (37 * hash) + MAX_RPC_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMaxRpcVersion().hashCode(); } if (hasMinRpcVersion()) { hash = (37 * hash) + MIN_RPC_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMinRpcVersion().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.RpcProtocolVersions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.RpcProtocolVersions 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.grpc.alts.internal.RpcProtocolVersions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.alts.internal.RpcProtocolVersions 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.grpc.alts.internal.RpcProtocolVersions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.RpcProtocolVersions 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.grpc.alts.internal.RpcProtocolVersions 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; } /** *
   * Max and min supported RPC protocol versions.
   * 
* * Protobuf type {@code grpc.gcp.RpcProtocolVersions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gcp.RpcProtocolVersions) io.grpc.alts.internal.RpcProtocolVersionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.RpcProtocolVersions.class, io.grpc.alts.internal.RpcProtocolVersions.Builder.class); } // Construct using io.grpc.alts.internal.RpcProtocolVersions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMaxRpcVersionFieldBuilder(); getMinRpcVersionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxRpcVersion_ = null; if (maxRpcVersionBuilder_ != null) { maxRpcVersionBuilder_.dispose(); maxRpcVersionBuilder_ = null; } minRpcVersion_ = null; if (minRpcVersionBuilder_ != null) { minRpcVersionBuilder_.dispose(); minRpcVersionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_descriptor; } @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions getDefaultInstanceForType() { return io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance(); } @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions build() { io.grpc.alts.internal.RpcProtocolVersions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions buildPartial() { io.grpc.alts.internal.RpcProtocolVersions result = new io.grpc.alts.internal.RpcProtocolVersions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.alts.internal.RpcProtocolVersions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxRpcVersion_ = maxRpcVersionBuilder_ == null ? maxRpcVersion_ : maxRpcVersionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minRpcVersion_ = minRpcVersionBuilder_ == null ? minRpcVersion_ : minRpcVersionBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.grpc.alts.internal.RpcProtocolVersions) { return mergeFrom((io.grpc.alts.internal.RpcProtocolVersions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.alts.internal.RpcProtocolVersions other) { if (other == io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance()) return this; if (other.hasMaxRpcVersion()) { mergeMaxRpcVersion(other.getMaxRpcVersion()); } if (other.hasMinRpcVersion()) { mergeMinRpcVersion(other.getMinRpcVersion()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMaxRpcVersionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMinRpcVersionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.grpc.alts.internal.RpcProtocolVersions.Version maxRpcVersion_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions.Version, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder> maxRpcVersionBuilder_; /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; * @return Whether the maxRpcVersion field is set. */ public boolean hasMaxRpcVersion() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; * @return The maxRpcVersion. */ public io.grpc.alts.internal.RpcProtocolVersions.Version getMaxRpcVersion() { if (maxRpcVersionBuilder_ == null) { return maxRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_; } else { return maxRpcVersionBuilder_.getMessage(); } } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ public Builder setMaxRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { if (maxRpcVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxRpcVersion_ = value; } else { maxRpcVersionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ public Builder setMaxRpcVersion( io.grpc.alts.internal.RpcProtocolVersions.Version.Builder builderForValue) { if (maxRpcVersionBuilder_ == null) { maxRpcVersion_ = builderForValue.build(); } else { maxRpcVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ public Builder mergeMaxRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { if (maxRpcVersionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && maxRpcVersion_ != null && maxRpcVersion_ != io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance()) { getMaxRpcVersionBuilder().mergeFrom(value); } else { maxRpcVersion_ = value; } } else { maxRpcVersionBuilder_.mergeFrom(value); } if (maxRpcVersion_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ public Builder clearMaxRpcVersion() { bitField0_ = (bitField0_ & ~0x00000001); maxRpcVersion_ = null; if (maxRpcVersionBuilder_ != null) { maxRpcVersionBuilder_.dispose(); maxRpcVersionBuilder_ = null; } onChanged(); return this; } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ public io.grpc.alts.internal.RpcProtocolVersions.Version.Builder getMaxRpcVersionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMaxRpcVersionFieldBuilder().getBuilder(); } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ public io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder getMaxRpcVersionOrBuilder() { if (maxRpcVersionBuilder_ != null) { return maxRpcVersionBuilder_.getMessageOrBuilder(); } else { return maxRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_; } } /** *
     * Maximum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions.Version, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder> getMaxRpcVersionFieldBuilder() { if (maxRpcVersionBuilder_ == null) { maxRpcVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions.Version, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder>( getMaxRpcVersion(), getParentForChildren(), isClean()); maxRpcVersion_ = null; } return maxRpcVersionBuilder_; } private io.grpc.alts.internal.RpcProtocolVersions.Version minRpcVersion_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions.Version, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder> minRpcVersionBuilder_; /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; * @return Whether the minRpcVersion field is set. */ public boolean hasMinRpcVersion() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; * @return The minRpcVersion. */ public io.grpc.alts.internal.RpcProtocolVersions.Version getMinRpcVersion() { if (minRpcVersionBuilder_ == null) { return minRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_; } else { return minRpcVersionBuilder_.getMessage(); } } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ public Builder setMinRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { if (minRpcVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minRpcVersion_ = value; } else { minRpcVersionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ public Builder setMinRpcVersion( io.grpc.alts.internal.RpcProtocolVersions.Version.Builder builderForValue) { if (minRpcVersionBuilder_ == null) { minRpcVersion_ = builderForValue.build(); } else { minRpcVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ public Builder mergeMinRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { if (minRpcVersionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && minRpcVersion_ != null && minRpcVersion_ != io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance()) { getMinRpcVersionBuilder().mergeFrom(value); } else { minRpcVersion_ = value; } } else { minRpcVersionBuilder_.mergeFrom(value); } if (minRpcVersion_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ public Builder clearMinRpcVersion() { bitField0_ = (bitField0_ & ~0x00000002); minRpcVersion_ = null; if (minRpcVersionBuilder_ != null) { minRpcVersionBuilder_.dispose(); minRpcVersionBuilder_ = null; } onChanged(); return this; } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ public io.grpc.alts.internal.RpcProtocolVersions.Version.Builder getMinRpcVersionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMinRpcVersionFieldBuilder().getBuilder(); } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ public io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder getMinRpcVersionOrBuilder() { if (minRpcVersionBuilder_ != null) { return minRpcVersionBuilder_.getMessageOrBuilder(); } else { return minRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_; } } /** *
     * Minimum supported RPC version.
     * 
* * .grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions.Version, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder> getMinRpcVersionFieldBuilder() { if (minRpcVersionBuilder_ == null) { minRpcVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions.Version, io.grpc.alts.internal.RpcProtocolVersions.Version.Builder, io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder>( getMinRpcVersion(), getParentForChildren(), isClean()); minRpcVersion_ = null; } return minRpcVersionBuilder_; } @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:grpc.gcp.RpcProtocolVersions) } // @@protoc_insertion_point(class_scope:grpc.gcp.RpcProtocolVersions) private static final io.grpc.alts.internal.RpcProtocolVersions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.alts.internal.RpcProtocolVersions(); } public static io.grpc.alts.internal.RpcProtocolVersions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RpcProtocolVersions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.grpc.alts.internal.RpcProtocolVersions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy