Package io.grpc.alts.internal
Interface HandshakerRespOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HandshakerResp,HandshakerResp.Builder
public interface HandshakerRespOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBytesConsumed()Number of bytes in the in_bytes consumed by the handshaker.com.google.protobuf.ByteStringgetOutFrames()Frames to be given to the peer for the NextHandshakeMessageReq.HandshakerResultgetResult()This is set iff the handshake was successful.HandshakerResultOrBuildergetResultOrBuilder()This is set iff the handshake was successful.HandshakerStatusgetStatus()Status of the handshaker.HandshakerStatusOrBuildergetStatusOrBuilder()Status of the handshaker.booleanhasResult()This is set iff the handshake was successful.booleanhasStatus()Status of the handshaker.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getOutFrames
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;- Returns:
- The outFrames.
-
getBytesConsumed
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;- Returns:
- The bytesConsumed.
-
hasResult
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;- Returns:
- Whether the result field is set.
-
getResult
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;- Returns:
- The result.
-
getResultOrBuilder
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;
-
hasStatus
boolean hasStatus()
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;- Returns:
- Whether the status field is set.
-
getStatus
HandshakerStatus getStatus()
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;- Returns:
- The status.
-
getStatusOrBuilder
HandshakerStatusOrBuilder getStatusOrBuilder()
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;
-
-