github.com/InjectiveLabs/sdk-go@v1.53.0/chain/permissions/types/params.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/permissions/v1beta1/params.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/cosmos/cosmos-proto"
     9  	_ "github.com/cosmos/cosmos-sdk/types"
    10  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    11  	_ "github.com/cosmos/gogoproto/gogoproto"
    12  	proto "github.com/cosmos/gogoproto/proto"
    13  	io "io"
    14  	math "math"
    15  	math_bits "math/bits"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  // Params defines the parameters for the permissions module.
    30  type Params struct {
    31  	WasmHookQueryMaxGas uint64 `protobuf:"varint,1,opt,name=wasm_hook_query_max_gas,json=wasmHookQueryMaxGas,proto3" json:"wasm_hook_query_max_gas,omitempty"`
    32  }
    33  
    34  func (m *Params) Reset()         { *m = Params{} }
    35  func (m *Params) String() string { return proto.CompactTextString(m) }
    36  func (*Params) ProtoMessage()    {}
    37  func (*Params) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_4a7ea0496163621f, []int{0}
    39  }
    40  func (m *Params) XXX_Unmarshal(b []byte) error {
    41  	return m.Unmarshal(b)
    42  }
    43  func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	if deterministic {
    45  		return xxx_messageInfo_Params.Marshal(b, m, deterministic)
    46  	} else {
    47  		b = b[:cap(b)]
    48  		n, err := m.MarshalToSizedBuffer(b)
    49  		if err != nil {
    50  			return nil, err
    51  		}
    52  		return b[:n], nil
    53  	}
    54  }
    55  func (m *Params) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_Params.Merge(m, src)
    57  }
    58  func (m *Params) XXX_Size() int {
    59  	return m.Size()
    60  }
    61  func (m *Params) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_Params.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_Params proto.InternalMessageInfo
    66  
    67  func (m *Params) GetWasmHookQueryMaxGas() uint64 {
    68  	if m != nil {
    69  		return m.WasmHookQueryMaxGas
    70  	}
    71  	return 0
    72  }
    73  
    74  func init() {
    75  	proto.RegisterType((*Params)(nil), "injective.permissions.v1beta1.Params")
    76  }
    77  
    78  func init() {
    79  	proto.RegisterFile("injective/permissions/v1beta1/params.proto", fileDescriptor_4a7ea0496163621f)
    80  }
    81  
    82  var fileDescriptor_4a7ea0496163621f = []byte{
    83  	// 287 bytes of a gzipped FileDescriptorProto
    84  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x31, 0x4e, 0xc3, 0x30,
    85  	0x14, 0x86, 0x6b, 0x09, 0x75, 0xc8, 0x46, 0x40, 0x02, 0x8a, 0x30, 0x88, 0x09, 0x55, 0x22, 0x56,
    86  	0x05, 0x13, 0x23, 0x0b, 0x20, 0x81, 0x44, 0x19, 0x61, 0x88, 0x5e, 0x82, 0x95, 0x98, 0xe0, 0xbc,
    87  	0x90, 0xe7, 0x94, 0xf6, 0x0a, 0x4c, 0x1c, 0x81, 0x23, 0x70, 0x0c, 0xc6, 0x8e, 0x8c, 0x28, 0x19,
    88  	0xe0, 0x18, 0x28, 0x71, 0x88, 0xc2, 0x62, 0xf9, 0xf7, 0xf7, 0xdb, 0x7e, 0xff, 0xef, 0x8c, 0x55,
    89  	0xfa, 0x20, 0x43, 0xa3, 0x66, 0x52, 0x64, 0x32, 0xd7, 0x8a, 0x48, 0x61, 0x4a, 0x62, 0x36, 0x09,
    90  	0xa4, 0x81, 0x89, 0xc8, 0x20, 0x07, 0x4d, 0x5e, 0x96, 0xa3, 0x41, 0x77, 0xa7, 0xf3, 0x7a, 0x3d,
    91  	0xaf, 0xd7, 0x7a, 0x47, 0xeb, 0x11, 0x46, 0xd8, 0x38, 0x45, 0xbd, 0xb3, 0x97, 0x46, 0x5b, 0x21,
    92  	0x92, 0x46, 0xf2, 0x2d, 0xb0, 0xa2, 0x45, 0xdc, 0x2a, 0x11, 0x00, 0xc9, 0xee, 0xc7, 0x10, 0x55,
    93  	0xda, 0xf2, 0x55, 0xd0, 0x2a, 0x45, 0xd1, 0xac, 0xf6, 0x68, 0xff, 0xce, 0x19, 0x5e, 0x37, 0x23,
    94  	0xb9, 0xc7, 0xce, 0xc6, 0x33, 0x90, 0xf6, 0x63, 0xc4, 0xc4, 0x7f, 0x2a, 0x64, 0xbe, 0xf0, 0x35,
    95  	0xcc, 0xfd, 0x08, 0x68, 0x93, 0xed, 0xb1, 0x83, 0x95, 0x9b, 0xb5, 0x1a, 0x9f, 0x23, 0x26, 0xd3,
    96  	0x1a, 0x5e, 0xc1, 0xfc, 0x0c, 0xe8, 0x64, 0xfb, 0xe7, 0x6d, 0x97, 0xbd, 0x7c, 0xbf, 0x8f, 0xdd,
    97  	0x7e, 0x5a, 0xfb, 0xe4, 0x69, 0xf2, 0x51, 0x72, 0xb6, 0x2c, 0x39, 0xfb, 0x2a, 0x39, 0x7b, 0xad,
    98  	0xf8, 0x60, 0x59, 0xf1, 0xc1, 0x67, 0xc5, 0x07, 0xb7, 0xd3, 0x48, 0x99, 0xb8, 0x08, 0xbc, 0x10,
    99  	0xb5, 0xb8, 0xf8, 0x2b, 0xe1, 0x12, 0x02, 0x12, 0x5d, 0x25, 0x87, 0x21, 0xe6, 0xb2, 0x2f, 0x63,
   100  	0x50, 0xa9, 0xd0, 0x78, 0x5f, 0x3c, 0x4a, 0xfa, 0xd7, 0xad, 0x59, 0x64, 0x92, 0x82, 0x61, 0x13,
   101  	0xe8, 0xe8, 0x37, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x42, 0x3f, 0x45, 0x81, 0x01, 0x00, 0x00,
   102  }
   103  
   104  func (this *Params) Equal(that interface{}) bool {
   105  	if that == nil {
   106  		return this == nil
   107  	}
   108  
   109  	that1, ok := that.(*Params)
   110  	if !ok {
   111  		that2, ok := that.(Params)
   112  		if ok {
   113  			that1 = &that2
   114  		} else {
   115  			return false
   116  		}
   117  	}
   118  	if that1 == nil {
   119  		return this == nil
   120  	} else if this == nil {
   121  		return false
   122  	}
   123  	if this.WasmHookQueryMaxGas != that1.WasmHookQueryMaxGas {
   124  		return false
   125  	}
   126  	return true
   127  }
   128  func (m *Params) Marshal() (dAtA []byte, err error) {
   129  	size := m.Size()
   130  	dAtA = make([]byte, size)
   131  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return dAtA[:n], nil
   136  }
   137  
   138  func (m *Params) MarshalTo(dAtA []byte) (int, error) {
   139  	size := m.Size()
   140  	return m.MarshalToSizedBuffer(dAtA[:size])
   141  }
   142  
   143  func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   144  	i := len(dAtA)
   145  	_ = i
   146  	var l int
   147  	_ = l
   148  	if m.WasmHookQueryMaxGas != 0 {
   149  		i = encodeVarintParams(dAtA, i, uint64(m.WasmHookQueryMaxGas))
   150  		i--
   151  		dAtA[i] = 0x8
   152  	}
   153  	return len(dAtA) - i, nil
   154  }
   155  
   156  func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
   157  	offset -= sovParams(v)
   158  	base := offset
   159  	for v >= 1<<7 {
   160  		dAtA[offset] = uint8(v&0x7f | 0x80)
   161  		v >>= 7
   162  		offset++
   163  	}
   164  	dAtA[offset] = uint8(v)
   165  	return base
   166  }
   167  func (m *Params) Size() (n int) {
   168  	if m == nil {
   169  		return 0
   170  	}
   171  	var l int
   172  	_ = l
   173  	if m.WasmHookQueryMaxGas != 0 {
   174  		n += 1 + sovParams(uint64(m.WasmHookQueryMaxGas))
   175  	}
   176  	return n
   177  }
   178  
   179  func sovParams(x uint64) (n int) {
   180  	return (math_bits.Len64(x|1) + 6) / 7
   181  }
   182  func sozParams(x uint64) (n int) {
   183  	return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   184  }
   185  func (m *Params) Unmarshal(dAtA []byte) error {
   186  	l := len(dAtA)
   187  	iNdEx := 0
   188  	for iNdEx < l {
   189  		preIndex := iNdEx
   190  		var wire uint64
   191  		for shift := uint(0); ; shift += 7 {
   192  			if shift >= 64 {
   193  				return ErrIntOverflowParams
   194  			}
   195  			if iNdEx >= l {
   196  				return io.ErrUnexpectedEOF
   197  			}
   198  			b := dAtA[iNdEx]
   199  			iNdEx++
   200  			wire |= uint64(b&0x7F) << shift
   201  			if b < 0x80 {
   202  				break
   203  			}
   204  		}
   205  		fieldNum := int32(wire >> 3)
   206  		wireType := int(wire & 0x7)
   207  		if wireType == 4 {
   208  			return fmt.Errorf("proto: Params: wiretype end group for non-group")
   209  		}
   210  		if fieldNum <= 0 {
   211  			return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
   212  		}
   213  		switch fieldNum {
   214  		case 1:
   215  			if wireType != 0 {
   216  				return fmt.Errorf("proto: wrong wireType = %d for field WasmHookQueryMaxGas", wireType)
   217  			}
   218  			m.WasmHookQueryMaxGas = 0
   219  			for shift := uint(0); ; shift += 7 {
   220  				if shift >= 64 {
   221  					return ErrIntOverflowParams
   222  				}
   223  				if iNdEx >= l {
   224  					return io.ErrUnexpectedEOF
   225  				}
   226  				b := dAtA[iNdEx]
   227  				iNdEx++
   228  				m.WasmHookQueryMaxGas |= uint64(b&0x7F) << shift
   229  				if b < 0x80 {
   230  					break
   231  				}
   232  			}
   233  		default:
   234  			iNdEx = preIndex
   235  			skippy, err := skipParams(dAtA[iNdEx:])
   236  			if err != nil {
   237  				return err
   238  			}
   239  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   240  				return ErrInvalidLengthParams
   241  			}
   242  			if (iNdEx + skippy) > l {
   243  				return io.ErrUnexpectedEOF
   244  			}
   245  			iNdEx += skippy
   246  		}
   247  	}
   248  
   249  	if iNdEx > l {
   250  		return io.ErrUnexpectedEOF
   251  	}
   252  	return nil
   253  }
   254  func skipParams(dAtA []byte) (n int, err error) {
   255  	l := len(dAtA)
   256  	iNdEx := 0
   257  	depth := 0
   258  	for iNdEx < l {
   259  		var wire uint64
   260  		for shift := uint(0); ; shift += 7 {
   261  			if shift >= 64 {
   262  				return 0, ErrIntOverflowParams
   263  			}
   264  			if iNdEx >= l {
   265  				return 0, io.ErrUnexpectedEOF
   266  			}
   267  			b := dAtA[iNdEx]
   268  			iNdEx++
   269  			wire |= (uint64(b) & 0x7F) << shift
   270  			if b < 0x80 {
   271  				break
   272  			}
   273  		}
   274  		wireType := int(wire & 0x7)
   275  		switch wireType {
   276  		case 0:
   277  			for shift := uint(0); ; shift += 7 {
   278  				if shift >= 64 {
   279  					return 0, ErrIntOverflowParams
   280  				}
   281  				if iNdEx >= l {
   282  					return 0, io.ErrUnexpectedEOF
   283  				}
   284  				iNdEx++
   285  				if dAtA[iNdEx-1] < 0x80 {
   286  					break
   287  				}
   288  			}
   289  		case 1:
   290  			iNdEx += 8
   291  		case 2:
   292  			var length int
   293  			for shift := uint(0); ; shift += 7 {
   294  				if shift >= 64 {
   295  					return 0, ErrIntOverflowParams
   296  				}
   297  				if iNdEx >= l {
   298  					return 0, io.ErrUnexpectedEOF
   299  				}
   300  				b := dAtA[iNdEx]
   301  				iNdEx++
   302  				length |= (int(b) & 0x7F) << shift
   303  				if b < 0x80 {
   304  					break
   305  				}
   306  			}
   307  			if length < 0 {
   308  				return 0, ErrInvalidLengthParams
   309  			}
   310  			iNdEx += length
   311  		case 3:
   312  			depth++
   313  		case 4:
   314  			if depth == 0 {
   315  				return 0, ErrUnexpectedEndOfGroupParams
   316  			}
   317  			depth--
   318  		case 5:
   319  			iNdEx += 4
   320  		default:
   321  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   322  		}
   323  		if iNdEx < 0 {
   324  			return 0, ErrInvalidLengthParams
   325  		}
   326  		if depth == 0 {
   327  			return iNdEx, nil
   328  		}
   329  	}
   330  	return 0, io.ErrUnexpectedEOF
   331  }
   332  
   333  var (
   334  	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
   335  	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
   336  	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
   337  )