public final class Payload extends com.google.protobuf.GeneratedMessageV3 implements PayloadOrBuilder
Payload contains a blockProtobuf type
gossip.Payload
Modifier and Type | Class and Description |
---|---|
static class |
Payload.Builder
Payload contains a block
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
DATA_FIELD_NUMBER |
static int |
PRIVATE_DATA_FIELD_NUMBER |
static int |
SEQ_NUM_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getData()
bytes data = 2 [json_name = "data"]; |
static Payload |
getDefaultInstance() |
Payload |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Payload> |
getParserForType() |
com.google.protobuf.ByteString |
getPrivateData(int index)
repeated bytes private_data = 3 [json_name = "privateData"]; |
int |
getPrivateDataCount()
repeated bytes private_data = 3 [json_name = "privateData"]; |
List<com.google.protobuf.ByteString> |
getPrivateDataList()
repeated bytes private_data = 3 [json_name = "privateData"]; |
long |
getSeqNum()
uint64 seq_num = 1 [json_name = "seqNum"]; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static Payload.Builder |
newBuilder() |
static Payload.Builder |
newBuilder(Payload prototype) |
Payload.Builder |
newBuilderForType() |
static Payload |
parseDelimitedFrom(InputStream input) |
static Payload |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(byte[] data) |
static Payload |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(ByteBuffer data) |
static Payload |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(com.google.protobuf.ByteString data) |
static Payload |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Payload |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(InputStream input) |
static Payload |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Payload> |
parser() |
Payload.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SEQ_NUM_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int PRIVATE_DATA_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public long getSeqNum()
uint64 seq_num = 1 [json_name = "seqNum"];
getSeqNum
in interface PayloadOrBuilder
public com.google.protobuf.ByteString getData()
bytes data = 2 [json_name = "data"];
getData
in interface PayloadOrBuilder
public List<com.google.protobuf.ByteString> getPrivateDataList()
repeated bytes private_data = 3 [json_name = "privateData"];
getPrivateDataList
in interface PayloadOrBuilder
public int getPrivateDataCount()
repeated bytes private_data = 3 [json_name = "privateData"];
getPrivateDataCount
in interface PayloadOrBuilder
public com.google.protobuf.ByteString getPrivateData(int index)
repeated bytes private_data = 3 [json_name = "privateData"];
getPrivateData
in interface PayloadOrBuilder
index
- The index of the element to return.public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Payload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Payload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Payload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Payload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Payload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Payload parseFrom(InputStream input) throws IOException
IOException
public static Payload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Payload parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Payload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Payload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Payload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Payload.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Payload.Builder newBuilder()
public static Payload.Builder newBuilder(Payload prototype)
public Payload.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static Payload getDefaultInstance()
public static com.google.protobuf.Parser<Payload> parser()
public com.google.protobuf.Parser<Payload> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Payload getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.