Class Wire.Packet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Wire.Packet.Builder>
com.google.protobuf.GeneratedMessage.Builder<Wire.Packet.Builder>
fsutil.types.Wire.Packet.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Wire.PacketOrBuilder
,Cloneable
- Enclosing class:
Wire.Packet
public static final class Wire.Packet.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Wire.Packet.Builder>
implements Wire.PacketOrBuilder
Protobuf type
fsutil.types.Packet
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
bytes data = 4;
clearID()
uint32 ID = 3;
.fsutil.types.Stat stat = 2;
.fsutil.types.Packet.PacketType type = 1;
com.google.protobuf.ByteString
getData()
bytes data = 4;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getID()
uint32 ID = 3;
getStat()
.fsutil.types.Stat stat = 2;
.fsutil.types.Stat stat = 2;
.fsutil.types.Stat stat = 2;
getType()
.fsutil.types.Packet.PacketType type = 1;
int
.fsutil.types.Packet.PacketType type = 1;
boolean
hasStat()
.fsutil.types.Stat stat = 2;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Wire.Packet other) mergeStat
(StatOuterClass.Stat value) .fsutil.types.Stat stat = 2;
setData
(com.google.protobuf.ByteString value) bytes data = 4;
setID
(int value) uint32 ID = 3;
setStat
(StatOuterClass.Stat value) .fsutil.types.Stat stat = 2;
setStat
(StatOuterClass.Stat.Builder builderForValue) .fsutil.types.Stat stat = 2;
setType
(Wire.Packet.PacketType value) .fsutil.types.Packet.PacketType type = 1;
setTypeValue
(int value) .fsutil.types.Packet.PacketType type = 1;
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
-
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<Wire.Packet.Builder>
-
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<Wire.Packet.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<Wire.Packet.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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Wire.Packet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Wire.Packet.Builder>
-
mergeFrom
public Wire.Packet.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<Wire.Packet.Builder>
- Throws:
IOException
-
getTypeValue
public int getTypeValue().fsutil.types.Packet.PacketType type = 1;
- Specified by:
getTypeValue
in interfaceWire.PacketOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.fsutil.types.Packet.PacketType type = 1;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
.fsutil.types.Packet.PacketType type = 1;
- Specified by:
getType
in interfaceWire.PacketOrBuilder
- Returns:
- The type.
-
setType
.fsutil.types.Packet.PacketType type = 1;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
.fsutil.types.Packet.PacketType type = 1;
- Returns:
- This builder for chaining.
-
hasStat
public boolean hasStat().fsutil.types.Stat stat = 2;
- Specified by:
hasStat
in interfaceWire.PacketOrBuilder
- Returns:
- Whether the stat field is set.
-
getStat
.fsutil.types.Stat stat = 2;
- Specified by:
getStat
in interfaceWire.PacketOrBuilder
- Returns:
- The stat.
-
setStat
.fsutil.types.Stat stat = 2;
-
setStat
.fsutil.types.Stat stat = 2;
-
mergeStat
.fsutil.types.Stat stat = 2;
-
clearStat
.fsutil.types.Stat stat = 2;
-
getStatBuilder
.fsutil.types.Stat stat = 2;
-
getStatOrBuilder
.fsutil.types.Stat stat = 2;
- Specified by:
getStatOrBuilder
in interfaceWire.PacketOrBuilder
-
getID
public int getID()uint32 ID = 3;
- Specified by:
getID
in interfaceWire.PacketOrBuilder
- Returns:
- The iD.
-
setID
uint32 ID = 3;
- Parameters:
value
- The iD to set.- Returns:
- This builder for chaining.
-
clearID
-
getData
public com.google.protobuf.ByteString getData()bytes data = 4;
- Specified by:
getData
in interfaceWire.PacketOrBuilder
- Returns:
- The data.
-
setData
bytes data = 4;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
-