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<BuilderType>
-
- org.apache.pekko.protobufv3.internal.GeneratedMessageV3.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.GeneratedMessageV3.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.Builder
addRepeatedField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value)
WireFormats.PekkoProtocolMessage
build()
WireFormats.PekkoProtocolMessage
buildPartial()
WireFormats.PekkoProtocolMessage.Builder
clear()
WireFormats.PekkoProtocolMessage.Builder
clearField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field)
WireFormats.PekkoProtocolMessage.Builder
clearInstruction()
optional .PekkoControlMessage instruction = 2;
WireFormats.PekkoProtocolMessage.Builder
clearOneof(org.apache.pekko.protobufv3.internal.Descriptors.OneofDescriptor oneof)
WireFormats.PekkoProtocolMessage.Builder
clearPayload()
optional bytes payload = 1;
WireFormats.PekkoProtocolMessage.Builder
clone()
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.GeneratedMessageV3.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
mergeUnknownFields(org.apache.pekko.protobufv3.internal.UnknownFieldSet unknownFields)
WireFormats.PekkoProtocolMessage.Builder
setField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value)
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;
WireFormats.PekkoProtocolMessage.Builder
setRepeatedField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
WireFormats.PekkoProtocolMessage.Builder
setUnknownFields(org.apache.pekko.protobufv3.internal.UnknownFieldSet unknownFields)
-
Methods inherited from class org.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class org.apache.pekko.protobufv3.internal.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.apache.pekko.protobufv3.internal.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.apache.pekko.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
-
clone
public WireFormats.PekkoProtocolMessage.Builder clone()
- Specified by:
clone
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Specified by:
clone
in interfaceorg.apache.pekko.protobufv3.internal.MessageLite.Builder
- Overrides:
clone
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
setField
public WireFormats.PekkoProtocolMessage.Builder setField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
setField
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
clearField
public WireFormats.PekkoProtocolMessage.Builder clearField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
clearField
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
clearOneof
public WireFormats.PekkoProtocolMessage.Builder clearOneof(org.apache.pekko.protobufv3.internal.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
clearOneof
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
setRepeatedField
public WireFormats.PekkoProtocolMessage.Builder setRepeatedField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
setRepeatedField
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
addRepeatedField
public WireFormats.PekkoProtocolMessage.Builder addRepeatedField(org.apache.pekko.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
addRepeatedField
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.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.GeneratedMessageV3.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
-
setUnknownFields
public final WireFormats.PekkoProtocolMessage.Builder setUnknownFields(org.apache.pekko.protobufv3.internal.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
setUnknownFields
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
mergeUnknownFields
public final WireFormats.PekkoProtocolMessage.Builder mergeUnknownFields(org.apache.pekko.protobufv3.internal.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.apache.pekko.protobufv3.internal.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.apache.pekko.protobufv3.internal.GeneratedMessageV3.Builder<WireFormats.PekkoProtocolMessage.Builder>
-
-