public final class ConfigEnvelope extends com.google.protobuf.GeneratedMessageV3 implements ConfigEnvelopeOrBuilder
ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency on previous configuration transactions. It is generated with the following scheme: 1. Retrieve the existing configuration 2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified 3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely) 4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely) 5. Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set Note: any element not modified but specified should already be in the read_set, so may be specified sparsely 6. Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures a) Each signature is of type ConfigSignature b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader) 5. Submit new Config for ordering in Envelope signed by submitter a) The Envelope Payload has data set to the marshaled ConfigEnvelope b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE The configuration manager will verify: 1. All items in the read_set exist at the read versions 2. All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy 3. The new configuration satisfies the ConfigSchemaProtobuf type
common.ConfigEnvelope
Modifier and Type | Class and Description |
---|---|
static class |
ConfigEnvelope.Builder
ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency
on previous configuration transactions.
|
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 |
CONFIG_FIELD_NUMBER |
static int |
LAST_UPDATE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Config |
getConfig()
A marshaled Config structure
|
ConfigOrBuilder |
getConfigOrBuilder()
A marshaled Config structure
|
static ConfigEnvelope |
getDefaultInstance() |
ConfigEnvelope |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Envelope |
getLastUpdate()
The last CONFIG_UPDATE message which generated this current configuration
|
EnvelopeOrBuilder |
getLastUpdateOrBuilder()
The last CONFIG_UPDATE message which generated this current configuration
|
com.google.protobuf.Parser<ConfigEnvelope> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasConfig()
A marshaled Config structure
|
int |
hashCode() |
boolean |
hasLastUpdate()
The last CONFIG_UPDATE message which generated this current configuration
|
boolean |
isInitialized() |
static ConfigEnvelope.Builder |
newBuilder() |
static ConfigEnvelope.Builder |
newBuilder(ConfigEnvelope prototype) |
ConfigEnvelope.Builder |
newBuilderForType() |
static ConfigEnvelope |
parseDelimitedFrom(InputStream input) |
static ConfigEnvelope |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigEnvelope |
parseFrom(byte[] data) |
static ConfigEnvelope |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigEnvelope |
parseFrom(ByteBuffer data) |
static ConfigEnvelope |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigEnvelope |
parseFrom(com.google.protobuf.ByteString data) |
static ConfigEnvelope |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigEnvelope |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ConfigEnvelope |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigEnvelope |
parseFrom(InputStream input) |
static ConfigEnvelope |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ConfigEnvelope> |
parser() |
ConfigEnvelope.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int CONFIG_FIELD_NUMBER
public static final int LAST_UPDATE_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()
public boolean hasConfig()
A marshaled Config structure
.common.Config config = 1 [json_name = "config"];
hasConfig
in interface ConfigEnvelopeOrBuilder
public Config getConfig()
A marshaled Config structure
.common.Config config = 1 [json_name = "config"];
getConfig
in interface ConfigEnvelopeOrBuilder
public ConfigOrBuilder getConfigOrBuilder()
A marshaled Config structure
.common.Config config = 1 [json_name = "config"];
getConfigOrBuilder
in interface ConfigEnvelopeOrBuilder
public boolean hasLastUpdate()
The last CONFIG_UPDATE message which generated this current configuration
.common.Envelope last_update = 2 [json_name = "lastUpdate"];
hasLastUpdate
in interface ConfigEnvelopeOrBuilder
public Envelope getLastUpdate()
The last CONFIG_UPDATE message which generated this current configuration
.common.Envelope last_update = 2 [json_name = "lastUpdate"];
getLastUpdate
in interface ConfigEnvelopeOrBuilder
public EnvelopeOrBuilder getLastUpdateOrBuilder()
The last CONFIG_UPDATE message which generated this current configuration
.common.Envelope last_update = 2 [json_name = "lastUpdate"];
getLastUpdateOrBuilder
in interface ConfigEnvelopeOrBuilder
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 ConfigEnvelope parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ConfigEnvelope parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ConfigEnvelope parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ConfigEnvelope parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ConfigEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ConfigEnvelope parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ConfigEnvelope parseFrom(InputStream input) throws IOException
IOException
public static ConfigEnvelope parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ConfigEnvelope parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ConfigEnvelope parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ConfigEnvelope parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ConfigEnvelope parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ConfigEnvelope.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ConfigEnvelope.Builder newBuilder()
public static ConfigEnvelope.Builder newBuilder(ConfigEnvelope prototype)
public ConfigEnvelope.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static ConfigEnvelope getDefaultInstance()
public static com.google.protobuf.Parser<ConfigEnvelope> parser()
public com.google.protobuf.Parser<ConfigEnvelope> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ConfigEnvelope getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.