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.PekkoProtocolMessage
build()
WireFormats.PekkoProtocolMessage
buildPartial()
WireFormats.PekkoProtocolMessage.Builder
clear()
WireFormats.PekkoProtocolMessage.Builder
clearInstruction()
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoProtocolMessage.Builder
clearPayload()
optional bytes payload = 1;
WireFormats.PekkoProtocolMessage
getDefaultInstanceForType()
static org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
getDescriptor()
org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
getDescriptorForType()
WireFormats.PekkoControlMessage
getInstruction()
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoControlMessage.Builder
getInstructionBuilder()
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoControlMessageOrBuilder
getInstructionOrBuilder()
optional .PekkoControlMessage instruction = 2;
org.apache.pekko.protobufv3.internal.ByteString
getPayload()
optional bytes payload = 1;
boolean
hasInstruction()
optional .PekkoControlMessage instruction = 2;
boolean
hasPayload()
optional bytes payload = 1;
protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
WireFormats.PekkoProtocolMessage.Builder
mergeFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
WireFormats.PekkoProtocolMessage.Builder
mergeFrom(org.apache.pekko.protobufv3.internal.Message other)
WireFormats.PekkoProtocolMessage.Builder
mergeFrom(WireFormats.PekkoProtocolMessage other)
WireFormats.PekkoProtocolMessage.Builder
mergeInstruction(WireFormats.PekkoControlMessage value)
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoProtocolMessage.Builder
setInstruction(WireFormats.PekkoControlMessage value)
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoProtocolMessage.Builder
setInstruction(WireFormats.PekkoControlMessage.Builder builderForValue)
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoProtocolMessage.Builder
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, 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:
internalGetFieldAccessorTable
in classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
clear
public WireFormats.PekkoProtocolMessage.Builder clear()
- Specified by:
clear
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Specified by:
clear
in interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
- Overrides:
clear
in classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
getDescriptorForType
public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.apache.pekko.protobufv3.internal.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
getDefaultInstanceForType
public WireFormats.PekkoProtocolMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.apache.pekko.protobufv3.internal.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.apache.pekko.protobufv3.internal.MessageOrBuilder
-
build
public WireFormats.PekkoProtocolMessage build()
- Specified by:
build
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Specified by:
build
in interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
-
buildPartial
public WireFormats.PekkoProtocolMessage buildPartial()
- Specified by:
buildPartial
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Specified by:
buildPartial
in interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
-
mergeFrom
public WireFormats.PekkoProtocolMessage.Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other)
- Specified by:
mergeFrom
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfaceorg.apache.pekko.protobufv3.internal.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.apache.pekko.protobufv3.internal.AbstractMessage.Builder<WireFormats.PekkoProtocolMessage.Builder>
- Throws:
java.io.IOException
-
hasPayload
public boolean hasPayload()
optional bytes payload = 1;
- Specified by:
hasPayload
in interfaceWireFormats.PekkoProtocolMessageOrBuilder
- Returns:
- Whether the payload field is set.
-
getPayload
public org.apache.pekko.protobufv3.internal.ByteString getPayload()
optional bytes payload = 1;
- Specified by:
getPayload
in 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:
hasInstruction
in interfaceWireFormats.PekkoProtocolMessageOrBuilder
- Returns:
- Whether the instruction field is set.
-
getInstruction
public WireFormats.PekkoControlMessage getInstruction()
optional .PekkoControlMessage instruction = 2;
- Specified by:
getInstruction
in 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:
getInstructionOrBuilder
in interfaceWireFormats.PekkoProtocolMessageOrBuilder
-
-