Package org.apache.pekko.remote
Class WireFormats.PekkoProtocolMessage.Builder
java.lang.Object
org.apache.pekko.protobufv3.internal.AbstractMessageLite.Builder
org.apache.pekko.protobufv3.internal.AbstractMessage.Builder<BuilderT>
org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
org.apache.pekko.remote.WireFormats.PekkoProtocolMessage.Builder
- All Implemented Interfaces:
Cloneable,org.apache.pekko.protobufv3.internal.Message.Builder,org.apache.pekko.protobufv3.internal.MessageLite.Builder,org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder,org.apache.pekko.protobufv3.internal.MessageOrBuilder,WireFormats.PekkoProtocolMessageOrBuilder
- Enclosing class:
- WireFormats.PekkoProtocolMessage
public static final class WireFormats.PekkoProtocolMessage.Builder
extends org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
implements WireFormats.PekkoProtocolMessageOrBuilder
* Message format of Pekko Protocol. Message contains either a payload or an instruction.Protobuf type
PekkoProtocolMessage-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional .PekkoControlMessage instruction = 2;optional bytes payload = 1;static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptororg.apache.pekko.protobufv3.internal.Descriptors.Descriptoroptional .PekkoControlMessage instruction = 2;optional .PekkoControlMessage instruction = 2;optional .PekkoControlMessage instruction = 2;org.apache.pekko.protobufv3.internal.ByteStringoptional bytes payload = 1;booleanoptional .PekkoControlMessage instruction = 2;booleanoptional bytes payload = 1;protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) mergeFrom(org.apache.pekko.protobufv3.internal.Message other) optional .PekkoControlMessage instruction = 2;optional .PekkoControlMessage instruction = 2;setInstruction(WireFormats.PekkoControlMessage.Builder builderForValue) optional .PekkoControlMessage instruction = 2;setPayload(org.apache.pekko.protobufv3.internal.ByteString value) optional bytes payload = 1;Methods inherited from class org.apache.pekko.protobufv3.internal.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 org.apache.pekko.protobufv3.internal.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class org.apache.pekko.protobufv3.internal.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.pekko.protobufv3.internal.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface org.apache.pekko.protobufv3.internal.MessageLite.Builder
mergeFromMethods inherited from interface org.apache.pekko.protobufv3.internal.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
clear
- Specified by:
clearin interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Specified by:
clearin interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder- Overrides:
clearin classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
getDescriptorForType
public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.apache.pekko.protobufv3.internal.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.pekko.protobufv3.internal.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.pekko.protobufv3.internal.MessageOrBuilder
-
build
- Specified by:
buildin interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Specified by:
buildin interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Specified by:
buildPartialin interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
-
mergeFrom
public WireFormats.PekkoProtocolMessage.Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) - Specified by:
mergeFromin interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Overrides:
mergeFromin classorg.apache.pekko.protobufv3.internal.AbstractMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceorg.apache.pekko.protobufv3.internal.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
mergeFrom
public WireFormats.PekkoProtocolMessage.Builder mergeFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Specified by:
mergeFromin interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder- Overrides:
mergeFromin classorg.apache.pekko.protobufv3.internal.AbstractMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>- Throws:
IOException
-
hasPayload
public boolean hasPayload()optional bytes payload = 1;- Specified by:
hasPayloadin interfaceWireFormats.PekkoProtocolMessageOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public org.apache.pekko.protobufv3.internal.ByteString getPayload()optional bytes payload = 1;- Specified by:
getPayloadin interfaceWireFormats.PekkoProtocolMessageOrBuilder- Returns:
- The payload.
-
setPayload
public WireFormats.PekkoProtocolMessage.Builder setPayload(org.apache.pekko.protobufv3.internal.ByteString value) optional bytes payload = 1;- Parameters:
value- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
optional bytes payload = 1;- Returns:
- This builder for chaining.
-
hasInstruction
public boolean hasInstruction()optional .PekkoControlMessage instruction = 2;- Specified by:
hasInstructionin interfaceWireFormats.PekkoProtocolMessageOrBuilder- Returns:
- Whether the instruction field is set.
-
getInstruction
optional .PekkoControlMessage instruction = 2;- Specified by:
getInstructionin interfaceWireFormats.PekkoProtocolMessageOrBuilder- Returns:
- The instruction.
-
setInstruction
public WireFormats.PekkoProtocolMessage.Builder setInstruction(WireFormats.PekkoControlMessage value) optional .PekkoControlMessage instruction = 2; -
setInstruction
public WireFormats.PekkoProtocolMessage.Builder setInstruction(WireFormats.PekkoControlMessage.Builder builderForValue) optional .PekkoControlMessage instruction = 2; -
mergeInstruction
public WireFormats.PekkoProtocolMessage.Builder mergeInstruction(WireFormats.PekkoControlMessage value) optional .PekkoControlMessage instruction = 2; -
clearInstruction
optional .PekkoControlMessage instruction = 2; -
getInstructionBuilder
optional .PekkoControlMessage instruction = 2; -
getInstructionOrBuilder
optional .PekkoControlMessage instruction = 2;- Specified by:
getInstructionOrBuilderin interfaceWireFormats.PekkoProtocolMessageOrBuilder
-