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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public long getProposalId()
int64 proposal_id = 1;
getProposalId
in interface Protocol.ProposalOrBuilder
public com.google.protobuf.ByteString getProposerAddress()
bytes proposer_address = 2;
getProposerAddress
in interface Protocol.ProposalOrBuilder
public int getParametersCount()
Protocol.ProposalOrBuilder
map<int64, int64> parameters = 3;
getParametersCount
in interface Protocol.ProposalOrBuilder
public 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.ProposalOrBuilder
public Map<Long,Long> getParametersMap()
map<int64, int64> parameters = 3;
getParametersMap
in interface Protocol.ProposalOrBuilder
public long getParametersOrDefault(long key, long defaultValue)
map<int64, int64> parameters = 3;
getParametersOrDefault
in interface Protocol.ProposalOrBuilder
public long getParametersOrThrow(long key)
map<int64, int64> parameters = 3;
getParametersOrThrow
in interface Protocol.ProposalOrBuilder
public long getExpirationTime()
int64 expiration_time = 4;
getExpirationTime
in interface Protocol.ProposalOrBuilder
public long getCreateTime()
int64 create_time = 5;
getCreateTime
in interface Protocol.ProposalOrBuilder
public List<com.google.protobuf.ByteString> getApprovalsList()
repeated bytes approvals = 6;
getApprovalsList
in interface Protocol.ProposalOrBuilder
public int getApprovalsCount()
repeated bytes approvals = 6;
getApprovalsCount
in interface Protocol.ProposalOrBuilder
public com.google.protobuf.ByteString getApprovals(int index)
repeated bytes approvals = 6;
getApprovals
in interface Protocol.ProposalOrBuilder
public int getStateValue()
.protocol.Proposal.State state = 7;
getStateValue
in interface Protocol.ProposalOrBuilder
public Protocol.Proposal.State getState()
.protocol.Proposal.State state = 7;
getState
in interface Protocol.ProposalOrBuilder
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 Protocol.Proposal parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.Proposal parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.Proposal parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.Proposal parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.Proposal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.Proposal parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.Proposal parseFrom(InputStream input) throws IOException
IOException
public static Protocol.Proposal parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protocol.Proposal parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protocol.Proposal parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protocol.Proposal parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protocol.Proposal parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Protocol.Proposal.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protocol.Proposal.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Protocol.Proposal getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2020. All rights reserved.