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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Number of bytes in the in_bytes consumed by the handshaker.Frames to be given to the peer for the NextHandshakeMessageReq.This is set iff the handshake was successful. out_frames may still be set to frames that needs to be forwarded to the peer.Status of the handshaker.intNumber of bytes in the in_bytes consumed by the handshaker.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringFrames to be given to the peer for the NextHandshakeMessageReq.This is set iff the handshake was successful. out_frames may still be set to frames that needs to be forwarded to the peer.This is set iff the handshake was successful. out_frames may still be set to frames that needs to be forwarded to the peer.This is set iff the handshake was successful. out_frames may still be set to frames that needs to be forwarded to the peer.Status of the handshaker.Status of the handshaker.Status of the handshaker.booleanThis is set iff the handshake was successful. out_frames may still be set to frames that needs to be forwarded to the peer.booleanStatus of the handshaker.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HandshakerResp other) 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.mergeStatus(HandshakerStatus value) Status of the handshaker.setBytesConsumed(int value) Number of bytes in the in_bytes consumed by the handshaker.setOutFrames(com.google.protobuf.ByteString value) Frames to be given to the peer for the NextHandshakeMessageReq.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.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.setStatus(HandshakerStatus value) Status of the handshaker.setStatus(HandshakerStatus.Builder builderForValue) Status of the handshaker.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HandshakerResp.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getOutFramesin interfaceHandshakerRespOrBuilder- Returns:
- The outFrames.
-
setOutFrames
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
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:
getBytesConsumedin interfaceHandshakerRespOrBuilder- Returns:
- The bytesConsumed.
-
setBytesConsumed
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
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:
hasResultin interfaceHandshakerRespOrBuilder- Returns:
- Whether the result field is set.
-
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:
getResultin interfaceHandshakerRespOrBuilder- Returns:
- The result.
-
setResult
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
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
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
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
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
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:
getResultOrBuilderin interfaceHandshakerRespOrBuilder
-
hasStatus
public boolean hasStatus()Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;- Specified by:
hasStatusin interfaceHandshakerRespOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;- Specified by:
getStatusin interfaceHandshakerRespOrBuilder- Returns:
- The status.
-
setStatus
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4; -
setStatus
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4; -
mergeStatus
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4; -
clearStatus
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4; -
getStatusBuilder
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4; -
getStatusOrBuilder
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;- Specified by:
getStatusOrBuilderin interfaceHandshakerRespOrBuilder
-