public final class Capabilities extends com.google.protobuf.GeneratedMessageV3 implements CapabilitiesOrBuilder
Capabilities message defines the capabilities a particular binary must implement for that binary to be able to safely participate in the channel. The capabilities message is defined at the /Channel level, the /Channel/Application level, and the /Channel/Orderer level. The /Channel level capabilties define capabilities which both the orderer and peer binaries must satisfy. These capabilties might be things like a new MSP type, or a new policy type. The /Channel/Orderer level capabilties define capabilities which must be supported by the orderer, but which have no bearing on the behavior of the peer. For instance if the orderer changes the logic for how it constructs new channels, only all orderers must agree on the new logic. The peers do not need to be aware of this change as they only interact with the channel after it has been constructed. Finally, the /Channel/Application level capabilities define capabilities which the peer binary must satisfy, but which have no bearing on the orderer. For instance, if the peer adds a new UTXO transaction type, or changes the chaincode lifecycle requirements, all peers must agree on the new logic. However, orderers never inspect transactions this deeply, and therefore have no need to be aware of the change. The capabilities strings defined in these messages typically correspond to release binary versions (e.g. "V1.1"), and are used primarilly as a mechanism for a fully upgraded network to switch from one set of logic to a new one. Although for V1.1, the orderers must be upgraded to V1.1 prior to the rest of the network, going forward, because of the split between the /Channel, /Channel/Orderer and /Channel/Application capabilities. It should be possible for the orderer and application networks to upgrade themselves independently (with the exception of any new capabilities defined at the /Channel level).Protobuf type
common.Capabilities
Modifier and Type | Class and Description |
---|---|
static class |
Capabilities.Builder
Capabilities message defines the capabilities a particular binary must implement
for that binary to be able to safely participate in the channel.
|
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 |
CAPABILITIES_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsCapabilities(String key)
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"]; |
boolean |
equals(Object obj) |
Map<String,Capability> |
getCapabilities()
Deprecated.
|
int |
getCapabilitiesCount()
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"]; |
Map<String,Capability> |
getCapabilitiesMap()
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"]; |
Capability |
getCapabilitiesOrDefault(String key,
Capability defaultValue)
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"]; |
Capability |
getCapabilitiesOrThrow(String key)
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"]; |
static Capabilities |
getDefaultInstance() |
Capabilities |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Capabilities> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static Capabilities.Builder |
newBuilder() |
static Capabilities.Builder |
newBuilder(Capabilities prototype) |
Capabilities.Builder |
newBuilderForType() |
static Capabilities |
parseDelimitedFrom(InputStream input) |
static Capabilities |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Capabilities |
parseFrom(byte[] data) |
static Capabilities |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Capabilities |
parseFrom(ByteBuffer data) |
static Capabilities |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Capabilities |
parseFrom(com.google.protobuf.ByteString data) |
static Capabilities |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Capabilities |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Capabilities |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Capabilities |
parseFrom(InputStream input) |
static Capabilities |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Capabilities> |
parser() |
Capabilities.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 CAPABILITIES_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 int getCapabilitiesCount()
CapabilitiesOrBuilder
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"];
getCapabilitiesCount
in interface CapabilitiesOrBuilder
public boolean containsCapabilities(String key)
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"];
containsCapabilities
in interface CapabilitiesOrBuilder
@Deprecated public Map<String,Capability> getCapabilities()
getCapabilitiesMap()
instead.getCapabilities
in interface CapabilitiesOrBuilder
public Map<String,Capability> getCapabilitiesMap()
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"];
getCapabilitiesMap
in interface CapabilitiesOrBuilder
public Capability getCapabilitiesOrDefault(String key, Capability defaultValue)
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"];
getCapabilitiesOrDefault
in interface CapabilitiesOrBuilder
public Capability getCapabilitiesOrThrow(String key)
map<string, .common.Capability> capabilities = 1 [json_name = "capabilities"];
getCapabilitiesOrThrow
in interface CapabilitiesOrBuilder
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 Capabilities parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Capabilities parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Capabilities parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Capabilities parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Capabilities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Capabilities parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Capabilities parseFrom(InputStream input) throws IOException
IOException
public static Capabilities parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Capabilities parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Capabilities parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Capabilities parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Capabilities parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Capabilities.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Capabilities.Builder newBuilder()
public static Capabilities.Builder newBuilder(Capabilities prototype)
public Capabilities.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static Capabilities getDefaultInstance()
public static com.google.protobuf.Parser<Capabilities> parser()
public com.google.protobuf.Parser<Capabilities> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Capabilities getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.