| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: grpc/gcp/handshaker.proto |
| |
| package io.grpc.alts.internal; |
| |
| /** |
| * Protobuf type {@code grpc.gcp.HandshakerResp} |
| */ |
| public final class HandshakerResp extends |
| com.google.protobuf.GeneratedMessageV3 implements |
| // @@protoc_insertion_point(message_implements:grpc.gcp.HandshakerResp) |
| HandshakerRespOrBuilder { |
| private static final long serialVersionUID = 0L; |
| // Use HandshakerResp.newBuilder() to construct. |
| private HandshakerResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { |
| super(builder); |
| } |
| private HandshakerResp() { |
| outFrames_ = com.google.protobuf.ByteString.EMPTY; |
| bytesConsumed_ = 0; |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private HandshakerResp( |
| 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: { |
| |
| outFrames_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| |
| bytesConsumed_ = input.readUInt32(); |
| break; |
| } |
| case 26: { |
| io.grpc.alts.internal.HandshakerResult.Builder subBuilder = null; |
| if (result_ != null) { |
| subBuilder = result_.toBuilder(); |
| } |
| result_ = input.readMessage(io.grpc.alts.internal.HandshakerResult.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(result_); |
| result_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 34: { |
| io.grpc.alts.internal.HandshakerStatus.Builder subBuilder = null; |
| if (status_ != null) { |
| subBuilder = status_.toBuilder(); |
| } |
| status_ = input.readMessage(io.grpc.alts.internal.HandshakerStatus.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(status_); |
| status_ = 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.HandshakerProto.internal_static_grpc_gcp_HandshakerResp_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerResp_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| io.grpc.alts.internal.HandshakerResp.class, io.grpc.alts.internal.HandshakerResp.Builder.class); |
| } |
| |
| public static final int OUT_FRAMES_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString outFrames_; |
| /** |
| * <pre> |
| * Frames to be given to the peer for the NextHandshakeMessageReq. May be |
| * empty if no out_frames have to be sent to the peer or if in_bytes in the |
| * HandshakerReq are incomplete. All the non-empty out frames must be sent to |
| * the peer even if the handshaker status is not OK as these frames may |
| * contain the alert frames. |
| * </pre> |
| * |
| * <code>bytes out_frames = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getOutFrames() { |
| return outFrames_; |
| } |
| |
| public static final int BYTES_CONSUMED_FIELD_NUMBER = 2; |
| private int bytesConsumed_; |
| /** |
| * <pre> |
| * Number of bytes in the in_bytes consumed by the handshaker. It is possible |
| * that part of in_bytes in HandshakerReq was unrelated to the handshake |
| * process. |
| * </pre> |
| * |
| * <code>uint32 bytes_consumed = 2;</code> |
| */ |
| public int getBytesConsumed() { |
| return bytesConsumed_; |
| } |
| |
| public static final int RESULT_FIELD_NUMBER = 3; |
| private io.grpc.alts.internal.HandshakerResult result_; |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public boolean hasResult() { |
| return result_ != null; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerResult getResult() { |
| return result_ == null ? io.grpc.alts.internal.HandshakerResult.getDefaultInstance() : result_; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerResultOrBuilder getResultOrBuilder() { |
| return getResult(); |
| } |
| |
| public static final int STATUS_FIELD_NUMBER = 4; |
| private io.grpc.alts.internal.HandshakerStatus status_; |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public boolean hasStatus() { |
| return status_ != null; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerStatus getStatus() { |
| return status_ == null ? io.grpc.alts.internal.HandshakerStatus.getDefaultInstance() : status_; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerStatusOrBuilder getStatusOrBuilder() { |
| return getStatus(); |
| } |
| |
| 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 (!outFrames_.isEmpty()) { |
| output.writeBytes(1, outFrames_); |
| } |
| if (bytesConsumed_ != 0) { |
| output.writeUInt32(2, bytesConsumed_); |
| } |
| if (result_ != null) { |
| output.writeMessage(3, getResult()); |
| } |
| if (status_ != null) { |
| output.writeMessage(4, getStatus()); |
| } |
| unknownFields.writeTo(output); |
| } |
| |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (!outFrames_.isEmpty()) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, outFrames_); |
| } |
| if (bytesConsumed_ != 0) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(2, bytesConsumed_); |
| } |
| if (result_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, getResult()); |
| } |
| if (status_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(4, getStatus()); |
| } |
| 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.HandshakerResp)) { |
| return super.equals(obj); |
| } |
| io.grpc.alts.internal.HandshakerResp other = (io.grpc.alts.internal.HandshakerResp) obj; |
| |
| boolean result = true; |
| result = result && getOutFrames() |
| .equals(other.getOutFrames()); |
| result = result && (getBytesConsumed() |
| == other.getBytesConsumed()); |
| result = result && (hasResult() == other.hasResult()); |
| if (hasResult()) { |
| result = result && getResult() |
| .equals(other.getResult()); |
| } |
| result = result && (hasStatus() == other.hasStatus()); |
| if (hasStatus()) { |
| result = result && getStatus() |
| .equals(other.getStatus()); |
| } |
| 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) + OUT_FRAMES_FIELD_NUMBER; |
| hash = (53 * hash) + getOutFrames().hashCode(); |
| hash = (37 * hash) + BYTES_CONSUMED_FIELD_NUMBER; |
| hash = (53 * hash) + getBytesConsumed(); |
| if (hasResult()) { |
| hash = (37 * hash) + RESULT_FIELD_NUMBER; |
| hash = (53 * hash) + getResult().hashCode(); |
| } |
| if (hasStatus()) { |
| hash = (37 * hash) + STATUS_FIELD_NUMBER; |
| hash = (53 * hash) + getStatus().hashCode(); |
| } |
| hash = (29 * hash) + unknownFields.hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static io.grpc.alts.internal.HandshakerResp parseFrom( |
| java.nio.ByteBuffer data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.alts.internal.HandshakerResp 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.HandshakerResp parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.alts.internal.HandshakerResp 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.HandshakerResp parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.alts.internal.HandshakerResp parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static io.grpc.alts.internal.HandshakerResp parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static io.grpc.alts.internal.HandshakerResp 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.HandshakerResp parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseDelimitedWithIOException(PARSER, input); |
| } |
| public static io.grpc.alts.internal.HandshakerResp 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.HandshakerResp parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static io.grpc.alts.internal.HandshakerResp 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.HandshakerResp 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; |
| } |
| /** |
| * Protobuf type {@code grpc.gcp.HandshakerResp} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements |
| // @@protoc_insertion_point(builder_implements:grpc.gcp.HandshakerResp) |
| io.grpc.alts.internal.HandshakerRespOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerResp_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerResp_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| io.grpc.alts.internal.HandshakerResp.class, io.grpc.alts.internal.HandshakerResp.Builder.class); |
| } |
| |
| // Construct using io.grpc.alts.internal.HandshakerResp.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(); |
| outFrames_ = com.google.protobuf.ByteString.EMPTY; |
| |
| bytesConsumed_ = 0; |
| |
| if (resultBuilder_ == null) { |
| result_ = null; |
| } else { |
| result_ = null; |
| resultBuilder_ = null; |
| } |
| if (statusBuilder_ == null) { |
| status_ = null; |
| } else { |
| status_ = null; |
| statusBuilder_ = null; |
| } |
| return this; |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerResp_descriptor; |
| } |
| |
| public io.grpc.alts.internal.HandshakerResp getDefaultInstanceForType() { |
| return io.grpc.alts.internal.HandshakerResp.getDefaultInstance(); |
| } |
| |
| public io.grpc.alts.internal.HandshakerResp build() { |
| io.grpc.alts.internal.HandshakerResp result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public io.grpc.alts.internal.HandshakerResp buildPartial() { |
| io.grpc.alts.internal.HandshakerResp result = new io.grpc.alts.internal.HandshakerResp(this); |
| result.outFrames_ = outFrames_; |
| result.bytesConsumed_ = bytesConsumed_; |
| if (resultBuilder_ == null) { |
| result.result_ = result_; |
| } else { |
| result.result_ = resultBuilder_.build(); |
| } |
| if (statusBuilder_ == null) { |
| result.status_ = status_; |
| } else { |
| result.status_ = statusBuilder_.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.HandshakerResp) { |
| return mergeFrom((io.grpc.alts.internal.HandshakerResp)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(io.grpc.alts.internal.HandshakerResp other) { |
| if (other == io.grpc.alts.internal.HandshakerResp.getDefaultInstance()) return this; |
| if (other.getOutFrames() != com.google.protobuf.ByteString.EMPTY) { |
| setOutFrames(other.getOutFrames()); |
| } |
| if (other.getBytesConsumed() != 0) { |
| setBytesConsumed(other.getBytesConsumed()); |
| } |
| if (other.hasResult()) { |
| mergeResult(other.getResult()); |
| } |
| if (other.hasStatus()) { |
| mergeStatus(other.getStatus()); |
| } |
| 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.HandshakerResp parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (io.grpc.alts.internal.HandshakerResp) e.getUnfinishedMessage(); |
| throw e.unwrapIOException(); |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| private com.google.protobuf.ByteString outFrames_ = com.google.protobuf.ByteString.EMPTY; |
| /** |
| * <pre> |
| * Frames to be given to the peer for the NextHandshakeMessageReq. May be |
| * empty if no out_frames have to be sent to the peer or if in_bytes in the |
| * HandshakerReq are incomplete. All the non-empty out frames must be sent to |
| * the peer even if the handshaker status is not OK as these frames may |
| * contain the alert frames. |
| * </pre> |
| * |
| * <code>bytes out_frames = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getOutFrames() { |
| return outFrames_; |
| } |
| /** |
| * <pre> |
| * Frames to be given to the peer for the NextHandshakeMessageReq. May be |
| * empty if no out_frames have to be sent to the peer or if in_bytes in the |
| * HandshakerReq are incomplete. All the non-empty out frames must be sent to |
| * the peer even if the handshaker status is not OK as these frames may |
| * contain the alert frames. |
| * </pre> |
| * |
| * <code>bytes out_frames = 1;</code> |
| */ |
| public Builder setOutFrames(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| |
| outFrames_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * Frames to be given to the peer for the NextHandshakeMessageReq. May be |
| * empty if no out_frames have to be sent to the peer or if in_bytes in the |
| * HandshakerReq are incomplete. All the non-empty out frames must be sent to |
| * the peer even if the handshaker status is not OK as these frames may |
| * contain the alert frames. |
| * </pre> |
| * |
| * <code>bytes out_frames = 1;</code> |
| */ |
| public Builder clearOutFrames() { |
| |
| outFrames_ = getDefaultInstance().getOutFrames(); |
| onChanged(); |
| return this; |
| } |
| |
| private int bytesConsumed_ ; |
| /** |
| * <pre> |
| * Number of bytes in the in_bytes consumed by the handshaker. It is possible |
| * that part of in_bytes in HandshakerReq was unrelated to the handshake |
| * process. |
| * </pre> |
| * |
| * <code>uint32 bytes_consumed = 2;</code> |
| */ |
| public int getBytesConsumed() { |
| return bytesConsumed_; |
| } |
| /** |
| * <pre> |
| * Number of bytes in the in_bytes consumed by the handshaker. It is possible |
| * that part of in_bytes in HandshakerReq was unrelated to the handshake |
| * process. |
| * </pre> |
| * |
| * <code>uint32 bytes_consumed = 2;</code> |
| */ |
| public Builder setBytesConsumed(int value) { |
| |
| bytesConsumed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * Number of bytes in the in_bytes consumed by the handshaker. It is possible |
| * that part of in_bytes in HandshakerReq was unrelated to the handshake |
| * process. |
| * </pre> |
| * |
| * <code>uint32 bytes_consumed = 2;</code> |
| */ |
| public Builder clearBytesConsumed() { |
| |
| bytesConsumed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| private io.grpc.alts.internal.HandshakerResult result_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.alts.internal.HandshakerResult, io.grpc.alts.internal.HandshakerResult.Builder, io.grpc.alts.internal.HandshakerResultOrBuilder> resultBuilder_; |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public boolean hasResult() { |
| return resultBuilder_ != null || result_ != null; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerResult getResult() { |
| if (resultBuilder_ == null) { |
| return result_ == null ? io.grpc.alts.internal.HandshakerResult.getDefaultInstance() : result_; |
| } else { |
| return resultBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public Builder setResult(io.grpc.alts.internal.HandshakerResult value) { |
| if (resultBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| result_ = value; |
| onChanged(); |
| } else { |
| resultBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public Builder setResult( |
| io.grpc.alts.internal.HandshakerResult.Builder builderForValue) { |
| if (resultBuilder_ == null) { |
| result_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| resultBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public Builder mergeResult(io.grpc.alts.internal.HandshakerResult value) { |
| if (resultBuilder_ == null) { |
| if (result_ != null) { |
| result_ = |
| io.grpc.alts.internal.HandshakerResult.newBuilder(result_).mergeFrom(value).buildPartial(); |
| } else { |
| result_ = value; |
| } |
| onChanged(); |
| } else { |
| resultBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public Builder clearResult() { |
| if (resultBuilder_ == null) { |
| result_ = null; |
| onChanged(); |
| } else { |
| result_ = null; |
| resultBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerResult.Builder getResultBuilder() { |
| |
| onChanged(); |
| return getResultFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerResultOrBuilder getResultOrBuilder() { |
| if (resultBuilder_ != null) { |
| return resultBuilder_.getMessageOrBuilder(); |
| } else { |
| return result_ == null ? |
| io.grpc.alts.internal.HandshakerResult.getDefaultInstance() : result_; |
| } |
| } |
| /** |
| * <pre> |
| * This is set iff the handshake was successful. out_frames may still be set |
| * to frames that needs to be forwarded to the peer. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerResult result = 3;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.alts.internal.HandshakerResult, io.grpc.alts.internal.HandshakerResult.Builder, io.grpc.alts.internal.HandshakerResultOrBuilder> |
| getResultFieldBuilder() { |
| if (resultBuilder_ == null) { |
| resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.alts.internal.HandshakerResult, io.grpc.alts.internal.HandshakerResult.Builder, io.grpc.alts.internal.HandshakerResultOrBuilder>( |
| getResult(), |
| getParentForChildren(), |
| isClean()); |
| result_ = null; |
| } |
| return resultBuilder_; |
| } |
| |
| private io.grpc.alts.internal.HandshakerStatus status_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.alts.internal.HandshakerStatus, io.grpc.alts.internal.HandshakerStatus.Builder, io.grpc.alts.internal.HandshakerStatusOrBuilder> statusBuilder_; |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public boolean hasStatus() { |
| return statusBuilder_ != null || status_ != null; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerStatus getStatus() { |
| if (statusBuilder_ == null) { |
| return status_ == null ? io.grpc.alts.internal.HandshakerStatus.getDefaultInstance() : status_; |
| } else { |
| return statusBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public Builder setStatus(io.grpc.alts.internal.HandshakerStatus value) { |
| if (statusBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| status_ = value; |
| onChanged(); |
| } else { |
| statusBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public Builder setStatus( |
| io.grpc.alts.internal.HandshakerStatus.Builder builderForValue) { |
| if (statusBuilder_ == null) { |
| status_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| statusBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public Builder mergeStatus(io.grpc.alts.internal.HandshakerStatus value) { |
| if (statusBuilder_ == null) { |
| if (status_ != null) { |
| status_ = |
| io.grpc.alts.internal.HandshakerStatus.newBuilder(status_).mergeFrom(value).buildPartial(); |
| } else { |
| status_ = value; |
| } |
| onChanged(); |
| } else { |
| statusBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public Builder clearStatus() { |
| if (statusBuilder_ == null) { |
| status_ = null; |
| onChanged(); |
| } else { |
| status_ = null; |
| statusBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerStatus.Builder getStatusBuilder() { |
| |
| onChanged(); |
| return getStatusFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| public io.grpc.alts.internal.HandshakerStatusOrBuilder getStatusOrBuilder() { |
| if (statusBuilder_ != null) { |
| return statusBuilder_.getMessageOrBuilder(); |
| } else { |
| return status_ == null ? |
| io.grpc.alts.internal.HandshakerStatus.getDefaultInstance() : status_; |
| } |
| } |
| /** |
| * <pre> |
| * Status of the handshaker. |
| * </pre> |
| * |
| * <code>.grpc.gcp.HandshakerStatus status = 4;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.alts.internal.HandshakerStatus, io.grpc.alts.internal.HandshakerStatus.Builder, io.grpc.alts.internal.HandshakerStatusOrBuilder> |
| getStatusFieldBuilder() { |
| if (statusBuilder_ == null) { |
| statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.alts.internal.HandshakerStatus, io.grpc.alts.internal.HandshakerStatus.Builder, io.grpc.alts.internal.HandshakerStatusOrBuilder>( |
| getStatus(), |
| getParentForChildren(), |
| isClean()); |
| status_ = null; |
| } |
| return statusBuilder_; |
| } |
| 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.HandshakerResp) |
| } |
| |
| // @@protoc_insertion_point(class_scope:grpc.gcp.HandshakerResp) |
| private static final io.grpc.alts.internal.HandshakerResp DEFAULT_INSTANCE; |
| static { |
| DEFAULT_INSTANCE = new io.grpc.alts.internal.HandshakerResp(); |
| } |
| |
| public static io.grpc.alts.internal.HandshakerResp getDefaultInstance() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| private static final com.google.protobuf.Parser<HandshakerResp> |
| PARSER = new com.google.protobuf.AbstractParser<HandshakerResp>() { |
| public HandshakerResp parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new HandshakerResp(input, extensionRegistry); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<HandshakerResp> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<HandshakerResp> getParserForType() { |
| return PARSER; |
| } |
| |
| public io.grpc.alts.internal.HandshakerResp getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |