public static final class ConfigUpdate.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder> implements ConfigUpdateOrBuilder
ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures resulting in a new total configuration. The update is applied as follows: 1. The versions from all of the elements in the read_set is verified against the versions in the existing config. If there is a mismatch in the read versions, then the config update fails and is rejected. 2. Any elements in the write_set with the same version as the read_set are ignored. 3. The corresponding mod_policy for every remaining element in the write_set is collected. 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legalProtobuf type
common.ConfigUpdate
Modifier and Type | Method and Description |
---|---|
ConfigUpdate.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConfigUpdate |
build() |
ConfigUpdate |
buildPartial() |
ConfigUpdate.Builder |
clear() |
ConfigUpdate.Builder |
clearChannelId()
Which channel this config update is for
|
ConfigUpdate.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ConfigUpdate.Builder |
clearIsolatedData() |
ConfigUpdate.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ConfigUpdate.Builder |
clearReadSet()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigUpdate.Builder |
clearWriteSet()
WriteSet lists the portion of the config which was written, this should included updated Versions
|
ConfigUpdate.Builder |
clone() |
boolean |
containsIsolatedData(String key)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
String |
getChannelId()
Which channel this config update is for
|
com.google.protobuf.ByteString |
getChannelIdBytes()
Which channel this config update is for
|
ConfigUpdate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,com.google.protobuf.ByteString> |
getIsolatedData()
Deprecated.
|
int |
getIsolatedDataCount()
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
Map<String,com.google.protobuf.ByteString> |
getIsolatedDataMap()
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
com.google.protobuf.ByteString |
getIsolatedDataOrDefault(String key,
com.google.protobuf.ByteString defaultValue)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
com.google.protobuf.ByteString |
getIsolatedDataOrThrow(String key)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
Map<String,com.google.protobuf.ByteString> |
getMutableIsolatedData()
Deprecated.
|
ConfigGroup |
getReadSet()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigGroup.Builder |
getReadSetBuilder()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigGroupOrBuilder |
getReadSetOrBuilder()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigGroup |
getWriteSet()
WriteSet lists the portion of the config which was written, this should included updated Versions
|
ConfigGroup.Builder |
getWriteSetBuilder()
WriteSet lists the portion of the config which was written, this should included updated Versions
|
ConfigGroupOrBuilder |
getWriteSetOrBuilder()
WriteSet lists the portion of the config which was written, this should included updated Versions
|
boolean |
hasReadSet()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
boolean |
hasWriteSet()
WriteSet lists the portion of the config which was written, this should included updated Versions
|
boolean |
isInitialized() |
ConfigUpdate.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ConfigUpdate.Builder |
mergeFrom(ConfigUpdate other) |
ConfigUpdate.Builder |
mergeFrom(com.google.protobuf.Message other) |
ConfigUpdate.Builder |
mergeReadSet(ConfigGroup value)
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigUpdate.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConfigUpdate.Builder |
mergeWriteSet(ConfigGroup value)
WriteSet lists the portion of the config which was written, this should included updated Versions
|
ConfigUpdate.Builder |
putAllIsolatedData(Map<String,com.google.protobuf.ByteString> values)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
ConfigUpdate.Builder |
putIsolatedData(String key,
com.google.protobuf.ByteString value)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
ConfigUpdate.Builder |
removeIsolatedData(String key)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.
|
ConfigUpdate.Builder |
setChannelId(String value)
Which channel this config update is for
|
ConfigUpdate.Builder |
setChannelIdBytes(com.google.protobuf.ByteString value)
Which channel this config update is for
|
ConfigUpdate.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConfigUpdate.Builder |
setReadSet(ConfigGroup.Builder builderForValue)
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigUpdate.Builder |
setReadSet(ConfigGroup value)
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
|
ConfigUpdate.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ConfigUpdate.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConfigUpdate.Builder |
setWriteSet(ConfigGroup.Builder builderForValue)
WriteSet lists the portion of the config which was written, this should included updated Versions
|
ConfigUpdate.Builder |
setWriteSet(ConfigGroup value)
WriteSet lists the portion of the config which was written, this should included updated Versions
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public ConfigUpdate.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ConfigUpdate build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ConfigUpdate buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ConfigUpdate.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder mergeFrom(ConfigUpdate other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public ConfigUpdate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ConfigUpdate.Builder>
IOException
public String getChannelId()
Which channel this config update is for
string channel_id = 1 [json_name = "channelId"];
getChannelId
in interface ConfigUpdateOrBuilder
public com.google.protobuf.ByteString getChannelIdBytes()
Which channel this config update is for
string channel_id = 1 [json_name = "channelId"];
getChannelIdBytes
in interface ConfigUpdateOrBuilder
public ConfigUpdate.Builder setChannelId(String value)
Which channel this config update is for
string channel_id = 1 [json_name = "channelId"];
value
- The channelId to set.public ConfigUpdate.Builder clearChannelId()
Which channel this config update is for
string channel_id = 1 [json_name = "channelId"];
public ConfigUpdate.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
Which channel this config update is for
string channel_id = 1 [json_name = "channelId"];
value
- The bytes for channelId to set.public boolean hasReadSet()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
hasReadSet
in interface ConfigUpdateOrBuilder
public ConfigGroup getReadSet()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
getReadSet
in interface ConfigUpdateOrBuilder
public ConfigUpdate.Builder setReadSet(ConfigGroup value)
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
public ConfigUpdate.Builder setReadSet(ConfigGroup.Builder builderForValue)
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
public ConfigUpdate.Builder mergeReadSet(ConfigGroup value)
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
public ConfigUpdate.Builder clearReadSet()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
public ConfigGroup.Builder getReadSetBuilder()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
public ConfigGroupOrBuilder getReadSetOrBuilder()
ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
.common.ConfigGroup read_set = 2 [json_name = "readSet"];
getReadSetOrBuilder
in interface ConfigUpdateOrBuilder
public boolean hasWriteSet()
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
hasWriteSet
in interface ConfigUpdateOrBuilder
public ConfigGroup getWriteSet()
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
getWriteSet
in interface ConfigUpdateOrBuilder
public ConfigUpdate.Builder setWriteSet(ConfigGroup value)
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
public ConfigUpdate.Builder setWriteSet(ConfigGroup.Builder builderForValue)
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
public ConfigUpdate.Builder mergeWriteSet(ConfigGroup value)
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
public ConfigUpdate.Builder clearWriteSet()
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
public ConfigGroup.Builder getWriteSetBuilder()
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
public ConfigGroupOrBuilder getWriteSetOrBuilder()
WriteSet lists the portion of the config which was written, this should included updated Versions
.common.ConfigGroup write_set = 3 [json_name = "writeSet"];
getWriteSetOrBuilder
in interface ConfigUpdateOrBuilder
public int getIsolatedDataCount()
ConfigUpdateOrBuilder
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
getIsolatedDataCount
in interface ConfigUpdateOrBuilder
public boolean containsIsolatedData(String key)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
containsIsolatedData
in interface ConfigUpdateOrBuilder
@Deprecated public Map<String,com.google.protobuf.ByteString> getIsolatedData()
getIsolatedDataMap()
instead.getIsolatedData
in interface ConfigUpdateOrBuilder
public Map<String,com.google.protobuf.ByteString> getIsolatedDataMap()
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
getIsolatedDataMap
in interface ConfigUpdateOrBuilder
public com.google.protobuf.ByteString getIsolatedDataOrDefault(String key, com.google.protobuf.ByteString defaultValue)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
getIsolatedDataOrDefault
in interface ConfigUpdateOrBuilder
public com.google.protobuf.ByteString getIsolatedDataOrThrow(String key)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
getIsolatedDataOrThrow
in interface ConfigUpdateOrBuilder
public ConfigUpdate.Builder clearIsolatedData()
public ConfigUpdate.Builder removeIsolatedData(String key)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
@Deprecated public Map<String,com.google.protobuf.ByteString> getMutableIsolatedData()
public ConfigUpdate.Builder putIsolatedData(String key, com.google.protobuf.ByteString value)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
public ConfigUpdate.Builder putAllIsolatedData(Map<String,com.google.protobuf.ByteString> values)
Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data
map<string, bytes> isolated_data = 5 [json_name = "isolatedData"];
public final ConfigUpdate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
public final ConfigUpdate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigUpdate.Builder>
Copyright © 2022. All rights reserved.