Class HandshakerResp.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HandshakerResp.Builder>
com.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
io.grpc.alts.internal.HandshakerResp.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HandshakerRespOrBuilder, 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
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

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

    • 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>
    • mergeFrom

      public HandshakerResp.Builder mergeFrom(HandshakerResp other)
    • 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 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:
      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;
    • getResultOrBuilder

      public HandshakerResultOrBuilder getResultOrBuilder()
       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:
      getResultOrBuilder in interface HandshakerRespOrBuilder
    • 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.
    • getStatus

      public HandshakerStatus getStatus()
       Status of the handshaker.
       
      .grpc.gcp.HandshakerStatus status = 4;
      Specified by:
      getStatus in interface HandshakerRespOrBuilder
      Returns:
      The status.
    • setStatus

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

      public HandshakerResp.Builder setStatus(HandshakerStatus.Builder builderForValue)
       Status of the handshaker.
       
      .grpc.gcp.HandshakerStatus status = 4;
    • mergeStatus

      public HandshakerResp.Builder mergeStatus(HandshakerStatus value)
       Status of the handshaker.
       
      .grpc.gcp.HandshakerStatus status = 4;
    • 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;
    • getStatusOrBuilder

      public HandshakerStatusOrBuilder getStatusOrBuilder()
       Status of the handshaker.
       
      .grpc.gcp.HandshakerStatus status = 4;
      Specified by:
      getStatusOrBuilder in interface HandshakerRespOrBuilder
    • getStatusFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<HandshakerStatus,HandshakerStatus.Builder,HandshakerStatusOrBuilder> getStatusFieldBuilder()
       Status of the handshaker.
       
      .grpc.gcp.HandshakerStatus status = 4;