public static final class TransactionAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionAction.Builder> implements TransactionActionOrBuilder
TransactionAction binds a proposal to its action. The type field in the header dictates the type of action to be applied to the ledger.Protobuf type
protos.TransactionAction
Modifier and Type | Method and Description |
---|---|
TransactionAction.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionAction |
build() |
TransactionAction |
buildPartial() |
TransactionAction.Builder |
clear() |
TransactionAction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransactionAction.Builder |
clearHeader()
The header of the proposal action, which is the proposal header
|
TransactionAction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransactionAction.Builder |
clearPayload()
The payload of the action as defined by the type in the header For
chaincode, it's the bytes of ChaincodeActionPayload
|
TransactionAction.Builder |
clone() |
TransactionAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getHeader()
The header of the proposal action, which is the proposal header
|
com.google.protobuf.ByteString |
getPayload()
The payload of the action as defined by the type in the header For
chaincode, it's the bytes of ChaincodeActionPayload
|
boolean |
isInitialized() |
TransactionAction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionAction.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionAction.Builder |
mergeFrom(TransactionAction other) |
TransactionAction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionAction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionAction.Builder |
setHeader(com.google.protobuf.ByteString value)
The header of the proposal action, which is the proposal header
|
TransactionAction.Builder |
setPayload(com.google.protobuf.ByteString value)
The payload of the action as defined by the type in the header For
chaincode, it's the bytes of ChaincodeActionPayload
|
TransactionAction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransactionAction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 TransactionAction.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<TransactionAction.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<TransactionAction.Builder>
public TransactionAction getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TransactionAction build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TransactionAction buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TransactionAction.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<TransactionAction.Builder>
public TransactionAction.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<TransactionAction.Builder>
public TransactionAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAction.Builder>
public TransactionAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAction.Builder>
public TransactionAction.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<TransactionAction.Builder>
public TransactionAction.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<TransactionAction.Builder>
public TransactionAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TransactionAction.Builder>
public TransactionAction.Builder mergeFrom(TransactionAction other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAction.Builder>
public TransactionAction.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<TransactionAction.Builder>
IOException
public com.google.protobuf.ByteString getHeader()
The header of the proposal action, which is the proposal header
bytes header = 1 [json_name = "header"];
getHeader
in interface TransactionActionOrBuilder
public TransactionAction.Builder setHeader(com.google.protobuf.ByteString value)
The header of the proposal action, which is the proposal header
bytes header = 1 [json_name = "header"];
value
- The header to set.public TransactionAction.Builder clearHeader()
The header of the proposal action, which is the proposal header
bytes header = 1 [json_name = "header"];
public com.google.protobuf.ByteString getPayload()
The payload of the action as defined by the type in the header For chaincode, it's the bytes of ChaincodeActionPayload
bytes payload = 2 [json_name = "payload"];
getPayload
in interface TransactionActionOrBuilder
public TransactionAction.Builder setPayload(com.google.protobuf.ByteString value)
The payload of the action as defined by the type in the header For chaincode, it's the bytes of ChaincodeActionPayload
bytes payload = 2 [json_name = "payload"];
value
- The payload to set.public TransactionAction.Builder clearPayload()
The payload of the action as defined by the type in the header For chaincode, it's the bytes of ChaincodeActionPayload
bytes payload = 2 [json_name = "payload"];
public final TransactionAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAction.Builder>
public final TransactionAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionAction.Builder>
Copyright © 2022. All rights reserved.