| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: grpc/gcp/transport_security_common.proto |
| |
| package io.grpc.alts.internal; |
| |
| /** |
| * <pre> |
| * Max and min supported RPC protocol versions. |
| * </pre> |
| * |
| * 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 |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private RpcProtocolVersions( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| this(); |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| int mutable_bitField0_ = 0; |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder(); |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| default: { |
| if (!parseUnknownFieldProto3( |
| input, unknownFields, extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| io.grpc.alts.internal.RpcProtocolVersions.Version.Builder subBuilder = null; |
| if (maxRpcVersion_ != null) { |
| subBuilder = maxRpcVersion_.toBuilder(); |
| } |
| maxRpcVersion_ = input.readMessage(io.grpc.alts.internal.RpcProtocolVersions.Version.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(maxRpcVersion_); |
| maxRpcVersion_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 18: { |
| io.grpc.alts.internal.RpcProtocolVersions.Version.Builder subBuilder = null; |
| if (minRpcVersion_ != null) { |
| subBuilder = minRpcVersion_.toBuilder(); |
| } |
| minRpcVersion_ = input.readMessage(io.grpc.alts.internal.RpcProtocolVersions.Version.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(minRpcVersion_); |
| minRpcVersion_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_descriptor; |
| } |
| |
| 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 { |
| |
| /** |
| * <code>uint32 major = 1;</code> |
| */ |
| int getMajor(); |
| |
| /** |
| * <code>uint32 minor = 2;</code> |
| */ |
| int getMinor(); |
| } |
| /** |
| * <pre> |
| * RPC version contains a major version and a minor version. |
| * </pre> |
| * |
| * 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() { |
| major_ = 0; |
| minor_ = 0; |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private Version( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| this(); |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| int mutable_bitField0_ = 0; |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder(); |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| default: { |
| if (!parseUnknownFieldProto3( |
| input, unknownFields, extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 8: { |
| |
| major_ = input.readUInt32(); |
| break; |
| } |
| case 16: { |
| |
| minor_ = input.readUInt32(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor; |
| } |
| |
| 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_; |
| /** |
| * <code>uint32 major = 1;</code> |
| */ |
| public int getMajor() { |
| return major_; |
| } |
| |
| public static final int MINOR_FIELD_NUMBER = 2; |
| private int minor_; |
| /** |
| * <code>uint32 minor = 2;</code> |
| */ |
| public int getMinor() { |
| return minor_; |
| } |
| |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized == 1) return true; |
| if (isInitialized == 0) return false; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| 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_); |
| } |
| unknownFields.writeTo(output); |
| } |
| |
| 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 += unknownFields.getSerializedSize(); |
| memoizedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof io.grpc.alts.internal.RpcProtocolVersions.Version)) { |
| return super.equals(obj); |
| } |
| io.grpc.alts.internal.RpcProtocolVersions.Version other = (io.grpc.alts.internal.RpcProtocolVersions.Version) obj; |
| |
| boolean result = true; |
| result = result && (getMajor() |
| == other.getMajor()); |
| result = result && (getMinor() |
| == other.getMinor()); |
| result = result && unknownFields.equals(other.unknownFields); |
| return result; |
| } |
| |
| @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) + unknownFields.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); |
| } |
| |
| 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); |
| } |
| 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; |
| } |
| /** |
| * <pre> |
| * RPC version contains a major version and a minor version. |
| * </pre> |
| * |
| * Protobuf type {@code grpc.gcp.RpcProtocolVersions.Version} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<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; |
| } |
| |
| 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() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessageV3 |
| .alwaysUseFieldBuilders) { |
| } |
| } |
| public Builder clear() { |
| super.clear(); |
| major_ = 0; |
| |
| minor_ = 0; |
| |
| return this; |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_Version_descriptor; |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions.Version getDefaultInstanceForType() { |
| return io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance(); |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions.Version build() { |
| io.grpc.alts.internal.RpcProtocolVersions.Version result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions.Version buildPartial() { |
| io.grpc.alts.internal.RpcProtocolVersions.Version result = new io.grpc.alts.internal.RpcProtocolVersions.Version(this); |
| result.major_ = major_; |
| result.minor_ = minor_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder clone() { |
| return (Builder) super.clone(); |
| } |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.setField(field, value); |
| } |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return (Builder) super.clearField(field); |
| } |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return (Builder) super.clearOneof(oneof); |
| } |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return (Builder) super.setRepeatedField(field, index, value); |
| } |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.addRepeatedField(field, value); |
| } |
| 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.unknownFields); |
| onChanged(); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| io.grpc.alts.internal.RpcProtocolVersions.Version parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (io.grpc.alts.internal.RpcProtocolVersions.Version) e.getUnfinishedMessage(); |
| throw e.unwrapIOException(); |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| private int major_ ; |
| /** |
| * <code>uint32 major = 1;</code> |
| */ |
| public int getMajor() { |
| return major_; |
| } |
| /** |
| * <code>uint32 major = 1;</code> |
| */ |
| public Builder setMajor(int value) { |
| |
| major_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>uint32 major = 1;</code> |
| */ |
| public Builder clearMajor() { |
| |
| major_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| private int minor_ ; |
| /** |
| * <code>uint32 minor = 2;</code> |
| */ |
| public int getMinor() { |
| return minor_; |
| } |
| /** |
| * <code>uint32 minor = 2;</code> |
| */ |
| public Builder setMinor(int value) { |
| |
| minor_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>uint32 minor = 2;</code> |
| */ |
| public Builder clearMinor() { |
| |
| minor_ = 0; |
| onChanged(); |
| return this; |
| } |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFieldsProto3(unknownFields); |
| } |
| |
| 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<Version> |
| PARSER = new com.google.protobuf.AbstractParser<Version>() { |
| public Version parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new Version(input, extensionRegistry); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<Version> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<Version> getParserForType() { |
| return PARSER; |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions.Version getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |
| public static final int MAX_RPC_VERSION_FIELD_NUMBER = 1; |
| private io.grpc.alts.internal.RpcProtocolVersions.Version maxRpcVersion_; |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public boolean hasMaxRpcVersion() { |
| return maxRpcVersion_ != null; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public io.grpc.alts.internal.RpcProtocolVersions.Version getMaxRpcVersion() { |
| return maxRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : maxRpcVersion_; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder getMaxRpcVersionOrBuilder() { |
| return getMaxRpcVersion(); |
| } |
| |
| public static final int MIN_RPC_VERSION_FIELD_NUMBER = 2; |
| private io.grpc.alts.internal.RpcProtocolVersions.Version minRpcVersion_; |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public boolean hasMinRpcVersion() { |
| return minRpcVersion_ != null; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public io.grpc.alts.internal.RpcProtocolVersions.Version getMinRpcVersion() { |
| return minRpcVersion_ == null ? io.grpc.alts.internal.RpcProtocolVersions.Version.getDefaultInstance() : minRpcVersion_; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public io.grpc.alts.internal.RpcProtocolVersions.VersionOrBuilder getMinRpcVersionOrBuilder() { |
| return getMinRpcVersion(); |
| } |
| |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized == 1) return true; |
| if (isInitialized == 0) return false; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| if (maxRpcVersion_ != null) { |
| output.writeMessage(1, getMaxRpcVersion()); |
| } |
| if (minRpcVersion_ != null) { |
| output.writeMessage(2, getMinRpcVersion()); |
| } |
| unknownFields.writeTo(output); |
| } |
| |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (maxRpcVersion_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, getMaxRpcVersion()); |
| } |
| if (minRpcVersion_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, getMinRpcVersion()); |
| } |
| size += unknownFields.getSerializedSize(); |
| memoizedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof io.grpc.alts.internal.RpcProtocolVersions)) { |
| return super.equals(obj); |
| } |
| io.grpc.alts.internal.RpcProtocolVersions other = (io.grpc.alts.internal.RpcProtocolVersions) obj; |
| |
| boolean result = true; |
| result = result && (hasMaxRpcVersion() == other.hasMaxRpcVersion()); |
| if (hasMaxRpcVersion()) { |
| result = result && getMaxRpcVersion() |
| .equals(other.getMaxRpcVersion()); |
| } |
| result = result && (hasMinRpcVersion() == other.hasMinRpcVersion()); |
| if (hasMinRpcVersion()) { |
| result = result && getMinRpcVersion() |
| .equals(other.getMinRpcVersion()); |
| } |
| result = result && unknownFields.equals(other.unknownFields); |
| return result; |
| } |
| |
| @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) + unknownFields.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); |
| } |
| |
| 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); |
| } |
| 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; |
| } |
| /** |
| * <pre> |
| * Max and min supported RPC protocol versions. |
| * </pre> |
| * |
| * Protobuf type {@code grpc.gcp.RpcProtocolVersions} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<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; |
| } |
| |
| 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) { |
| } |
| } |
| public Builder clear() { |
| super.clear(); |
| if (maxRpcVersionBuilder_ == null) { |
| maxRpcVersion_ = null; |
| } else { |
| maxRpcVersion_ = null; |
| maxRpcVersionBuilder_ = null; |
| } |
| if (minRpcVersionBuilder_ == null) { |
| minRpcVersion_ = null; |
| } else { |
| minRpcVersion_ = null; |
| minRpcVersionBuilder_ = null; |
| } |
| return this; |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return io.grpc.alts.internal.TransportSecurityCommonProto.internal_static_grpc_gcp_RpcProtocolVersions_descriptor; |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions getDefaultInstanceForType() { |
| return io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance(); |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions build() { |
| io.grpc.alts.internal.RpcProtocolVersions result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions buildPartial() { |
| io.grpc.alts.internal.RpcProtocolVersions result = new io.grpc.alts.internal.RpcProtocolVersions(this); |
| if (maxRpcVersionBuilder_ == null) { |
| result.maxRpcVersion_ = maxRpcVersion_; |
| } else { |
| result.maxRpcVersion_ = maxRpcVersionBuilder_.build(); |
| } |
| if (minRpcVersionBuilder_ == null) { |
| result.minRpcVersion_ = minRpcVersion_; |
| } else { |
| result.minRpcVersion_ = minRpcVersionBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder clone() { |
| return (Builder) super.clone(); |
| } |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.setField(field, value); |
| } |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return (Builder) super.clearField(field); |
| } |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return (Builder) super.clearOneof(oneof); |
| } |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return (Builder) super.setRepeatedField(field, index, value); |
| } |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.addRepeatedField(field, value); |
| } |
| 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.unknownFields); |
| onChanged(); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| io.grpc.alts.internal.RpcProtocolVersions parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (io.grpc.alts.internal.RpcProtocolVersions) e.getUnfinishedMessage(); |
| throw e.unwrapIOException(); |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| private io.grpc.alts.internal.RpcProtocolVersions.Version maxRpcVersion_ = null; |
| 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_; |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public boolean hasMaxRpcVersion() { |
| return maxRpcVersionBuilder_ != null || maxRpcVersion_ != null; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| 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(); |
| } |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public Builder setMaxRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { |
| if (maxRpcVersionBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| maxRpcVersion_ = value; |
| onChanged(); |
| } else { |
| maxRpcVersionBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public Builder setMaxRpcVersion( |
| io.grpc.alts.internal.RpcProtocolVersions.Version.Builder builderForValue) { |
| if (maxRpcVersionBuilder_ == null) { |
| maxRpcVersion_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| maxRpcVersionBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public Builder mergeMaxRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { |
| if (maxRpcVersionBuilder_ == null) { |
| if (maxRpcVersion_ != null) { |
| maxRpcVersion_ = |
| io.grpc.alts.internal.RpcProtocolVersions.Version.newBuilder(maxRpcVersion_).mergeFrom(value).buildPartial(); |
| } else { |
| maxRpcVersion_ = value; |
| } |
| onChanged(); |
| } else { |
| maxRpcVersionBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public Builder clearMaxRpcVersion() { |
| if (maxRpcVersionBuilder_ == null) { |
| maxRpcVersion_ = null; |
| onChanged(); |
| } else { |
| maxRpcVersion_ = null; |
| maxRpcVersionBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| public io.grpc.alts.internal.RpcProtocolVersions.Version.Builder getMaxRpcVersionBuilder() { |
| |
| onChanged(); |
| return getMaxRpcVersionFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| 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_; |
| } |
| } |
| /** |
| * <pre> |
| * Maximum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version max_rpc_version = 1;</code> |
| */ |
| 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_ = null; |
| 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_; |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public boolean hasMinRpcVersion() { |
| return minRpcVersionBuilder_ != null || minRpcVersion_ != null; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| 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(); |
| } |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public Builder setMinRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { |
| if (minRpcVersionBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| minRpcVersion_ = value; |
| onChanged(); |
| } else { |
| minRpcVersionBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public Builder setMinRpcVersion( |
| io.grpc.alts.internal.RpcProtocolVersions.Version.Builder builderForValue) { |
| if (minRpcVersionBuilder_ == null) { |
| minRpcVersion_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| minRpcVersionBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public Builder mergeMinRpcVersion(io.grpc.alts.internal.RpcProtocolVersions.Version value) { |
| if (minRpcVersionBuilder_ == null) { |
| if (minRpcVersion_ != null) { |
| minRpcVersion_ = |
| io.grpc.alts.internal.RpcProtocolVersions.Version.newBuilder(minRpcVersion_).mergeFrom(value).buildPartial(); |
| } else { |
| minRpcVersion_ = value; |
| } |
| onChanged(); |
| } else { |
| minRpcVersionBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public Builder clearMinRpcVersion() { |
| if (minRpcVersionBuilder_ == null) { |
| minRpcVersion_ = null; |
| onChanged(); |
| } else { |
| minRpcVersion_ = null; |
| minRpcVersionBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| public io.grpc.alts.internal.RpcProtocolVersions.Version.Builder getMinRpcVersionBuilder() { |
| |
| onChanged(); |
| return getMinRpcVersionFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| 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_; |
| } |
| } |
| /** |
| * <pre> |
| * Minimum supported RPC version. |
| * </pre> |
| * |
| * <code>.grpc.gcp.RpcProtocolVersions.Version min_rpc_version = 2;</code> |
| */ |
| 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_; |
| } |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFieldsProto3(unknownFields); |
| } |
| |
| 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<RpcProtocolVersions> |
| PARSER = new com.google.protobuf.AbstractParser<RpcProtocolVersions>() { |
| public RpcProtocolVersions parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new RpcProtocolVersions(input, extensionRegistry); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<RpcProtocolVersions> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<RpcProtocolVersions> getParserForType() { |
| return PARSER; |
| } |
| |
| public io.grpc.alts.internal.RpcProtocolVersions getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |