public static final class CiscProto.Data extends com.google.protobuf.GeneratedMessageV3 implements CiscProto.DataOrBuilder
Data holds the information about all devices and the data stored in this identity-blockchain. All Devices have voting-rights to the Data-structure.Protobuf type
cisc.Data| Modifier and Type | Class and Description |
|---|---|
static class |
CiscProto.Data.Builder
Data holds the information about all devices and the data stored in this
identity-blockchain.
|
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 |
DEVICE_FIELD_NUMBER |
static com.google.protobuf.Parser<CiscProto.Data> |
PARSER
Deprecated.
|
static int |
ROSTER_FIELD_NUMBER |
static int |
STORAGE_FIELD_NUMBER |
static int |
THRESHOLD_FIELD_NUMBER |
static int |
VOTES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDevice(String key)
Device is a list of all devices allowed to sign
|
boolean |
containsStorage(String key)
Storage is the key/value storage
|
boolean |
containsVotes(String key)
Votes for that block, mapped by name of the devices.
|
boolean |
equals(Object obj) |
static CiscProto.Data |
getDefaultInstance() |
CiscProto.Data |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,CiscProto.Device> |
getDevice()
Deprecated.
|
int |
getDeviceCount()
Device is a list of all devices allowed to sign
|
Map<String,CiscProto.Device> |
getDeviceMap()
Device is a list of all devices allowed to sign
|
CiscProto.Device |
getDeviceOrDefault(String key,
CiscProto.Device defaultValue)
Device is a list of all devices allowed to sign
|
CiscProto.Device |
getDeviceOrThrow(String key)
Device is a list of all devices allowed to sign
|
com.google.protobuf.Parser<CiscProto.Data> |
getParserForType() |
OnetProto.Roster |
getRoster()
Roster is the new proposed roster - nil if the old is to be used
|
OnetProto.RosterOrBuilder |
getRosterOrBuilder()
Roster is the new proposed roster - nil if the old is to be used
|
int |
getSerializedSize() |
Map<String,String> |
getStorage()
Deprecated.
|
int |
getStorageCount()
Storage is the key/value storage
|
Map<String,String> |
getStorageMap()
Storage is the key/value storage
|
String |
getStorageOrDefault(String key,
String defaultValue)
Storage is the key/value storage
|
String |
getStorageOrThrow(String key)
Storage is the key/value storage
|
int |
getThreshold()
Threshold of how many devices need to sign to accept the new block
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Map<String,com.google.protobuf.ByteString> |
getVotes()
Deprecated.
|
int |
getVotesCount()
Votes for that block, mapped by name of the devices.
|
Map<String,com.google.protobuf.ByteString> |
getVotesMap()
Votes for that block, mapped by name of the devices.
|
com.google.protobuf.ByteString |
getVotesOrDefault(String key,
com.google.protobuf.ByteString defaultValue)
Votes for that block, mapped by name of the devices.
|
com.google.protobuf.ByteString |
getVotesOrThrow(String key)
Votes for that block, mapped by name of the devices.
|
int |
hashCode() |
boolean |
hasRoster()
Roster is the new proposed roster - nil if the old is to be used
|
boolean |
hasThreshold()
Threshold of how many devices need to sign to accept the new block
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static CiscProto.Data.Builder |
newBuilder() |
static CiscProto.Data.Builder |
newBuilder(CiscProto.Data prototype) |
CiscProto.Data.Builder |
newBuilderForType() |
protected CiscProto.Data.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static CiscProto.Data |
parseDelimitedFrom(InputStream input) |
static CiscProto.Data |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CiscProto.Data |
parseFrom(byte[] data) |
static CiscProto.Data |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CiscProto.Data |
parseFrom(ByteBuffer data) |
static CiscProto.Data |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CiscProto.Data |
parseFrom(com.google.protobuf.ByteString data) |
static CiscProto.Data |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CiscProto.Data |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CiscProto.Data |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CiscProto.Data |
parseFrom(InputStream input) |
static CiscProto.Data |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CiscProto.Data> |
parser() |
CiscProto.Data.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, 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 THRESHOLD_FIELD_NUMBER
public static final int DEVICE_FIELD_NUMBER
public static final int STORAGE_FIELD_NUMBER
public static final int ROSTER_FIELD_NUMBER
public static final int VOTES_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<CiscProto.Data> PARSER
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 boolean hasThreshold()
Threshold of how many devices need to sign to accept the new block
required sint32 threshold = 1;hasThreshold in interface CiscProto.DataOrBuilderpublic int getThreshold()
Threshold of how many devices need to sign to accept the new block
required sint32 threshold = 1;getThreshold in interface CiscProto.DataOrBuilderpublic int getDeviceCount()
CiscProto.DataOrBuilderDevice is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;getDeviceCount in interface CiscProto.DataOrBuilderpublic boolean containsDevice(String key)
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;containsDevice in interface CiscProto.DataOrBuilder@Deprecated public Map<String,CiscProto.Device> getDevice()
getDeviceMap() instead.getDevice in interface CiscProto.DataOrBuilderpublic Map<String,CiscProto.Device> getDeviceMap()
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;getDeviceMap in interface CiscProto.DataOrBuilderpublic CiscProto.Device getDeviceOrDefault(String key, CiscProto.Device defaultValue)
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;getDeviceOrDefault in interface CiscProto.DataOrBuilderpublic CiscProto.Device getDeviceOrThrow(String key)
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;getDeviceOrThrow in interface CiscProto.DataOrBuilderpublic int getStorageCount()
CiscProto.DataOrBuilderStorage is the key/value storage
map<string, string> storage = 3;getStorageCount in interface CiscProto.DataOrBuilderpublic boolean containsStorage(String key)
Storage is the key/value storage
map<string, string> storage = 3;containsStorage in interface CiscProto.DataOrBuilder@Deprecated public Map<String,String> getStorage()
getStorageMap() instead.getStorage in interface CiscProto.DataOrBuilderpublic Map<String,String> getStorageMap()
Storage is the key/value storage
map<string, string> storage = 3;getStorageMap in interface CiscProto.DataOrBuilderpublic String getStorageOrDefault(String key, String defaultValue)
Storage is the key/value storage
map<string, string> storage = 3;getStorageOrDefault in interface CiscProto.DataOrBuilderpublic String getStorageOrThrow(String key)
Storage is the key/value storage
map<string, string> storage = 3;getStorageOrThrow in interface CiscProto.DataOrBuilderpublic boolean hasRoster()
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;hasRoster in interface CiscProto.DataOrBuilderpublic OnetProto.Roster getRoster()
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;getRoster in interface CiscProto.DataOrBuilderpublic OnetProto.RosterOrBuilder getRosterOrBuilder()
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;getRosterOrBuilder in interface CiscProto.DataOrBuilderpublic int getVotesCount()
CiscProto.DataOrBuilderVotes for that block, mapped by name of the devices. This has to be verified with the previous data-block, because only the previous data-block has the authority to sign for a new block.
map<string, bytes> votes = 5;getVotesCount in interface CiscProto.DataOrBuilderpublic boolean containsVotes(String key)
Votes for that block, mapped by name of the devices. This has to be verified with the previous data-block, because only the previous data-block has the authority to sign for a new block.
map<string, bytes> votes = 5;containsVotes in interface CiscProto.DataOrBuilder@Deprecated public Map<String,com.google.protobuf.ByteString> getVotes()
getVotesMap() instead.getVotes in interface CiscProto.DataOrBuilderpublic Map<String,com.google.protobuf.ByteString> getVotesMap()
Votes for that block, mapped by name of the devices. This has to be verified with the previous data-block, because only the previous data-block has the authority to sign for a new block.
map<string, bytes> votes = 5;getVotesMap in interface CiscProto.DataOrBuilderpublic com.google.protobuf.ByteString getVotesOrDefault(String key, com.google.protobuf.ByteString defaultValue)
Votes for that block, mapped by name of the devices. This has to be verified with the previous data-block, because only the previous data-block has the authority to sign for a new block.
map<string, bytes> votes = 5;getVotesOrDefault in interface CiscProto.DataOrBuilderpublic com.google.protobuf.ByteString getVotesOrThrow(String key)
Votes for that block, mapped by name of the devices. This has to be verified with the previous data-block, because only the previous data-block has the authority to sign for a new block.
map<string, bytes> votes = 5;getVotesOrThrow in interface CiscProto.DataOrBuilderpublic 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 CiscProto.Data parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CiscProto.Data parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CiscProto.Data parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CiscProto.Data parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CiscProto.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CiscProto.Data parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CiscProto.Data parseFrom(InputStream input) throws IOException
IOExceptionpublic static CiscProto.Data parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CiscProto.Data parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CiscProto.Data parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CiscProto.Data parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CiscProto.Data parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CiscProto.Data.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CiscProto.Data.Builder newBuilder()
public static CiscProto.Data.Builder newBuilder(CiscProto.Data prototype)
public CiscProto.Data.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CiscProto.Data.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CiscProto.Data getDefaultInstance()
public static com.google.protobuf.Parser<CiscProto.Data> parser()
public com.google.protobuf.Parser<CiscProto.Data> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CiscProto.Data getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.