github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/peer/proposal_response.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: peer/proposal_response.proto
     3  // DO NOT EDIT!
     4  
     5  package peer
     6  
     7  import proto "github.com/golang/protobuf/proto"
     8  import fmt "fmt"
     9  import math "math"
    10  import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // A ProposalResponse is returned from an endorser to the proposal submitter.
    18  // The idea is that this message contains the endorser's response to the
    19  // request of a client to perform an action over a chaincode (or more
    20  // generically on the ledger); the response might be success/error (conveyed in
    21  // the Response field) together with a description of the action and a
    22  // signature over it by that endorser.  If a sufficient number of distinct
    23  // endorsers agree on the same action and produce signature to that effect, a
    24  // transaction can be generated and sent for ordering.
    25  type ProposalResponse struct {
    26  	// Version indicates message protocol version
    27  	Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
    28  	// Timestamp is the time that the message
    29  	// was created as  defined by the sender
    30  	Timestamp *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"`
    31  	// A response message indicating whether the
    32  	// endorsement of the action was successful
    33  	Response *Response `protobuf:"bytes,4,opt,name=response" json:"response,omitempty"`
    34  	// The payload of response. It is the bytes of ProposalResponsePayload
    35  	Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
    36  	// The endorsement of the proposal, basically
    37  	// the endorser's signature over the payload
    38  	Endorsement *Endorsement `protobuf:"bytes,6,opt,name=endorsement" json:"endorsement,omitempty"`
    39  }
    40  
    41  func (m *ProposalResponse) Reset()                    { *m = ProposalResponse{} }
    42  func (m *ProposalResponse) String() string            { return proto.CompactTextString(m) }
    43  func (*ProposalResponse) ProtoMessage()               {}
    44  func (*ProposalResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{0} }
    45  
    46  func (m *ProposalResponse) GetTimestamp() *google_protobuf1.Timestamp {
    47  	if m != nil {
    48  		return m.Timestamp
    49  	}
    50  	return nil
    51  }
    52  
    53  func (m *ProposalResponse) GetResponse() *Response {
    54  	if m != nil {
    55  		return m.Response
    56  	}
    57  	return nil
    58  }
    59  
    60  func (m *ProposalResponse) GetEndorsement() *Endorsement {
    61  	if m != nil {
    62  		return m.Endorsement
    63  	}
    64  	return nil
    65  }
    66  
    67  // A response with a representation similar to an HTTP response that can
    68  // be used within another message.
    69  type Response struct {
    70  	// A status code that should follow the HTTP status codes.
    71  	Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
    72  	// A message associated with the response code.
    73  	Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
    74  	// A payload that can be used to include metadata with this response.
    75  	Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
    76  }
    77  
    78  func (m *Response) Reset()                    { *m = Response{} }
    79  func (m *Response) String() string            { return proto.CompactTextString(m) }
    80  func (*Response) ProtoMessage()               {}
    81  func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{1} }
    82  
    83  // ProposalResponsePayload is the payload of a proposal response.  This message
    84  // is the "bridge" between the client's request and the endorser's action in
    85  // response to that request. Concretely, for chaincodes, it contains a hashed
    86  // representation of the proposal (proposalHash) and a representation of the
    87  // chaincode state changes and events inside the extension field.
    88  type ProposalResponsePayload struct {
    89  	// Hash of the proposal that triggered this response. The hash is used to
    90  	// link a response with its proposal, both for bookeeping purposes on an
    91  	// asynchronous system and for security reasons (accountability,
    92  	// non-repudiation). The hash usually covers the entire Proposal message
    93  	// (byte-by-byte). However this implies that the hash can only be verified
    94  	// if the entire proposal message is available when ProposalResponsePayload is
    95  	// included in a transaction or stored in the ledger. For confidentiality
    96  	// reasons, with chaincodes it might be undesirable to store the proposal
    97  	// payload in the ledger.  If the type is CHAINCODE, this is handled by
    98  	// separating the proposal's header and
    99  	// the payload: the header is always hashed in its entirety whereas the
   100  	// payload can either be hashed fully, or only its hash may be hashed, or
   101  	// nothing from the payload can be hashed. The PayloadVisibility field in the
   102  	// Header's extension controls to which extent the proposal payload is
   103  	// "visible" in the sense that was just explained.
   104  	ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"`
   105  	// Extension should be unmarshaled to a type-specific message. The type of
   106  	// the extension in any proposal response depends on the type of the proposal
   107  	// that the client selected when the proposal was initially sent out.  In
   108  	// particular, this information is stored in the type field of a Header.  For
   109  	// chaincode, it's a ChaincodeAction message
   110  	Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
   111  }
   112  
   113  func (m *ProposalResponsePayload) Reset()                    { *m = ProposalResponsePayload{} }
   114  func (m *ProposalResponsePayload) String() string            { return proto.CompactTextString(m) }
   115  func (*ProposalResponsePayload) ProtoMessage()               {}
   116  func (*ProposalResponsePayload) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{2} }
   117  
   118  // An endorsement is a signature of an endorser over a proposal response.  By
   119  // producing an endorsement message, an endorser implicitly "approves" that
   120  // proposal response and the actions contained therein. When enough
   121  // endorsements have been collected, a transaction can be generated out of a
   122  // set of proposal responses.  Note that this message only contains an identity
   123  // and a signature but no signed payload. This is intentional because
   124  // endorsements are supposed to be collected in a transaction, and they are all
   125  // expected to endorse a single proposal response/action (many endorsements
   126  // over a single proposal response)
   127  type Endorsement struct {
   128  	// Identity of the endorser (e.g. its certificate)
   129  	Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"`
   130  	// Signature of the payload included in ProposalResponse concatenated with
   131  	// the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
   132  	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
   133  }
   134  
   135  func (m *Endorsement) Reset()                    { *m = Endorsement{} }
   136  func (m *Endorsement) String() string            { return proto.CompactTextString(m) }
   137  func (*Endorsement) ProtoMessage()               {}
   138  func (*Endorsement) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{3} }
   139  
   140  func init() {
   141  	proto.RegisterType((*ProposalResponse)(nil), "protos.ProposalResponse")
   142  	proto.RegisterType((*Response)(nil), "protos.Response")
   143  	proto.RegisterType((*ProposalResponsePayload)(nil), "protos.ProposalResponsePayload")
   144  	proto.RegisterType((*Endorsement)(nil), "protos.Endorsement")
   145  }
   146  
   147  func init() { proto.RegisterFile("peer/proposal_response.proto", fileDescriptor8) }
   148  
   149  var fileDescriptor8 = []byte{
   150  	// 345 bytes of a gzipped FileDescriptorProto
   151  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x52, 0x5f, 0x4b, 0xfb, 0x30,
   152  	0x14, 0xa5, 0xfb, 0xfd, 0x36, 0xb7, 0xbb, 0x09, 0xa3, 0x82, 0x96, 0x31, 0x70, 0xd4, 0x97, 0x89,
   153  	0xd2, 0x82, 0x22, 0xf8, 0x2c, 0x88, 0x3e, 0x8e, 0x20, 0x3e, 0x88, 0x20, 0xe9, 0x76, 0xd7, 0x16,
   154  	0xda, 0x26, 0xe4, 0xa6, 0xe2, 0x3e, 0xb0, 0xdf, 0x43, 0x9a, 0x26, 0xdd, 0xf4, 0xa9, 0x9c, 0xdb,
   155  	0x93, 0xf3, 0x27, 0xb9, 0x30, 0x97, 0x88, 0x2a, 0x96, 0x4a, 0x48, 0x41, 0xbc, 0xf8, 0x50, 0x48,
   156  	0x52, 0x54, 0x84, 0x91, 0x54, 0x42, 0x0b, 0x7f, 0x60, 0x3e, 0x34, 0x3b, 0x4f, 0x85, 0x48, 0x0b,
   157  	0x8c, 0x0d, 0x4c, 0xea, 0x6d, 0xac, 0xf3, 0x12, 0x49, 0xf3, 0x52, 0xb6, 0xc4, 0xf0, 0xdb, 0x83,
   158  	0xe9, 0xca, 0x8a, 0x30, 0xab, 0xe1, 0x07, 0x70, 0xf4, 0x89, 0x8a, 0x72, 0x51, 0x05, 0xde, 0xc2,
   159  	0x5b, 0xf6, 0x99, 0x83, 0xfe, 0x3d, 0x8c, 0x3a, 0x85, 0xa0, 0xb7, 0xf0, 0x96, 0xe3, 0x9b, 0x59,
   160  	0xd4, 0x7a, 0x44, 0xce, 0x23, 0x7a, 0x71, 0x0c, 0xb6, 0x27, 0xfb, 0xd7, 0x30, 0x74, 0x19, 0x83,
   161  	0xff, 0xe6, 0xe0, 0xb4, 0x3d, 0x41, 0x91, 0xf3, 0x65, 0x1d, 0xa3, 0x49, 0x20, 0xf9, 0xae, 0x10,
   162  	0x7c, 0x13, 0xf4, 0x17, 0xde, 0x72, 0xc2, 0x1c, 0xf4, 0xef, 0x60, 0x8c, 0xd5, 0x46, 0x28, 0xc2,
   163  	0x12, 0x2b, 0x1d, 0x0c, 0x8c, 0xd4, 0x89, 0x93, 0x7a, 0xdc, 0xff, 0x62, 0x87, 0xbc, 0xf0, 0x15,
   164  	0x86, 0x5d, 0xbd, 0x53, 0x18, 0x90, 0xe6, 0xba, 0x26, 0xdb, 0xce, 0xa2, 0xc6, 0xb4, 0x44, 0x22,
   165  	0x9e, 0xa2, 0xa9, 0x36, 0x62, 0x0e, 0x1e, 0xc6, 0xf9, 0xf7, 0x2b, 0x4e, 0xf8, 0x0e, 0x67, 0x7f,
   166  	0xaf, 0x6f, 0x65, 0x93, 0x5e, 0xc0, 0x71, 0xf7, 0x3c, 0x19, 0xa7, 0xcc, 0xb8, 0x4d, 0xd8, 0xc4,
   167  	0x0d, 0x9f, 0x39, 0x65, 0xfe, 0x1c, 0x46, 0xf8, 0xa5, 0xb1, 0x32, 0x97, 0xdd, 0x33, 0x84, 0xfd,
   168  	0x20, 0x7c, 0x82, 0xf1, 0x41, 0x23, 0x7f, 0x06, 0x43, 0xdb, 0x49, 0x59, 0xb1, 0x0e, 0x37, 0x42,
   169  	0x94, 0xa7, 0x15, 0xd7, 0xb5, 0x42, 0x27, 0xd4, 0x0d, 0x1e, 0xae, 0xde, 0x2e, 0xd3, 0x5c, 0x67,
   170  	0x75, 0x12, 0xad, 0x45, 0x19, 0x67, 0x3b, 0x89, 0xaa, 0xc0, 0x4d, 0x8a, 0x2a, 0xde, 0xf2, 0x44,
   171  	0xe5, 0xeb, 0x76, 0x41, 0x28, 0x6e, 0x96, 0x2a, 0x69, 0x97, 0xe7, 0xf6, 0x27, 0x00, 0x00, 0xff,
   172  	0xff, 0xe8, 0x57, 0x2f, 0xb2, 0x63, 0x02, 0x00, 0x00,
   173  }