Class HandshakerResp.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HandshakerRespOrBuilder, java.lang.Cloneable
    Enclosing class:
    HandshakerResp

    public static final class HandshakerResp.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
    implements HandshakerRespOrBuilder
    Protobuf type grpc.gcp.HandshakerResp
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public HandshakerResp.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
      • getDefaultInstanceForType

        public HandshakerResp getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public HandshakerResp build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public HandshakerResp buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartial0

        private void buildPartial0​(HandshakerResp result)
      • mergeFrom

        public HandshakerResp.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HandshakerResp.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
      • mergeFrom

        public HandshakerResp.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HandshakerResp.Builder>
        Throws:
        java.io.IOException
      • getOutFrames

        public com.google.protobuf.ByteString getOutFrames()
         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.
         
        bytes out_frames = 1;
        Specified by:
        getOutFrames in interface HandshakerRespOrBuilder
        Returns:
        The outFrames.
      • setOutFrames

        public HandshakerResp.Builder setOutFrames​(com.google.protobuf.ByteString value)
         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.
         
        bytes out_frames = 1;
        Parameters:
        value - The outFrames to set.
        Returns:
        This builder for chaining.
      • clearOutFrames

        public HandshakerResp.Builder clearOutFrames()
         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.
         
        bytes out_frames = 1;
        Returns:
        This builder for chaining.
      • getBytesConsumed

        public int getBytesConsumed()
         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.
         
        uint32 bytes_consumed = 2;
        Specified by:
        getBytesConsumed in interface HandshakerRespOrBuilder
        Returns:
        The bytesConsumed.
      • setBytesConsumed

        public HandshakerResp.Builder setBytesConsumed​(int value)
         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.
         
        uint32 bytes_consumed = 2;
        Parameters:
        value - The bytesConsumed to set.
        Returns:
        This builder for chaining.
      • clearBytesConsumed

        public HandshakerResp.Builder clearBytesConsumed()
         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.
         
        uint32 bytes_consumed = 2;
        Returns:
        This builder for chaining.
      • hasResult

        public boolean hasResult()
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
        Specified by:
        hasResult in interface HandshakerRespOrBuilder
        Returns:
        Whether the result field is set.
      • getResult

        public HandshakerResult getResult()
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
        Specified by:
        getResult in interface HandshakerRespOrBuilder
        Returns:
        The result.
      • setResult

        public HandshakerResp.Builder setResult​(HandshakerResult value)
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
      • setResult

        public HandshakerResp.Builder setResult​(HandshakerResult.Builder builderForValue)
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
      • mergeResult

        public HandshakerResp.Builder mergeResult​(HandshakerResult value)
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
      • clearResult

        public HandshakerResp.Builder clearResult()
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
      • getResultBuilder

        public HandshakerResult.Builder getResultBuilder()
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
      • getResultFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<HandshakerResult,​HandshakerResult.Builder,​HandshakerResultOrBuilder> getResultFieldBuilder()
         This is set iff the handshake was successful. out_frames may still be set
         to frames that needs to be forwarded to the peer.
         
        .grpc.gcp.HandshakerResult result = 3;
      • hasStatus

        public boolean hasStatus()
         Status of the handshaker.
         
        .grpc.gcp.HandshakerStatus status = 4;
        Specified by:
        hasStatus in interface HandshakerRespOrBuilder
        Returns:
        Whether the status field is set.
      • clearStatus

        public HandshakerResp.Builder clearStatus()
         Status of the handshaker.
         
        .grpc.gcp.HandshakerStatus status = 4;
      • getStatusBuilder

        public HandshakerStatus.Builder getStatusBuilder()
         Status of the handshaker.
         
        .grpc.gcp.HandshakerStatus status = 4;