public static final class CiscProto.Data.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder> 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 | Method and Description |
|---|---|
CiscProto.Data.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CiscProto.Data |
build() |
CiscProto.Data |
buildPartial() |
CiscProto.Data.Builder |
clear() |
CiscProto.Data.Builder |
clearDevice() |
CiscProto.Data.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CiscProto.Data.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CiscProto.Data.Builder |
clearRoster()
Roster is the new proposed roster - nil if the old is to be used
|
CiscProto.Data.Builder |
clearStorage() |
CiscProto.Data.Builder |
clearThreshold()
Threshold of how many devices need to sign to accept the new block
|
CiscProto.Data.Builder |
clearVotes() |
CiscProto.Data.Builder |
clone() |
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.
|
CiscProto.Data |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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
|
Map<String,CiscProto.Device> |
getMutableDevice()
Deprecated.
|
Map<String,String> |
getMutableStorage()
Deprecated.
|
Map<String,com.google.protobuf.ByteString> |
getMutableVotes()
Deprecated.
|
OnetProto.Roster |
getRoster()
Roster is the new proposed roster - nil if the old is to be used
|
OnetProto.Roster.Builder |
getRosterBuilder()
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
|
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
|
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.
|
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) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
CiscProto.Data.Builder |
mergeFrom(CiscProto.Data other) |
CiscProto.Data.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CiscProto.Data.Builder |
mergeFrom(com.google.protobuf.Message other) |
CiscProto.Data.Builder |
mergeRoster(OnetProto.Roster value)
Roster is the new proposed roster - nil if the old is to be used
|
CiscProto.Data.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CiscProto.Data.Builder |
putAllDevice(Map<String,CiscProto.Device> values)
Device is a list of all devices allowed to sign
|
CiscProto.Data.Builder |
putAllStorage(Map<String,String> values)
Storage is the key/value storage
|
CiscProto.Data.Builder |
putAllVotes(Map<String,com.google.protobuf.ByteString> values)
Votes for that block, mapped by name of the devices.
|
CiscProto.Data.Builder |
putDevice(String key,
CiscProto.Device value)
Device is a list of all devices allowed to sign
|
CiscProto.Data.Builder |
putStorage(String key,
String value)
Storage is the key/value storage
|
CiscProto.Data.Builder |
putVotes(String key,
com.google.protobuf.ByteString value)
Votes for that block, mapped by name of the devices.
|
CiscProto.Data.Builder |
removeDevice(String key)
Device is a list of all devices allowed to sign
|
CiscProto.Data.Builder |
removeStorage(String key)
Storage is the key/value storage
|
CiscProto.Data.Builder |
removeVotes(String key)
Votes for that block, mapped by name of the devices.
|
CiscProto.Data.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CiscProto.Data.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CiscProto.Data.Builder |
setRoster(OnetProto.Roster.Builder builderForValue)
Roster is the new proposed roster - nil if the old is to be used
|
CiscProto.Data.Builder |
setRoster(OnetProto.Roster value)
Roster is the new proposed roster - nil if the old is to be used
|
CiscProto.Data.Builder |
setThreshold(int value)
Threshold of how many devices need to sign to accept the new block
|
CiscProto.Data.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CiscProto.Data build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CiscProto.Data buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CiscProto.Data.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder mergeFrom(CiscProto.Data other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public CiscProto.Data.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CiscProto.Data.Builder>IOExceptionpublic 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 CiscProto.Data.Builder setThreshold(int value)
Threshold of how many devices need to sign to accept the new block
required sint32 threshold = 1;public CiscProto.Data.Builder clearThreshold()
Threshold of how many devices need to sign to accept the new block
required sint32 threshold = 1;public 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 CiscProto.Data.Builder clearDevice()
public CiscProto.Data.Builder removeDevice(String key)
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;@Deprecated public Map<String,CiscProto.Device> getMutableDevice()
public CiscProto.Data.Builder putDevice(String key, CiscProto.Device value)
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;public CiscProto.Data.Builder putAllDevice(Map<String,CiscProto.Device> values)
Device is a list of all devices allowed to sign
map<string, .cisc.Device> device = 2;public 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 CiscProto.Data.Builder clearStorage()
public CiscProto.Data.Builder removeStorage(String key)
Storage is the key/value storage
map<string, string> storage = 3;@Deprecated public Map<String,String> getMutableStorage()
public CiscProto.Data.Builder putStorage(String key, String value)
Storage is the key/value storage
map<string, string> storage = 3;public CiscProto.Data.Builder putAllStorage(Map<String,String> values)
Storage is the key/value storage
map<string, string> storage = 3;public 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 CiscProto.Data.Builder setRoster(OnetProto.Roster value)
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;public CiscProto.Data.Builder setRoster(OnetProto.Roster.Builder builderForValue)
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;public CiscProto.Data.Builder mergeRoster(OnetProto.Roster value)
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;public CiscProto.Data.Builder clearRoster()
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;public OnetProto.Roster.Builder getRosterBuilder()
Roster is the new proposed roster - nil if the old is to be used
optional .onet.Roster roster = 4;public 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 CiscProto.Data.Builder clearVotes()
public CiscProto.Data.Builder removeVotes(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;@Deprecated public Map<String,com.google.protobuf.ByteString> getMutableVotes()
public CiscProto.Data.Builder putVotes(String key, com.google.protobuf.ByteString value)
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;public CiscProto.Data.Builder putAllVotes(Map<String,com.google.protobuf.ByteString> values)
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;public final CiscProto.Data.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>public final CiscProto.Data.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CiscProto.Data.Builder>Copyright © 2018. All rights reserved.