public static final class Protocol.Proposal extends com.google.protobuf.GeneratedMessageV3 implements Protocol.ProposalOrBuilder
ProposalProtobuf type
protocol.Proposal| Modifier and Type | Class and Description |
|---|---|
static class |
Protocol.Proposal.Builder
Proposal
Protobuf type
protocol.Proposal |
static class |
Protocol.Proposal.State
Protobuf enum
protocol.Proposal.State |
com.google.protobuf.GeneratedMessageV3.BuilderParent, 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 |
APPROVALS_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
EXPIRATION_TIME_FIELD_NUMBER |
static int |
PARAMETERS_FIELD_NUMBER |
static int |
PROPOSAL_ID_FIELD_NUMBER |
static int |
PROPOSER_ADDRESS_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsParameters(long key)
map<int64, int64> parameters = 3; |
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getApprovals(int index)
repeated bytes approvals = 6; |
int |
getApprovalsCount()
repeated bytes approvals = 6; |
List<com.google.protobuf.ByteString> |
getApprovalsList()
repeated bytes approvals = 6; |
long |
getCreateTime()
int64 create_time = 5; |
static Protocol.Proposal |
getDefaultInstance() |
Protocol.Proposal |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getExpirationTime()
int64 expiration_time = 4; |
Map<Long,Long> |
getParameters()
Deprecated.
|
int |
getParametersCount()
map<int64, int64> parameters = 3; |
Map<Long,Long> |
getParametersMap()
map<int64, int64> parameters = 3; |
long |
getParametersOrDefault(long key,
long defaultValue)
map<int64, int64> parameters = 3; |
long |
getParametersOrThrow(long key)
map<int64, int64> parameters = 3; |
com.google.protobuf.Parser<Protocol.Proposal> |
getParserForType() |
long |
getProposalId()
int64 proposal_id = 1; |
com.google.protobuf.ByteString |
getProposerAddress()
bytes proposer_address = 2; |
int |
getSerializedSize() |
Protocol.Proposal.State |
getState()
.protocol.Proposal.State state = 7; |
int |
getStateValue()
.protocol.Proposal.State state = 7; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Protocol.Proposal.Builder |
newBuilder() |
static Protocol.Proposal.Builder |
newBuilder(Protocol.Proposal prototype) |
Protocol.Proposal.Builder |
newBuilderForType() |
protected Protocol.Proposal.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protocol.Proposal |
parseDelimitedFrom(InputStream input) |
static Protocol.Proposal |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.Proposal |
parseFrom(byte[] data) |
static Protocol.Proposal |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.Proposal |
parseFrom(ByteBuffer data) |
static Protocol.Proposal |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.Proposal |
parseFrom(com.google.protobuf.ByteString data) |
static Protocol.Proposal |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.Proposal |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protocol.Proposal |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.Proposal |
parseFrom(InputStream input) |
static Protocol.Proposal |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protocol.Proposal> |
parser() |
Protocol.Proposal.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PROPOSAL_ID_FIELD_NUMBER
public static final int PROPOSER_ADDRESS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
public static final int EXPIRATION_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int APPROVALS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getProposalId()
int64 proposal_id = 1;getProposalId in interface Protocol.ProposalOrBuilderpublic com.google.protobuf.ByteString getProposerAddress()
bytes proposer_address = 2;getProposerAddress in interface Protocol.ProposalOrBuilderpublic int getParametersCount()
Protocol.ProposalOrBuildermap<int64, int64> parameters = 3;getParametersCount in interface Protocol.ProposalOrBuilderpublic boolean containsParameters(long key)
map<int64, int64> parameters = 3;containsParameters in interface Protocol.ProposalOrBuilder@Deprecated public Map<Long,Long> getParameters()
getParametersMap() instead.getParameters in interface Protocol.ProposalOrBuilderpublic Map<Long,Long> getParametersMap()
map<int64, int64> parameters = 3;getParametersMap in interface Protocol.ProposalOrBuilderpublic long getParametersOrDefault(long key,
long defaultValue)
map<int64, int64> parameters = 3;getParametersOrDefault in interface Protocol.ProposalOrBuilderpublic long getParametersOrThrow(long key)
map<int64, int64> parameters = 3;getParametersOrThrow in interface Protocol.ProposalOrBuilderpublic long getExpirationTime()
int64 expiration_time = 4;getExpirationTime in interface Protocol.ProposalOrBuilderpublic long getCreateTime()
int64 create_time = 5;getCreateTime in interface Protocol.ProposalOrBuilderpublic List<com.google.protobuf.ByteString> getApprovalsList()
repeated bytes approvals = 6;getApprovalsList in interface Protocol.ProposalOrBuilderpublic int getApprovalsCount()
repeated bytes approvals = 6;getApprovalsCount in interface Protocol.ProposalOrBuilderpublic com.google.protobuf.ByteString getApprovals(int index)
repeated bytes approvals = 6;getApprovals in interface Protocol.ProposalOrBuilderpublic int getStateValue()
.protocol.Proposal.State state = 7;getStateValue in interface Protocol.ProposalOrBuilderpublic Protocol.Proposal.State getState()
.protocol.Proposal.State state = 7;getState in interface Protocol.ProposalOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Protocol.Proposal parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.Proposal parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.Proposal parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.Proposal parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.Proposal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.Proposal parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.Proposal parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protocol.Proposal parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protocol.Proposal parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protocol.Proposal parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protocol.Proposal parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protocol.Proposal parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Protocol.Proposal.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protocol.Proposal.Builder newBuilder()
public static Protocol.Proposal.Builder newBuilder(Protocol.Proposal prototype)
public Protocol.Proposal.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protocol.Proposal.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Protocol.Proposal getDefaultInstance()
public static com.google.protobuf.Parser<Protocol.Proposal> parser()
public com.google.protobuf.Parser<Protocol.Proposal> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Protocol.Proposal getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.