public static final class EndorseRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EndorseRequest.Builder> implements EndorseRequestOrBuilder
EndorseRequest contains the details required to obtain sufficient endorsements for a transaction to be committed to the ledger.Protobuf type
gateway.EndorseRequest
Modifier and Type | Method and Description |
---|---|
EndorseRequest.Builder |
addAllEndorsingOrganizations(Iterable<String> values)
If targeting the peers of specific organizations (e.g.
|
EndorseRequest.Builder |
addEndorsingOrganizations(String value)
If targeting the peers of specific organizations (e.g.
|
EndorseRequest.Builder |
addEndorsingOrganizationsBytes(com.google.protobuf.ByteString value)
If targeting the peers of specific organizations (e.g.
|
EndorseRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EndorseRequest |
build() |
EndorseRequest |
buildPartial() |
EndorseRequest.Builder |
clear() |
EndorseRequest.Builder |
clearChannelId()
Identifier of the channel this request is bound for.
|
EndorseRequest.Builder |
clearEndorsingOrganizations()
If targeting the peers of specific organizations (e.g.
|
EndorseRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EndorseRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EndorseRequest.Builder |
clearProposedTransaction()
The signed proposal ready for endorsement.
|
EndorseRequest.Builder |
clearTransactionId()
The unique identifier for the transaction.
|
EndorseRequest.Builder |
clone() |
String |
getChannelId()
Identifier of the channel this request is bound for.
|
com.google.protobuf.ByteString |
getChannelIdBytes()
Identifier of the channel this request is bound for.
|
EndorseRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEndorsingOrganizations(int index)
If targeting the peers of specific organizations (e.g.
|
com.google.protobuf.ByteString |
getEndorsingOrganizationsBytes(int index)
If targeting the peers of specific organizations (e.g.
|
int |
getEndorsingOrganizationsCount()
If targeting the peers of specific organizations (e.g.
|
com.google.protobuf.ProtocolStringList |
getEndorsingOrganizationsList()
If targeting the peers of specific organizations (e.g.
|
SignedProposal |
getProposedTransaction()
The signed proposal ready for endorsement.
|
SignedProposal.Builder |
getProposedTransactionBuilder()
The signed proposal ready for endorsement.
|
SignedProposalOrBuilder |
getProposedTransactionOrBuilder()
The signed proposal ready for endorsement.
|
String |
getTransactionId()
The unique identifier for the transaction.
|
com.google.protobuf.ByteString |
getTransactionIdBytes()
The unique identifier for the transaction.
|
boolean |
hasProposedTransaction()
The signed proposal ready for endorsement.
|
boolean |
isInitialized() |
EndorseRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EndorseRequest.Builder |
mergeFrom(EndorseRequest other) |
EndorseRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
EndorseRequest.Builder |
mergeProposedTransaction(SignedProposal value)
The signed proposal ready for endorsement.
|
EndorseRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EndorseRequest.Builder |
setChannelId(String value)
Identifier of the channel this request is bound for.
|
EndorseRequest.Builder |
setChannelIdBytes(com.google.protobuf.ByteString value)
Identifier of the channel this request is bound for.
|
EndorseRequest.Builder |
setEndorsingOrganizations(int index,
String value)
If targeting the peers of specific organizations (e.g.
|
EndorseRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EndorseRequest.Builder |
setProposedTransaction(SignedProposal.Builder builderForValue)
The signed proposal ready for endorsement.
|
EndorseRequest.Builder |
setProposedTransaction(SignedProposal value)
The signed proposal ready for endorsement.
|
EndorseRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EndorseRequest.Builder |
setTransactionId(String value)
The unique identifier for the transaction.
|
EndorseRequest.Builder |
setTransactionIdBytes(com.google.protobuf.ByteString value)
The unique identifier for the transaction.
|
EndorseRequest.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 EndorseRequest.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<EndorseRequest.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<EndorseRequest.Builder>
public EndorseRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public EndorseRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public EndorseRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public EndorseRequest.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<EndorseRequest.Builder>
public EndorseRequest.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<EndorseRequest.Builder>
public EndorseRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<EndorseRequest.Builder>
public EndorseRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<EndorseRequest.Builder>
public EndorseRequest.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<EndorseRequest.Builder>
public EndorseRequest.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<EndorseRequest.Builder>
public EndorseRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<EndorseRequest.Builder>
public EndorseRequest.Builder mergeFrom(EndorseRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<EndorseRequest.Builder>
public EndorseRequest.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<EndorseRequest.Builder>
IOException
public String getTransactionId()
The unique identifier for the transaction.
string transaction_id = 1 [json_name = "transactionId"];
getTransactionId
in interface EndorseRequestOrBuilder
public com.google.protobuf.ByteString getTransactionIdBytes()
The unique identifier for the transaction.
string transaction_id = 1 [json_name = "transactionId"];
getTransactionIdBytes
in interface EndorseRequestOrBuilder
public EndorseRequest.Builder setTransactionId(String value)
The unique identifier for the transaction.
string transaction_id = 1 [json_name = "transactionId"];
value
- The transactionId to set.public EndorseRequest.Builder clearTransactionId()
The unique identifier for the transaction.
string transaction_id = 1 [json_name = "transactionId"];
public EndorseRequest.Builder setTransactionIdBytes(com.google.protobuf.ByteString value)
The unique identifier for the transaction.
string transaction_id = 1 [json_name = "transactionId"];
value
- The bytes for transactionId to set.public String getChannelId()
Identifier of the channel this request is bound for.
string channel_id = 2 [json_name = "channelId"];
getChannelId
in interface EndorseRequestOrBuilder
public com.google.protobuf.ByteString getChannelIdBytes()
Identifier of the channel this request is bound for.
string channel_id = 2 [json_name = "channelId"];
getChannelIdBytes
in interface EndorseRequestOrBuilder
public EndorseRequest.Builder setChannelId(String value)
Identifier of the channel this request is bound for.
string channel_id = 2 [json_name = "channelId"];
value
- The channelId to set.public EndorseRequest.Builder clearChannelId()
Identifier of the channel this request is bound for.
string channel_id = 2 [json_name = "channelId"];
public EndorseRequest.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
Identifier of the channel this request is bound for.
string channel_id = 2 [json_name = "channelId"];
value
- The bytes for channelId to set.public boolean hasProposedTransaction()
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
hasProposedTransaction
in interface EndorseRequestOrBuilder
public SignedProposal getProposedTransaction()
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
getProposedTransaction
in interface EndorseRequestOrBuilder
public EndorseRequest.Builder setProposedTransaction(SignedProposal value)
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
public EndorseRequest.Builder setProposedTransaction(SignedProposal.Builder builderForValue)
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
public EndorseRequest.Builder mergeProposedTransaction(SignedProposal value)
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
public EndorseRequest.Builder clearProposedTransaction()
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
public SignedProposal.Builder getProposedTransactionBuilder()
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
public SignedProposalOrBuilder getProposedTransactionOrBuilder()
The signed proposal ready for endorsement.
.protos.SignedProposal proposed_transaction = 3 [json_name = "proposedTransaction"];
getProposedTransactionOrBuilder
in interface EndorseRequestOrBuilder
public com.google.protobuf.ProtocolStringList getEndorsingOrganizationsList()
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
getEndorsingOrganizationsList
in interface EndorseRequestOrBuilder
public int getEndorsingOrganizationsCount()
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
getEndorsingOrganizationsCount
in interface EndorseRequestOrBuilder
public String getEndorsingOrganizations(int index)
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
getEndorsingOrganizations
in interface EndorseRequestOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getEndorsingOrganizationsBytes(int index)
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
getEndorsingOrganizationsBytes
in interface EndorseRequestOrBuilder
index
- The index of the value to return.public EndorseRequest.Builder setEndorsingOrganizations(int index, String value)
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
index
- The index to set the value at.value
- The endorsingOrganizations to set.public EndorseRequest.Builder addEndorsingOrganizations(String value)
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
value
- The endorsingOrganizations to add.public EndorseRequest.Builder addAllEndorsingOrganizations(Iterable<String> values)
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
values
- The endorsingOrganizations to add.public EndorseRequest.Builder clearEndorsingOrganizations()
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
public EndorseRequest.Builder addEndorsingOrganizationsBytes(com.google.protobuf.ByteString value)
If targeting the peers of specific organizations (e.g. for private data scenarios), the list of organizations' MSPIDs should be supplied here.
repeated string endorsing_organizations = 4 [json_name = "endorsingOrganizations"];
value
- The bytes of the endorsingOrganizations to add.public final EndorseRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EndorseRequest.Builder>
public final EndorseRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EndorseRequest.Builder>
Copyright © 2022. All rights reserved.