public final class ChaincodeInput extends com.google.protobuf.GeneratedMessageV3 implements ChaincodeInputOrBuilder
Carries the chaincode function and its arguments. UnmarshalJSON in transaction.go converts the string-based REST/JSON input to the []byte-based current ChaincodeInput structure.Protobuf type
protos.ChaincodeInput
Modifier and Type | Class and Description |
---|---|
static class |
ChaincodeInput.Builder
Carries the chaincode function and its arguments.
|
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 |
ARGS_FIELD_NUMBER |
static int |
DECORATIONS_FIELD_NUMBER |
static int |
IS_INIT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsDecorations(String key)
map<string, bytes> decorations = 2 [json_name = "decorations"]; |
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getArgs(int index)
repeated bytes args = 1 [json_name = "args"]; |
int |
getArgsCount()
repeated bytes args = 1 [json_name = "args"]; |
List<com.google.protobuf.ByteString> |
getArgsList()
repeated bytes args = 1 [json_name = "args"]; |
Map<String,com.google.protobuf.ByteString> |
getDecorations()
Deprecated.
|
int |
getDecorationsCount()
map<string, bytes> decorations = 2 [json_name = "decorations"]; |
Map<String,com.google.protobuf.ByteString> |
getDecorationsMap()
map<string, bytes> decorations = 2 [json_name = "decorations"]; |
com.google.protobuf.ByteString |
getDecorationsOrDefault(String key,
com.google.protobuf.ByteString defaultValue)
map<string, bytes> decorations = 2 [json_name = "decorations"]; |
com.google.protobuf.ByteString |
getDecorationsOrThrow(String key)
map<string, bytes> decorations = 2 [json_name = "decorations"]; |
static ChaincodeInput |
getDefaultInstance() |
ChaincodeInput |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIsInit()
is_init is used for the application to signal that an invocation is to be routed
to the legacy 'Init' function for compatibility with chaincodes which handled
Init in the old way.
|
com.google.protobuf.Parser<ChaincodeInput> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static ChaincodeInput.Builder |
newBuilder() |
static ChaincodeInput.Builder |
newBuilder(ChaincodeInput prototype) |
ChaincodeInput.Builder |
newBuilderForType() |
static ChaincodeInput |
parseDelimitedFrom(InputStream input) |
static ChaincodeInput |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChaincodeInput |
parseFrom(byte[] data) |
static ChaincodeInput |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChaincodeInput |
parseFrom(ByteBuffer data) |
static ChaincodeInput |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChaincodeInput |
parseFrom(com.google.protobuf.ByteString data) |
static ChaincodeInput |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChaincodeInput |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ChaincodeInput |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChaincodeInput |
parseFrom(InputStream input) |
static ChaincodeInput |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ChaincodeInput> |
parser() |
ChaincodeInput.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 ARGS_FIELD_NUMBER
public static final int DECORATIONS_FIELD_NUMBER
public static final int IS_INIT_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 List<com.google.protobuf.ByteString> getArgsList()
repeated bytes args = 1 [json_name = "args"];
getArgsList
in interface ChaincodeInputOrBuilder
public int getArgsCount()
repeated bytes args = 1 [json_name = "args"];
getArgsCount
in interface ChaincodeInputOrBuilder
public com.google.protobuf.ByteString getArgs(int index)
repeated bytes args = 1 [json_name = "args"];
getArgs
in interface ChaincodeInputOrBuilder
index
- The index of the element to return.public int getDecorationsCount()
ChaincodeInputOrBuilder
map<string, bytes> decorations = 2 [json_name = "decorations"];
getDecorationsCount
in interface ChaincodeInputOrBuilder
public boolean containsDecorations(String key)
map<string, bytes> decorations = 2 [json_name = "decorations"];
containsDecorations
in interface ChaincodeInputOrBuilder
@Deprecated public Map<String,com.google.protobuf.ByteString> getDecorations()
getDecorationsMap()
instead.getDecorations
in interface ChaincodeInputOrBuilder
public Map<String,com.google.protobuf.ByteString> getDecorationsMap()
map<string, bytes> decorations = 2 [json_name = "decorations"];
getDecorationsMap
in interface ChaincodeInputOrBuilder
public com.google.protobuf.ByteString getDecorationsOrDefault(String key, com.google.protobuf.ByteString defaultValue)
map<string, bytes> decorations = 2 [json_name = "decorations"];
getDecorationsOrDefault
in interface ChaincodeInputOrBuilder
public com.google.protobuf.ByteString getDecorationsOrThrow(String key)
map<string, bytes> decorations = 2 [json_name = "decorations"];
getDecorationsOrThrow
in interface ChaincodeInputOrBuilder
public boolean getIsInit()
is_init is used for the application to signal that an invocation is to be routed to the legacy 'Init' function for compatibility with chaincodes which handled Init in the old way. New applications should manage their initialized state themselves.
bool is_init = 3 [json_name = "isInit"];
getIsInit
in interface ChaincodeInputOrBuilder
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 ChaincodeInput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChaincodeInput parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChaincodeInput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChaincodeInput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChaincodeInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChaincodeInput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChaincodeInput parseFrom(InputStream input) throws IOException
IOException
public static ChaincodeInput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ChaincodeInput parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ChaincodeInput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ChaincodeInput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ChaincodeInput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ChaincodeInput.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ChaincodeInput.Builder newBuilder()
public static ChaincodeInput.Builder newBuilder(ChaincodeInput prototype)
public ChaincodeInput.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static ChaincodeInput getDefaultInstance()
public static com.google.protobuf.Parser<ChaincodeInput> parser()
public com.google.protobuf.Parser<ChaincodeInput> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ChaincodeInput getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.