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 Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate com.google.protobuf.ByteStringprivate HandshakerResultprivate com.google.protobuf.SingleFieldBuilder<HandshakerResult, HandshakerResult.Builder, HandshakerResultOrBuilder> private HandshakerStatusprivate com.google.protobuf.SingleFieldBuilder<HandshakerStatus, HandshakerStatus.Builder, HandshakerStatusOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(HandshakerResp result) 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.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.This is set iff the handshake was successful.This is set iff the handshake was successful.Status of the handshaker.Status of the handshaker.Status of the handshaker.booleanThis is set iff the handshake was successful.booleanStatus of the handshaker.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<HandshakerResult, HandshakerResult.Builder, HandshakerResultOrBuilder> This is set iff the handshake was successful.private com.google.protobuf.SingleFieldBuilder<HandshakerStatus, HandshakerStatus.Builder, HandshakerStatusOrBuilder> Status of the handshaker.final booleanprivate voidmergeFrom(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.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.setResult(HandshakerResult.Builder builderForValue) This is set iff the handshake was successful.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
-
Field Details
-
bitField0_
private int bitField0_ -
outFrames_
private com.google.protobuf.ByteString outFrames_ -
bytesConsumed_
private int bytesConsumed_ -
result_
-
resultBuilder_
private com.google.protobuf.SingleFieldBuilder<HandshakerResult, HandshakerResult.Builder, HandshakerResultOrBuilder> resultBuilder_ -
status_
-
statusBuilder_
private com.google.protobuf.SingleFieldBuilder<HandshakerStatus, HandshakerStatus.Builder, HandshakerStatusOrBuilder> statusBuilder_
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
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
-
buildPartial0
-
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
-
internalGetResultFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HandshakerResult, HandshakerResult.Builder, HandshakerResultOrBuilder> internalGetResultFieldBuilder()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:
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
-
internalGetStatusFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HandshakerStatus, HandshakerStatus.Builder, HandshakerStatusOrBuilder> internalGetStatusFieldBuilder()Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;
-