github.com/vipernet-xyz/tendermint-core@v0.32.0/proto/version/version.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: proto/version/version.proto
     3  
     4  package version
     5  
     6  import (
     7  	bytes "bytes"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  // App includes the protocol and software version for the application.
    26  // This information is included in ResponseInfo. The App.Protocol can be
    27  // updated in ResponseEndBlock.
    28  type App struct {
    29  	Protocol             uint64   `protobuf:"varint,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
    30  	Software             string   `protobuf:"bytes,2,opt,name=software,proto3" json:"software,omitempty"`
    31  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    32  	XXX_unrecognized     []byte   `json:"-"`
    33  	XXX_sizecache        int32    `json:"-"`
    34  }
    35  
    36  func (m *App) Reset()         { *m = App{} }
    37  func (m *App) String() string { return proto.CompactTextString(m) }
    38  func (*App) ProtoMessage()    {}
    39  func (*App) Descriptor() ([]byte, []int) {
    40  	return fileDescriptor_14aa2353622f11e1, []int{0}
    41  }
    42  func (m *App) XXX_Unmarshal(b []byte) error {
    43  	return xxx_messageInfo_App.Unmarshal(m, b)
    44  }
    45  func (m *App) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	return xxx_messageInfo_App.Marshal(b, m, deterministic)
    47  }
    48  func (m *App) XXX_Merge(src proto.Message) {
    49  	xxx_messageInfo_App.Merge(m, src)
    50  }
    51  func (m *App) XXX_Size() int {
    52  	return xxx_messageInfo_App.Size(m)
    53  }
    54  func (m *App) XXX_DiscardUnknown() {
    55  	xxx_messageInfo_App.DiscardUnknown(m)
    56  }
    57  
    58  var xxx_messageInfo_App proto.InternalMessageInfo
    59  
    60  func (m *App) GetProtocol() uint64 {
    61  	if m != nil {
    62  		return m.Protocol
    63  	}
    64  	return 0
    65  }
    66  
    67  func (m *App) GetSoftware() string {
    68  	if m != nil {
    69  		return m.Software
    70  	}
    71  	return ""
    72  }
    73  
    74  // Consensus captures the consensus rules for processing a block in the blockchain,
    75  // including all blockchain data structures and the rules of the application's
    76  // state transition machine.
    77  type Consensus struct {
    78  	Block                uint64   `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"`
    79  	App                  uint64   `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"`
    80  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    81  	XXX_unrecognized     []byte   `json:"-"`
    82  	XXX_sizecache        int32    `json:"-"`
    83  }
    84  
    85  func (m *Consensus) Reset()         { *m = Consensus{} }
    86  func (m *Consensus) String() string { return proto.CompactTextString(m) }
    87  func (*Consensus) ProtoMessage()    {}
    88  func (*Consensus) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_14aa2353622f11e1, []int{1}
    90  }
    91  func (m *Consensus) XXX_Unmarshal(b []byte) error {
    92  	return xxx_messageInfo_Consensus.Unmarshal(m, b)
    93  }
    94  func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    95  	return xxx_messageInfo_Consensus.Marshal(b, m, deterministic)
    96  }
    97  func (m *Consensus) XXX_Merge(src proto.Message) {
    98  	xxx_messageInfo_Consensus.Merge(m, src)
    99  }
   100  func (m *Consensus) XXX_Size() int {
   101  	return xxx_messageInfo_Consensus.Size(m)
   102  }
   103  func (m *Consensus) XXX_DiscardUnknown() {
   104  	xxx_messageInfo_Consensus.DiscardUnknown(m)
   105  }
   106  
   107  var xxx_messageInfo_Consensus proto.InternalMessageInfo
   108  
   109  func (m *Consensus) GetBlock() uint64 {
   110  	if m != nil {
   111  		return m.Block
   112  	}
   113  	return 0
   114  }
   115  
   116  func (m *Consensus) GetApp() uint64 {
   117  	if m != nil {
   118  		return m.App
   119  	}
   120  	return 0
   121  }
   122  
   123  func init() {
   124  	proto.RegisterType((*App)(nil), "tendermint.proto.version.App")
   125  	proto.RegisterType((*Consensus)(nil), "tendermint.proto.version.Consensus")
   126  }
   127  
   128  func init() { proto.RegisterFile("proto/version/version.proto", fileDescriptor_14aa2353622f11e1) }
   129  
   130  var fileDescriptor_14aa2353622f11e1 = []byte{
   131  	// 198 bytes of a gzipped FileDescriptorProto
   132  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x28, 0xca, 0x2f,
   133  	0xc9, 0xd7, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x83, 0xd1, 0x7a, 0x60, 0x51, 0x21, 0x89,
   134  	0x92, 0xd4, 0xbc, 0x94, 0xd4, 0xa2, 0xdc, 0xcc, 0xbc, 0x12, 0x88, 0x88, 0x1e, 0x54, 0x5e, 0x4a,
   135  	0xad, 0x24, 0x23, 0xb3, 0x28, 0x25, 0xbe, 0x20, 0xb1, 0xa8, 0xa4, 0x52, 0x1f, 0x62, 0x44, 0x7a,
   136  	0x7e, 0x7a, 0x3e, 0x82, 0x05, 0x51, 0xaf, 0x64, 0xcb, 0xc5, 0xec, 0x58, 0x50, 0x20, 0x24, 0xc5,
   137  	0xc5, 0x01, 0xe6, 0x27, 0xe7, 0xe7, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x04, 0xc1, 0xf9, 0x20,
   138  	0xb9, 0xe2, 0xfc, 0xb4, 0x92, 0xf2, 0xc4, 0xa2, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20,
   139  	0x38, 0x5f, 0xc9, 0x92, 0x8b, 0xd3, 0x39, 0x3f, 0xaf, 0x38, 0x35, 0xaf, 0xb8, 0xb4, 0x58, 0x48,
   140  	0x84, 0x8b, 0x35, 0x29, 0x27, 0x3f, 0x39, 0x1b, 0x6a, 0x02, 0x84, 0x23, 0x24, 0xc0, 0xc5, 0x9c,
   141  	0x58, 0x50, 0x00, 0xd6, 0xc9, 0x12, 0x04, 0x62, 0x5a, 0xb1, 0xbc, 0x58, 0x20, 0xcf, 0xe8, 0x64,
   142  	0x10, 0xa5, 0x97, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xf0, 0x08,
   143  	0x32, 0x13, 0xc5, 0xef, 0x49, 0x6c, 0x60, 0xae, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xa6, 0xd3,
   144  	0x5b, 0xf2, 0x13, 0x01, 0x00, 0x00,
   145  }
   146  
   147  func (this *Consensus) Equal(that interface{}) bool {
   148  	if that == nil {
   149  		return this == nil
   150  	}
   151  
   152  	that1, ok := that.(*Consensus)
   153  	if !ok {
   154  		that2, ok := that.(Consensus)
   155  		if ok {
   156  			that1 = &that2
   157  		} else {
   158  			return false
   159  		}
   160  	}
   161  	if that1 == nil {
   162  		return this == nil
   163  	} else if this == nil {
   164  		return false
   165  	}
   166  	if this.Block != that1.Block {
   167  		return false
   168  	}
   169  	if this.App != that1.App {
   170  		return false
   171  	}
   172  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   173  		return false
   174  	}
   175  	return true
   176  }