github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/exchange/bitswap/message/pb/message.pb.go (about)

     1  // Code generated by protoc-gen-gogo.
     2  // source: message.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package bitswap_message_pb is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	message.proto
    10  
    11  It has these top-level messages:
    12  	Message
    13  */
    14  package bitswap_message_pb
    15  
    16  import proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
    17  import math "math"
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = math.Inf
    22  
    23  type Message struct {
    24  	Wantlist         *Message_Wantlist `protobuf:"bytes,1,opt,name=wantlist" json:"wantlist,omitempty"`
    25  	Blocks           [][]byte          `protobuf:"bytes,2,rep,name=blocks" json:"blocks,omitempty"`
    26  	XXX_unrecognized []byte            `json:"-"`
    27  }
    28  
    29  func (m *Message) Reset()         { *m = Message{} }
    30  func (m *Message) String() string { return proto.CompactTextString(m) }
    31  func (*Message) ProtoMessage()    {}
    32  
    33  func (m *Message) GetWantlist() *Message_Wantlist {
    34  	if m != nil {
    35  		return m.Wantlist
    36  	}
    37  	return nil
    38  }
    39  
    40  func (m *Message) GetBlocks() [][]byte {
    41  	if m != nil {
    42  		return m.Blocks
    43  	}
    44  	return nil
    45  }
    46  
    47  type Message_Wantlist struct {
    48  	Entries          []*Message_Wantlist_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
    49  	Full             *bool                     `protobuf:"varint,2,opt,name=full" json:"full,omitempty"`
    50  	XXX_unrecognized []byte                    `json:"-"`
    51  }
    52  
    53  func (m *Message_Wantlist) Reset()         { *m = Message_Wantlist{} }
    54  func (m *Message_Wantlist) String() string { return proto.CompactTextString(m) }
    55  func (*Message_Wantlist) ProtoMessage()    {}
    56  
    57  func (m *Message_Wantlist) GetEntries() []*Message_Wantlist_Entry {
    58  	if m != nil {
    59  		return m.Entries
    60  	}
    61  	return nil
    62  }
    63  
    64  func (m *Message_Wantlist) GetFull() bool {
    65  	if m != nil && m.Full != nil {
    66  		return *m.Full
    67  	}
    68  	return false
    69  }
    70  
    71  type Message_Wantlist_Entry struct {
    72  	Block            *string `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"`
    73  	Priority         *int32  `protobuf:"varint,2,opt,name=priority" json:"priority,omitempty"`
    74  	Cancel           *bool   `protobuf:"varint,3,opt,name=cancel" json:"cancel,omitempty"`
    75  	XXX_unrecognized []byte  `json:"-"`
    76  }
    77  
    78  func (m *Message_Wantlist_Entry) Reset()         { *m = Message_Wantlist_Entry{} }
    79  func (m *Message_Wantlist_Entry) String() string { return proto.CompactTextString(m) }
    80  func (*Message_Wantlist_Entry) ProtoMessage()    {}
    81  
    82  func (m *Message_Wantlist_Entry) GetBlock() string {
    83  	if m != nil && m.Block != nil {
    84  		return *m.Block
    85  	}
    86  	return ""
    87  }
    88  
    89  func (m *Message_Wantlist_Entry) GetPriority() int32 {
    90  	if m != nil && m.Priority != nil {
    91  		return *m.Priority
    92  	}
    93  	return 0
    94  }
    95  
    96  func (m *Message_Wantlist_Entry) GetCancel() bool {
    97  	if m != nil && m.Cancel != nil {
    98  		return *m.Cancel
    99  	}
   100  	return false
   101  }
   102  
   103  func init() {
   104  }