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:
java.lang.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 typePekkoProtocolMessage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WireFormats.PekkoProtocolMessagebuild()WireFormats.PekkoProtocolMessagebuildPartial()WireFormats.PekkoProtocolMessage.Builderclear()WireFormats.PekkoProtocolMessage.BuilderclearInstruction()optional .PekkoControlMessage instruction = 2;WireFormats.PekkoProtocolMessage.BuilderclearPayload()optional bytes payload = 1;WireFormats.PekkoProtocolMessagegetDefaultInstanceForType()static org.apache.pekko.protobufv3.internal.Descriptors.DescriptorgetDescriptor()org.apache.pekko.protobufv3.internal.Descriptors.DescriptorgetDescriptorForType()WireFormats.PekkoControlMessagegetInstruction()optional .PekkoControlMessage instruction = 2;WireFormats.PekkoControlMessage.BuildergetInstructionBuilder()optional .PekkoControlMessage instruction = 2;WireFormats.PekkoControlMessageOrBuildergetInstructionOrBuilder()optional .PekkoControlMessage instruction = 2;org.apache.pekko.protobufv3.internal.ByteStringgetPayload()optional bytes payload = 1;booleanhasInstruction()optional .PekkoControlMessage instruction = 2;booleanhasPayload()optional bytes payload = 1;protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WireFormats.PekkoProtocolMessage.BuildermergeFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)WireFormats.PekkoProtocolMessage.BuildermergeFrom(org.apache.pekko.protobufv3.internal.Message other)WireFormats.PekkoProtocolMessage.BuildermergeFrom(WireFormats.PekkoProtocolMessage other)WireFormats.PekkoProtocolMessage.BuildermergeInstruction(WireFormats.PekkoControlMessage value)optional .PekkoControlMessage instruction = 2;WireFormats.PekkoProtocolMessage.BuildersetInstruction(WireFormats.PekkoControlMessage value)optional .PekkoControlMessage instruction = 2;WireFormats.PekkoProtocolMessage.BuildersetInstruction(WireFormats.PekkoControlMessage.Builder builderForValue)optional .PekkoControlMessage instruction = 2;WireFormats.PekkoProtocolMessage.BuildersetPayload(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, setUnknownFieldsProto3
-
Methods inherited from class org.apache.pekko.protobufv3.internal.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.apache.pekko.protobufv3.internal.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public WireFormats.PekkoProtocolMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.pekko.protobufv3.internal.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.pekko.protobufv3.internal.MessageOrBuilder
-
build
public WireFormats.PekkoProtocolMessage build()
- Specified by:
buildin interfaceorg.apache.pekko.protobufv3.internal.Message.Builder- Specified by:
buildin interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
-
buildPartial
public WireFormats.PekkoProtocolMessage 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
public WireFormats.PekkoProtocolMessage.Builder mergeFrom(WireFormats.PekkoProtocolMessage other)
-
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 java.io.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:
java.io.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
public WireFormats.PekkoProtocolMessage.Builder 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
public WireFormats.PekkoControlMessage 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
public WireFormats.PekkoProtocolMessage.Builder clearInstruction()
optional .PekkoControlMessage instruction = 2;
-
getInstructionBuilder
public WireFormats.PekkoControlMessage.Builder getInstructionBuilder()
optional .PekkoControlMessage instruction = 2;
-
getInstructionOrBuilder
public WireFormats.PekkoControlMessageOrBuilder getInstructionOrBuilder()
optional .PekkoControlMessage instruction = 2;- Specified by:
getInstructionOrBuilderin interfaceWireFormats.PekkoProtocolMessageOrBuilder
-
-