Package io.grpc.alts.internal
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 int
private int
private com.google.protobuf.ByteString
private HandshakerResult
private com.google.protobuf.SingleFieldBuilder
<HandshakerResult, HandshakerResult.Builder, HandshakerResultOrBuilder> private HandshakerStatus
private com.google.protobuf.SingleFieldBuilder
<HandshakerStatus, HandshakerStatus.Builder, HandshakerStatusOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(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.int
Number of bytes in the in_bytes consumed by the handshaker.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.ByteString
Frames 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.boolean
This is set iff the handshake was successful.boolean
Status of the handshaker.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private 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 boolean
private void
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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, resultBuilder_HandshakerResultOrBuilder> -
status_
-
statusBuilder_
private com.google.protobuf.SingleFieldBuilder<HandshakerStatus,HandshakerStatus.Builder, statusBuilder_HandshakerStatusOrBuilder>
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<HandshakerResp.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HandshakerResp.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getOutFrames
in 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:
getBytesConsumed
in 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:
hasResult
in 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:
getResult
in 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:
getResultOrBuilder
in interfaceHandshakerRespOrBuilder
-
internalGetResultFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HandshakerResult,HandshakerResult.Builder, internalGetResultFieldBuilder()HandshakerResultOrBuilder> 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 interfaceHandshakerRespOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;
- Specified by:
getStatus
in 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:
getStatusOrBuilder
in interfaceHandshakerRespOrBuilder
-
internalGetStatusFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HandshakerStatus,HandshakerStatus.Builder, internalGetStatusFieldBuilder()HandshakerStatusOrBuilder> Status of the handshaker.
.grpc.gcp.HandshakerStatus status = 4;
-