diff --git a/api/layer/bridge/query.pulsar.go b/api/layer/bridge/query.pulsar.go index e3212637e..f5a4a85ed 100644 --- a/api/layer/bridge/query.pulsar.go +++ b/api/layer/bridge/query.pulsar.go @@ -7,7 +7,7 @@ import ( fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" - oracle "github.com/tellor-io/layer/api/layer/oracle" + _ "github.com/tellor-io/layer/api/layer/oracle" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" @@ -12724,957 +12724,6 @@ func (x *fastReflection_AggregateReporter) ProtoMethods() *protoiface.Methods { } } -var ( - md_QueryGetDataBeforeRequest protoreflect.MessageDescriptor - fd_QueryGetDataBeforeRequest_query_id protoreflect.FieldDescriptor - fd_QueryGetDataBeforeRequest_timestamp protoreflect.FieldDescriptor -) - -func init() { - file_layer_bridge_query_proto_init() - md_QueryGetDataBeforeRequest = File_layer_bridge_query_proto.Messages().ByName("QueryGetDataBeforeRequest") - fd_QueryGetDataBeforeRequest_query_id = md_QueryGetDataBeforeRequest.Fields().ByName("query_id") - fd_QueryGetDataBeforeRequest_timestamp = md_QueryGetDataBeforeRequest.Fields().ByName("timestamp") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetDataBeforeRequest)(nil) - -type fastReflection_QueryGetDataBeforeRequest QueryGetDataBeforeRequest - -func (x *QueryGetDataBeforeRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetDataBeforeRequest)(x) -} - -func (x *QueryGetDataBeforeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetDataBeforeRequest_messageType fastReflection_QueryGetDataBeforeRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetDataBeforeRequest_messageType{} - -type fastReflection_QueryGetDataBeforeRequest_messageType struct{} - -func (x fastReflection_QueryGetDataBeforeRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetDataBeforeRequest)(nil) -} -func (x fastReflection_QueryGetDataBeforeRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetDataBeforeRequest) -} -func (x fastReflection_QueryGetDataBeforeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetDataBeforeRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetDataBeforeRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetDataBeforeRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetDataBeforeRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetDataBeforeRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetDataBeforeRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetDataBeforeRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetDataBeforeRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetDataBeforeRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetDataBeforeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.QueryId != "" { - value := protoreflect.ValueOfString(x.QueryId) - if !f(fd_QueryGetDataBeforeRequest_query_id, value) { - return - } - } - if x.Timestamp != int64(0) { - value := protoreflect.ValueOfInt64(x.Timestamp) - if !f(fd_QueryGetDataBeforeRequest_timestamp, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetDataBeforeRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeRequest.query_id": - return x.QueryId != "" - case "layer.bridge.QueryGetDataBeforeRequest.timestamp": - return x.Timestamp != int64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeRequest")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeRequest.query_id": - x.QueryId = "" - case "layer.bridge.QueryGetDataBeforeRequest.timestamp": - x.Timestamp = int64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeRequest")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetDataBeforeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "layer.bridge.QueryGetDataBeforeRequest.query_id": - value := x.QueryId - return protoreflect.ValueOfString(value) - case "layer.bridge.QueryGetDataBeforeRequest.timestamp": - value := x.Timestamp - return protoreflect.ValueOfInt64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeRequest")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeRequest.query_id": - x.QueryId = value.Interface().(string) - case "layer.bridge.QueryGetDataBeforeRequest.timestamp": - x.Timestamp = value.Int() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeRequest")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeRequest.query_id": - panic(fmt.Errorf("field query_id of message layer.bridge.QueryGetDataBeforeRequest is not mutable")) - case "layer.bridge.QueryGetDataBeforeRequest.timestamp": - panic(fmt.Errorf("field timestamp of message layer.bridge.QueryGetDataBeforeRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeRequest")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetDataBeforeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeRequest.query_id": - return protoreflect.ValueOfString("") - case "layer.bridge.QueryGetDataBeforeRequest.timestamp": - return protoreflect.ValueOfInt64(int64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeRequest")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetDataBeforeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in layer.bridge.QueryGetDataBeforeRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetDataBeforeRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetDataBeforeRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetDataBeforeRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.QueryId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Timestamp != 0 { - n += 1 + runtime.Sov(uint64(x.Timestamp)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetDataBeforeRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Timestamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) - i-- - dAtA[i] = 0x10 - } - if len(x.QueryId) > 0 { - i -= len(x.QueryId) - copy(dAtA[i:], x.QueryId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetDataBeforeRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.QueryId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - x.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetDataBeforeResponse protoreflect.MessageDescriptor - fd_QueryGetDataBeforeResponse_aggregate protoreflect.FieldDescriptor - fd_QueryGetDataBeforeResponse_timestamp protoreflect.FieldDescriptor -) - -func init() { - file_layer_bridge_query_proto_init() - md_QueryGetDataBeforeResponse = File_layer_bridge_query_proto.Messages().ByName("QueryGetDataBeforeResponse") - fd_QueryGetDataBeforeResponse_aggregate = md_QueryGetDataBeforeResponse.Fields().ByName("aggregate") - fd_QueryGetDataBeforeResponse_timestamp = md_QueryGetDataBeforeResponse.Fields().ByName("timestamp") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetDataBeforeResponse)(nil) - -type fastReflection_QueryGetDataBeforeResponse QueryGetDataBeforeResponse - -func (x *QueryGetDataBeforeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetDataBeforeResponse)(x) -} - -func (x *QueryGetDataBeforeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetDataBeforeResponse_messageType fastReflection_QueryGetDataBeforeResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetDataBeforeResponse_messageType{} - -type fastReflection_QueryGetDataBeforeResponse_messageType struct{} - -func (x fastReflection_QueryGetDataBeforeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetDataBeforeResponse)(nil) -} -func (x fastReflection_QueryGetDataBeforeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetDataBeforeResponse) -} -func (x fastReflection_QueryGetDataBeforeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetDataBeforeResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetDataBeforeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetDataBeforeResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetDataBeforeResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetDataBeforeResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetDataBeforeResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetDataBeforeResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetDataBeforeResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetDataBeforeResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetDataBeforeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Aggregate != nil { - value := protoreflect.ValueOfMessage(x.Aggregate.ProtoReflect()) - if !f(fd_QueryGetDataBeforeResponse_aggregate, value) { - return - } - } - if x.Timestamp != uint64(0) { - value := protoreflect.ValueOfUint64(x.Timestamp) - if !f(fd_QueryGetDataBeforeResponse_timestamp, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetDataBeforeResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeResponse.aggregate": - return x.Aggregate != nil - case "layer.bridge.QueryGetDataBeforeResponse.timestamp": - return x.Timestamp != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeResponse")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeResponse.aggregate": - x.Aggregate = nil - case "layer.bridge.QueryGetDataBeforeResponse.timestamp": - x.Timestamp = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeResponse")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetDataBeforeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "layer.bridge.QueryGetDataBeforeResponse.aggregate": - value := x.Aggregate - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "layer.bridge.QueryGetDataBeforeResponse.timestamp": - value := x.Timestamp - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeResponse")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeResponse.aggregate": - x.Aggregate = value.Message().Interface().(*oracle.Aggregate) - case "layer.bridge.QueryGetDataBeforeResponse.timestamp": - x.Timestamp = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeResponse")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeResponse.aggregate": - if x.Aggregate == nil { - x.Aggregate = new(oracle.Aggregate) - } - return protoreflect.ValueOfMessage(x.Aggregate.ProtoReflect()) - case "layer.bridge.QueryGetDataBeforeResponse.timestamp": - panic(fmt.Errorf("field timestamp of message layer.bridge.QueryGetDataBeforeResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeResponse")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetDataBeforeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "layer.bridge.QueryGetDataBeforeResponse.aggregate": - m := new(oracle.Aggregate) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "layer.bridge.QueryGetDataBeforeResponse.timestamp": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.QueryGetDataBeforeResponse")) - } - panic(fmt.Errorf("message layer.bridge.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetDataBeforeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in layer.bridge.QueryGetDataBeforeResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetDataBeforeResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetDataBeforeResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetDataBeforeResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetDataBeforeResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Aggregate != nil { - l = options.Size(x.Aggregate) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Timestamp != 0 { - n += 1 + runtime.Sov(uint64(x.Timestamp)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetDataBeforeResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Timestamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) - i-- - dAtA[i] = 0x10 - } - if x.Aggregate != nil { - encoded, err := options.Marshal(x.Aggregate) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetDataBeforeResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Aggregate == nil { - x.Aggregate = &oracle.Aggregate{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Aggregate); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - x.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Timestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var ( md_QueryGetSnapshotsByReportRequest protoreflect.MessageDescriptor fd_QueryGetSnapshotsByReportRequest_query_id protoreflect.FieldDescriptor @@ -13697,7 +12746,7 @@ func (x *QueryGetSnapshotsByReportRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGetSnapshotsByReportRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[29] + mi := &file_layer_bridge_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14225,7 +13274,7 @@ func (x *QueryGetSnapshotsByReportResponse) ProtoReflect() protoreflect.Message } func (x *QueryGetSnapshotsByReportResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[30] + mi := &file_layer_bridge_query_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14659,7 +13708,7 @@ func (x *QueryGetAttestationDataBySnapshotRequest) ProtoReflect() protoreflect.M } func (x *QueryGetAttestationDataBySnapshotRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[31] + mi := &file_layer_bridge_query_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15093,7 +14142,7 @@ func (x *QueryGetAttestationDataBySnapshotResponse) ProtoReflect() protoreflect. } func (x *QueryGetAttestationDataBySnapshotResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[32] + mi := &file_layer_bridge_query_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15947,7 +14996,7 @@ func (x *QueryGetAttestationsBySnapshotRequest) ProtoReflect() protoreflect.Mess } func (x *QueryGetAttestationsBySnapshotRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[33] + mi := &file_layer_bridge_query_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16413,7 +15462,7 @@ func (x *QueryGetAttestationsBySnapshotResponse) ProtoReflect() protoreflect.Mes } func (x *QueryGetAttestationsBySnapshotResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_query_proto_msgTypes[34] + mi := &file_layer_bridge_query_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17937,92 +16986,6 @@ func (x *AggregateReporter) GetPower() int64 { return 0 } -type QueryGetDataBeforeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` - Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *QueryGetDataBeforeRequest) Reset() { - *x = QueryGetDataBeforeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetDataBeforeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetDataBeforeRequest) ProtoMessage() {} - -// Deprecated: Use QueryGetDataBeforeRequest.ProtoReflect.Descriptor instead. -func (*QueryGetDataBeforeRequest) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{27} -} - -func (x *QueryGetDataBeforeRequest) GetQueryId() string { - if x != nil { - return x.QueryId - } - return "" -} - -func (x *QueryGetDataBeforeRequest) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -type QueryGetDataBeforeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Aggregate *oracle.Aggregate `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *QueryGetDataBeforeResponse) Reset() { - *x = QueryGetDataBeforeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetDataBeforeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetDataBeforeResponse) ProtoMessage() {} - -// Deprecated: Use QueryGetDataBeforeResponse.ProtoReflect.Descriptor instead. -func (*QueryGetDataBeforeResponse) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{28} -} - -func (x *QueryGetDataBeforeResponse) GetAggregate() *oracle.Aggregate { - if x != nil { - return x.Aggregate - } - return nil -} - -func (x *QueryGetDataBeforeResponse) GetTimestamp() uint64 { - if x != nil { - return x.Timestamp - } - return 0 -} - type QueryGetSnapshotsByReportRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -18035,7 +16998,7 @@ type QueryGetSnapshotsByReportRequest struct { func (x *QueryGetSnapshotsByReportRequest) Reset() { *x = QueryGetSnapshotsByReportRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[29] + mi := &file_layer_bridge_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18049,7 +17012,7 @@ func (*QueryGetSnapshotsByReportRequest) ProtoMessage() {} // Deprecated: Use QueryGetSnapshotsByReportRequest.ProtoReflect.Descriptor instead. func (*QueryGetSnapshotsByReportRequest) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{29} + return file_layer_bridge_query_proto_rawDescGZIP(), []int{27} } func (x *QueryGetSnapshotsByReportRequest) GetQueryId() string { @@ -18077,7 +17040,7 @@ type QueryGetSnapshotsByReportResponse struct { func (x *QueryGetSnapshotsByReportResponse) Reset() { *x = QueryGetSnapshotsByReportResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[30] + mi := &file_layer_bridge_query_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18091,7 +17054,7 @@ func (*QueryGetSnapshotsByReportResponse) ProtoMessage() {} // Deprecated: Use QueryGetSnapshotsByReportResponse.ProtoReflect.Descriptor instead. func (*QueryGetSnapshotsByReportResponse) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{30} + return file_layer_bridge_query_proto_rawDescGZIP(), []int{28} } func (x *QueryGetSnapshotsByReportResponse) GetSnapshots() []string { @@ -18112,7 +17075,7 @@ type QueryGetAttestationDataBySnapshotRequest struct { func (x *QueryGetAttestationDataBySnapshotRequest) Reset() { *x = QueryGetAttestationDataBySnapshotRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[31] + mi := &file_layer_bridge_query_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18126,7 +17089,7 @@ func (*QueryGetAttestationDataBySnapshotRequest) ProtoMessage() {} // Deprecated: Use QueryGetAttestationDataBySnapshotRequest.ProtoReflect.Descriptor instead. func (*QueryGetAttestationDataBySnapshotRequest) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{31} + return file_layer_bridge_query_proto_rawDescGZIP(), []int{29} } func (x *QueryGetAttestationDataBySnapshotRequest) GetSnapshot() string { @@ -18154,7 +17117,7 @@ type QueryGetAttestationDataBySnapshotResponse struct { func (x *QueryGetAttestationDataBySnapshotResponse) Reset() { *x = QueryGetAttestationDataBySnapshotResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[32] + mi := &file_layer_bridge_query_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18168,7 +17131,7 @@ func (*QueryGetAttestationDataBySnapshotResponse) ProtoMessage() {} // Deprecated: Use QueryGetAttestationDataBySnapshotResponse.ProtoReflect.Descriptor instead. func (*QueryGetAttestationDataBySnapshotResponse) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{32} + return file_layer_bridge_query_proto_rawDescGZIP(), []int{30} } func (x *QueryGetAttestationDataBySnapshotResponse) GetQueryId() string { @@ -18238,7 +17201,7 @@ type QueryGetAttestationsBySnapshotRequest struct { func (x *QueryGetAttestationsBySnapshotRequest) Reset() { *x = QueryGetAttestationsBySnapshotRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[33] + mi := &file_layer_bridge_query_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18252,7 +17215,7 @@ func (*QueryGetAttestationsBySnapshotRequest) ProtoMessage() {} // Deprecated: Use QueryGetAttestationsBySnapshotRequest.ProtoReflect.Descriptor instead. func (*QueryGetAttestationsBySnapshotRequest) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{33} + return file_layer_bridge_query_proto_rawDescGZIP(), []int{31} } func (x *QueryGetAttestationsBySnapshotRequest) GetSnapshot() string { @@ -18273,7 +17236,7 @@ type QueryGetAttestationsBySnapshotResponse struct { func (x *QueryGetAttestationsBySnapshotResponse) Reset() { *x = QueryGetAttestationsBySnapshotResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_query_proto_msgTypes[34] + mi := &file_layer_bridge_query_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18287,7 +17250,7 @@ func (*QueryGetAttestationsBySnapshotResponse) ProtoMessage() {} // Deprecated: Use QueryGetAttestationsBySnapshotResponse.ProtoReflect.Descriptor instead. func (*QueryGetAttestationsBySnapshotResponse) Descriptor() ([]byte, []int) { - return file_layer_bridge_query_proto_rawDescGZIP(), []int{34} + return file_layer_bridge_query_proto_rawDescGZIP(), []int{32} } func (x *QueryGetAttestationsBySnapshotResponse) GetAttestations() []string { @@ -18302,13 +17265,13 @@ var File_layer_bridge_query_proto protoreflect.FileDescriptor var file_layer_bridge_query_proto_rawDesc = []byte{ 0x0a, 0x18, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, + 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, @@ -18493,228 +17456,205 @@ var file_layer_bridge_query_proto_rawDesc = []byte{ 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x54, 0x0a, 0x19, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, - 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, - 0x71, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, - 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, - 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x22, 0x5b, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, - 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, - 0x41, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x73, 0x22, 0x46, 0x0a, 0x28, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, + 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x5b, 0x0a, 0x20, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x41, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x22, 0x46, 0x0a, 0x28, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x22, 0xfb, 0x02, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xfb, 0x02, 0x0a, 0x29, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, - 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x50, 0x6f, - 0x77, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x14, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, - 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x72, 0x65, - 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x43, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x4c, 0x0a, - 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x74, 0x74, 0x65, 0x73, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0xe3, 0x12, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6b, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x20, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2a, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, - 0x76, 0x6d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x65, 0x76, 0x6d, 0x5f, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0xad, 0x01, 0x0a, 0x16, 0x47, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x3a, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x17, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x65, 0x78, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x43, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x22, 0x4c, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, + 0x0a, 0x0c, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x32, 0xc0, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6b, 0x0a, 0x06, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x45, 0x76, 0x6d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2a, + 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x74, 0x45, 0x76, 0x6d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, + 0x20, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, + 0x65, 0x74, 0x5f, 0x65, 0x76, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x73, 0x12, 0xad, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0xd2, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x36, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, - 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xcf, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x36, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x28, 0x12, 0x26, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, - 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0xd2, 0x01, 0x0a, 0x1c, 0x47, - 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x2e, 0x6c, 0x61, - 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x12, - 0xcf, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x42, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x37, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x12, 0x36, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x79, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x42, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x53, - 0x69, 0x67, 0x73, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, + 0x12, 0x36, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, + 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, + 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x53, 0x69, 0x67, 0x73, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x53, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, - 0x74, 0x53, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x53, 0x69, 0x67, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, - 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, - 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x73, 0x2f, 0x7b, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x1f, 0x47, 0x65, - 0x74, 0x45, 0x76, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, - 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x45, 0x76, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, - 0x65, 0x76, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x7d, 0x12, 0xb2, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, - 0x65, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, - 0x5f, 0x62, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2f, 0x7b, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x19, 0x47, 0x65, - 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x33, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, - 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, - 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0xa0, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, - 0x6f, 0x72, 0x65, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, - 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, - 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2e, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x7b, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, - 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x36, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, - 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, - 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, + 0x74, 0x53, 0x69, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x5f, + 0x73, 0x69, 0x67, 0x73, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, + 0x12, 0xe8, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x42, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x3a, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x76, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x42, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x65, 0x76, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xb2, 0x01, 0x0a, 0x14, + 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, + 0x65, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x73, + 0x65, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, + 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, + 0x5f, 0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, + 0x12, 0xc5, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, + 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x33, + 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x37, 0x12, 0x35, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x7b, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2f, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, + 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, + 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x36, 0x2e, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, + 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x37, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x7d, 0x12, 0xc5, 0x01, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x33, 0x2e, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, + 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, - 0x74, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2f, 0x7b, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x19, 0x47, 0x65, - 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x33, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x42, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x74, - 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x7d, 0x42, 0x9c, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0xa2, 0x02, 0x03, 0x4c, 0x42, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, - 0x72, 0x69, 0x64, 0x67, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, - 0x69, 0x64, 0x67, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0d, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x62, + 0x79, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x7d, 0x42, 0x9c, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0xa2, 0x02, 0x03, 0x4c, 0x42, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, + 0x79, 0x65, 0x72, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, + 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, + 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -18729,7 +17669,7 @@ func file_layer_bridge_query_proto_rawDescGZIP() []byte { return file_layer_bridge_query_proto_rawDescData } -var file_layer_bridge_query_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_layer_bridge_query_proto_msgTypes = make([]protoimpl.MessageInfo, 33) var file_layer_bridge_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: layer.bridge.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: layer.bridge.QueryParamsResponse @@ -18758,19 +17698,16 @@ var file_layer_bridge_query_proto_goTypes = []interface{}{ (*QueryGetCurrentAggregateReportResponse)(nil), // 24: layer.bridge.QueryGetCurrentAggregateReportResponse (*Aggregate)(nil), // 25: layer.bridge.Aggregate (*AggregateReporter)(nil), // 26: layer.bridge.AggregateReporter - (*QueryGetDataBeforeRequest)(nil), // 27: layer.bridge.QueryGetDataBeforeRequest - (*QueryGetDataBeforeResponse)(nil), // 28: layer.bridge.QueryGetDataBeforeResponse - (*QueryGetSnapshotsByReportRequest)(nil), // 29: layer.bridge.QueryGetSnapshotsByReportRequest - (*QueryGetSnapshotsByReportResponse)(nil), // 30: layer.bridge.QueryGetSnapshotsByReportResponse - (*QueryGetAttestationDataBySnapshotRequest)(nil), // 31: layer.bridge.QueryGetAttestationDataBySnapshotRequest - (*QueryGetAttestationDataBySnapshotResponse)(nil), // 32: layer.bridge.QueryGetAttestationDataBySnapshotResponse - (*QueryGetAttestationsBySnapshotRequest)(nil), // 33: layer.bridge.QueryGetAttestationsBySnapshotRequest - (*QueryGetAttestationsBySnapshotResponse)(nil), // 34: layer.bridge.QueryGetAttestationsBySnapshotResponse - (*Params)(nil), // 35: layer.bridge.Params - (*oracle.Aggregate)(nil), // 36: layer.oracle.Aggregate + (*QueryGetSnapshotsByReportRequest)(nil), // 27: layer.bridge.QueryGetSnapshotsByReportRequest + (*QueryGetSnapshotsByReportResponse)(nil), // 28: layer.bridge.QueryGetSnapshotsByReportResponse + (*QueryGetAttestationDataBySnapshotRequest)(nil), // 29: layer.bridge.QueryGetAttestationDataBySnapshotRequest + (*QueryGetAttestationDataBySnapshotResponse)(nil), // 30: layer.bridge.QueryGetAttestationDataBySnapshotResponse + (*QueryGetAttestationsBySnapshotRequest)(nil), // 31: layer.bridge.QueryGetAttestationsBySnapshotRequest + (*QueryGetAttestationsBySnapshotResponse)(nil), // 32: layer.bridge.QueryGetAttestationsBySnapshotResponse + (*Params)(nil), // 33: layer.bridge.Params } var file_layer_bridge_query_proto_depIdxs = []int32{ - 35, // 0: layer.bridge.QueryParamsResponse.params:type_name -> layer.bridge.Params + 33, // 0: layer.bridge.QueryParamsResponse.params:type_name -> layer.bridge.Params 6, // 1: layer.bridge.QueryGetEvmValidatorsResponse.bridge_validator_set:type_name -> layer.bridge.QueryBridgeValidator 6, // 2: layer.bridge.QueryBridgeValidatorSet.bridge_validator_set:type_name -> layer.bridge.QueryBridgeValidator 8, // 3: layer.bridge.BridgeValidatorSet.bridge_validator_set:type_name -> layer.bridge.BridgeValidator @@ -18778,38 +17715,35 @@ var file_layer_bridge_query_proto_depIdxs = []int32{ 6, // 5: layer.bridge.QueryGetValsetByTimestampResponse.bridge_validator_set:type_name -> layer.bridge.QueryBridgeValidator 25, // 6: layer.bridge.QueryGetCurrentAggregateReportResponse.aggregate:type_name -> layer.bridge.Aggregate 26, // 7: layer.bridge.Aggregate.reporters:type_name -> layer.bridge.AggregateReporter - 36, // 8: layer.bridge.QueryGetDataBeforeResponse.aggregate:type_name -> layer.oracle.Aggregate - 0, // 9: layer.bridge.Query.Params:input_type -> layer.bridge.QueryParamsRequest - 2, // 10: layer.bridge.Query.GetEvmValidators:input_type -> layer.bridge.QueryGetEvmValidatorsRequest - 4, // 11: layer.bridge.Query.GetValidatorCheckpoint:input_type -> layer.bridge.QueryGetValidatorCheckpointRequest - 13, // 12: layer.bridge.Query.GetValidatorCheckpointParams:input_type -> layer.bridge.QueryGetValidatorCheckpointParamsRequest - 15, // 13: layer.bridge.Query.GetValidatorTimestampByIndex:input_type -> layer.bridge.QueryGetValidatorTimestampByIndexRequest - 17, // 14: layer.bridge.Query.GetValsetSigs:input_type -> layer.bridge.QueryGetValsetSigsRequest - 19, // 15: layer.bridge.Query.GetEvmAddressByValidatorAddress:input_type -> layer.bridge.QueryGetEvmAddressByValidatorAddressRequest - 21, // 16: layer.bridge.Query.GetValsetByTimestamp:input_type -> layer.bridge.QueryGetValsetByTimestampRequest - 23, // 17: layer.bridge.Query.GetCurrentAggregateReport:input_type -> layer.bridge.QueryGetCurrentAggregateReportRequest - 27, // 18: layer.bridge.Query.GetDataBefore:input_type -> layer.bridge.QueryGetDataBeforeRequest - 29, // 19: layer.bridge.Query.GetSnapshotsByReport:input_type -> layer.bridge.QueryGetSnapshotsByReportRequest - 31, // 20: layer.bridge.Query.GetAttestationDataBySnapshot:input_type -> layer.bridge.QueryGetAttestationDataBySnapshotRequest - 33, // 21: layer.bridge.Query.GetAttestationsBySnapshot:input_type -> layer.bridge.QueryGetAttestationsBySnapshotRequest - 1, // 22: layer.bridge.Query.Params:output_type -> layer.bridge.QueryParamsResponse - 3, // 23: layer.bridge.Query.GetEvmValidators:output_type -> layer.bridge.QueryGetEvmValidatorsResponse - 5, // 24: layer.bridge.Query.GetValidatorCheckpoint:output_type -> layer.bridge.QueryGetValidatorCheckpointResponse - 14, // 25: layer.bridge.Query.GetValidatorCheckpointParams:output_type -> layer.bridge.QueryGetValidatorCheckpointParamsResponse - 16, // 26: layer.bridge.Query.GetValidatorTimestampByIndex:output_type -> layer.bridge.QueryGetValidatorTimestampByIndexResponse - 18, // 27: layer.bridge.Query.GetValsetSigs:output_type -> layer.bridge.QueryGetValsetSigsResponse - 20, // 28: layer.bridge.Query.GetEvmAddressByValidatorAddress:output_type -> layer.bridge.QueryGetEvmAddressByValidatorAddressResponse - 22, // 29: layer.bridge.Query.GetValsetByTimestamp:output_type -> layer.bridge.QueryGetValsetByTimestampResponse - 24, // 30: layer.bridge.Query.GetCurrentAggregateReport:output_type -> layer.bridge.QueryGetCurrentAggregateReportResponse - 28, // 31: layer.bridge.Query.GetDataBefore:output_type -> layer.bridge.QueryGetDataBeforeResponse - 30, // 32: layer.bridge.Query.GetSnapshotsByReport:output_type -> layer.bridge.QueryGetSnapshotsByReportResponse - 32, // 33: layer.bridge.Query.GetAttestationDataBySnapshot:output_type -> layer.bridge.QueryGetAttestationDataBySnapshotResponse - 34, // 34: layer.bridge.Query.GetAttestationsBySnapshot:output_type -> layer.bridge.QueryGetAttestationsBySnapshotResponse - 22, // [22:35] is the sub-list for method output_type - 9, // [9:22] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 0, // 8: layer.bridge.Query.Params:input_type -> layer.bridge.QueryParamsRequest + 2, // 9: layer.bridge.Query.GetEvmValidators:input_type -> layer.bridge.QueryGetEvmValidatorsRequest + 4, // 10: layer.bridge.Query.GetValidatorCheckpoint:input_type -> layer.bridge.QueryGetValidatorCheckpointRequest + 13, // 11: layer.bridge.Query.GetValidatorCheckpointParams:input_type -> layer.bridge.QueryGetValidatorCheckpointParamsRequest + 15, // 12: layer.bridge.Query.GetValidatorTimestampByIndex:input_type -> layer.bridge.QueryGetValidatorTimestampByIndexRequest + 17, // 13: layer.bridge.Query.GetValsetSigs:input_type -> layer.bridge.QueryGetValsetSigsRequest + 19, // 14: layer.bridge.Query.GetEvmAddressByValidatorAddress:input_type -> layer.bridge.QueryGetEvmAddressByValidatorAddressRequest + 21, // 15: layer.bridge.Query.GetValsetByTimestamp:input_type -> layer.bridge.QueryGetValsetByTimestampRequest + 23, // 16: layer.bridge.Query.GetCurrentAggregateReport:input_type -> layer.bridge.QueryGetCurrentAggregateReportRequest + 27, // 17: layer.bridge.Query.GetSnapshotsByReport:input_type -> layer.bridge.QueryGetSnapshotsByReportRequest + 29, // 18: layer.bridge.Query.GetAttestationDataBySnapshot:input_type -> layer.bridge.QueryGetAttestationDataBySnapshotRequest + 31, // 19: layer.bridge.Query.GetAttestationsBySnapshot:input_type -> layer.bridge.QueryGetAttestationsBySnapshotRequest + 1, // 20: layer.bridge.Query.Params:output_type -> layer.bridge.QueryParamsResponse + 3, // 21: layer.bridge.Query.GetEvmValidators:output_type -> layer.bridge.QueryGetEvmValidatorsResponse + 5, // 22: layer.bridge.Query.GetValidatorCheckpoint:output_type -> layer.bridge.QueryGetValidatorCheckpointResponse + 14, // 23: layer.bridge.Query.GetValidatorCheckpointParams:output_type -> layer.bridge.QueryGetValidatorCheckpointParamsResponse + 16, // 24: layer.bridge.Query.GetValidatorTimestampByIndex:output_type -> layer.bridge.QueryGetValidatorTimestampByIndexResponse + 18, // 25: layer.bridge.Query.GetValsetSigs:output_type -> layer.bridge.QueryGetValsetSigsResponse + 20, // 26: layer.bridge.Query.GetEvmAddressByValidatorAddress:output_type -> layer.bridge.QueryGetEvmAddressByValidatorAddressResponse + 22, // 27: layer.bridge.Query.GetValsetByTimestamp:output_type -> layer.bridge.QueryGetValsetByTimestampResponse + 24, // 28: layer.bridge.Query.GetCurrentAggregateReport:output_type -> layer.bridge.QueryGetCurrentAggregateReportResponse + 28, // 29: layer.bridge.Query.GetSnapshotsByReport:output_type -> layer.bridge.QueryGetSnapshotsByReportResponse + 30, // 30: layer.bridge.Query.GetAttestationDataBySnapshot:output_type -> layer.bridge.QueryGetAttestationDataBySnapshotResponse + 32, // 31: layer.bridge.Query.GetAttestationsBySnapshot:output_type -> layer.bridge.QueryGetAttestationsBySnapshotResponse + 20, // [20:32] is the sub-list for method output_type + 8, // [8:20] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_layer_bridge_query_proto_init() } @@ -19144,30 +18078,6 @@ func file_layer_bridge_query_proto_init() { } } file_layer_bridge_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetDataBeforeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer_bridge_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetDataBeforeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer_bridge_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetSnapshotsByReportRequest); i { case 0: return &v.state @@ -19179,7 +18089,7 @@ func file_layer_bridge_query_proto_init() { return nil } } - file_layer_bridge_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_layer_bridge_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetSnapshotsByReportResponse); i { case 0: return &v.state @@ -19191,7 +18101,7 @@ func file_layer_bridge_query_proto_init() { return nil } } - file_layer_bridge_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_layer_bridge_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetAttestationDataBySnapshotRequest); i { case 0: return &v.state @@ -19203,7 +18113,7 @@ func file_layer_bridge_query_proto_init() { return nil } } - file_layer_bridge_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_layer_bridge_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetAttestationDataBySnapshotResponse); i { case 0: return &v.state @@ -19215,7 +18125,7 @@ func file_layer_bridge_query_proto_init() { return nil } } - file_layer_bridge_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_layer_bridge_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetAttestationsBySnapshotRequest); i { case 0: return &v.state @@ -19227,7 +18137,7 @@ func file_layer_bridge_query_proto_init() { return nil } } - file_layer_bridge_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_layer_bridge_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetAttestationsBySnapshotResponse); i { case 0: return &v.state @@ -19246,7 +18156,7 @@ func file_layer_bridge_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_layer_bridge_query_proto_rawDesc, NumEnums: 0, - NumMessages: 35, + NumMessages: 33, NumExtensions: 0, NumServices: 1, }, diff --git a/api/layer/bridge/query_grpc.pb.go b/api/layer/bridge/query_grpc.pb.go index 4707ce3b7..84bfe42a0 100644 --- a/api/layer/bridge/query_grpc.pb.go +++ b/api/layer/bridge/query_grpc.pb.go @@ -29,7 +29,6 @@ type QueryClient interface { GetEvmAddressByValidatorAddress(ctx context.Context, in *QueryGetEvmAddressByValidatorAddressRequest, opts ...grpc.CallOption) (*QueryGetEvmAddressByValidatorAddressResponse, error) GetValsetByTimestamp(ctx context.Context, in *QueryGetValsetByTimestampRequest, opts ...grpc.CallOption) (*QueryGetValsetByTimestampResponse, error) GetCurrentAggregateReport(ctx context.Context, in *QueryGetCurrentAggregateReportRequest, opts ...grpc.CallOption) (*QueryGetCurrentAggregateReportResponse, error) - GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) GetSnapshotsByReport(ctx context.Context, in *QueryGetSnapshotsByReportRequest, opts ...grpc.CallOption) (*QueryGetSnapshotsByReportResponse, error) GetAttestationDataBySnapshot(ctx context.Context, in *QueryGetAttestationDataBySnapshotRequest, opts ...grpc.CallOption) (*QueryGetAttestationDataBySnapshotResponse, error) GetAttestationsBySnapshot(ctx context.Context, in *QueryGetAttestationsBySnapshotRequest, opts ...grpc.CallOption) (*QueryGetAttestationsBySnapshotResponse, error) @@ -124,15 +123,6 @@ func (c *queryClient) GetCurrentAggregateReport(ctx context.Context, in *QueryGe return out, nil } -func (c *queryClient) GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) { - out := new(QueryGetDataBeforeResponse) - err := c.cc.Invoke(ctx, "/layer.bridge.Query/GetDataBefore", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) GetSnapshotsByReport(ctx context.Context, in *QueryGetSnapshotsByReportRequest, opts ...grpc.CallOption) (*QueryGetSnapshotsByReportResponse, error) { out := new(QueryGetSnapshotsByReportResponse) err := c.cc.Invoke(ctx, "/layer.bridge.Query/GetSnapshotsByReport", in, out, opts...) @@ -175,7 +165,6 @@ type QueryServer interface { GetEvmAddressByValidatorAddress(context.Context, *QueryGetEvmAddressByValidatorAddressRequest) (*QueryGetEvmAddressByValidatorAddressResponse, error) GetValsetByTimestamp(context.Context, *QueryGetValsetByTimestampRequest) (*QueryGetValsetByTimestampResponse, error) GetCurrentAggregateReport(context.Context, *QueryGetCurrentAggregateReportRequest) (*QueryGetCurrentAggregateReportResponse, error) - GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) GetSnapshotsByReport(context.Context, *QueryGetSnapshotsByReportRequest) (*QueryGetSnapshotsByReportResponse, error) GetAttestationDataBySnapshot(context.Context, *QueryGetAttestationDataBySnapshotRequest) (*QueryGetAttestationDataBySnapshotResponse, error) GetAttestationsBySnapshot(context.Context, *QueryGetAttestationsBySnapshotRequest) (*QueryGetAttestationsBySnapshotResponse, error) @@ -213,9 +202,6 @@ func (UnimplementedQueryServer) GetValsetByTimestamp(context.Context, *QueryGetV func (UnimplementedQueryServer) GetCurrentAggregateReport(context.Context, *QueryGetCurrentAggregateReportRequest) (*QueryGetCurrentAggregateReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCurrentAggregateReport not implemented") } -func (UnimplementedQueryServer) GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDataBefore not implemented") -} func (UnimplementedQueryServer) GetSnapshotsByReport(context.Context, *QueryGetSnapshotsByReportRequest) (*QueryGetSnapshotsByReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSnapshotsByReport not implemented") } @@ -400,24 +386,6 @@ func _Query_GetCurrentAggregateReport_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _Query_GetDataBefore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetDataBeforeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetDataBefore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/layer.bridge.Query/GetDataBefore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetDataBefore(ctx, req.(*QueryGetDataBeforeRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GetSnapshotsByReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetSnapshotsByReportRequest) if err := dec(in); err != nil { @@ -515,10 +483,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetCurrentAggregateReport", Handler: _Query_GetCurrentAggregateReport_Handler, }, - { - MethodName: "GetDataBefore", - Handler: _Query_GetDataBefore_Handler, - }, { MethodName: "GetSnapshotsByReport", Handler: _Query_GetSnapshotsByReport_Handler, diff --git a/api/layer/bridge/tx.pulsar.go b/api/layer/bridge/tx.pulsar.go index 1a777f4e8..3a2b5d0e0 100644 --- a/api/layer/bridge/tx.pulsar.go +++ b/api/layer/bridge/tx.pulsar.go @@ -2959,10 +2959,10 @@ var File_layer_bridge_tx_proto protoreflect.FileDescriptor var file_layer_bridge_tx_proto_rawDesc = []byte{ 0x0a, 0x15, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, - 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, - 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, + 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x79, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, @@ -2994,7 +2994,7 @@ var file_layer_bridge_tx_proto_rawDesc = []byte{ 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa9, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x69, 0x0a, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb0, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x69, 0x0a, 0x13, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, @@ -3013,17 +3013,17 @@ var file_layer_bridge_tx_proto_rawDesc = []byte{ 0x73, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x99, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, - 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0xa2, 0x02, - 0x03, 0x4c, 0x42, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x72, 0x69, - 0x64, 0x67, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, - 0x67, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, - 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x99, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, + 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x42, 0x07, 0x54, + 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0xa2, 0x02, 0x03, 0x4c, 0x42, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, + 0x79, 0x65, 0x72, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, + 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, + 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/layer/oracle/query.pulsar.go b/api/layer/oracle/query.pulsar.go index 1fbc93ea1..384e27857 100644 --- a/api/layer/oracle/query.pulsar.go +++ b/api/layer/oracle/query.pulsar.go @@ -3,8 +3,8 @@ package oracle import ( _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/base/query/v1beta1" - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + v1beta11 "cosmossdk.io/api/cosmos/base/v1beta1" fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -809,26 +809,79 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } } +var _ protoreflect.List = (*_QueryMicroReportsResponse_1_list)(nil) + +type _QueryMicroReportsResponse_1_list struct { + list *[]*MicroReport +} + +func (x *_QueryMicroReportsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryMicroReportsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryMicroReportsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MicroReport) + (*x.list)[i] = concreteValue +} + +func (x *_QueryMicroReportsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*MicroReport) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryMicroReportsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(MicroReport) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryMicroReportsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryMicroReportsResponse_1_list) NewElement() protoreflect.Value { + v := new(MicroReport) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryMicroReportsResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryGetReportsbyQidRequest protoreflect.MessageDescriptor - fd_QueryGetReportsbyQidRequest_query_id protoreflect.FieldDescriptor + md_QueryMicroReportsResponse protoreflect.MessageDescriptor + fd_QueryMicroReportsResponse_microReports protoreflect.FieldDescriptor + fd_QueryMicroReportsResponse_pagination protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetReportsbyQidRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyQidRequest") - fd_QueryGetReportsbyQidRequest_query_id = md_QueryGetReportsbyQidRequest.Fields().ByName("query_id") + md_QueryMicroReportsResponse = File_layer_oracle_query_proto.Messages().ByName("QueryMicroReportsResponse") + fd_QueryMicroReportsResponse_microReports = md_QueryMicroReportsResponse.Fields().ByName("microReports") + fd_QueryMicroReportsResponse_pagination = md_QueryMicroReportsResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyQidRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryMicroReportsResponse)(nil) -type fastReflection_QueryGetReportsbyQidRequest QueryGetReportsbyQidRequest +type fastReflection_QueryMicroReportsResponse QueryMicroReportsResponse -func (x *QueryGetReportsbyQidRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyQidRequest)(x) +func (x *QueryMicroReportsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryMicroReportsResponse)(x) } -func (x *QueryGetReportsbyQidRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryMicroReportsResponse) slowProtoReflect() protoreflect.Message { mi := &file_layer_oracle_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -840,43 +893,43 @@ func (x *QueryGetReportsbyQidRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetReportsbyQidRequest_messageType fastReflection_QueryGetReportsbyQidRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetReportsbyQidRequest_messageType{} +var _fastReflection_QueryMicroReportsResponse_messageType fastReflection_QueryMicroReportsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryMicroReportsResponse_messageType{} -type fastReflection_QueryGetReportsbyQidRequest_messageType struct{} +type fastReflection_QueryMicroReportsResponse_messageType struct{} -func (x fastReflection_QueryGetReportsbyQidRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyQidRequest)(nil) +func (x fastReflection_QueryMicroReportsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryMicroReportsResponse)(nil) } -func (x fastReflection_QueryGetReportsbyQidRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyQidRequest) +func (x fastReflection_QueryMicroReportsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryMicroReportsResponse) } -func (x fastReflection_QueryGetReportsbyQidRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyQidRequest +func (x fastReflection_QueryMicroReportsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryMicroReportsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetReportsbyQidRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyQidRequest +func (x *fastReflection_QueryMicroReportsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryMicroReportsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetReportsbyQidRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetReportsbyQidRequest_messageType +func (x *fastReflection_QueryMicroReportsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryMicroReportsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetReportsbyQidRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyQidRequest) +func (x *fastReflection_QueryMicroReportsResponse) New() protoreflect.Message { + return new(fastReflection_QueryMicroReportsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetReportsbyQidRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetReportsbyQidRequest)(x) +func (x *fastReflection_QueryMicroReportsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryMicroReportsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -884,10 +937,16 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetReportsbyQidRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.QueryId != "" { - value := protoreflect.ValueOfString(x.QueryId) - if !f(fd_QueryGetReportsbyQidRequest_query_id, value) { +func (x *fastReflection_QueryMicroReportsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.MicroReports) != 0 { + value := protoreflect.ValueOfList(&_QueryMicroReportsResponse_1_list{list: &x.MicroReports}) + if !f(fd_QueryMicroReportsResponse_microReports, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryMicroReportsResponse_pagination, value) { return } } @@ -904,15 +963,17 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetReportsbyQidRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryMicroReportsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidRequest.query_id": - return x.QueryId != "" + case "layer.oracle.QueryMicroReportsResponse.microReports": + return len(x.MicroReports) != 0 + case "layer.oracle.QueryMicroReportsResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryMicroReportsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryMicroReportsResponse does not contain field %s", fd.FullName())) } } @@ -922,15 +983,17 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryMicroReportsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidRequest.query_id": - x.QueryId = "" + case "layer.oracle.QueryMicroReportsResponse.microReports": + x.MicroReports = nil + case "layer.oracle.QueryMicroReportsResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryMicroReportsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryMicroReportsResponse does not contain field %s", fd.FullName())) } } @@ -940,16 +1003,22 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetReportsbyQidRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMicroReportsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetReportsbyQidRequest.query_id": - value := x.QueryId - return protoreflect.ValueOfString(value) + case "layer.oracle.QueryMicroReportsResponse.microReports": + if len(x.MicroReports) == 0 { + return protoreflect.ValueOfList(&_QueryMicroReportsResponse_1_list{}) + } + listValue := &_QueryMicroReportsResponse_1_list{list: &x.MicroReports} + return protoreflect.ValueOfList(listValue) + case "layer.oracle.QueryMicroReportsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryMicroReportsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryMicroReportsResponse does not contain field %s", descriptor.FullName())) } } @@ -963,15 +1032,19 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryMicroReportsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidRequest.query_id": - x.QueryId = value.Interface().(string) + case "layer.oracle.QueryMicroReportsResponse.microReports": + lv := value.List() + clv := lv.(*_QueryMicroReportsResponse_1_list) + x.MicroReports = *clv.list + case "layer.oracle.QueryMicroReportsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryMicroReportsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryMicroReportsResponse does not contain field %s", fd.FullName())) } } @@ -985,40 +1058,53 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMicroReportsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidRequest.query_id": - panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetReportsbyQidRequest is not mutable")) + case "layer.oracle.QueryMicroReportsResponse.microReports": + if x.MicroReports == nil { + x.MicroReports = []*MicroReport{} + } + value := &_QueryMicroReportsResponse_1_list{list: &x.MicroReports} + return protoreflect.ValueOfList(value) + case "layer.oracle.QueryMicroReportsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryMicroReportsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryMicroReportsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetReportsbyQidRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMicroReportsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidRequest.query_id": - return protoreflect.ValueOfString("") + case "layer.oracle.QueryMicroReportsResponse.microReports": + list := []*MicroReport{} + return protoreflect.ValueOfList(&_QueryMicroReportsResponse_1_list{list: &list}) + case "layer.oracle.QueryMicroReportsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryMicroReportsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryMicroReportsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetReportsbyQidRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryMicroReportsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetReportsbyQidRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryMicroReportsResponse", d.FullName())) } panic("unreachable") } @@ -1026,7 +1112,7 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetReportsbyQidRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryMicroReportsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1037,7 +1123,7 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryMicroReportsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1049,7 +1135,7 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetReportsbyQidRequest) IsValid() bool { +func (x *fastReflection_QueryMicroReportsResponse) IsValid() bool { return x != nil } @@ -1059,9 +1145,9 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryMicroReportsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetReportsbyQidRequest) + x := input.Message.Interface().(*QueryMicroReportsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1073,8 +1159,14 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. var n int var l int _ = l - l = len(x.QueryId) - if l > 0 { + if len(x.MicroReports) > 0 { + for _, e := range x.MicroReports { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -1087,7 +1179,7 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyQidRequest) + x := input.Message.Interface().(*QueryMicroReportsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1106,12 +1198,35 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.QueryId) > 0 { - i -= len(x.QueryId) - copy(dAtA[i:], x.QueryId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.MicroReports) > 0 { + for iNdEx := len(x.MicroReports) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.MicroReports[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -1124,7 +1239,7 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyQidRequest) + x := input.Message.Interface().(*QueryMicroReportsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1156,17 +1271,17 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyQidRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMicroReportsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyQidRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMicroReportsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MicroReports", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1176,23 +1291,61 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.QueryId = string(dAtA[iNdEx:postIndex]) + x.MicroReports = append(x.MicroReports, &MicroReport{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MicroReports[len(x.MicroReports)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -1230,25 +1383,27 @@ func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface. } var ( - md_QueryGetReportsbyQidResponse protoreflect.MessageDescriptor - fd_QueryGetReportsbyQidResponse_reports protoreflect.FieldDescriptor + md_QueryGetReportsbyQidRequest protoreflect.MessageDescriptor + fd_QueryGetReportsbyQidRequest_query_id protoreflect.FieldDescriptor + fd_QueryGetReportsbyQidRequest_pagination protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetReportsbyQidResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyQidResponse") - fd_QueryGetReportsbyQidResponse_reports = md_QueryGetReportsbyQidResponse.Fields().ByName("reports") + md_QueryGetReportsbyQidRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyQidRequest") + fd_QueryGetReportsbyQidRequest_query_id = md_QueryGetReportsbyQidRequest.Fields().ByName("query_id") + fd_QueryGetReportsbyQidRequest_pagination = md_QueryGetReportsbyQidRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyQidResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyQidRequest)(nil) -type fastReflection_QueryGetReportsbyQidResponse QueryGetReportsbyQidResponse +type fastReflection_QueryGetReportsbyQidRequest QueryGetReportsbyQidRequest -func (x *QueryGetReportsbyQidResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyQidResponse)(x) +func (x *QueryGetReportsbyQidRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetReportsbyQidRequest)(x) } -func (x *QueryGetReportsbyQidResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGetReportsbyQidRequest) slowProtoReflect() protoreflect.Message { mi := &file_layer_oracle_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1260,43 +1415,43 @@ func (x *QueryGetReportsbyQidResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetReportsbyQidResponse_messageType fastReflection_QueryGetReportsbyQidResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetReportsbyQidResponse_messageType{} +var _fastReflection_QueryGetReportsbyQidRequest_messageType fastReflection_QueryGetReportsbyQidRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetReportsbyQidRequest_messageType{} -type fastReflection_QueryGetReportsbyQidResponse_messageType struct{} +type fastReflection_QueryGetReportsbyQidRequest_messageType struct{} -func (x fastReflection_QueryGetReportsbyQidResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyQidResponse)(nil) +func (x fastReflection_QueryGetReportsbyQidRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetReportsbyQidRequest)(nil) } -func (x fastReflection_QueryGetReportsbyQidResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyQidResponse) +func (x fastReflection_QueryGetReportsbyQidRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetReportsbyQidRequest) } -func (x fastReflection_QueryGetReportsbyQidResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyQidResponse +func (x fastReflection_QueryGetReportsbyQidRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetReportsbyQidRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetReportsbyQidResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyQidResponse +func (x *fastReflection_QueryGetReportsbyQidRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetReportsbyQidRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetReportsbyQidResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetReportsbyQidResponse_messageType +func (x *fastReflection_QueryGetReportsbyQidRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetReportsbyQidRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetReportsbyQidResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyQidResponse) +func (x *fastReflection_QueryGetReportsbyQidRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetReportsbyQidRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetReportsbyQidResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetReportsbyQidResponse)(x) +func (x *fastReflection_QueryGetReportsbyQidRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetReportsbyQidRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -1304,10 +1459,16 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetReportsbyQidResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Reports != nil { - value := protoreflect.ValueOfMessage(x.Reports.ProtoReflect()) - if !f(fd_QueryGetReportsbyQidResponse_reports, value) { +func (x *fastReflection_QueryGetReportsbyQidRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.QueryId != "" { + value := protoreflect.ValueOfString(x.QueryId) + if !f(fd_QueryGetReportsbyQidRequest_query_id, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGetReportsbyQidRequest_pagination, value) { return } } @@ -1324,15 +1485,17 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetReportsbyQidResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetReportsbyQidRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidResponse.reports": - return x.Reports != nil + case "layer.oracle.QueryGetReportsbyQidRequest.query_id": + return x.QueryId != "" + case "layer.oracle.QueryGetReportsbyQidRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) } } @@ -1342,15 +1505,17 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetReportsbyQidRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidResponse.reports": - x.Reports = nil + case "layer.oracle.QueryGetReportsbyQidRequest.query_id": + x.QueryId = "" + case "layer.oracle.QueryGetReportsbyQidRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) } } @@ -1360,16 +1525,19 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetReportsbyQidResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetReportsbyQidRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetReportsbyQidResponse.reports": - value := x.Reports + case "layer.oracle.QueryGetReportsbyQidRequest.query_id": + value := x.QueryId + return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetReportsbyQidRequest.pagination": + value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", descriptor.FullName())) } } @@ -1383,15 +1551,17 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetReportsbyQidRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidResponse.reports": - x.Reports = value.Message().Interface().(*Reports) + case "layer.oracle.QueryGetReportsbyQidRequest.query_id": + x.QueryId = value.Interface().(string) + case "layer.oracle.QueryGetReportsbyQidRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) } } @@ -1405,44 +1575,48 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetReportsbyQidRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidResponse.reports": - if x.Reports == nil { - x.Reports = new(Reports) + case "layer.oracle.QueryGetReportsbyQidRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) } - return protoreflect.ValueOfMessage(x.Reports.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "layer.oracle.QueryGetReportsbyQidRequest.query_id": + panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetReportsbyQidRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetReportsbyQidResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetReportsbyQidRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyQidResponse.reports": - m := new(Reports) + case "layer.oracle.QueryGetReportsbyQidRequest.query_id": + return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetReportsbyQidRequest.pagination": + m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyQidRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetReportsbyQidResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetReportsbyQidRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetReportsbyQidResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetReportsbyQidRequest", d.FullName())) } panic("unreachable") } @@ -1450,7 +1624,7 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetReportsbyQidResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetReportsbyQidRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1461,7 +1635,7 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyQidResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetReportsbyQidRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1473,7 +1647,7 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetReportsbyQidResponse) IsValid() bool { +func (x *fastReflection_QueryGetReportsbyQidRequest) IsValid() bool { return x != nil } @@ -1483,9 +1657,9 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetReportsbyQidRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetReportsbyQidResponse) + x := input.Message.Interface().(*QueryGetReportsbyQidRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1497,8 +1671,12 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface var n int var l int _ = l - if x.Reports != nil { - l = options.Size(x.Reports) + l = len(x.QueryId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -1511,7 +1689,7 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyQidResponse) + x := input.Message.Interface().(*QueryGetReportsbyQidRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1530,8 +1708,8 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Reports != nil { - encoded, err := options.Marshal(x.Reports) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1542,6 +1720,13 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x12 + } + if len(x.QueryId) > 0 { + i -= len(x.QueryId) + copy(dAtA[i:], x.QueryId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) + i-- dAtA[i] = 0xa } if input.Buf != nil { @@ -1555,7 +1740,7 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyQidResponse) + x := input.Message.Interface().(*QueryGetReportsbyQidRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1587,15 +1772,47 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyQidResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyQidRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyQidResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyQidRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reports", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1622,10 +1839,10 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Reports == nil { - x.Reports = &Reports{} + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Reports); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1665,14 +1882,16 @@ func (x *fastReflection_QueryGetReportsbyQidResponse) ProtoMethods() *protoiface } var ( - md_QueryGetReportsbyReporterRequest protoreflect.MessageDescriptor - fd_QueryGetReportsbyReporterRequest_reporter protoreflect.FieldDescriptor + md_QueryGetReportsbyReporterRequest protoreflect.MessageDescriptor + fd_QueryGetReportsbyReporterRequest_reporter protoreflect.FieldDescriptor + fd_QueryGetReportsbyReporterRequest_pagination protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() md_QueryGetReportsbyReporterRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyReporterRequest") fd_QueryGetReportsbyReporterRequest_reporter = md_QueryGetReportsbyReporterRequest.Fields().ByName("reporter") + fd_QueryGetReportsbyReporterRequest_pagination = md_QueryGetReportsbyReporterRequest.Fields().ByName("pagination") } var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyReporterRequest)(nil) @@ -1746,6 +1965,12 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) Range(f func(protorefl return } } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGetReportsbyReporterRequest_pagination, value) { + return + } + } } // Has reports whether a field is populated. @@ -1763,6 +1988,8 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) Has(fd protoreflect.Fi switch fd.FullName() { case "layer.oracle.QueryGetReportsbyReporterRequest.reporter": return x.Reporter != "" + case "layer.oracle.QueryGetReportsbyReporterRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterRequest")) @@ -1781,6 +2008,8 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) Clear(fd protoreflect. switch fd.FullName() { case "layer.oracle.QueryGetReportsbyReporterRequest.reporter": x.Reporter = "" + case "layer.oracle.QueryGetReportsbyReporterRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterRequest")) @@ -1800,6 +2029,9 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) Get(descriptor protore case "layer.oracle.QueryGetReportsbyReporterRequest.reporter": value := x.Reporter return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetReportsbyReporterRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterRequest")) @@ -1822,6 +2054,8 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) Set(fd protoreflect.Fi switch fd.FullName() { case "layer.oracle.QueryGetReportsbyReporterRequest.reporter": x.Reporter = value.Interface().(string) + case "layer.oracle.QueryGetReportsbyReporterRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterRequest")) @@ -1842,6 +2076,11 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) Set(fd protoreflect.Fi // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetReportsbyReporterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "layer.oracle.QueryGetReportsbyReporterRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) case "layer.oracle.QueryGetReportsbyReporterRequest.reporter": panic(fmt.Errorf("field reporter of message layer.oracle.QueryGetReportsbyReporterRequest is not mutable")) default: @@ -1859,6 +2098,9 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) NewField(fd protorefle switch fd.FullName() { case "layer.oracle.QueryGetReportsbyReporterRequest.reporter": return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetReportsbyReporterRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterRequest")) @@ -1932,6 +2174,10 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) ProtoMethods() *protoi if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1961,6 +2207,20 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } if len(x.Reporter) > 0 { i -= len(x.Reporter) copy(dAtA[i:], x.Reporter) @@ -2049,6 +2309,42 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) ProtoMethods() *protoi } x.Reporter = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2084,77 +2380,30 @@ func (x *fastReflection_QueryGetReportsbyReporterRequest) ProtoMethods() *protoi } } -var _ protoreflect.List = (*_QueryGetReportsbyReporterResponse_1_list)(nil) - -type _QueryGetReportsbyReporterResponse_1_list struct { - list *[]*MicroReport -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MicroReport) - (*x.list)[i] = concreteValue -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MicroReport) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) AppendMutable() protoreflect.Value { - v := new(MicroReport) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) NewElement() protoreflect.Value { - v := new(MicroReport) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryGetReportsbyReporterResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryGetReportsbyReporterResponse protoreflect.MessageDescriptor - fd_QueryGetReportsbyReporterResponse_microReports protoreflect.FieldDescriptor + md_QueryGetReportsbyReporterQidRequest protoreflect.MessageDescriptor + fd_QueryGetReportsbyReporterQidRequest_reporter protoreflect.FieldDescriptor + fd_QueryGetReportsbyReporterQidRequest_query_id protoreflect.FieldDescriptor + fd_QueryGetReportsbyReporterQidRequest_pagination protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetReportsbyReporterResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyReporterResponse") - fd_QueryGetReportsbyReporterResponse_microReports = md_QueryGetReportsbyReporterResponse.Fields().ByName("microReports") + md_QueryGetReportsbyReporterQidRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyReporterQidRequest") + fd_QueryGetReportsbyReporterQidRequest_reporter = md_QueryGetReportsbyReporterQidRequest.Fields().ByName("reporter") + fd_QueryGetReportsbyReporterQidRequest_query_id = md_QueryGetReportsbyReporterQidRequest.Fields().ByName("query_id") + fd_QueryGetReportsbyReporterQidRequest_pagination = md_QueryGetReportsbyReporterQidRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyReporterResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyReporterQidRequest)(nil) -type fastReflection_QueryGetReportsbyReporterResponse QueryGetReportsbyReporterResponse +type fastReflection_QueryGetReportsbyReporterQidRequest QueryGetReportsbyReporterQidRequest -func (x *QueryGetReportsbyReporterResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyReporterResponse)(x) +func (x *QueryGetReportsbyReporterQidRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetReportsbyReporterQidRequest)(x) } -func (x *QueryGetReportsbyReporterResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGetReportsbyReporterQidRequest) slowProtoReflect() protoreflect.Message { mi := &file_layer_oracle_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2166,43 +2415,43 @@ func (x *QueryGetReportsbyReporterResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryGetReportsbyReporterResponse_messageType fastReflection_QueryGetReportsbyReporterResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetReportsbyReporterResponse_messageType{} +var _fastReflection_QueryGetReportsbyReporterQidRequest_messageType fastReflection_QueryGetReportsbyReporterQidRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetReportsbyReporterQidRequest_messageType{} -type fastReflection_QueryGetReportsbyReporterResponse_messageType struct{} +type fastReflection_QueryGetReportsbyReporterQidRequest_messageType struct{} -func (x fastReflection_QueryGetReportsbyReporterResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyReporterResponse)(nil) +func (x fastReflection_QueryGetReportsbyReporterQidRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetReportsbyReporterQidRequest)(nil) } -func (x fastReflection_QueryGetReportsbyReporterResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyReporterResponse) +func (x fastReflection_QueryGetReportsbyReporterQidRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetReportsbyReporterQidRequest) } -func (x fastReflection_QueryGetReportsbyReporterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyReporterResponse +func (x fastReflection_QueryGetReportsbyReporterQidRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetReportsbyReporterQidRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyReporterResponse +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetReportsbyReporterQidRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetReportsbyReporterResponse_messageType +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetReportsbyReporterQidRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetReportsbyReporterResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyReporterResponse) +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetReportsbyReporterQidRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetReportsbyReporterResponse)(x) +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetReportsbyReporterQidRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2210,10 +2459,22 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.MicroReports) != 0 { - value := protoreflect.ValueOfList(&_QueryGetReportsbyReporterResponse_1_list{list: &x.MicroReports}) - if !f(fd_QueryGetReportsbyReporterResponse_microReports, value) { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Reporter != "" { + value := protoreflect.ValueOfString(x.Reporter) + if !f(fd_QueryGetReportsbyReporterQidRequest_reporter, value) { + return + } + } + if x.QueryId != "" { + value := protoreflect.ValueOfString(x.QueryId) + if !f(fd_QueryGetReportsbyReporterQidRequest_query_id, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryGetReportsbyReporterQidRequest_pagination, value) { return } } @@ -2230,15 +2491,19 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterResponse.microReports": - return len(x.MicroReports) != 0 + case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": + return x.Reporter != "" + case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + return x.QueryId != "" + case "layer.oracle.QueryGetReportsbyReporterQidRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) } } @@ -2248,15 +2513,19 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterResponse.microReports": - x.MicroReports = nil + case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": + x.Reporter = "" + case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + x.QueryId = "" + case "layer.oracle.QueryGetReportsbyReporterQidRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) } } @@ -2266,19 +2535,22 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetReportsbyReporterResponse.microReports": - if len(x.MicroReports) == 0 { - return protoreflect.ValueOfList(&_QueryGetReportsbyReporterResponse_1_list{}) - } - listValue := &_QueryGetReportsbyReporterResponse_1_list{list: &x.MicroReports} - return protoreflect.ValueOfList(listValue) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": + value := x.Reporter + return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + value := x.QueryId + return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", descriptor.FullName())) } } @@ -2292,17 +2564,19 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterResponse.microReports": - lv := value.List() - clv := lv.(*_QueryGetReportsbyReporterResponse_1_list) - x.MicroReports = *clv.list + case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": + x.Reporter = value.Interface().(string) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + x.QueryId = value.Interface().(string) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) } } @@ -2316,45 +2590,52 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterResponse.microReports": - if x.MicroReports == nil { - x.MicroReports = []*MicroReport{} + case "layer.oracle.QueryGetReportsbyReporterQidRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) } - value := &_QueryGetReportsbyReporterResponse_1_list{list: &x.MicroReports} - return protoreflect.ValueOfList(value) + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": + panic(fmt.Errorf("field reporter of message layer.oracle.QueryGetReportsbyReporterQidRequest is not mutable")) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetReportsbyReporterQidRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetReportsbyReporterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterResponse.microReports": - list := []*MicroReport{} - return protoreflect.ValueOfList(&_QueryGetReportsbyReporterResponse_1_list{list: &list}) + case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": + return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetReportsbyReporterQidRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetReportsbyReporterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetReportsbyReporterResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetReportsbyReporterQidRequest", d.FullName())) } panic("unreachable") } @@ -2362,7 +2643,7 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetReportsbyReporterResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2373,7 +2654,7 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2385,7 +2666,7 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetReportsbyReporterResponse) IsValid() bool { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) IsValid() bool { return x != nil } @@ -2395,9 +2676,9 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetReportsbyReporterResponse) + x := input.Message.Interface().(*QueryGetReportsbyReporterQidRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2409,11 +2690,17 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto var n int var l int _ = l - if len(x.MicroReports) > 0 { - for _, e := range x.MicroReports { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.Reporter) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.QueryId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -2425,7 +2712,7 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyReporterResponse) + x := input.Message.Interface().(*QueryGetReportsbyReporterQidRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2444,22 +2731,942 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.MicroReports) > 0 { - for iNdEx := len(x.MicroReports) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MicroReports[iNdEx]) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.QueryId) > 0 { + i -= len(x.QueryId) + copy(dAtA[i:], x.QueryId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Reporter) > 0 { + i -= len(x.Reporter) + copy(dAtA[i:], x.Reporter) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryGetReportsbyReporterQidRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyReporterQidRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyReporterQidRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reporter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reporter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy } } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryGetCurrentTipRequest protoreflect.MessageDescriptor + fd_QueryGetCurrentTipRequest_query_data protoreflect.FieldDescriptor +) + +func init() { + file_layer_oracle_query_proto_init() + md_QueryGetCurrentTipRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetCurrentTipRequest") + fd_QueryGetCurrentTipRequest_query_data = md_QueryGetCurrentTipRequest.Fields().ByName("query_data") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetCurrentTipRequest)(nil) + +type fastReflection_QueryGetCurrentTipRequest QueryGetCurrentTipRequest + +func (x *QueryGetCurrentTipRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetCurrentTipRequest)(x) +} + +func (x *QueryGetCurrentTipRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryGetCurrentTipRequest_messageType fastReflection_QueryGetCurrentTipRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetCurrentTipRequest_messageType{} + +type fastReflection_QueryGetCurrentTipRequest_messageType struct{} + +func (x fastReflection_QueryGetCurrentTipRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetCurrentTipRequest)(nil) +} +func (x fastReflection_QueryGetCurrentTipRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetCurrentTipRequest) +} +func (x fastReflection_QueryGetCurrentTipRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetCurrentTipRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetCurrentTipRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetCurrentTipRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryGetCurrentTipRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetCurrentTipRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetCurrentTipRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetCurrentTipRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetCurrentTipRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetCurrentTipRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryGetCurrentTipRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.QueryData != "" { + value := protoreflect.ValueOfString(x.QueryData) + if !f(fd_QueryGetCurrentTipRequest_query_data, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryGetCurrentTipRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipRequest.query_data": + return x.QueryData != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipRequest.query_data": + x.QueryData = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryGetCurrentTipRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "layer.oracle.QueryGetCurrentTipRequest.query_data": + value := x.QueryData + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipRequest.query_data": + x.QueryData = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipRequest.query_data": + panic(fmt.Errorf("field query_data of message layer.oracle.QueryGetCurrentTipRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryGetCurrentTipRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipRequest.query_data": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryGetCurrentTipRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetCurrentTipRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryGetCurrentTipRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryGetCurrentTipRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetCurrentTipRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.QueryData) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryGetCurrentTipRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.QueryData) > 0 { + i -= len(x.QueryData) + copy(dAtA[i:], x.QueryData) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryData))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryGetCurrentTipRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.QueryData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryGetCurrentTipResponse protoreflect.MessageDescriptor + fd_QueryGetCurrentTipResponse_tips protoreflect.FieldDescriptor +) + +func init() { + file_layer_oracle_query_proto_init() + md_QueryGetCurrentTipResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetCurrentTipResponse") + fd_QueryGetCurrentTipResponse_tips = md_QueryGetCurrentTipResponse.Fields().ByName("tips") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetCurrentTipResponse)(nil) + +type fastReflection_QueryGetCurrentTipResponse QueryGetCurrentTipResponse + +func (x *QueryGetCurrentTipResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetCurrentTipResponse)(x) +} + +func (x *QueryGetCurrentTipResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryGetCurrentTipResponse_messageType fastReflection_QueryGetCurrentTipResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetCurrentTipResponse_messageType{} + +type fastReflection_QueryGetCurrentTipResponse_messageType struct{} + +func (x fastReflection_QueryGetCurrentTipResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetCurrentTipResponse)(nil) +} +func (x fastReflection_QueryGetCurrentTipResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetCurrentTipResponse) +} +func (x fastReflection_QueryGetCurrentTipResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetCurrentTipResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetCurrentTipResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetCurrentTipResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryGetCurrentTipResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetCurrentTipResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetCurrentTipResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetCurrentTipResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetCurrentTipResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetCurrentTipResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryGetCurrentTipResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Tips != "" { + value := protoreflect.ValueOfString(x.Tips) + if !f(fd_QueryGetCurrentTipResponse_tips, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryGetCurrentTipResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipResponse.tips": + return x.Tips != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipResponse.tips": + x.Tips = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryGetCurrentTipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "layer.oracle.QueryGetCurrentTipResponse.tips": + value := x.Tips + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipResponse.tips": + x.Tips = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipResponse.tips": + panic(fmt.Errorf("field tips of message layer.oracle.QueryGetCurrentTipResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryGetCurrentTipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "layer.oracle.QueryGetCurrentTipResponse.tips": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + } + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryGetCurrentTipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetCurrentTipResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryGetCurrentTipResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGetCurrentTipResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryGetCurrentTipResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetCurrentTipResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Tips) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryGetCurrentTipResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Tips) > 0 { + i -= len(x.Tips) + copy(dAtA[i:], x.Tips) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Tips))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -2471,7 +3678,7 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyReporterResponse) + x := input.Message.Interface().(*QueryGetCurrentTipResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2503,17 +3710,17 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyReporterResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyReporterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MicroReports", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Tips", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2523,25 +3730,23 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.MicroReports = append(x.MicroReports, &MicroReport{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MicroReports[len(x.MicroReports)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Tips = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2579,28 +3784,26 @@ func (x *fastReflection_QueryGetReportsbyReporterResponse) ProtoMethods() *proto } var ( - md_QueryGetReportsbyReporterQidRequest protoreflect.MessageDescriptor - fd_QueryGetReportsbyReporterQidRequest_reporter protoreflect.FieldDescriptor - fd_QueryGetReportsbyReporterQidRequest_query_id protoreflect.FieldDescriptor + md_QueryGetUserTipTotalRequest protoreflect.MessageDescriptor + fd_QueryGetUserTipTotalRequest_tipper protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetReportsbyReporterQidRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetReportsbyReporterQidRequest") - fd_QueryGetReportsbyReporterQidRequest_reporter = md_QueryGetReportsbyReporterQidRequest.Fields().ByName("reporter") - fd_QueryGetReportsbyReporterQidRequest_query_id = md_QueryGetReportsbyReporterQidRequest.Fields().ByName("query_id") + md_QueryGetUserTipTotalRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetUserTipTotalRequest") + fd_QueryGetUserTipTotalRequest_tipper = md_QueryGetUserTipTotalRequest.Fields().ByName("tipper") } -var _ protoreflect.Message = (*fastReflection_QueryGetReportsbyReporterQidRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetUserTipTotalRequest)(nil) -type fastReflection_QueryGetReportsbyReporterQidRequest QueryGetReportsbyReporterQidRequest +type fastReflection_QueryGetUserTipTotalRequest QueryGetUserTipTotalRequest -func (x *QueryGetReportsbyReporterQidRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyReporterQidRequest)(x) +func (x *QueryGetUserTipTotalRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetUserTipTotalRequest)(x) } -func (x *QueryGetReportsbyReporterQidRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[6] +func (x *QueryGetUserTipTotalRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2611,43 +3814,43 @@ func (x *QueryGetReportsbyReporterQidRequest) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryGetReportsbyReporterQidRequest_messageType fastReflection_QueryGetReportsbyReporterQidRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetReportsbyReporterQidRequest_messageType{} +var _fastReflection_QueryGetUserTipTotalRequest_messageType fastReflection_QueryGetUserTipTotalRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetUserTipTotalRequest_messageType{} -type fastReflection_QueryGetReportsbyReporterQidRequest_messageType struct{} +type fastReflection_QueryGetUserTipTotalRequest_messageType struct{} -func (x fastReflection_QueryGetReportsbyReporterQidRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetReportsbyReporterQidRequest)(nil) +func (x fastReflection_QueryGetUserTipTotalRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetUserTipTotalRequest)(nil) } -func (x fastReflection_QueryGetReportsbyReporterQidRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyReporterQidRequest) +func (x fastReflection_QueryGetUserTipTotalRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetUserTipTotalRequest) } -func (x fastReflection_QueryGetReportsbyReporterQidRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyReporterQidRequest +func (x fastReflection_QueryGetUserTipTotalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUserTipTotalRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetReportsbyReporterQidRequest +func (x *fastReflection_QueryGetUserTipTotalRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUserTipTotalRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetReportsbyReporterQidRequest_messageType +func (x *fastReflection_QueryGetUserTipTotalRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetUserTipTotalRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetReportsbyReporterQidRequest) +func (x *fastReflection_QueryGetUserTipTotalRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetUserTipTotalRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetReportsbyReporterQidRequest)(x) +func (x *fastReflection_QueryGetUserTipTotalRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetUserTipTotalRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2655,16 +3858,10 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Reporter != "" { - value := protoreflect.ValueOfString(x.Reporter) - if !f(fd_QueryGetReportsbyReporterQidRequest_reporter, value) { - return - } - } - if x.QueryId != "" { - value := protoreflect.ValueOfString(x.QueryId) - if !f(fd_QueryGetReportsbyReporterQidRequest_query_id, value) { +func (x *fastReflection_QueryGetUserTipTotalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Tipper != "" { + value := protoreflect.ValueOfString(x.Tipper) + if !f(fd_QueryGetUserTipTotalRequest_tipper, value) { return } } @@ -2681,17 +3878,15 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetUserTipTotalRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": - return x.Reporter != "" - case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": - return x.QueryId != "" + case "layer.oracle.QueryGetUserTipTotalRequest.tipper": + return x.Tipper != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) } } @@ -2701,17 +3896,15 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetUserTipTotalRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": - x.Reporter = "" - case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": - x.QueryId = "" + case "layer.oracle.QueryGetUserTipTotalRequest.tipper": + x.Tipper = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) } } @@ -2721,19 +3914,16 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetUserTipTotalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": - value := x.Reporter - return protoreflect.ValueOfString(value) - case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": - value := x.QueryId + case "layer.oracle.QueryGetUserTipTotalRequest.tipper": + value := x.Tipper return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", descriptor.FullName())) } } @@ -2747,17 +3937,15 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetUserTipTotalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": - x.Reporter = value.Interface().(string) - case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": - x.QueryId = value.Interface().(string) + case "layer.oracle.QueryGetUserTipTotalRequest.tipper": + x.Tipper = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) } } @@ -2771,44 +3959,40 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetUserTipTotalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": - panic(fmt.Errorf("field reporter of message layer.oracle.QueryGetReportsbyReporterQidRequest is not mutable")) - case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": - panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetReportsbyReporterQidRequest is not mutable")) + case "layer.oracle.QueryGetUserTipTotalRequest.tipper": + panic(fmt.Errorf("field tipper of message layer.oracle.QueryGetUserTipTotalRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetUserTipTotalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetReportsbyReporterQidRequest.reporter": - return protoreflect.ValueOfString("") - case "layer.oracle.QueryGetReportsbyReporterQidRequest.query_id": + case "layer.oracle.QueryGetUserTipTotalRequest.tipper": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetReportsbyReporterQidRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetReportsbyReporterQidRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetUserTipTotalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetReportsbyReporterQidRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetUserTipTotalRequest", d.FullName())) } panic("unreachable") } @@ -2816,7 +4000,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetUserTipTotalRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2827,7 +4011,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetUserTipTotalRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2839,7 +4023,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) IsValid() bool { +func (x *fastReflection_QueryGetUserTipTotalRequest) IsValid() bool { return x != nil } @@ -2849,9 +4033,9 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetReportsbyReporterQidRequest) + x := input.Message.Interface().(*QueryGetUserTipTotalRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2863,11 +4047,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro var n int var l int _ = l - l = len(x.Reporter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.QueryId) + l = len(x.Tipper) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2881,7 +4061,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyReporterQidRequest) + x := input.Message.Interface().(*QueryGetUserTipTotalRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2900,17 +4080,10 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.QueryId) > 0 { - i -= len(x.QueryId) - copy(dAtA[i:], x.QueryId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Reporter) > 0 { - i -= len(x.Reporter) - copy(dAtA[i:], x.Reporter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) + if len(x.Tipper) > 0 { + i -= len(x.Tipper) + copy(dAtA[i:], x.Tipper) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Tipper))) i-- dAtA[i] = 0xa } @@ -2925,7 +4098,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetReportsbyReporterQidRequest) + x := input.Message.Interface().(*QueryGetUserTipTotalRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2957,47 +4130,15 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyReporterQidRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetReportsbyReporterQidRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reporter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Reporter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Tipper", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3025,7 +4166,7 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.QueryId = string(dAtA[iNdEx:postIndex]) + x.Tipper = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3063,26 +4204,26 @@ func (x *fastReflection_QueryGetReportsbyReporterQidRequest) ProtoMethods() *pro } var ( - md_QueryGetCurrentTipRequest protoreflect.MessageDescriptor - fd_QueryGetCurrentTipRequest_query_data protoreflect.FieldDescriptor + md_QueryGetUserTipTotalResponse protoreflect.MessageDescriptor + fd_QueryGetUserTipTotalResponse_total_tips protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetCurrentTipRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetCurrentTipRequest") - fd_QueryGetCurrentTipRequest_query_data = md_QueryGetCurrentTipRequest.Fields().ByName("query_data") + md_QueryGetUserTipTotalResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetUserTipTotalResponse") + fd_QueryGetUserTipTotalResponse_total_tips = md_QueryGetUserTipTotalResponse.Fields().ByName("total_tips") } -var _ protoreflect.Message = (*fastReflection_QueryGetCurrentTipRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetUserTipTotalResponse)(nil) -type fastReflection_QueryGetCurrentTipRequest QueryGetCurrentTipRequest +type fastReflection_QueryGetUserTipTotalResponse QueryGetUserTipTotalResponse -func (x *QueryGetCurrentTipRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetCurrentTipRequest)(x) +func (x *QueryGetUserTipTotalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetUserTipTotalResponse)(x) } -func (x *QueryGetCurrentTipRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[7] +func (x *QueryGetUserTipTotalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3093,43 +4234,43 @@ func (x *QueryGetCurrentTipRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetCurrentTipRequest_messageType fastReflection_QueryGetCurrentTipRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetCurrentTipRequest_messageType{} +var _fastReflection_QueryGetUserTipTotalResponse_messageType fastReflection_QueryGetUserTipTotalResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetUserTipTotalResponse_messageType{} -type fastReflection_QueryGetCurrentTipRequest_messageType struct{} +type fastReflection_QueryGetUserTipTotalResponse_messageType struct{} -func (x fastReflection_QueryGetCurrentTipRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetCurrentTipRequest)(nil) +func (x fastReflection_QueryGetUserTipTotalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetUserTipTotalResponse)(nil) } -func (x fastReflection_QueryGetCurrentTipRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetCurrentTipRequest) +func (x fastReflection_QueryGetUserTipTotalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetUserTipTotalResponse) } -func (x fastReflection_QueryGetCurrentTipRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetCurrentTipRequest +func (x fastReflection_QueryGetUserTipTotalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUserTipTotalResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetCurrentTipRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetCurrentTipRequest +func (x *fastReflection_QueryGetUserTipTotalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUserTipTotalResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetCurrentTipRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetCurrentTipRequest_messageType +func (x *fastReflection_QueryGetUserTipTotalResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetUserTipTotalResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetCurrentTipRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetCurrentTipRequest) +func (x *fastReflection_QueryGetUserTipTotalResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetUserTipTotalResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetCurrentTipRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetCurrentTipRequest)(x) +func (x *fastReflection_QueryGetUserTipTotalResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetUserTipTotalResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3137,10 +4278,10 @@ func (x *fastReflection_QueryGetCurrentTipRequest) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetCurrentTipRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.QueryData != "" { - value := protoreflect.ValueOfString(x.QueryData) - if !f(fd_QueryGetCurrentTipRequest_query_data, value) { +func (x *fastReflection_QueryGetUserTipTotalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalTips != "" { + value := protoreflect.ValueOfString(x.TotalTips) + if !f(fd_QueryGetUserTipTotalResponse_total_tips, value) { return } } @@ -3157,15 +4298,15 @@ func (x *fastReflection_QueryGetCurrentTipRequest) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetCurrentTipRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetUserTipTotalResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipRequest.query_data": - return x.QueryData != "" + case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": + return x.TotalTips != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) } } @@ -3175,15 +4316,15 @@ func (x *fastReflection_QueryGetCurrentTipRequest) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetUserTipTotalResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipRequest.query_data": - x.QueryData = "" + case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": + x.TotalTips = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) } } @@ -3193,16 +4334,16 @@ func (x *fastReflection_QueryGetCurrentTipRequest) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetCurrentTipRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetUserTipTotalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetCurrentTipRequest.query_data": - value := x.QueryData + case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": + value := x.TotalTips return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", descriptor.FullName())) } } @@ -3216,15 +4357,15 @@ func (x *fastReflection_QueryGetCurrentTipRequest) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetUserTipTotalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipRequest.query_data": - x.QueryData = value.Interface().(string) + case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": + x.TotalTips = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) } } @@ -3238,40 +4379,40 @@ func (x *fastReflection_QueryGetCurrentTipRequest) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetUserTipTotalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipRequest.query_data": - panic(fmt.Errorf("field query_data of message layer.oracle.QueryGetCurrentTipRequest is not mutable")) + case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": + panic(fmt.Errorf("field total_tips of message layer.oracle.QueryGetUserTipTotalResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetCurrentTipRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetUserTipTotalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipRequest.query_data": + case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetCurrentTipRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetUserTipTotalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetCurrentTipRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetUserTipTotalResponse", d.FullName())) } panic("unreachable") } @@ -3279,7 +4420,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetCurrentTipRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetUserTipTotalResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3290,7 +4431,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetUserTipTotalResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3302,7 +4443,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetCurrentTipRequest) IsValid() bool { +func (x *fastReflection_QueryGetUserTipTotalResponse) IsValid() bool { return x != nil } @@ -3312,9 +4453,9 @@ func (x *fastReflection_QueryGetCurrentTipRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetCurrentTipRequest) + x := input.Message.Interface().(*QueryGetUserTipTotalResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3326,7 +4467,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me var n int var l int _ = l - l = len(x.QueryData) + l = len(x.TotalTips) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -3340,7 +4481,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetCurrentTipRequest) + x := input.Message.Interface().(*QueryGetUserTipTotalResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3359,10 +4500,10 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.QueryData) > 0 { - i -= len(x.QueryData) - copy(dAtA[i:], x.QueryData) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryData))) + if len(x.TotalTips) > 0 { + i -= len(x.TotalTips) + copy(dAtA[i:], x.TotalTips) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalTips))) i-- dAtA[i] = 0xa } @@ -3377,7 +4518,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetCurrentTipRequest) + x := input.Message.Interface().(*QueryGetUserTipTotalResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3409,15 +4550,15 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryData", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalTips", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3445,7 +4586,7 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.QueryData = string(dAtA[iNdEx:postIndex]) + x.TotalTips = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3483,26 +4624,26 @@ func (x *fastReflection_QueryGetCurrentTipRequest) ProtoMethods() *protoiface.Me } var ( - md_QueryGetCurrentTipResponse protoreflect.MessageDescriptor - fd_QueryGetCurrentTipResponse_tips protoreflect.FieldDescriptor + md_QueryGetCurrentAggregatedReportRequest protoreflect.MessageDescriptor + fd_QueryGetCurrentAggregatedReportRequest_query_id protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetCurrentTipResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetCurrentTipResponse") - fd_QueryGetCurrentTipResponse_tips = md_QueryGetCurrentTipResponse.Fields().ByName("tips") + md_QueryGetCurrentAggregatedReportRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetCurrentAggregatedReportRequest") + fd_QueryGetCurrentAggregatedReportRequest_query_id = md_QueryGetCurrentAggregatedReportRequest.Fields().ByName("query_id") } -var _ protoreflect.Message = (*fastReflection_QueryGetCurrentTipResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetCurrentAggregatedReportRequest)(nil) -type fastReflection_QueryGetCurrentTipResponse QueryGetCurrentTipResponse +type fastReflection_QueryGetCurrentAggregatedReportRequest QueryGetCurrentAggregatedReportRequest -func (x *QueryGetCurrentTipResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetCurrentTipResponse)(x) +func (x *QueryGetCurrentAggregatedReportRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetCurrentAggregatedReportRequest)(x) } -func (x *QueryGetCurrentTipResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[8] +func (x *QueryGetCurrentAggregatedReportRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3513,43 +4654,43 @@ func (x *QueryGetCurrentTipResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetCurrentTipResponse_messageType fastReflection_QueryGetCurrentTipResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetCurrentTipResponse_messageType{} +var _fastReflection_QueryGetCurrentAggregatedReportRequest_messageType fastReflection_QueryGetCurrentAggregatedReportRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetCurrentAggregatedReportRequest_messageType{} -type fastReflection_QueryGetCurrentTipResponse_messageType struct{} +type fastReflection_QueryGetCurrentAggregatedReportRequest_messageType struct{} -func (x fastReflection_QueryGetCurrentTipResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetCurrentTipResponse)(nil) +func (x fastReflection_QueryGetCurrentAggregatedReportRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetCurrentAggregatedReportRequest)(nil) } -func (x fastReflection_QueryGetCurrentTipResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetCurrentTipResponse) +func (x fastReflection_QueryGetCurrentAggregatedReportRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetCurrentAggregatedReportRequest) } -func (x fastReflection_QueryGetCurrentTipResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetCurrentTipResponse +func (x fastReflection_QueryGetCurrentAggregatedReportRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetCurrentAggregatedReportRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetCurrentTipResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetCurrentTipResponse +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetCurrentAggregatedReportRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetCurrentTipResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetCurrentTipResponse_messageType +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetCurrentAggregatedReportRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetCurrentTipResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetCurrentTipResponse) +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetCurrentAggregatedReportRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetCurrentTipResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetCurrentTipResponse)(x) +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetCurrentAggregatedReportRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3557,10 +4698,10 @@ func (x *fastReflection_QueryGetCurrentTipResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetCurrentTipResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Tips != "" { - value := protoreflect.ValueOfString(x.Tips) - if !f(fd_QueryGetCurrentTipResponse_tips, value) { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.QueryId != "" { + value := protoreflect.ValueOfString(x.QueryId) + if !f(fd_QueryGetCurrentAggregatedReportRequest_query_id, value) { return } } @@ -3577,15 +4718,15 @@ func (x *fastReflection_QueryGetCurrentTipResponse) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetCurrentTipResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipResponse.tips": - return x.Tips != "" + case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": + return x.QueryId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) } } @@ -3595,15 +4736,15 @@ func (x *fastReflection_QueryGetCurrentTipResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipResponse.tips": - x.Tips = "" + case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": + x.QueryId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) } } @@ -3613,16 +4754,16 @@ func (x *fastReflection_QueryGetCurrentTipResponse) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetCurrentTipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetCurrentTipResponse.tips": - value := x.Tips + case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": + value := x.QueryId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", descriptor.FullName())) } } @@ -3636,15 +4777,15 @@ func (x *fastReflection_QueryGetCurrentTipResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipResponse.tips": - x.Tips = value.Interface().(string) + case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": + x.QueryId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) } } @@ -3658,40 +4799,40 @@ func (x *fastReflection_QueryGetCurrentTipResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipResponse.tips": - panic(fmt.Errorf("field tips of message layer.oracle.QueryGetCurrentTipResponse is not mutable")) + case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": + panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetCurrentAggregatedReportRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetCurrentTipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentTipResponse.tips": + case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentTipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentTipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetCurrentTipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetCurrentTipResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetCurrentAggregatedReportRequest", d.FullName())) } panic("unreachable") } @@ -3699,7 +4840,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetCurrentTipResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3710,7 +4851,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentTipResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3722,7 +4863,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetCurrentTipResponse) IsValid() bool { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) IsValid() bool { return x != nil } @@ -3732,9 +4873,9 @@ func (x *fastReflection_QueryGetCurrentTipResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetCurrentTipResponse) + x := input.Message.Interface().(*QueryGetCurrentAggregatedReportRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3746,7 +4887,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M var n int var l int _ = l - l = len(x.Tips) + l = len(x.QueryId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -3760,7 +4901,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetCurrentTipResponse) + x := input.Message.Interface().(*QueryGetCurrentAggregatedReportRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3779,10 +4920,10 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Tips) > 0 { - i -= len(x.Tips) - copy(dAtA[i:], x.Tips) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Tips))) + if len(x.QueryId) > 0 { + i -= len(x.QueryId) + copy(dAtA[i:], x.QueryId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) i-- dAtA[i] = 0xa } @@ -3797,7 +4938,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetCurrentTipResponse) + x := input.Message.Interface().(*QueryGetCurrentAggregatedReportRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3829,15 +4970,15 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentAggregatedReportRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentTipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentAggregatedReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Tips", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3865,7 +5006,7 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Tips = string(dAtA[iNdEx:postIndex]) + x.QueryId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3903,26 +5044,26 @@ func (x *fastReflection_QueryGetCurrentTipResponse) ProtoMethods() *protoiface.M } var ( - md_QueryGetUserTipTotalRequest protoreflect.MessageDescriptor - fd_QueryGetUserTipTotalRequest_tipper protoreflect.FieldDescriptor + md_QueryGetAggregatedReportResponse protoreflect.MessageDescriptor + fd_QueryGetAggregatedReportResponse_report protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetUserTipTotalRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetUserTipTotalRequest") - fd_QueryGetUserTipTotalRequest_tipper = md_QueryGetUserTipTotalRequest.Fields().ByName("tipper") + md_QueryGetAggregatedReportResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetAggregatedReportResponse") + fd_QueryGetAggregatedReportResponse_report = md_QueryGetAggregatedReportResponse.Fields().ByName("report") } -var _ protoreflect.Message = (*fastReflection_QueryGetUserTipTotalRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetAggregatedReportResponse)(nil) -type fastReflection_QueryGetUserTipTotalRequest QueryGetUserTipTotalRequest +type fastReflection_QueryGetAggregatedReportResponse QueryGetAggregatedReportResponse -func (x *QueryGetUserTipTotalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetUserTipTotalRequest)(x) +func (x *QueryGetAggregatedReportResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetAggregatedReportResponse)(x) } -func (x *QueryGetUserTipTotalRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[9] +func (x *QueryGetAggregatedReportResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3933,43 +5074,43 @@ func (x *QueryGetUserTipTotalRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetUserTipTotalRequest_messageType fastReflection_QueryGetUserTipTotalRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetUserTipTotalRequest_messageType{} +var _fastReflection_QueryGetAggregatedReportResponse_messageType fastReflection_QueryGetAggregatedReportResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetAggregatedReportResponse_messageType{} -type fastReflection_QueryGetUserTipTotalRequest_messageType struct{} +type fastReflection_QueryGetAggregatedReportResponse_messageType struct{} -func (x fastReflection_QueryGetUserTipTotalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetUserTipTotalRequest)(nil) +func (x fastReflection_QueryGetAggregatedReportResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetAggregatedReportResponse)(nil) } -func (x fastReflection_QueryGetUserTipTotalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetUserTipTotalRequest) +func (x fastReflection_QueryGetAggregatedReportResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetAggregatedReportResponse) } -func (x fastReflection_QueryGetUserTipTotalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetUserTipTotalRequest +func (x fastReflection_QueryGetAggregatedReportResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetAggregatedReportResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetUserTipTotalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetUserTipTotalRequest +func (x *fastReflection_QueryGetAggregatedReportResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetAggregatedReportResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetUserTipTotalRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetUserTipTotalRequest_messageType +func (x *fastReflection_QueryGetAggregatedReportResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetAggregatedReportResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetUserTipTotalRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetUserTipTotalRequest) +func (x *fastReflection_QueryGetAggregatedReportResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetAggregatedReportResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetUserTipTotalRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetUserTipTotalRequest)(x) +func (x *fastReflection_QueryGetAggregatedReportResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetAggregatedReportResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3977,10 +5118,10 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetUserTipTotalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Tipper != "" { - value := protoreflect.ValueOfString(x.Tipper) - if !f(fd_QueryGetUserTipTotalRequest_tipper, value) { +func (x *fastReflection_QueryGetAggregatedReportResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Report != nil { + value := protoreflect.ValueOfMessage(x.Report.ProtoReflect()) + if !f(fd_QueryGetAggregatedReportResponse_report, value) { return } } @@ -3997,15 +5138,15 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetUserTipTotalRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetAggregatedReportResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalRequest.tipper": - return x.Tipper != "" + case "layer.oracle.QueryGetAggregatedReportResponse.report": + return x.Report != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) } } @@ -4015,15 +5156,15 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetAggregatedReportResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalRequest.tipper": - x.Tipper = "" + case "layer.oracle.QueryGetAggregatedReportResponse.report": + x.Report = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) } } @@ -4033,16 +5174,16 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetUserTipTotalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetAggregatedReportResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetUserTipTotalRequest.tipper": - value := x.Tipper - return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetAggregatedReportResponse.report": + value := x.Report + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", descriptor.FullName())) } } @@ -4056,15 +5197,15 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetAggregatedReportResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalRequest.tipper": - x.Tipper = value.Interface().(string) + case "layer.oracle.QueryGetAggregatedReportResponse.report": + x.Report = value.Message().Interface().(*Aggregate) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) } } @@ -4078,40 +5219,44 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetAggregatedReportResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalRequest.tipper": - panic(fmt.Errorf("field tipper of message layer.oracle.QueryGetUserTipTotalRequest is not mutable")) + case "layer.oracle.QueryGetAggregatedReportResponse.report": + if x.Report == nil { + x.Report = new(Aggregate) + } + return protoreflect.ValueOfMessage(x.Report.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetUserTipTotalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetAggregatedReportResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalRequest.tipper": - return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetAggregatedReportResponse.report": + m := new(Aggregate) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetUserTipTotalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetAggregatedReportResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetUserTipTotalRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetAggregatedReportResponse", d.FullName())) } panic("unreachable") } @@ -4119,7 +5264,7 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetUserTipTotalRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetAggregatedReportResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4130,7 +5275,7 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetAggregatedReportResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4142,7 +5287,7 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetUserTipTotalRequest) IsValid() bool { +func (x *fastReflection_QueryGetAggregatedReportResponse) IsValid() bool { return x != nil } @@ -4152,9 +5297,9 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetUserTipTotalRequest) + x := input.Message.Interface().(*QueryGetAggregatedReportResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4166,8 +5311,8 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. var n int var l int _ = l - l = len(x.Tipper) - if l > 0 { + if x.Report != nil { + l = options.Size(x.Report) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -4180,7 +5325,7 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetUserTipTotalRequest) + x := input.Message.Interface().(*QueryGetAggregatedReportResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4199,10 +5344,17 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Tipper) > 0 { - i -= len(x.Tipper) - copy(dAtA[i:], x.Tipper) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Tipper))) + if x.Report != nil { + encoded, err := options.Marshal(x.Report) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -4217,7 +5369,7 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetUserTipTotalRequest) + x := input.Message.Interface().(*QueryGetAggregatedReportResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4249,17 +5401,17 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedReportResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Tipper", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4269,23 +5421,27 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Tipper = string(dAtA[iNdEx:postIndex]) + if x.Report == nil { + x.Report = &Aggregate{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Report); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -4323,26 +5479,28 @@ func (x *fastReflection_QueryGetUserTipTotalRequest) ProtoMethods() *protoiface. } var ( - md_QueryGetUserTipTotalResponse protoreflect.MessageDescriptor - fd_QueryGetUserTipTotalResponse_total_tips protoreflect.FieldDescriptor + md_QueryGetDataBeforeRequest protoreflect.MessageDescriptor + fd_QueryGetDataBeforeRequest_query_id protoreflect.FieldDescriptor + fd_QueryGetDataBeforeRequest_timestamp protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetUserTipTotalResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetUserTipTotalResponse") - fd_QueryGetUserTipTotalResponse_total_tips = md_QueryGetUserTipTotalResponse.Fields().ByName("total_tips") + md_QueryGetDataBeforeRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetDataBeforeRequest") + fd_QueryGetDataBeforeRequest_query_id = md_QueryGetDataBeforeRequest.Fields().ByName("query_id") + fd_QueryGetDataBeforeRequest_timestamp = md_QueryGetDataBeforeRequest.Fields().ByName("timestamp") } -var _ protoreflect.Message = (*fastReflection_QueryGetUserTipTotalResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetDataBeforeRequest)(nil) -type fastReflection_QueryGetUserTipTotalResponse QueryGetUserTipTotalResponse +type fastReflection_QueryGetDataBeforeRequest QueryGetDataBeforeRequest -func (x *QueryGetUserTipTotalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetUserTipTotalResponse)(x) +func (x *QueryGetDataBeforeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetDataBeforeRequest)(x) } -func (x *QueryGetUserTipTotalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[10] +func (x *QueryGetDataBeforeRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4353,43 +5511,43 @@ func (x *QueryGetUserTipTotalResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetUserTipTotalResponse_messageType fastReflection_QueryGetUserTipTotalResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetUserTipTotalResponse_messageType{} - -type fastReflection_QueryGetUserTipTotalResponse_messageType struct{} +var _fastReflection_QueryGetDataBeforeRequest_messageType fastReflection_QueryGetDataBeforeRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetDataBeforeRequest_messageType{} -func (x fastReflection_QueryGetUserTipTotalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetUserTipTotalResponse)(nil) +type fastReflection_QueryGetDataBeforeRequest_messageType struct{} + +func (x fastReflection_QueryGetDataBeforeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetDataBeforeRequest)(nil) } -func (x fastReflection_QueryGetUserTipTotalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetUserTipTotalResponse) +func (x fastReflection_QueryGetDataBeforeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetDataBeforeRequest) } -func (x fastReflection_QueryGetUserTipTotalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetUserTipTotalResponse +func (x fastReflection_QueryGetDataBeforeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetDataBeforeRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetUserTipTotalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetUserTipTotalResponse +func (x *fastReflection_QueryGetDataBeforeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetDataBeforeRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetUserTipTotalResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetUserTipTotalResponse_messageType +func (x *fastReflection_QueryGetDataBeforeRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetDataBeforeRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetUserTipTotalResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetUserTipTotalResponse) +func (x *fastReflection_QueryGetDataBeforeRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetDataBeforeRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetUserTipTotalResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetUserTipTotalResponse)(x) +func (x *fastReflection_QueryGetDataBeforeRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetDataBeforeRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4397,10 +5555,16 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetUserTipTotalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TotalTips != "" { - value := protoreflect.ValueOfString(x.TotalTips) - if !f(fd_QueryGetUserTipTotalResponse_total_tips, value) { +func (x *fastReflection_QueryGetDataBeforeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.QueryId != "" { + value := protoreflect.ValueOfString(x.QueryId) + if !f(fd_QueryGetDataBeforeRequest_query_id, value) { + return + } + } + if x.Timestamp != int64(0) { + value := protoreflect.ValueOfInt64(x.Timestamp) + if !f(fd_QueryGetDataBeforeRequest_timestamp, value) { return } } @@ -4417,15 +5581,17 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetUserTipTotalResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetDataBeforeRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": - return x.TotalTips != "" + case "layer.oracle.QueryGetDataBeforeRequest.query_id": + return x.QueryId != "" + case "layer.oracle.QueryGetDataBeforeRequest.timestamp": + return x.Timestamp != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) } } @@ -4435,15 +5601,17 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetDataBeforeRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": - x.TotalTips = "" + case "layer.oracle.QueryGetDataBeforeRequest.query_id": + x.QueryId = "" + case "layer.oracle.QueryGetDataBeforeRequest.timestamp": + x.Timestamp = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) } } @@ -4453,16 +5621,19 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetUserTipTotalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetDataBeforeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": - value := x.TotalTips + case "layer.oracle.QueryGetDataBeforeRequest.query_id": + value := x.QueryId return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetDataBeforeRequest.timestamp": + value := x.Timestamp + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", descriptor.FullName())) } } @@ -4476,15 +5647,17 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetDataBeforeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": - x.TotalTips = value.Interface().(string) + case "layer.oracle.QueryGetDataBeforeRequest.query_id": + x.QueryId = value.Interface().(string) + case "layer.oracle.QueryGetDataBeforeRequest.timestamp": + x.Timestamp = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) } } @@ -4498,40 +5671,44 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetDataBeforeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": - panic(fmt.Errorf("field total_tips of message layer.oracle.QueryGetUserTipTotalResponse is not mutable")) + case "layer.oracle.QueryGetDataBeforeRequest.query_id": + panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetDataBeforeRequest is not mutable")) + case "layer.oracle.QueryGetDataBeforeRequest.timestamp": + panic(fmt.Errorf("field timestamp of message layer.oracle.QueryGetDataBeforeRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetUserTipTotalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetDataBeforeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetUserTipTotalResponse.total_tips": + case "layer.oracle.QueryGetDataBeforeRequest.query_id": return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetDataBeforeRequest.timestamp": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetUserTipTotalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetUserTipTotalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetUserTipTotalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetDataBeforeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetUserTipTotalResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetDataBeforeRequest", d.FullName())) } panic("unreachable") } @@ -4539,7 +5716,7 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetUserTipTotalResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetDataBeforeRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4550,7 +5727,7 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetUserTipTotalResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetDataBeforeRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4562,7 +5739,7 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetUserTipTotalResponse) IsValid() bool { +func (x *fastReflection_QueryGetDataBeforeRequest) IsValid() bool { return x != nil } @@ -4572,9 +5749,9 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetUserTipTotalResponse) + x := input.Message.Interface().(*QueryGetDataBeforeRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4586,10 +5763,13 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface var n int var l int _ = l - l = len(x.TotalTips) + l = len(x.QueryId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Timestamp != 0 { + n += 1 + runtime.Sov(uint64(x.Timestamp)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4600,7 +5780,7 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetUserTipTotalResponse) + x := input.Message.Interface().(*QueryGetDataBeforeRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4619,10 +5799,15 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TotalTips) > 0 { - i -= len(x.TotalTips) - copy(dAtA[i:], x.TotalTips) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalTips))) + if x.Timestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if len(x.QueryId) > 0 { + i -= len(x.QueryId) + copy(dAtA[i:], x.QueryId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) i-- dAtA[i] = 0xa } @@ -4637,7 +5822,7 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetUserTipTotalResponse) + x := input.Message.Interface().(*QueryGetDataBeforeRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4669,15 +5854,15 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUserTipTotalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalTips", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4705,8 +5890,27 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TotalTips = string(dAtA[iNdEx:postIndex]) + x.QueryId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + x.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4743,26 +5947,28 @@ func (x *fastReflection_QueryGetUserTipTotalResponse) ProtoMethods() *protoiface } var ( - md_QueryGetCurrentAggregatedReportRequest protoreflect.MessageDescriptor - fd_QueryGetCurrentAggregatedReportRequest_query_id protoreflect.FieldDescriptor + md_QueryGetDataBeforeResponse protoreflect.MessageDescriptor + fd_QueryGetDataBeforeResponse_aggregate protoreflect.FieldDescriptor + fd_QueryGetDataBeforeResponse_timestamp protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetCurrentAggregatedReportRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetCurrentAggregatedReportRequest") - fd_QueryGetCurrentAggregatedReportRequest_query_id = md_QueryGetCurrentAggregatedReportRequest.Fields().ByName("query_id") + md_QueryGetDataBeforeResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetDataBeforeResponse") + fd_QueryGetDataBeforeResponse_aggregate = md_QueryGetDataBeforeResponse.Fields().ByName("aggregate") + fd_QueryGetDataBeforeResponse_timestamp = md_QueryGetDataBeforeResponse.Fields().ByName("timestamp") } -var _ protoreflect.Message = (*fastReflection_QueryGetCurrentAggregatedReportRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetDataBeforeResponse)(nil) -type fastReflection_QueryGetCurrentAggregatedReportRequest QueryGetCurrentAggregatedReportRequest +type fastReflection_QueryGetDataBeforeResponse QueryGetDataBeforeResponse -func (x *QueryGetCurrentAggregatedReportRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetCurrentAggregatedReportRequest)(x) +func (x *QueryGetDataBeforeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetDataBeforeResponse)(x) } -func (x *QueryGetCurrentAggregatedReportRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[11] +func (x *QueryGetDataBeforeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4773,43 +5979,43 @@ func (x *QueryGetCurrentAggregatedReportRequest) slowProtoReflect() protoreflect return mi.MessageOf(x) } -var _fastReflection_QueryGetCurrentAggregatedReportRequest_messageType fastReflection_QueryGetCurrentAggregatedReportRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetCurrentAggregatedReportRequest_messageType{} +var _fastReflection_QueryGetDataBeforeResponse_messageType fastReflection_QueryGetDataBeforeResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetDataBeforeResponse_messageType{} -type fastReflection_QueryGetCurrentAggregatedReportRequest_messageType struct{} +type fastReflection_QueryGetDataBeforeResponse_messageType struct{} -func (x fastReflection_QueryGetCurrentAggregatedReportRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetCurrentAggregatedReportRequest)(nil) +func (x fastReflection_QueryGetDataBeforeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetDataBeforeResponse)(nil) } -func (x fastReflection_QueryGetCurrentAggregatedReportRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetCurrentAggregatedReportRequest) +func (x fastReflection_QueryGetDataBeforeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetDataBeforeResponse) } -func (x fastReflection_QueryGetCurrentAggregatedReportRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetCurrentAggregatedReportRequest +func (x fastReflection_QueryGetDataBeforeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetDataBeforeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetCurrentAggregatedReportRequest +func (x *fastReflection_QueryGetDataBeforeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetDataBeforeResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetCurrentAggregatedReportRequest_messageType +func (x *fastReflection_QueryGetDataBeforeResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetDataBeforeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetCurrentAggregatedReportRequest) +func (x *fastReflection_QueryGetDataBeforeResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetDataBeforeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetCurrentAggregatedReportRequest)(x) +func (x *fastReflection_QueryGetDataBeforeResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetDataBeforeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4817,10 +6023,16 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Interface() prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.QueryId != "" { - value := protoreflect.ValueOfString(x.QueryId) - if !f(fd_QueryGetCurrentAggregatedReportRequest_query_id, value) { +func (x *fastReflection_QueryGetDataBeforeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Aggregate != nil { + value := protoreflect.ValueOfMessage(x.Aggregate.ProtoReflect()) + if !f(fd_QueryGetDataBeforeResponse_aggregate, value) { + return + } + } + if x.Timestamp != uint64(0) { + value := protoreflect.ValueOfUint64(x.Timestamp) + if !f(fd_QueryGetDataBeforeResponse_timestamp, value) { return } } @@ -4837,15 +6049,17 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Range(f func(pro // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetDataBeforeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": - return x.QueryId != "" + case "layer.oracle.QueryGetDataBeforeResponse.aggregate": + return x.Aggregate != nil + case "layer.oracle.QueryGetDataBeforeResponse.timestamp": + return x.Timestamp != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) } } @@ -4855,15 +6069,17 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Has(fd protorefl // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetDataBeforeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": - x.QueryId = "" + case "layer.oracle.QueryGetDataBeforeResponse.aggregate": + x.Aggregate = nil + case "layer.oracle.QueryGetDataBeforeResponse.timestamp": + x.Timestamp = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) } } @@ -4873,16 +6089,19 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Clear(fd protore // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetDataBeforeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": - value := x.QueryId - return protoreflect.ValueOfString(value) + case "layer.oracle.QueryGetDataBeforeResponse.aggregate": + value := x.Aggregate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "layer.oracle.QueryGetDataBeforeResponse.timestamp": + value := x.Timestamp + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeResponse does not contain field %s", descriptor.FullName())) } } @@ -4896,15 +6115,17 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Get(descriptor p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetDataBeforeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": - x.QueryId = value.Interface().(string) + case "layer.oracle.QueryGetDataBeforeResponse.aggregate": + x.Aggregate = value.Message().Interface().(*Aggregate) + case "layer.oracle.QueryGetDataBeforeResponse.timestamp": + x.Timestamp = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) } } @@ -4918,40 +6139,48 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Set(fd protorefl // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetDataBeforeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": - panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetCurrentAggregatedReportRequest is not mutable")) + case "layer.oracle.QueryGetDataBeforeResponse.aggregate": + if x.Aggregate == nil { + x.Aggregate = new(Aggregate) + } + return protoreflect.ValueOfMessage(x.Aggregate.ProtoReflect()) + case "layer.oracle.QueryGetDataBeforeResponse.timestamp": + panic(fmt.Errorf("field timestamp of message layer.oracle.QueryGetDataBeforeResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetDataBeforeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetCurrentAggregatedReportRequest.query_id": - return protoreflect.ValueOfString("") + case "layer.oracle.QueryGetDataBeforeResponse.aggregate": + m := new(Aggregate) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "layer.oracle.QueryGetDataBeforeResponse.timestamp": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetCurrentAggregatedReportRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetCurrentAggregatedReportRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetDataBeforeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetCurrentAggregatedReportRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetDataBeforeResponse", d.FullName())) } panic("unreachable") } @@ -4959,7 +6188,7 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) WhichOneof(d pro // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetDataBeforeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4970,7 +6199,7 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) GetUnknown() pro // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetDataBeforeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4982,7 +6211,7 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) SetUnknown(field // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) IsValid() bool { +func (x *fastReflection_QueryGetDataBeforeResponse) IsValid() bool { return x != nil } @@ -4992,9 +6221,9 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetDataBeforeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetCurrentAggregatedReportRequest) + x := input.Message.Interface().(*QueryGetDataBeforeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5005,11 +6234,14 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * _ = options var n int var l int - _ = l - l = len(x.QueryId) - if l > 0 { + _ = l + if x.Aggregate != nil { + l = options.Size(x.Aggregate) n += 1 + l + runtime.Sov(uint64(l)) } + if x.Timestamp != 0 { + n += 1 + runtime.Sov(uint64(x.Timestamp)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5020,7 +6252,7 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetCurrentAggregatedReportRequest) + x := input.Message.Interface().(*QueryGetDataBeforeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5039,10 +6271,22 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.QueryId) > 0 { - i -= len(x.QueryId) - copy(dAtA[i:], x.QueryId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) + if x.Timestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if x.Aggregate != nil { + encoded, err := options.Marshal(x.Aggregate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -5057,7 +6301,7 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetCurrentAggregatedReportRequest) + x := input.Message.Interface().(*QueryGetDataBeforeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5089,17 +6333,17 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentAggregatedReportRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCurrentAggregatedReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5109,24 +6353,47 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.QueryId = string(dAtA[iNdEx:postIndex]) + if x.Aggregate == nil { + x.Aggregate = &Aggregate{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Aggregate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + x.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5163,26 +6430,24 @@ func (x *fastReflection_QueryGetCurrentAggregatedReportRequest) ProtoMethods() * } var ( - md_QueryGetAggregatedReportResponse protoreflect.MessageDescriptor - fd_QueryGetAggregatedReportResponse_report protoreflect.FieldDescriptor + md_QueryGetTimeBasedRewardsRequest protoreflect.MessageDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetAggregatedReportResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetAggregatedReportResponse") - fd_QueryGetAggregatedReportResponse_report = md_QueryGetAggregatedReportResponse.Fields().ByName("report") + md_QueryGetTimeBasedRewardsRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetTimeBasedRewardsRequest") } -var _ protoreflect.Message = (*fastReflection_QueryGetAggregatedReportResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetTimeBasedRewardsRequest)(nil) -type fastReflection_QueryGetAggregatedReportResponse QueryGetAggregatedReportResponse +type fastReflection_QueryGetTimeBasedRewardsRequest QueryGetTimeBasedRewardsRequest -func (x *QueryGetAggregatedReportResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetAggregatedReportResponse)(x) +func (x *QueryGetTimeBasedRewardsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetTimeBasedRewardsRequest)(x) } -func (x *QueryGetAggregatedReportResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[12] +func (x *QueryGetTimeBasedRewardsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5193,43 +6458,43 @@ func (x *QueryGetAggregatedReportResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryGetAggregatedReportResponse_messageType fastReflection_QueryGetAggregatedReportResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetAggregatedReportResponse_messageType{} +var _fastReflection_QueryGetTimeBasedRewardsRequest_messageType fastReflection_QueryGetTimeBasedRewardsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetTimeBasedRewardsRequest_messageType{} -type fastReflection_QueryGetAggregatedReportResponse_messageType struct{} +type fastReflection_QueryGetTimeBasedRewardsRequest_messageType struct{} -func (x fastReflection_QueryGetAggregatedReportResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetAggregatedReportResponse)(nil) +func (x fastReflection_QueryGetTimeBasedRewardsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetTimeBasedRewardsRequest)(nil) } -func (x fastReflection_QueryGetAggregatedReportResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetAggregatedReportResponse) +func (x fastReflection_QueryGetTimeBasedRewardsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetTimeBasedRewardsRequest) } -func (x fastReflection_QueryGetAggregatedReportResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAggregatedReportResponse +func (x fastReflection_QueryGetTimeBasedRewardsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTimeBasedRewardsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetAggregatedReportResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAggregatedReportResponse +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTimeBasedRewardsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetAggregatedReportResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetAggregatedReportResponse_messageType +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetTimeBasedRewardsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetAggregatedReportResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetAggregatedReportResponse) +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetTimeBasedRewardsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetAggregatedReportResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetAggregatedReportResponse)(x) +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetTimeBasedRewardsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -5237,13 +6502,7 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetAggregatedReportResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Report != nil { - value := protoreflect.ValueOfMessage(x.Report.ProtoReflect()) - if !f(fd_QueryGetAggregatedReportResponse_report, value) { - return - } - } +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5257,15 +6516,13 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetAggregatedReportResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetAggregatedReportResponse.report": - return x.Report != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) } } @@ -5275,15 +6532,13 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedReportResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetAggregatedReportResponse.report": - x.Report = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) } } @@ -5293,16 +6548,13 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetAggregatedReportResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetAggregatedReportResponse.report": - value := x.Report - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", descriptor.FullName())) } } @@ -5316,15 +6568,13 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedReportResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetAggregatedReportResponse.report": - x.Report = value.Message().Interface().(*Aggregate) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) } } @@ -5338,44 +6588,36 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedReportResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetAggregatedReportResponse.report": - if x.Report == nil { - x.Report = new(Aggregate) - } - return protoreflect.ValueOfMessage(x.Report.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetAggregatedReportResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetAggregatedReportResponse.report": - m := new(Aggregate) - return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetAggregatedReportResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetAggregatedReportResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetAggregatedReportResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetAggregatedReportResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetTimeBasedRewardsRequest", d.FullName())) } panic("unreachable") } @@ -5383,7 +6625,7 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetAggregatedReportResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5394,7 +6636,7 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedReportResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5406,7 +6648,7 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetAggregatedReportResponse) IsValid() bool { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) IsValid() bool { return x != nil } @@ -5416,9 +6658,9 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetTimeBasedRewardsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetAggregatedReportResponse) + x := input.Message.Interface().(*QueryGetTimeBasedRewardsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5430,10 +6672,6 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoi var n int var l int _ = l - if x.Report != nil { - l = options.Size(x.Report) - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5444,7 +6682,7 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAggregatedReportResponse) + x := input.Message.Interface().(*QueryGetTimeBasedRewardsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5463,20 +6701,6 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Report != nil { - encoded, err := options.Marshal(x.Report) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -5488,7 +6712,7 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAggregatedReportResponse) + x := input.Message.Interface().(*QueryGetTimeBasedRewardsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5511,57 +6735,21 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoi return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedReportResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Report == nil { - x.Report = &Aggregate{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Report); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5598,28 +6786,26 @@ func (x *fastReflection_QueryGetAggregatedReportResponse) ProtoMethods() *protoi } var ( - md_QueryGetDataBeforeRequest protoreflect.MessageDescriptor - fd_QueryGetDataBeforeRequest_query_id protoreflect.FieldDescriptor - fd_QueryGetDataBeforeRequest_timestamp protoreflect.FieldDescriptor + md_QueryGetTimeBasedRewardsResponse protoreflect.MessageDescriptor + fd_QueryGetTimeBasedRewardsResponse_reward protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetDataBeforeRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetDataBeforeRequest") - fd_QueryGetDataBeforeRequest_query_id = md_QueryGetDataBeforeRequest.Fields().ByName("query_id") - fd_QueryGetDataBeforeRequest_timestamp = md_QueryGetDataBeforeRequest.Fields().ByName("timestamp") + md_QueryGetTimeBasedRewardsResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetTimeBasedRewardsResponse") + fd_QueryGetTimeBasedRewardsResponse_reward = md_QueryGetTimeBasedRewardsResponse.Fields().ByName("reward") } -var _ protoreflect.Message = (*fastReflection_QueryGetDataBeforeRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGetTimeBasedRewardsResponse)(nil) -type fastReflection_QueryGetDataBeforeRequest QueryGetDataBeforeRequest +type fastReflection_QueryGetTimeBasedRewardsResponse QueryGetTimeBasedRewardsResponse -func (x *QueryGetDataBeforeRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetDataBeforeRequest)(x) +func (x *QueryGetTimeBasedRewardsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetTimeBasedRewardsResponse)(x) } -func (x *QueryGetDataBeforeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[13] +func (x *QueryGetTimeBasedRewardsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5630,43 +6816,43 @@ func (x *QueryGetDataBeforeRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetDataBeforeRequest_messageType fastReflection_QueryGetDataBeforeRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetDataBeforeRequest_messageType{} +var _fastReflection_QueryGetTimeBasedRewardsResponse_messageType fastReflection_QueryGetTimeBasedRewardsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetTimeBasedRewardsResponse_messageType{} -type fastReflection_QueryGetDataBeforeRequest_messageType struct{} +type fastReflection_QueryGetTimeBasedRewardsResponse_messageType struct{} -func (x fastReflection_QueryGetDataBeforeRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetDataBeforeRequest)(nil) +func (x fastReflection_QueryGetTimeBasedRewardsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetTimeBasedRewardsResponse)(nil) } -func (x fastReflection_QueryGetDataBeforeRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetDataBeforeRequest) +func (x fastReflection_QueryGetTimeBasedRewardsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetTimeBasedRewardsResponse) } -func (x fastReflection_QueryGetDataBeforeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetDataBeforeRequest +func (x fastReflection_QueryGetTimeBasedRewardsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTimeBasedRewardsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetDataBeforeRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetDataBeforeRequest +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTimeBasedRewardsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetDataBeforeRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetDataBeforeRequest_messageType +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetTimeBasedRewardsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetDataBeforeRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetDataBeforeRequest) +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetTimeBasedRewardsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetDataBeforeRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetDataBeforeRequest)(x) +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetTimeBasedRewardsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5674,16 +6860,10 @@ func (x *fastReflection_QueryGetDataBeforeRequest) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetDataBeforeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.QueryId != "" { - value := protoreflect.ValueOfString(x.QueryId) - if !f(fd_QueryGetDataBeforeRequest_query_id, value) { - return - } - } - if x.Timestamp != int64(0) { - value := protoreflect.ValueOfInt64(x.Timestamp) - if !f(fd_QueryGetDataBeforeRequest_timestamp, value) { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Reward != nil { + value := protoreflect.ValueOfMessage(x.Reward.ProtoReflect()) + if !f(fd_QueryGetTimeBasedRewardsResponse_reward, value) { return } } @@ -5700,17 +6880,15 @@ func (x *fastReflection_QueryGetDataBeforeRequest) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetDataBeforeRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetDataBeforeRequest.query_id": - return x.QueryId != "" - case "layer.oracle.QueryGetDataBeforeRequest.timestamp": - return x.Timestamp != int64(0) + case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": + return x.Reward != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) } } @@ -5720,17 +6898,15 @@ func (x *fastReflection_QueryGetDataBeforeRequest) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetDataBeforeRequest.query_id": - x.QueryId = "" - case "layer.oracle.QueryGetDataBeforeRequest.timestamp": - x.Timestamp = int64(0) + case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": + x.Reward = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) } } @@ -5740,19 +6916,16 @@ func (x *fastReflection_QueryGetDataBeforeRequest) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetDataBeforeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetDataBeforeRequest.query_id": - value := x.QueryId - return protoreflect.ValueOfString(value) - case "layer.oracle.QueryGetDataBeforeRequest.timestamp": - value := x.Timestamp - return protoreflect.ValueOfInt64(value) + case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": + value := x.Reward + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", descriptor.FullName())) } } @@ -5766,17 +6939,15 @@ func (x *fastReflection_QueryGetDataBeforeRequest) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetDataBeforeRequest.query_id": - x.QueryId = value.Interface().(string) - case "layer.oracle.QueryGetDataBeforeRequest.timestamp": - x.Timestamp = value.Int() + case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": + x.Reward = value.Message().Interface().(*v1beta11.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) } } @@ -5790,44 +6961,44 @@ func (x *fastReflection_QueryGetDataBeforeRequest) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetDataBeforeRequest.query_id": - panic(fmt.Errorf("field query_id of message layer.oracle.QueryGetDataBeforeRequest is not mutable")) - case "layer.oracle.QueryGetDataBeforeRequest.timestamp": - panic(fmt.Errorf("field timestamp of message layer.oracle.QueryGetDataBeforeRequest is not mutable")) + case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": + if x.Reward == nil { + x.Reward = new(v1beta11.Coin) + } + return protoreflect.ValueOfMessage(x.Reward.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetDataBeforeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetDataBeforeRequest.query_id": - return protoreflect.ValueOfString("") - case "layer.oracle.QueryGetDataBeforeRequest.timestamp": - return protoreflect.ValueOfInt64(int64(0)) + case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": + m := new(v1beta11.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetDataBeforeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetDataBeforeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetDataBeforeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetDataBeforeRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetTimeBasedRewardsResponse", d.FullName())) } panic("unreachable") } @@ -5835,7 +7006,7 @@ func (x *fastReflection_QueryGetDataBeforeRequest) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetDataBeforeRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5846,7 +7017,7 @@ func (x *fastReflection_QueryGetDataBeforeRequest) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetDataBeforeRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5858,7 +7029,7 @@ func (x *fastReflection_QueryGetDataBeforeRequest) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetDataBeforeRequest) IsValid() bool { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) IsValid() bool { return x != nil } @@ -5868,9 +7039,9 @@ func (x *fastReflection_QueryGetDataBeforeRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetDataBeforeRequest) + x := input.Message.Interface().(*QueryGetTimeBasedRewardsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5882,13 +7053,10 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me var n int var l int _ = l - l = len(x.QueryId) - if l > 0 { + if x.Reward != nil { + l = options.Size(x.Reward) n += 1 + l + runtime.Sov(uint64(l)) } - if x.Timestamp != 0 { - n += 1 + runtime.Sov(uint64(x.Timestamp)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5899,7 +7067,7 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetDataBeforeRequest) + x := input.Message.Interface().(*QueryGetTimeBasedRewardsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5918,15 +7086,17 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Timestamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) - i-- - dAtA[i] = 0x10 - } - if len(x.QueryId) > 0 { - i -= len(x.QueryId) - copy(dAtA[i:], x.QueryId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) + if x.Reward != nil { + encoded, err := options.Marshal(x.Reward) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -5941,7 +7111,7 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetDataBeforeRequest) + x := input.Message.Interface().(*QueryGetTimeBasedRewardsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5973,17 +7143,17 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDataBeforeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reward", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5993,43 +7163,28 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.QueryId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + if x.Reward == nil { + x.Reward = &v1beta11.Coin{} } - x.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Reward); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -6066,24 +7221,24 @@ func (x *fastReflection_QueryGetDataBeforeRequest) ProtoMethods() *protoiface.Me } var ( - md_QueryGetTimeBasedRewardsRequest protoreflect.MessageDescriptor + md_QueryCurrentCyclelistQueryRequest protoreflect.MessageDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetTimeBasedRewardsRequest = File_layer_oracle_query_proto.Messages().ByName("QueryGetTimeBasedRewardsRequest") + md_QueryCurrentCyclelistQueryRequest = File_layer_oracle_query_proto.Messages().ByName("QueryCurrentCyclelistQueryRequest") } -var _ protoreflect.Message = (*fastReflection_QueryGetTimeBasedRewardsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryCurrentCyclelistQueryRequest)(nil) -type fastReflection_QueryGetTimeBasedRewardsRequest QueryGetTimeBasedRewardsRequest +type fastReflection_QueryCurrentCyclelistQueryRequest QueryCurrentCyclelistQueryRequest -func (x *QueryGetTimeBasedRewardsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetTimeBasedRewardsRequest)(x) +func (x *QueryCurrentCyclelistQueryRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentCyclelistQueryRequest)(x) } -func (x *QueryGetTimeBasedRewardsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[14] +func (x *QueryCurrentCyclelistQueryRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6094,43 +7249,43 @@ func (x *QueryGetTimeBasedRewardsRequest) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryGetTimeBasedRewardsRequest_messageType fastReflection_QueryGetTimeBasedRewardsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetTimeBasedRewardsRequest_messageType{} +var _fastReflection_QueryCurrentCyclelistQueryRequest_messageType fastReflection_QueryCurrentCyclelistQueryRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentCyclelistQueryRequest_messageType{} -type fastReflection_QueryGetTimeBasedRewardsRequest_messageType struct{} +type fastReflection_QueryCurrentCyclelistQueryRequest_messageType struct{} -func (x fastReflection_QueryGetTimeBasedRewardsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetTimeBasedRewardsRequest)(nil) +func (x fastReflection_QueryCurrentCyclelistQueryRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentCyclelistQueryRequest)(nil) } -func (x fastReflection_QueryGetTimeBasedRewardsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetTimeBasedRewardsRequest) +func (x fastReflection_QueryCurrentCyclelistQueryRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentCyclelistQueryRequest) } -func (x fastReflection_QueryGetTimeBasedRewardsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetTimeBasedRewardsRequest +func (x fastReflection_QueryCurrentCyclelistQueryRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentCyclelistQueryRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetTimeBasedRewardsRequest +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentCyclelistQueryRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetTimeBasedRewardsRequest_messageType +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentCyclelistQueryRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetTimeBasedRewardsRequest) +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) New() protoreflect.Message { + return new(fastReflection_QueryCurrentCyclelistQueryRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetTimeBasedRewardsRequest)(x) +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentCyclelistQueryRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6138,7 +7293,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -6152,13 +7307,13 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) } } @@ -6168,13 +7323,13 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) } } @@ -6184,13 +7339,13 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", descriptor.FullName())) } } @@ -6204,13 +7359,13 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) } } @@ -6224,36 +7379,36 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetTimeBasedRewardsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryCurrentCyclelistQueryRequest", d.FullName())) } panic("unreachable") } @@ -6261,7 +7416,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6272,7 +7427,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6284,7 +7439,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) IsValid() bool { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) IsValid() bool { return x != nil } @@ -6294,9 +7449,9 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetTimeBasedRewardsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetTimeBasedRewardsRequest) + x := input.Message.Interface().(*QueryCurrentCyclelistQueryRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6318,7 +7473,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetTimeBasedRewardsRequest) + x := input.Message.Interface().(*QueryCurrentCyclelistQueryRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6348,7 +7503,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetTimeBasedRewardsRequest) + x := input.Message.Interface().(*QueryCurrentCyclelistQueryRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6380,10 +7535,10 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6422,26 +7577,26 @@ func (x *fastReflection_QueryGetTimeBasedRewardsRequest) ProtoMethods() *protoif } var ( - md_QueryGetTimeBasedRewardsResponse protoreflect.MessageDescriptor - fd_QueryGetTimeBasedRewardsResponse_reward protoreflect.FieldDescriptor + md_QueryCurrentCyclelistQueryResponse protoreflect.MessageDescriptor + fd_QueryCurrentCyclelistQueryResponse_query_data protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryGetTimeBasedRewardsResponse = File_layer_oracle_query_proto.Messages().ByName("QueryGetTimeBasedRewardsResponse") - fd_QueryGetTimeBasedRewardsResponse_reward = md_QueryGetTimeBasedRewardsResponse.Fields().ByName("reward") + md_QueryCurrentCyclelistQueryResponse = File_layer_oracle_query_proto.Messages().ByName("QueryCurrentCyclelistQueryResponse") + fd_QueryCurrentCyclelistQueryResponse_query_data = md_QueryCurrentCyclelistQueryResponse.Fields().ByName("query_data") } -var _ protoreflect.Message = (*fastReflection_QueryGetTimeBasedRewardsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryCurrentCyclelistQueryResponse)(nil) -type fastReflection_QueryGetTimeBasedRewardsResponse QueryGetTimeBasedRewardsResponse +type fastReflection_QueryCurrentCyclelistQueryResponse QueryCurrentCyclelistQueryResponse -func (x *QueryGetTimeBasedRewardsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetTimeBasedRewardsResponse)(x) +func (x *QueryCurrentCyclelistQueryResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentCyclelistQueryResponse)(x) } -func (x *QueryGetTimeBasedRewardsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[15] +func (x *QueryCurrentCyclelistQueryResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6452,43 +7607,43 @@ func (x *QueryGetTimeBasedRewardsResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryGetTimeBasedRewardsResponse_messageType fastReflection_QueryGetTimeBasedRewardsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetTimeBasedRewardsResponse_messageType{} +var _fastReflection_QueryCurrentCyclelistQueryResponse_messageType fastReflection_QueryCurrentCyclelistQueryResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentCyclelistQueryResponse_messageType{} -type fastReflection_QueryGetTimeBasedRewardsResponse_messageType struct{} +type fastReflection_QueryCurrentCyclelistQueryResponse_messageType struct{} -func (x fastReflection_QueryGetTimeBasedRewardsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetTimeBasedRewardsResponse)(nil) +func (x fastReflection_QueryCurrentCyclelistQueryResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentCyclelistQueryResponse)(nil) } -func (x fastReflection_QueryGetTimeBasedRewardsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetTimeBasedRewardsResponse) +func (x fastReflection_QueryCurrentCyclelistQueryResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentCyclelistQueryResponse) } -func (x fastReflection_QueryGetTimeBasedRewardsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetTimeBasedRewardsResponse +func (x fastReflection_QueryCurrentCyclelistQueryResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentCyclelistQueryResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetTimeBasedRewardsResponse +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentCyclelistQueryResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetTimeBasedRewardsResponse_messageType +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentCyclelistQueryResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetTimeBasedRewardsResponse) +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) New() protoreflect.Message { + return new(fastReflection_QueryCurrentCyclelistQueryResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetTimeBasedRewardsResponse)(x) +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentCyclelistQueryResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6496,10 +7651,10 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Reward != nil { - value := protoreflect.ValueOfMessage(x.Reward.ProtoReflect()) - if !f(fd_QueryGetTimeBasedRewardsResponse_reward, value) { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.QueryData != "" { + value := protoreflect.ValueOfString(x.QueryData) + if !f(fd_QueryCurrentCyclelistQueryResponse_query_data, value) { return } } @@ -6516,15 +7671,15 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": - return x.Reward != nil + case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": + return x.QueryData != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) } } @@ -6534,15 +7689,15 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": - x.Reward = nil + case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": + x.QueryData = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) } } @@ -6552,16 +7707,16 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": - value := x.Reward - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": + value := x.QueryData + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", descriptor.FullName())) } } @@ -6575,15 +7730,15 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": - x.Reward = value.Message().Interface().(*v1beta1.Coin) + case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": + x.QueryData = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) } } @@ -6597,44 +7752,40 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": - if x.Reward == nil { - x.Reward = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Reward.ProtoReflect()) + case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": + panic(fmt.Errorf("field query_data of message layer.oracle.QueryCurrentCyclelistQueryResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryGetTimeBasedRewardsResponse.reward": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryGetTimeBasedRewardsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryGetTimeBasedRewardsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryGetTimeBasedRewardsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryCurrentCyclelistQueryResponse", d.FullName())) } panic("unreachable") } @@ -6642,7 +7793,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6653,7 +7804,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6665,7 +7816,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) IsValid() bool { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) IsValid() bool { return x != nil } @@ -6675,9 +7826,9 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetTimeBasedRewardsResponse) + x := input.Message.Interface().(*QueryCurrentCyclelistQueryResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6689,8 +7840,8 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi var n int var l int _ = l - if x.Reward != nil { - l = options.Size(x.Reward) + l = len(x.QueryData) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -6703,7 +7854,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetTimeBasedRewardsResponse) + x := input.Message.Interface().(*QueryCurrentCyclelistQueryResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6722,17 +7873,10 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Reward != nil { - encoded, err := options.Marshal(x.Reward) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.QueryData) > 0 { + i -= len(x.QueryData) + copy(dAtA[i:], x.QueryData) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryData))) i-- dAtA[i] = 0xa } @@ -6747,7 +7891,7 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetTimeBasedRewardsResponse) + x := input.Message.Interface().(*QueryCurrentCyclelistQueryResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6779,17 +7923,17 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTimeBasedRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reward", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryData", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -6799,27 +7943,23 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Reward == nil { - x.Reward = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Reward); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.QueryData = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6857,24 +7997,28 @@ func (x *fastReflection_QueryGetTimeBasedRewardsResponse) ProtoMethods() *protoi } var ( - md_QueryCurrentCyclelistQueryRequest protoreflect.MessageDescriptor + md_QueryRetrieveDataRequest protoreflect.MessageDescriptor + fd_QueryRetrieveDataRequest_query_id protoreflect.FieldDescriptor + fd_QueryRetrieveDataRequest_timestamp protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryCurrentCyclelistQueryRequest = File_layer_oracle_query_proto.Messages().ByName("QueryCurrentCyclelistQueryRequest") + md_QueryRetrieveDataRequest = File_layer_oracle_query_proto.Messages().ByName("QueryRetrieveDataRequest") + fd_QueryRetrieveDataRequest_query_id = md_QueryRetrieveDataRequest.Fields().ByName("query_id") + fd_QueryRetrieveDataRequest_timestamp = md_QueryRetrieveDataRequest.Fields().ByName("timestamp") } -var _ protoreflect.Message = (*fastReflection_QueryCurrentCyclelistQueryRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryRetrieveDataRequest)(nil) -type fastReflection_QueryCurrentCyclelistQueryRequest QueryCurrentCyclelistQueryRequest +type fastReflection_QueryRetrieveDataRequest QueryRetrieveDataRequest -func (x *QueryCurrentCyclelistQueryRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCurrentCyclelistQueryRequest)(x) +func (x *QueryRetrieveDataRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRetrieveDataRequest)(x) } -func (x *QueryCurrentCyclelistQueryRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[16] +func (x *QueryRetrieveDataRequest) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6885,43 +8029,43 @@ func (x *QueryCurrentCyclelistQueryRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryCurrentCyclelistQueryRequest_messageType fastReflection_QueryCurrentCyclelistQueryRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCurrentCyclelistQueryRequest_messageType{} +var _fastReflection_QueryRetrieveDataRequest_messageType fastReflection_QueryRetrieveDataRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRetrieveDataRequest_messageType{} -type fastReflection_QueryCurrentCyclelistQueryRequest_messageType struct{} +type fastReflection_QueryRetrieveDataRequest_messageType struct{} -func (x fastReflection_QueryCurrentCyclelistQueryRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCurrentCyclelistQueryRequest)(nil) +func (x fastReflection_QueryRetrieveDataRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRetrieveDataRequest)(nil) } -func (x fastReflection_QueryCurrentCyclelistQueryRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCurrentCyclelistQueryRequest) +func (x fastReflection_QueryRetrieveDataRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRetrieveDataRequest) } -func (x fastReflection_QueryCurrentCyclelistQueryRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCurrentCyclelistQueryRequest +func (x fastReflection_QueryRetrieveDataRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRetrieveDataRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCurrentCyclelistQueryRequest +func (x *fastReflection_QueryRetrieveDataRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRetrieveDataRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCurrentCyclelistQueryRequest_messageType +func (x *fastReflection_QueryRetrieveDataRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRetrieveDataRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) New() protoreflect.Message { - return new(fastReflection_QueryCurrentCyclelistQueryRequest) +func (x *fastReflection_QueryRetrieveDataRequest) New() protoreflect.Message { + return new(fastReflection_QueryRetrieveDataRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCurrentCyclelistQueryRequest)(x) +func (x *fastReflection_QueryRetrieveDataRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRetrieveDataRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6929,7 +8073,19 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryRetrieveDataRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.QueryId != "" { + value := protoreflect.ValueOfString(x.QueryId) + if !f(fd_QueryRetrieveDataRequest_query_id, value) { + return + } + } + if x.Timestamp != int64(0) { + value := protoreflect.ValueOfInt64(x.Timestamp) + if !f(fd_QueryRetrieveDataRequest_timestamp, value) { + return + } + } } // Has reports whether a field is populated. @@ -6943,13 +8099,17 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryRetrieveDataRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "layer.oracle.QueryRetrieveDataRequest.query_id": + return x.QueryId != "" + case "layer.oracle.QueryRetrieveDataRequest.timestamp": + return x.Timestamp != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataRequest does not contain field %s", fd.FullName())) } } @@ -6959,13 +8119,17 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryRetrieveDataRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "layer.oracle.QueryRetrieveDataRequest.query_id": + x.QueryId = "" + case "layer.oracle.QueryRetrieveDataRequest.timestamp": + x.Timestamp = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataRequest does not contain field %s", fd.FullName())) } } @@ -6975,13 +8139,19 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRetrieveDataRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "layer.oracle.QueryRetrieveDataRequest.query_id": + value := x.QueryId + return protoreflect.ValueOfString(value) + case "layer.oracle.QueryRetrieveDataRequest.timestamp": + value := x.Timestamp + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataRequest does not contain field %s", descriptor.FullName())) } } @@ -6995,13 +8165,17 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryRetrieveDataRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "layer.oracle.QueryRetrieveDataRequest.query_id": + x.QueryId = value.Interface().(string) + case "layer.oracle.QueryRetrieveDataRequest.timestamp": + x.Timestamp = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataRequest does not contain field %s", fd.FullName())) } } @@ -7015,36 +8189,44 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRetrieveDataRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "layer.oracle.QueryRetrieveDataRequest.query_id": + panic(fmt.Errorf("field query_id of message layer.oracle.QueryRetrieveDataRequest is not mutable")) + case "layer.oracle.QueryRetrieveDataRequest.timestamp": + panic(fmt.Errorf("field timestamp of message layer.oracle.QueryRetrieveDataRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRetrieveDataRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "layer.oracle.QueryRetrieveDataRequest.query_id": + return protoreflect.ValueOfString("") + case "layer.oracle.QueryRetrieveDataRequest.timestamp": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataRequest")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryRetrieveDataRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryCurrentCyclelistQueryRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryRetrieveDataRequest", d.FullName())) } panic("unreachable") } @@ -7052,7 +8234,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryRetrieveDataRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7063,7 +8245,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryRetrieveDataRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7075,7 +8257,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) IsValid() bool { +func (x *fastReflection_QueryRetrieveDataRequest) IsValid() bool { return x != nil } @@ -7085,9 +8267,9 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryRetrieveDataRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCurrentCyclelistQueryRequest) + x := input.Message.Interface().(*QueryRetrieveDataRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7099,6 +8281,13 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *proto var n int var l int _ = l + l = len(x.QueryId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != 0 { + n += 1 + runtime.Sov(uint64(x.Timestamp)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -7109,7 +8298,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryCurrentCyclelistQueryRequest) + x := input.Message.Interface().(*QueryRetrieveDataRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7128,6 +8317,18 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Timestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if len(x.QueryId) > 0 { + i -= len(x.QueryId) + copy(dAtA[i:], x.QueryId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryId))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -7139,7 +8340,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCurrentCyclelistQueryRequest) + x := input.Message.Interface().(*QueryRetrieveDataRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7171,12 +8372,63 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRetrieveDataRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRetrieveDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + x.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -7213,26 +8465,26 @@ func (x *fastReflection_QueryCurrentCyclelistQueryRequest) ProtoMethods() *proto } var ( - md_QueryCurrentCyclelistQueryResponse protoreflect.MessageDescriptor - fd_QueryCurrentCyclelistQueryResponse_query_data protoreflect.FieldDescriptor + md_QueryRetrieveDataResponse protoreflect.MessageDescriptor + fd_QueryRetrieveDataResponse_aggregate protoreflect.FieldDescriptor ) func init() { file_layer_oracle_query_proto_init() - md_QueryCurrentCyclelistQueryResponse = File_layer_oracle_query_proto.Messages().ByName("QueryCurrentCyclelistQueryResponse") - fd_QueryCurrentCyclelistQueryResponse_query_data = md_QueryCurrentCyclelistQueryResponse.Fields().ByName("query_data") + md_QueryRetrieveDataResponse = File_layer_oracle_query_proto.Messages().ByName("QueryRetrieveDataResponse") + fd_QueryRetrieveDataResponse_aggregate = md_QueryRetrieveDataResponse.Fields().ByName("aggregate") } -var _ protoreflect.Message = (*fastReflection_QueryCurrentCyclelistQueryResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryRetrieveDataResponse)(nil) -type fastReflection_QueryCurrentCyclelistQueryResponse QueryCurrentCyclelistQueryResponse +type fastReflection_QueryRetrieveDataResponse QueryRetrieveDataResponse -func (x *QueryCurrentCyclelistQueryResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCurrentCyclelistQueryResponse)(x) +func (x *QueryRetrieveDataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRetrieveDataResponse)(x) } -func (x *QueryCurrentCyclelistQueryResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_oracle_query_proto_msgTypes[17] +func (x *QueryRetrieveDataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_layer_oracle_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7243,43 +8495,43 @@ func (x *QueryCurrentCyclelistQueryResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryCurrentCyclelistQueryResponse_messageType fastReflection_QueryCurrentCyclelistQueryResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCurrentCyclelistQueryResponse_messageType{} +var _fastReflection_QueryRetrieveDataResponse_messageType fastReflection_QueryRetrieveDataResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRetrieveDataResponse_messageType{} -type fastReflection_QueryCurrentCyclelistQueryResponse_messageType struct{} +type fastReflection_QueryRetrieveDataResponse_messageType struct{} -func (x fastReflection_QueryCurrentCyclelistQueryResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCurrentCyclelistQueryResponse)(nil) +func (x fastReflection_QueryRetrieveDataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRetrieveDataResponse)(nil) } -func (x fastReflection_QueryCurrentCyclelistQueryResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCurrentCyclelistQueryResponse) +func (x fastReflection_QueryRetrieveDataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRetrieveDataResponse) } -func (x fastReflection_QueryCurrentCyclelistQueryResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCurrentCyclelistQueryResponse +func (x fastReflection_QueryRetrieveDataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRetrieveDataResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCurrentCyclelistQueryResponse +func (x *fastReflection_QueryRetrieveDataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRetrieveDataResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCurrentCyclelistQueryResponse_messageType +func (x *fastReflection_QueryRetrieveDataResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRetrieveDataResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) New() protoreflect.Message { - return new(fastReflection_QueryCurrentCyclelistQueryResponse) +func (x *fastReflection_QueryRetrieveDataResponse) New() protoreflect.Message { + return new(fastReflection_QueryRetrieveDataResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCurrentCyclelistQueryResponse)(x) +func (x *fastReflection_QueryRetrieveDataResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRetrieveDataResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7287,10 +8539,10 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.QueryData != "" { - value := protoreflect.ValueOfString(x.QueryData) - if !f(fd_QueryCurrentCyclelistQueryResponse_query_data, value) { +func (x *fastReflection_QueryRetrieveDataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Aggregate != nil { + value := protoreflect.ValueOfMessage(x.Aggregate.ProtoReflect()) + if !f(fd_QueryRetrieveDataResponse_aggregate, value) { return } } @@ -7307,15 +8559,15 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryRetrieveDataResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": - return x.QueryData != "" + case "layer.oracle.QueryRetrieveDataResponse.aggregate": + return x.Aggregate != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataResponse does not contain field %s", fd.FullName())) } } @@ -7325,15 +8577,15 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryRetrieveDataResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": - x.QueryData = "" + case "layer.oracle.QueryRetrieveDataResponse.aggregate": + x.Aggregate = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataResponse does not contain field %s", fd.FullName())) } } @@ -7343,16 +8595,16 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRetrieveDataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": - value := x.QueryData - return protoreflect.ValueOfString(value) + case "layer.oracle.QueryRetrieveDataResponse.aggregate": + value := x.Aggregate + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataResponse does not contain field %s", descriptor.FullName())) } } @@ -7366,15 +8618,15 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryRetrieveDataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": - x.QueryData = value.Interface().(string) + case "layer.oracle.QueryRetrieveDataResponse.aggregate": + x.Aggregate = value.Message().Interface().(*Aggregate) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataResponse does not contain field %s", fd.FullName())) } } @@ -7388,40 +8640,44 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRetrieveDataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": - panic(fmt.Errorf("field query_data of message layer.oracle.QueryCurrentCyclelistQueryResponse is not mutable")) + case "layer.oracle.QueryRetrieveDataResponse.aggregate": + if x.Aggregate == nil { + x.Aggregate = new(Aggregate) + } + return protoreflect.ValueOfMessage(x.Aggregate.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRetrieveDataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "layer.oracle.QueryCurrentCyclelistQueryResponse.query_data": - return protoreflect.ValueOfString("") + case "layer.oracle.QueryRetrieveDataResponse.aggregate": + m := new(Aggregate) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryCurrentCyclelistQueryResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.oracle.QueryRetrieveDataResponse")) } - panic(fmt.Errorf("message layer.oracle.QueryCurrentCyclelistQueryResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message layer.oracle.QueryRetrieveDataResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryRetrieveDataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryCurrentCyclelistQueryResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in layer.oracle.QueryRetrieveDataResponse", d.FullName())) } panic("unreachable") } @@ -7429,7 +8685,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryRetrieveDataResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7440,7 +8696,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryRetrieveDataResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7452,7 +8708,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) IsValid() bool { +func (x *fastReflection_QueryRetrieveDataResponse) IsValid() bool { return x != nil } @@ -7462,9 +8718,9 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryRetrieveDataResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCurrentCyclelistQueryResponse) + x := input.Message.Interface().(*QueryRetrieveDataResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7476,8 +8732,8 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *prot var n int var l int _ = l - l = len(x.QueryData) - if l > 0 { + if x.Aggregate != nil { + l = options.Size(x.Aggregate) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -7490,7 +8746,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryCurrentCyclelistQueryResponse) + x := input.Message.Interface().(*QueryRetrieveDataResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7509,10 +8765,17 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.QueryData) > 0 { - i -= len(x.QueryData) - copy(dAtA[i:], x.QueryData) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.QueryData))) + if x.Aggregate != nil { + encoded, err := options.Marshal(x.Aggregate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -7527,7 +8790,7 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCurrentCyclelistQueryResponse) + x := input.Message.Interface().(*QueryRetrieveDataResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7559,17 +8822,17 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRetrieveDataResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentCyclelistQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRetrieveDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueryData", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -7579,23 +8842,27 @@ func (x *fastReflection_QueryCurrentCyclelistQueryResponse) ProtoMethods() *prot } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.QueryData = string(dAtA[iNdEx:postIndex]) + if x.Aggregate == nil { + x.Aggregate = &Aggregate{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Aggregate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7709,16 +8976,18 @@ func (x *QueryParamsResponse) GetParams() *Params { return nil } -type QueryGetReportsbyQidRequest struct { +type QueryMicroReportsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + MicroReports []*MicroReport `protobuf:"bytes,1,rep,name=microReports,proto3" json:"microReports,omitempty"` + // pagination defines the pagination in the response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryGetReportsbyQidRequest) Reset() { - *x = QueryGetReportsbyQidRequest{} +func (x *QueryMicroReportsResponse) Reset() { + *x = QueryMicroReportsResponse{} if protoimpl.UnsafeEnabled { mi := &file_layer_oracle_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7726,34 +8995,44 @@ func (x *QueryGetReportsbyQidRequest) Reset() { } } -func (x *QueryGetReportsbyQidRequest) String() string { +func (x *QueryMicroReportsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetReportsbyQidRequest) ProtoMessage() {} +func (*QueryMicroReportsResponse) ProtoMessage() {} -// Deprecated: Use QueryGetReportsbyQidRequest.ProtoReflect.Descriptor instead. -func (*QueryGetReportsbyQidRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryMicroReportsResponse.ProtoReflect.Descriptor instead. +func (*QueryMicroReportsResponse) Descriptor() ([]byte, []int) { return file_layer_oracle_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryGetReportsbyQidRequest) GetQueryId() string { +func (x *QueryMicroReportsResponse) GetMicroReports() []*MicroReport { if x != nil { - return x.QueryId + return x.MicroReports } - return "" + return nil +} + +func (x *QueryMicroReportsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil } -type QueryGetReportsbyQidResponse struct { +type QueryGetReportsbyQidRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Reports *Reports `protobuf:"bytes,1,opt,name=reports,proto3" json:"reports,omitempty"` + // query id of requested data + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryGetReportsbyQidResponse) Reset() { - *x = QueryGetReportsbyQidResponse{} +func (x *QueryGetReportsbyQidRequest) Reset() { + *x = QueryGetReportsbyQidRequest{} if protoimpl.UnsafeEnabled { mi := &file_layer_oracle_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7761,20 +9040,27 @@ func (x *QueryGetReportsbyQidResponse) Reset() { } } -func (x *QueryGetReportsbyQidResponse) String() string { +func (x *QueryGetReportsbyQidRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetReportsbyQidResponse) ProtoMessage() {} +func (*QueryGetReportsbyQidRequest) ProtoMessage() {} -// Deprecated: Use QueryGetReportsbyQidResponse.ProtoReflect.Descriptor instead. -func (*QueryGetReportsbyQidResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGetReportsbyQidRequest.ProtoReflect.Descriptor instead. +func (*QueryGetReportsbyQidRequest) Descriptor() ([]byte, []int) { return file_layer_oracle_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryGetReportsbyQidResponse) GetReports() *Reports { +func (x *QueryGetReportsbyQidRequest) GetQueryId() string { + if x != nil { + return x.QueryId + } + return "" +} + +func (x *QueryGetReportsbyQidRequest) GetPagination() *v1beta1.PageRequest { if x != nil { - return x.Reports + return x.Pagination } return nil } @@ -7785,6 +9071,8 @@ type QueryGetReportsbyReporterRequest struct { unknownFields protoimpl.UnknownFields Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryGetReportsbyReporterRequest) Reset() { @@ -7814,37 +9102,9 @@ func (x *QueryGetReportsbyReporterRequest) GetReporter() string { return "" } -type QueryGetReportsbyReporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MicroReports []*MicroReport `protobuf:"bytes,1,rep,name=microReports,proto3" json:"microReports,omitempty"` -} - -func (x *QueryGetReportsbyReporterResponse) Reset() { - *x = QueryGetReportsbyReporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetReportsbyReporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetReportsbyReporterResponse) ProtoMessage() {} - -// Deprecated: Use QueryGetReportsbyReporterResponse.ProtoReflect.Descriptor instead. -func (*QueryGetReportsbyReporterResponse) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryGetReportsbyReporterResponse) GetMicroReports() []*MicroReport { +func (x *QueryGetReportsbyReporterRequest) GetPagination() *v1beta1.PageRequest { if x != nil { - return x.MicroReports + return x.Pagination } return nil } @@ -7856,12 +9116,14 @@ type QueryGetReportsbyReporterQidRequest struct { Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` QueryId string `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryGetReportsbyReporterQidRequest) Reset() { *x = QueryGetReportsbyReporterQidRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[6] + mi := &file_layer_oracle_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7875,7 +9137,7 @@ func (*QueryGetReportsbyReporterQidRequest) ProtoMessage() {} // Deprecated: Use QueryGetReportsbyReporterQidRequest.ProtoReflect.Descriptor instead. func (*QueryGetReportsbyReporterQidRequest) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{6} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{5} } func (x *QueryGetReportsbyReporterQidRequest) GetReporter() string { @@ -7892,6 +9154,13 @@ func (x *QueryGetReportsbyReporterQidRequest) GetQueryId() string { return "" } +func (x *QueryGetReportsbyReporterQidRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + type QueryGetCurrentTipRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7903,7 +9172,7 @@ type QueryGetCurrentTipRequest struct { func (x *QueryGetCurrentTipRequest) Reset() { *x = QueryGetCurrentTipRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[7] + mi := &file_layer_oracle_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7917,7 +9186,7 @@ func (*QueryGetCurrentTipRequest) ProtoMessage() {} // Deprecated: Use QueryGetCurrentTipRequest.ProtoReflect.Descriptor instead. func (*QueryGetCurrentTipRequest) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{7} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{6} } func (x *QueryGetCurrentTipRequest) GetQueryData() string { @@ -7938,7 +9207,7 @@ type QueryGetCurrentTipResponse struct { func (x *QueryGetCurrentTipResponse) Reset() { *x = QueryGetCurrentTipResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[8] + mi := &file_layer_oracle_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7952,7 +9221,7 @@ func (*QueryGetCurrentTipResponse) ProtoMessage() {} // Deprecated: Use QueryGetCurrentTipResponse.ProtoReflect.Descriptor instead. func (*QueryGetCurrentTipResponse) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{8} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{7} } func (x *QueryGetCurrentTipResponse) GetTips() string { @@ -7973,7 +9242,7 @@ type QueryGetUserTipTotalRequest struct { func (x *QueryGetUserTipTotalRequest) Reset() { *x = QueryGetUserTipTotalRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[9] + mi := &file_layer_oracle_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7987,7 +9256,7 @@ func (*QueryGetUserTipTotalRequest) ProtoMessage() {} // Deprecated: Use QueryGetUserTipTotalRequest.ProtoReflect.Descriptor instead. func (*QueryGetUserTipTotalRequest) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{9} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{8} } func (x *QueryGetUserTipTotalRequest) GetTipper() string { @@ -8008,7 +9277,7 @@ type QueryGetUserTipTotalResponse struct { func (x *QueryGetUserTipTotalResponse) Reset() { *x = QueryGetUserTipTotalResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[10] + mi := &file_layer_oracle_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8022,7 +9291,7 @@ func (*QueryGetUserTipTotalResponse) ProtoMessage() {} // Deprecated: Use QueryGetUserTipTotalResponse.ProtoReflect.Descriptor instead. func (*QueryGetUserTipTotalResponse) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{10} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{9} } func (x *QueryGetUserTipTotalResponse) GetTotalTips() string { @@ -8043,7 +9312,7 @@ type QueryGetCurrentAggregatedReportRequest struct { func (x *QueryGetCurrentAggregatedReportRequest) Reset() { *x = QueryGetCurrentAggregatedReportRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[11] + mi := &file_layer_oracle_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8057,7 +9326,7 @@ func (*QueryGetCurrentAggregatedReportRequest) ProtoMessage() {} // Deprecated: Use QueryGetCurrentAggregatedReportRequest.ProtoReflect.Descriptor instead. func (*QueryGetCurrentAggregatedReportRequest) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{11} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{10} } func (x *QueryGetCurrentAggregatedReportRequest) GetQueryId() string { @@ -8078,7 +9347,7 @@ type QueryGetAggregatedReportResponse struct { func (x *QueryGetAggregatedReportResponse) Reset() { *x = QueryGetAggregatedReportResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[12] + mi := &file_layer_oracle_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8092,7 +9361,7 @@ func (*QueryGetAggregatedReportResponse) ProtoMessage() {} // Deprecated: Use QueryGetAggregatedReportResponse.ProtoReflect.Descriptor instead. func (*QueryGetAggregatedReportResponse) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{12} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{11} } func (x *QueryGetAggregatedReportResponse) GetReport() *Aggregate { @@ -8114,7 +9383,7 @@ type QueryGetDataBeforeRequest struct { func (x *QueryGetDataBeforeRequest) Reset() { *x = QueryGetDataBeforeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_oracle_query_proto_msgTypes[13] + mi := &file_layer_oracle_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8128,7 +9397,7 @@ func (*QueryGetDataBeforeRequest) ProtoMessage() {} // Deprecated: Use QueryGetDataBeforeRequest.ProtoReflect.Descriptor instead. func (*QueryGetDataBeforeRequest) Descriptor() ([]byte, []int) { - return file_layer_oracle_query_proto_rawDescGZIP(), []int{13} + return file_layer_oracle_query_proto_rawDescGZIP(), []int{12} } func (x *QueryGetDataBeforeRequest) GetQueryId() string { @@ -8145,6 +9414,49 @@ func (x *QueryGetDataBeforeRequest) GetTimestamp() int64 { return 0 } +type QueryGetDataBeforeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Aggregate *Aggregate `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *QueryGetDataBeforeResponse) Reset() { + *x = QueryGetDataBeforeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer_oracle_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetDataBeforeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetDataBeforeResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetDataBeforeResponse.ProtoReflect.Descriptor instead. +func (*QueryGetDataBeforeResponse) Descriptor() ([]byte, []int) { + return file_layer_oracle_query_proto_rawDescGZIP(), []int{13} +} + +func (x *QueryGetDataBeforeResponse) GetAggregate() *Aggregate { + if x != nil { + return x.Aggregate + } + return nil +} + +func (x *QueryGetDataBeforeResponse) GetTimestamp() uint64 { + if x != nil { + return x.Timestamp + } + return 0 +} + type QueryGetTimeBasedRewardsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8176,7 +9488,7 @@ type QueryGetTimeBasedRewardsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Reward *v1beta1.Coin `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"` + Reward *v1beta11.Coin `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"` } func (x *QueryGetTimeBasedRewardsResponse) Reset() { @@ -8199,7 +9511,7 @@ func (*QueryGetTimeBasedRewardsResponse) Descriptor() ([]byte, []int) { return file_layer_oracle_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryGetTimeBasedRewardsResponse) GetReward() *v1beta1.Coin { +func (x *QueryGetTimeBasedRewardsResponse) GetReward() *v1beta11.Coin { if x != nil { return x.Reward } @@ -8267,6 +9579,84 @@ func (x *QueryCurrentCyclelistQueryResponse) GetQueryData() string { return "" } +type QueryRetrieveDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *QueryRetrieveDataRequest) Reset() { + *x = QueryRetrieveDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_layer_oracle_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRetrieveDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRetrieveDataRequest) ProtoMessage() {} + +// Deprecated: Use QueryRetrieveDataRequest.ProtoReflect.Descriptor instead. +func (*QueryRetrieveDataRequest) Descriptor() ([]byte, []int) { + return file_layer_oracle_query_proto_rawDescGZIP(), []int{18} +} + +func (x *QueryRetrieveDataRequest) GetQueryId() string { + if x != nil { + return x.QueryId + } + return "" +} + +func (x *QueryRetrieveDataRequest) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +type QueryRetrieveDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Aggregate *Aggregate `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"` +} + +func (x *QueryRetrieveDataResponse) Reset() { + *x = QueryRetrieveDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer_oracle_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRetrieveDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRetrieveDataResponse) ProtoMessage() {} + +// Deprecated: Use QueryRetrieveDataResponse.ProtoReflect.Descriptor instead. +func (*QueryRetrieveDataResponse) Descriptor() ([]byte, []int) { + return file_layer_oracle_query_proto_rawDescGZIP(), []int{19} +} + +func (x *QueryRetrieveDataResponse) GetAggregate() *Aggregate { + if x != nil { + return x.Aggregate + } + return nil +} + var File_layer_oracle_query_proto protoreflect.FileDescriptor var file_layer_oracle_query_proto_rawDesc = []byte{ @@ -8300,168 +9690,197 @@ var file_layer_oracle_query_proto_rawDesc = []byte{ 0x32, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x22, 0x38, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x22, 0x55, 0x0a, - 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, - 0x62, 0x79, 0x51, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, - 0x07, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x72, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x73, 0x22, 0x3e, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x22, 0x68, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x69, 0x63, - 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x4d, - 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x0c, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, 0x5c, - 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x51, 0x69, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x19, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, - 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x70, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x69, 0x70, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, - 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, - 0x74, 0x52, 0x04, 0x74, 0x69, 0x70, 0x73, 0x22, 0x35, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x70, 0x70, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, 0x70, 0x70, 0x65, 0x72, 0x22, 0x6a, - 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, - 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, - 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, - 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, - 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x69, 0x70, 0x73, 0x22, 0x43, 0x0a, 0x26, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x22, - 0x53, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, - 0x6c, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x06, 0x72, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x22, 0x54, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x21, 0x0a, 0x1f, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8b, 0x01, - 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x61, - 0x73, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x67, 0x0a, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x34, 0xc8, - 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, - 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x23, 0x0a, 0x21, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x79, 0x63, 0x6c, 0x65, - 0x6c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x43, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x43, 0x79, 0x63, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x44, 0x61, 0x74, 0x61, 0x32, 0xaa, 0x0d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x6b, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x61, - 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, - 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x9c, 0x01, 0x0a, - 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x51, 0x69, 0x64, - 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x61, 0x6d, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x52, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x80, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x73, 0x62, 0x79, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x86, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, - 0x79, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x61, + 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x22, 0x5d, + 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x54, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x04, + 0x74, 0x69, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x04, 0x74, 0x69, 0x70, 0x73, 0x22, 0x35, 0x0a, + 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x74, 0x69, 0x70, 0x70, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, + 0x70, 0x70, 0x65, 0x72, 0x22, 0x6a, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x74, 0x69, + 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x69, 0x70, 0x73, + 0x22, 0x43, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, + 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x54, 0x0a, 0x19, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x22, 0x71, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, + 0x0a, 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x09, 0x61, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x22, 0x21, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8b, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x06, 0x72, + 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x34, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x27, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x72, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x22, 0x23, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x22, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x6c, 0x69, + 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x22, 0x53, + 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x22, 0x52, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x35, 0x0a, 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x09, 0x61, 0x67, + 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x32, 0xc0, 0x0e, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x6b, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x51, 0x69, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, - 0x2a, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, - 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x5f, 0x71, 0x69, 0x64, - 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb0, 0x01, 0x0a, 0x14, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, - 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, - 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, - 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xc0, - 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x51, 0x69, 0x64, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x51, 0x69, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x40, 0x12, 0x3e, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, - 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x5f, 0x72, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x71, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0xa0, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x54, 0x69, 0x70, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, - 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x54, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x99, + 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x51, + 0x69, 0x64, 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x62, 0x79, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, + 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, + 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x5f, 0x71, 0x69, 0x64, 0x2f, + 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x14, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, + 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x51, 0x69, + 0x64, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, + 0x62, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x51, 0x69, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, + 0x62, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x71, 0x69, 0x64, 0x2f, + 0x7b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa0, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x70, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x28, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, + 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x36, 0x12, 0x34, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x70, 0x2f, 0x7b, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x70, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, - 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x70, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, - 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x74, 0x65, + 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, + 0x70, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x2f, 0x7b, 0x74, 0x69, 0x70, 0x70, 0x65, 0x72, 0x7d, + 0x12, 0xbd, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x34, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, - 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, - 0x69, 0x70, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, - 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, - 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x70, 0x5f, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x2f, 0x7b, 0x74, 0x69, 0x70, 0x70, 0x65, 0x72, 0x7d, 0x12, 0xbd, 0x01, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x12, 0x34, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, - 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, - 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xae, 0x01, 0x0a, - 0x0d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x27, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, - 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, - 0x3c, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, + 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, + 0x67, 0x65, 0x74, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x72, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, + 0x12, 0xaa, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, + 0x72, 0x65, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, + 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, + 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x12, 0x2d, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, @@ -8485,17 +9904,28 @@ var file_layer_oracle_query_proto_rawDesc = []byte{ 0x31, 0x12, 0x2f, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x9c, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, - 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x4c, 0x4f, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, - 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, - 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x4f, - 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0d, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x4f, 0x72, 0x61, 0x63, 0x6c, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x79, 0x12, 0xa5, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x26, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x74, + 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x7d, 0x42, 0x9c, 0x01, 0x0a, 0x10, 0x63, + 0x6f, 0x6d, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, + 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x4c, 0x4f, 0x58, + 0xaa, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0xca, + 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0xe2, 0x02, + 0x18, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x4c, 0x61, 0x79, 0x65, + 0x72, 0x3a, 0x3a, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -8510,63 +9940,73 @@ func file_layer_oracle_query_proto_rawDescGZIP() []byte { return file_layer_oracle_query_proto_rawDescData } -var file_layer_oracle_query_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_layer_oracle_query_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_layer_oracle_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: layer.oracle.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: layer.oracle.QueryParamsResponse - (*QueryGetReportsbyQidRequest)(nil), // 2: layer.oracle.QueryGetReportsbyQidRequest - (*QueryGetReportsbyQidResponse)(nil), // 3: layer.oracle.QueryGetReportsbyQidResponse + (*QueryMicroReportsResponse)(nil), // 2: layer.oracle.QueryMicroReportsResponse + (*QueryGetReportsbyQidRequest)(nil), // 3: layer.oracle.QueryGetReportsbyQidRequest (*QueryGetReportsbyReporterRequest)(nil), // 4: layer.oracle.QueryGetReportsbyReporterRequest - (*QueryGetReportsbyReporterResponse)(nil), // 5: layer.oracle.QueryGetReportsbyReporterResponse - (*QueryGetReportsbyReporterQidRequest)(nil), // 6: layer.oracle.QueryGetReportsbyReporterQidRequest - (*QueryGetCurrentTipRequest)(nil), // 7: layer.oracle.QueryGetCurrentTipRequest - (*QueryGetCurrentTipResponse)(nil), // 8: layer.oracle.QueryGetCurrentTipResponse - (*QueryGetUserTipTotalRequest)(nil), // 9: layer.oracle.QueryGetUserTipTotalRequest - (*QueryGetUserTipTotalResponse)(nil), // 10: layer.oracle.QueryGetUserTipTotalResponse - (*QueryGetCurrentAggregatedReportRequest)(nil), // 11: layer.oracle.QueryGetCurrentAggregatedReportRequest - (*QueryGetAggregatedReportResponse)(nil), // 12: layer.oracle.QueryGetAggregatedReportResponse - (*QueryGetDataBeforeRequest)(nil), // 13: layer.oracle.QueryGetDataBeforeRequest + (*QueryGetReportsbyReporterQidRequest)(nil), // 5: layer.oracle.QueryGetReportsbyReporterQidRequest + (*QueryGetCurrentTipRequest)(nil), // 6: layer.oracle.QueryGetCurrentTipRequest + (*QueryGetCurrentTipResponse)(nil), // 7: layer.oracle.QueryGetCurrentTipResponse + (*QueryGetUserTipTotalRequest)(nil), // 8: layer.oracle.QueryGetUserTipTotalRequest + (*QueryGetUserTipTotalResponse)(nil), // 9: layer.oracle.QueryGetUserTipTotalResponse + (*QueryGetCurrentAggregatedReportRequest)(nil), // 10: layer.oracle.QueryGetCurrentAggregatedReportRequest + (*QueryGetAggregatedReportResponse)(nil), // 11: layer.oracle.QueryGetAggregatedReportResponse + (*QueryGetDataBeforeRequest)(nil), // 12: layer.oracle.QueryGetDataBeforeRequest + (*QueryGetDataBeforeResponse)(nil), // 13: layer.oracle.QueryGetDataBeforeResponse (*QueryGetTimeBasedRewardsRequest)(nil), // 14: layer.oracle.QueryGetTimeBasedRewardsRequest (*QueryGetTimeBasedRewardsResponse)(nil), // 15: layer.oracle.QueryGetTimeBasedRewardsResponse (*QueryCurrentCyclelistQueryRequest)(nil), // 16: layer.oracle.QueryCurrentCyclelistQueryRequest (*QueryCurrentCyclelistQueryResponse)(nil), // 17: layer.oracle.QueryCurrentCyclelistQueryResponse - (*Params)(nil), // 18: layer.oracle.Params - (*Reports)(nil), // 19: layer.oracle.Reports - (*MicroReport)(nil), // 20: layer.oracle.MicroReport - (*Aggregate)(nil), // 21: layer.oracle.Aggregate - (*v1beta1.Coin)(nil), // 22: cosmos.base.v1beta1.Coin + (*QueryRetrieveDataRequest)(nil), // 18: layer.oracle.QueryRetrieveDataRequest + (*QueryRetrieveDataResponse)(nil), // 19: layer.oracle.QueryRetrieveDataResponse + (*Params)(nil), // 20: layer.oracle.Params + (*MicroReport)(nil), // 21: layer.oracle.MicroReport + (*v1beta1.PageResponse)(nil), // 22: cosmos.base.query.v1beta1.PageResponse + (*v1beta1.PageRequest)(nil), // 23: cosmos.base.query.v1beta1.PageRequest + (*Aggregate)(nil), // 24: layer.oracle.Aggregate + (*v1beta11.Coin)(nil), // 25: cosmos.base.v1beta1.Coin } var file_layer_oracle_query_proto_depIdxs = []int32{ - 18, // 0: layer.oracle.QueryParamsResponse.params:type_name -> layer.oracle.Params - 19, // 1: layer.oracle.QueryGetReportsbyQidResponse.reports:type_name -> layer.oracle.Reports - 20, // 2: layer.oracle.QueryGetReportsbyReporterResponse.microReports:type_name -> layer.oracle.MicroReport - 21, // 3: layer.oracle.QueryGetAggregatedReportResponse.report:type_name -> layer.oracle.Aggregate - 22, // 4: layer.oracle.QueryGetTimeBasedRewardsResponse.reward:type_name -> cosmos.base.v1beta1.Coin - 0, // 5: layer.oracle.Query.Params:input_type -> layer.oracle.QueryParamsRequest - 2, // 6: layer.oracle.Query.GetReportsbyQid:input_type -> layer.oracle.QueryGetReportsbyQidRequest - 4, // 7: layer.oracle.Query.GetReportsbyReporter:input_type -> layer.oracle.QueryGetReportsbyReporterRequest - 6, // 8: layer.oracle.Query.GetReportsbyReporterQid:input_type -> layer.oracle.QueryGetReportsbyReporterQidRequest - 7, // 9: layer.oracle.Query.GetCurrentTip:input_type -> layer.oracle.QueryGetCurrentTipRequest - 9, // 10: layer.oracle.Query.GetUserTipTotal:input_type -> layer.oracle.QueryGetUserTipTotalRequest - 11, // 11: layer.oracle.Query.GetAggregatedReport:input_type -> layer.oracle.QueryGetCurrentAggregatedReportRequest - 13, // 12: layer.oracle.Query.GetDataBefore:input_type -> layer.oracle.QueryGetDataBeforeRequest - 14, // 13: layer.oracle.Query.GetTimeBasedRewards:input_type -> layer.oracle.QueryGetTimeBasedRewardsRequest - 16, // 14: layer.oracle.Query.CurrentCyclelistQuery:input_type -> layer.oracle.QueryCurrentCyclelistQueryRequest - 1, // 15: layer.oracle.Query.Params:output_type -> layer.oracle.QueryParamsResponse - 3, // 16: layer.oracle.Query.GetReportsbyQid:output_type -> layer.oracle.QueryGetReportsbyQidResponse - 5, // 17: layer.oracle.Query.GetReportsbyReporter:output_type -> layer.oracle.QueryGetReportsbyReporterResponse - 3, // 18: layer.oracle.Query.GetReportsbyReporterQid:output_type -> layer.oracle.QueryGetReportsbyQidResponse - 8, // 19: layer.oracle.Query.GetCurrentTip:output_type -> layer.oracle.QueryGetCurrentTipResponse - 10, // 20: layer.oracle.Query.GetUserTipTotal:output_type -> layer.oracle.QueryGetUserTipTotalResponse - 12, // 21: layer.oracle.Query.GetAggregatedReport:output_type -> layer.oracle.QueryGetAggregatedReportResponse - 12, // 22: layer.oracle.Query.GetDataBefore:output_type -> layer.oracle.QueryGetAggregatedReportResponse - 15, // 23: layer.oracle.Query.GetTimeBasedRewards:output_type -> layer.oracle.QueryGetTimeBasedRewardsResponse - 17, // 24: layer.oracle.Query.CurrentCyclelistQuery:output_type -> layer.oracle.QueryCurrentCyclelistQueryResponse - 15, // [15:25] is the sub-list for method output_type - 5, // [5:15] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 20, // 0: layer.oracle.QueryParamsResponse.params:type_name -> layer.oracle.Params + 21, // 1: layer.oracle.QueryMicroReportsResponse.microReports:type_name -> layer.oracle.MicroReport + 22, // 2: layer.oracle.QueryMicroReportsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 23, // 3: layer.oracle.QueryGetReportsbyQidRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 23, // 4: layer.oracle.QueryGetReportsbyReporterRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 23, // 5: layer.oracle.QueryGetReportsbyReporterQidRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 24, // 6: layer.oracle.QueryGetAggregatedReportResponse.report:type_name -> layer.oracle.Aggregate + 24, // 7: layer.oracle.QueryGetDataBeforeResponse.aggregate:type_name -> layer.oracle.Aggregate + 25, // 8: layer.oracle.QueryGetTimeBasedRewardsResponse.reward:type_name -> cosmos.base.v1beta1.Coin + 24, // 9: layer.oracle.QueryRetrieveDataResponse.aggregate:type_name -> layer.oracle.Aggregate + 0, // 10: layer.oracle.Query.Params:input_type -> layer.oracle.QueryParamsRequest + 3, // 11: layer.oracle.Query.GetReportsbyQid:input_type -> layer.oracle.QueryGetReportsbyQidRequest + 4, // 12: layer.oracle.Query.GetReportsbyReporter:input_type -> layer.oracle.QueryGetReportsbyReporterRequest + 5, // 13: layer.oracle.Query.GetReportsbyReporterQid:input_type -> layer.oracle.QueryGetReportsbyReporterQidRequest + 6, // 14: layer.oracle.Query.GetCurrentTip:input_type -> layer.oracle.QueryGetCurrentTipRequest + 8, // 15: layer.oracle.Query.GetUserTipTotal:input_type -> layer.oracle.QueryGetUserTipTotalRequest + 10, // 16: layer.oracle.Query.GetAggregatedReport:input_type -> layer.oracle.QueryGetCurrentAggregatedReportRequest + 12, // 17: layer.oracle.Query.GetDataBefore:input_type -> layer.oracle.QueryGetDataBeforeRequest + 14, // 18: layer.oracle.Query.GetTimeBasedRewards:input_type -> layer.oracle.QueryGetTimeBasedRewardsRequest + 16, // 19: layer.oracle.Query.CurrentCyclelistQuery:input_type -> layer.oracle.QueryCurrentCyclelistQueryRequest + 18, // 20: layer.oracle.Query.RetrieveData:input_type -> layer.oracle.QueryRetrieveDataRequest + 1, // 21: layer.oracle.Query.Params:output_type -> layer.oracle.QueryParamsResponse + 2, // 22: layer.oracle.Query.GetReportsbyQid:output_type -> layer.oracle.QueryMicroReportsResponse + 2, // 23: layer.oracle.Query.GetReportsbyReporter:output_type -> layer.oracle.QueryMicroReportsResponse + 2, // 24: layer.oracle.Query.GetReportsbyReporterQid:output_type -> layer.oracle.QueryMicroReportsResponse + 7, // 25: layer.oracle.Query.GetCurrentTip:output_type -> layer.oracle.QueryGetCurrentTipResponse + 9, // 26: layer.oracle.Query.GetUserTipTotal:output_type -> layer.oracle.QueryGetUserTipTotalResponse + 11, // 27: layer.oracle.Query.GetAggregatedReport:output_type -> layer.oracle.QueryGetAggregatedReportResponse + 13, // 28: layer.oracle.Query.GetDataBefore:output_type -> layer.oracle.QueryGetDataBeforeResponse + 15, // 29: layer.oracle.Query.GetTimeBasedRewards:output_type -> layer.oracle.QueryGetTimeBasedRewardsResponse + 17, // 30: layer.oracle.Query.CurrentCyclelistQuery:output_type -> layer.oracle.QueryCurrentCyclelistQueryResponse + 19, // 31: layer.oracle.Query.RetrieveData:output_type -> layer.oracle.QueryRetrieveDataResponse + 21, // [21:32] is the sub-list for method output_type + 10, // [10:21] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_layer_oracle_query_proto_init() } @@ -8606,7 +10046,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetReportsbyQidRequest); i { + switch v := v.(*QueryMicroReportsResponse); i { case 0: return &v.state case 1: @@ -8618,7 +10058,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetReportsbyQidResponse); i { + switch v := v.(*QueryGetReportsbyQidRequest); i { case 0: return &v.state case 1: @@ -8642,7 +10082,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetReportsbyReporterResponse); i { + switch v := v.(*QueryGetReportsbyReporterQidRequest); i { case 0: return &v.state case 1: @@ -8654,7 +10094,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetReportsbyReporterQidRequest); i { + switch v := v.(*QueryGetCurrentTipRequest); i { case 0: return &v.state case 1: @@ -8666,7 +10106,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetCurrentTipRequest); i { + switch v := v.(*QueryGetCurrentTipResponse); i { case 0: return &v.state case 1: @@ -8678,7 +10118,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetCurrentTipResponse); i { + switch v := v.(*QueryGetUserTipTotalRequest); i { case 0: return &v.state case 1: @@ -8690,7 +10130,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetUserTipTotalRequest); i { + switch v := v.(*QueryGetUserTipTotalResponse); i { case 0: return &v.state case 1: @@ -8702,7 +10142,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetUserTipTotalResponse); i { + switch v := v.(*QueryGetCurrentAggregatedReportRequest); i { case 0: return &v.state case 1: @@ -8714,7 +10154,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetCurrentAggregatedReportRequest); i { + switch v := v.(*QueryGetAggregatedReportResponse); i { case 0: return &v.state case 1: @@ -8726,7 +10166,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetAggregatedReportResponse); i { + switch v := v.(*QueryGetDataBeforeRequest); i { case 0: return &v.state case 1: @@ -8738,7 +10178,7 @@ func file_layer_oracle_query_proto_init() { } } file_layer_oracle_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetDataBeforeRequest); i { + switch v := v.(*QueryGetDataBeforeResponse); i { case 0: return &v.state case 1: @@ -8797,6 +10237,30 @@ func file_layer_oracle_query_proto_init() { return nil } } + file_layer_oracle_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRetrieveDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer_oracle_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRetrieveDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -8804,7 +10268,7 @@ func file_layer_oracle_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_layer_oracle_query_proto_rawDesc, NumEnums: 0, - NumMessages: 18, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/api/layer/oracle/query_grpc.pb.go b/api/layer/oracle/query_grpc.pb.go index 5dde11372..2c9423680 100644 --- a/api/layer/oracle/query_grpc.pb.go +++ b/api/layer/oracle/query_grpc.pb.go @@ -21,9 +21,9 @@ type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of GetReportsbyQid items. - GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) - GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryGetReportsbyReporterResponse, error) - GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) + GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) + GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) + GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) // Queries a list of GetCurrentTip items. GetCurrentTip(ctx context.Context, in *QueryGetCurrentTipRequest, opts ...grpc.CallOption) (*QueryGetCurrentTipResponse, error) // Queries a list of GetUserTipTotal items. @@ -31,11 +31,12 @@ type QueryClient interface { // Queries a list of GetAggregatedReport items. GetAggregatedReport(ctx context.Context, in *QueryGetCurrentAggregatedReportRequest, opts ...grpc.CallOption) (*QueryGetAggregatedReportResponse, error) // Queries a list of GetAggregatedReport items. - GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetAggregatedReportResponse, error) + GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) // Queries a list of GetTimeBasedRewards items. GetTimeBasedRewards(ctx context.Context, in *QueryGetTimeBasedRewardsRequest, opts ...grpc.CallOption) (*QueryGetTimeBasedRewardsResponse, error) // Queries a list of CurrentCyclelistQuery items. CurrentCyclelistQuery(ctx context.Context, in *QueryCurrentCyclelistQueryRequest, opts ...grpc.CallOption) (*QueryCurrentCyclelistQueryResponse, error) + RetrieveData(ctx context.Context, in *QueryRetrieveDataRequest, opts ...grpc.CallOption) (*QueryRetrieveDataResponse, error) } type queryClient struct { @@ -55,8 +56,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } -func (c *queryClient) GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) { - out := new(QueryGetReportsbyQidResponse) +func (c *queryClient) GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) { + out := new(QueryMicroReportsResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetReportsbyQid", in, out, opts...) if err != nil { return nil, err @@ -64,8 +65,8 @@ func (c *queryClient) GetReportsbyQid(ctx context.Context, in *QueryGetReportsby return out, nil } -func (c *queryClient) GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryGetReportsbyReporterResponse, error) { - out := new(QueryGetReportsbyReporterResponse) +func (c *queryClient) GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) { + out := new(QueryMicroReportsResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetReportsbyReporter", in, out, opts...) if err != nil { return nil, err @@ -73,8 +74,8 @@ func (c *queryClient) GetReportsbyReporter(ctx context.Context, in *QueryGetRepo return out, nil } -func (c *queryClient) GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) { - out := new(QueryGetReportsbyQidResponse) +func (c *queryClient) GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) { + out := new(QueryMicroReportsResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetReportsbyReporterQid", in, out, opts...) if err != nil { return nil, err @@ -109,8 +110,8 @@ func (c *queryClient) GetAggregatedReport(ctx context.Context, in *QueryGetCurre return out, nil } -func (c *queryClient) GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetAggregatedReportResponse, error) { - out := new(QueryGetAggregatedReportResponse) +func (c *queryClient) GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) { + out := new(QueryGetDataBeforeResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetDataBefore", in, out, opts...) if err != nil { return nil, err @@ -136,6 +137,15 @@ func (c *queryClient) CurrentCyclelistQuery(ctx context.Context, in *QueryCurren return out, nil } +func (c *queryClient) RetrieveData(ctx context.Context, in *QueryRetrieveDataRequest, opts ...grpc.CallOption) (*QueryRetrieveDataResponse, error) { + out := new(QueryRetrieveDataResponse) + err := c.cc.Invoke(ctx, "/layer.oracle.Query/RetrieveData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. // All implementations must embed UnimplementedQueryServer // for forward compatibility @@ -143,9 +153,9 @@ type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of GetReportsbyQid items. - GetReportsbyQid(context.Context, *QueryGetReportsbyQidRequest) (*QueryGetReportsbyQidResponse, error) - GetReportsbyReporter(context.Context, *QueryGetReportsbyReporterRequest) (*QueryGetReportsbyReporterResponse, error) - GetReportsbyReporterQid(context.Context, *QueryGetReportsbyReporterQidRequest) (*QueryGetReportsbyQidResponse, error) + GetReportsbyQid(context.Context, *QueryGetReportsbyQidRequest) (*QueryMicroReportsResponse, error) + GetReportsbyReporter(context.Context, *QueryGetReportsbyReporterRequest) (*QueryMicroReportsResponse, error) + GetReportsbyReporterQid(context.Context, *QueryGetReportsbyReporterQidRequest) (*QueryMicroReportsResponse, error) // Queries a list of GetCurrentTip items. GetCurrentTip(context.Context, *QueryGetCurrentTipRequest) (*QueryGetCurrentTipResponse, error) // Queries a list of GetUserTipTotal items. @@ -153,11 +163,12 @@ type QueryServer interface { // Queries a list of GetAggregatedReport items. GetAggregatedReport(context.Context, *QueryGetCurrentAggregatedReportRequest) (*QueryGetAggregatedReportResponse, error) // Queries a list of GetAggregatedReport items. - GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetAggregatedReportResponse, error) + GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) // Queries a list of GetTimeBasedRewards items. GetTimeBasedRewards(context.Context, *QueryGetTimeBasedRewardsRequest) (*QueryGetTimeBasedRewardsResponse, error) // Queries a list of CurrentCyclelistQuery items. CurrentCyclelistQuery(context.Context, *QueryCurrentCyclelistQueryRequest) (*QueryCurrentCyclelistQueryResponse, error) + RetrieveData(context.Context, *QueryRetrieveDataRequest) (*QueryRetrieveDataResponse, error) mustEmbedUnimplementedQueryServer() } @@ -168,13 +179,13 @@ type UnimplementedQueryServer struct { func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } -func (UnimplementedQueryServer) GetReportsbyQid(context.Context, *QueryGetReportsbyQidRequest) (*QueryGetReportsbyQidResponse, error) { +func (UnimplementedQueryServer) GetReportsbyQid(context.Context, *QueryGetReportsbyQidRequest) (*QueryMicroReportsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReportsbyQid not implemented") } -func (UnimplementedQueryServer) GetReportsbyReporter(context.Context, *QueryGetReportsbyReporterRequest) (*QueryGetReportsbyReporterResponse, error) { +func (UnimplementedQueryServer) GetReportsbyReporter(context.Context, *QueryGetReportsbyReporterRequest) (*QueryMicroReportsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReportsbyReporter not implemented") } -func (UnimplementedQueryServer) GetReportsbyReporterQid(context.Context, *QueryGetReportsbyReporterQidRequest) (*QueryGetReportsbyQidResponse, error) { +func (UnimplementedQueryServer) GetReportsbyReporterQid(context.Context, *QueryGetReportsbyReporterQidRequest) (*QueryMicroReportsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReportsbyReporterQid not implemented") } func (UnimplementedQueryServer) GetCurrentTip(context.Context, *QueryGetCurrentTipRequest) (*QueryGetCurrentTipResponse, error) { @@ -186,7 +197,7 @@ func (UnimplementedQueryServer) GetUserTipTotal(context.Context, *QueryGetUserTi func (UnimplementedQueryServer) GetAggregatedReport(context.Context, *QueryGetCurrentAggregatedReportRequest) (*QueryGetAggregatedReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAggregatedReport not implemented") } -func (UnimplementedQueryServer) GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetAggregatedReportResponse, error) { +func (UnimplementedQueryServer) GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDataBefore not implemented") } func (UnimplementedQueryServer) GetTimeBasedRewards(context.Context, *QueryGetTimeBasedRewardsRequest) (*QueryGetTimeBasedRewardsResponse, error) { @@ -195,6 +206,9 @@ func (UnimplementedQueryServer) GetTimeBasedRewards(context.Context, *QueryGetTi func (UnimplementedQueryServer) CurrentCyclelistQuery(context.Context, *QueryCurrentCyclelistQueryRequest) (*QueryCurrentCyclelistQueryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CurrentCyclelistQuery not implemented") } +func (UnimplementedQueryServer) RetrieveData(context.Context, *QueryRetrieveDataRequest) (*QueryRetrieveDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RetrieveData not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -388,6 +402,24 @@ func _Query_CurrentCyclelistQuery_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Query_RetrieveData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRetrieveDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RetrieveData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/layer.oracle.Query/RetrieveData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RetrieveData(ctx, req.(*QueryRetrieveDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -435,6 +467,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "CurrentCyclelistQuery", Handler: _Query_CurrentCyclelistQuery_Handler, }, + { + MethodName: "RetrieveData", + Handler: _Query_RetrieveData_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "layer/oracle/query.proto", diff --git a/app/extend_vote.go b/app/extend_vote.go index ec5a1494c..7964eab27 100644 --- a/app/extend_vote.go +++ b/app/extend_vote.go @@ -34,7 +34,6 @@ type OracleKeeper interface { GetTimestampBefore(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error) GetTimestampAfter(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error) GetAggregatedReportsByHeight(ctx context.Context, height int64) []oracletypes.Aggregate - GetDataBefore(ctx context.Context, queryId []byte, timestamp time.Time) (*oracletypes.Aggregate, error) } type BridgeKeeper interface { diff --git a/proto/layer/bridge/query.proto b/proto/layer/bridge/query.proto index e6873a3bf..edcff22bd 100644 --- a/proto/layer/bridge/query.proto +++ b/proto/layer/bridge/query.proto @@ -2,9 +2,9 @@ syntax = "proto3"; package layer.bridge; +import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; import "layer/bridge/params.proto"; import "layer/oracle/aggregate.proto"; @@ -12,68 +12,62 @@ option go_package = "github.com/tellor-io/layer/x/bridge/types"; // Query defines the gRPC querier service. service Query { - // Parameters queries the parameters of the module. - rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/layer/bridge/params"; - } - + // Queries a list of GetEvmValidators items. - rpc GetEvmValidators (QueryGetEvmValidatorsRequest) returns (QueryGetEvmValidatorsResponse) { + rpc GetEvmValidators(QueryGetEvmValidatorsRequest) returns (QueryGetEvmValidatorsResponse) { option (google.api.http).get = "/layer/bridge/get_evm_validators"; } - rpc GetValidatorCheckpoint (QueryGetValidatorCheckpointRequest) returns (QueryGetValidatorCheckpointResponse) { + rpc GetValidatorCheckpoint(QueryGetValidatorCheckpointRequest) returns (QueryGetValidatorCheckpointResponse) { option (google.api.http).get = "/layer/bridge/get_validator_checkpoint"; } - rpc GetValidatorCheckpointParams (QueryGetValidatorCheckpointParamsRequest) returns (QueryGetValidatorCheckpointParamsResponse) { + rpc GetValidatorCheckpointParams(QueryGetValidatorCheckpointParamsRequest) returns (QueryGetValidatorCheckpointParamsResponse) { option (google.api.http).get = "/layer/bridge/get_validator_checkpoint_params/{timestamp}"; } - rpc GetValidatorTimestampByIndex (QueryGetValidatorTimestampByIndexRequest) returns (QueryGetValidatorTimestampByIndexResponse) { + rpc GetValidatorTimestampByIndex(QueryGetValidatorTimestampByIndexRequest) returns (QueryGetValidatorTimestampByIndexResponse) { option (google.api.http).get = "/layer/bridge/get_validator_timestamp_by_index/{index}"; } - rpc GetValsetSigs (QueryGetValsetSigsRequest) returns (QueryGetValsetSigsResponse) { + rpc GetValsetSigs(QueryGetValsetSigsRequest) returns (QueryGetValsetSigsResponse) { option (google.api.http).get = "/layer/bridge/get_valset_sigs/{timestamp}"; } - rpc GetEvmAddressByValidatorAddress (QueryGetEvmAddressByValidatorAddressRequest) returns (QueryGetEvmAddressByValidatorAddressResponse) { + rpc GetEvmAddressByValidatorAddress(QueryGetEvmAddressByValidatorAddressRequest) returns (QueryGetEvmAddressByValidatorAddressResponse) { option (google.api.http).get = "/layer/bridge/get_evm_address_by_validator_address/{validator_address}"; } - rpc GetValsetByTimestamp (QueryGetValsetByTimestampRequest) returns (QueryGetValsetByTimestampResponse) { + rpc GetValsetByTimestamp(QueryGetValsetByTimestampRequest) returns (QueryGetValsetByTimestampResponse) { option (google.api.http).get = "/layer/bridge/get_valset_by_timestamp/{timestamp}"; } - rpc GetCurrentAggregateReport (QueryGetCurrentAggregateReportRequest) returns (QueryGetCurrentAggregateReportResponse) { + rpc GetCurrentAggregateReport(QueryGetCurrentAggregateReportRequest) returns (QueryGetCurrentAggregateReportResponse) { option (google.api.http).get = "/layer/bridge/get_current_aggregate_report/{query_id}"; } - rpc GetDataBefore (QueryGetDataBeforeRequest) returns (QueryGetDataBeforeResponse) { - option (google.api.http).get = "/layer/bridge/get_data_before/{query_id}/{timestamp}"; - } - - rpc GetSnapshotsByReport (QueryGetSnapshotsByReportRequest) returns (QueryGetSnapshotsByReportResponse) { + rpc GetSnapshotsByReport(QueryGetSnapshotsByReportRequest) returns (QueryGetSnapshotsByReportResponse) { option (google.api.http).get = "/layer/bridge/get_snapshots_by_report/{query_id}/{timestamp}"; } - rpc GetAttestationDataBySnapshot (QueryGetAttestationDataBySnapshotRequest) returns (QueryGetAttestationDataBySnapshotResponse) { + rpc GetAttestationDataBySnapshot(QueryGetAttestationDataBySnapshotRequest) returns (QueryGetAttestationDataBySnapshotResponse) { option (google.api.http).get = "/layer/bridge/get_attestation_data_by_snapshot/{snapshot}"; } - rpc GetAttestationsBySnapshot (QueryGetAttestationsBySnapshotRequest) returns (QueryGetAttestationsBySnapshotResponse) { + rpc GetAttestationsBySnapshot(QueryGetAttestationsBySnapshotRequest) returns (QueryGetAttestationsBySnapshotResponse) { option (google.api.http).get = "/layer/bridge/get_attestations_by_snapshot/{snapshot}"; } } + // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { - // params holds all the parameters of this module. Params params = 1 [(gogoproto.nullable) = false]; } @@ -179,12 +173,12 @@ message QueryGetCurrentAggregateReportResponse { } message Aggregate { - bytes query_id = 1; - string aggregateValue = 2; - string aggregateReporter = 3; - int64 reporterPower = 4; + bytes query_id = 1; + string aggregateValue = 2; + string aggregateReporter = 3; + int64 reporterPower = 4; double standard_deviation = 5; - repeated AggregateReporter reporters = 6; + repeated AggregateReporter reporters = 6; bool flagged = 7; int64 nonce = 8; int64 aggregateReportIndex = 9; @@ -192,18 +186,8 @@ message Aggregate { } message AggregateReporter { - string reporter = 1; - int64 power = 2; -} - -message QueryGetDataBeforeRequest { - string query_id = 1; - int64 timestamp = 2; -} - -message QueryGetDataBeforeResponse { - layer.oracle.Aggregate aggregate = 1; - uint64 timestamp = 2; + string reporter = 1; + int64 power = 2; } message QueryGetSnapshotsByReportRequest { diff --git a/proto/layer/bridge/tx.proto b/proto/layer/bridge/tx.proto index 86332b6bd..bf682aa3f 100644 --- a/proto/layer/bridge/tx.proto +++ b/proto/layer/bridge/tx.proto @@ -2,46 +2,46 @@ syntax = "proto3"; package layer.bridge; -import "cosmos/msg/v1/msg.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/msg/v1/msg.proto"; import "gogoproto/gogo.proto"; option go_package = "github.com/tellor-io/layer/x/bridge/types"; // Msg defines the Msg service. service Msg { - rpc RequestAttestations (MsgRequestAttestations) returns (MsgRequestAttestationsResponse); - rpc WithdrawTokens (MsgWithdrawTokens) returns (MsgWithdrawTokensResponse); - rpc ClaimDeposit (MsgClaimDepositRequest) returns (MsgClaimDepositResponse); + option (cosmos.msg.v1.service) = true; + rpc RequestAttestations(MsgRequestAttestations) returns (MsgRequestAttestationsResponse); + rpc WithdrawTokens(MsgWithdrawTokens) returns (MsgWithdrawTokensResponse); + rpc ClaimDeposit(MsgClaimDepositRequest) returns (MsgClaimDepositResponse); } message MsgRequestAttestations { - option (cosmos.msg.v1.signer) = "creator"; + option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string query_id = 2; - string timestamp = 3; + string creator = 1; + string query_id = 2; + string timestamp = 3; } message MsgRequestAttestationsResponse {} message MsgWithdrawTokens { - option (cosmos.msg.v1.signer) = "creator"; + option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string recipient = 2; - cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; + string creator = 1; + string recipient = 2; + cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; } message MsgWithdrawTokensResponse {} message MsgClaimDepositRequest { - option (cosmos.msg.v1.signer) = "creator"; + option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 deposit_id = 2; - uint64 index = 3; + string creator = 1; + uint64 deposit_id = 2; + uint64 index = 3; } message MsgClaimDepositResponse {} - diff --git a/proto/layer/oracle/query.proto b/proto/layer/oracle/query.proto index 0de882060..39e93cbfa 100644 --- a/proto/layer/oracle/query.proto +++ b/proto/layer/oracle/query.proto @@ -25,13 +25,13 @@ service Query { } // Queries a list of GetReportsbyQid items. - rpc GetReportsbyQid(QueryGetReportsbyQidRequest) returns (QueryGetReportsbyQidResponse) { + rpc GetReportsbyQid(QueryGetReportsbyQidRequest) returns (QueryMicroReportsResponse) { option (google.api.http).get = "/layer/oracle/get_reportsby_qid/{query_id}"; } - rpc GetReportsbyReporter(QueryGetReportsbyReporterRequest) returns (QueryGetReportsbyReporterResponse) { + rpc GetReportsbyReporter(QueryGetReportsbyReporterRequest) returns (QueryMicroReportsResponse) { option (google.api.http).get = "/layer/oracle/get_reportsby_reporter/{reporter}"; } - rpc GetReportsbyReporterQid(QueryGetReportsbyReporterQidRequest) returns (QueryGetReportsbyQidResponse) { + rpc GetReportsbyReporterQid(QueryGetReportsbyReporterQidRequest) returns (QueryMicroReportsResponse) { option (google.api.http).get = "/layer/oracle/get_reportsby_reporter_qid/{reporter}/{query_id}"; } @@ -51,8 +51,8 @@ service Query { } // Queries a list of GetAggregatedReport items. - rpc GetDataBefore(QueryGetDataBeforeRequest) returns (QueryGetAggregatedReportResponse) { - option (google.api.http).get = "/tellor-io/layer/oracle/GetDataBefore/{query_id}/{timestamp}"; + rpc GetDataBefore(QueryGetDataBeforeRequest) returns (QueryGetDataBeforeResponse) { + option (google.api.http).get = "/tellor-io/layer/oracle/get_data_before/{query_id}/{timestamp}"; } // Queries a list of GetTimeBasedRewards items. @@ -64,6 +64,10 @@ service Query { rpc CurrentCyclelistQuery(QueryCurrentCyclelistQueryRequest) returns (QueryCurrentCyclelistQueryResponse) { option (google.api.http).get = "/tellor-io/layer/oracle/current_cyclelist_query"; } + + rpc RetrieveData(QueryRetrieveDataRequest) returns (QueryRetrieveDataResponse) { + option (google.api.http).get = "/tellor-io/layer/oracle/retrieve_data/{query_id}/{timestamp}"; + } } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -74,26 +78,29 @@ message QueryParamsResponse { // params holds all the parameters of this module. Params params = 1 [(gogoproto.nullable) = false]; } - +message QueryMicroReportsResponse { + repeated MicroReport microReports = 1 [(gogoproto.nullable) = false]; + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} message QueryGetReportsbyQidRequest { + // query id of requested data string query_id = 1; -} - -message QueryGetReportsbyQidResponse { - Reports reports = 1 [(gogoproto.nullable) = false]; + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryGetReportsbyReporterRequest { string reporter = 1; -} - -message QueryGetReportsbyReporterResponse { - repeated MicroReport microReports = 1 [(gogoproto.nullable) = false]; + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryGetReportsbyReporterQidRequest { string reporter = 1; - string query_id = 2; + string query_id = 2; + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 3; } message QueryGetCurrentTipRequest { @@ -129,8 +136,13 @@ message QueryGetAggregatedReportResponse { } message QueryGetDataBeforeRequest { - string query_id = 1; - int64 timestamp = 2; + string query_id = 1; + int64 timestamp = 2; +} + +message QueryGetDataBeforeResponse { + Aggregate aggregate = 1; + uint64 timestamp = 2; } message QueryGetTimeBasedRewardsRequest {} @@ -148,3 +160,12 @@ message QueryCurrentCyclelistQueryRequest {} message QueryCurrentCyclelistQueryResponse { string query_data = 1; } + +message QueryRetrieveDataRequest { + string query_id = 1; + int64 timestamp = 2; +} + +message QueryRetrieveDataResponse { + Aggregate aggregate = 1; +} diff --git a/x/bridge/autocli.go b/x/bridge/autocli.go index f72263f1c..c9624d40d 100644 --- a/x/bridge/autocli.go +++ b/x/bridge/autocli.go @@ -65,12 +65,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Query current aggregate report", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "query_id"}}, }, - { - RpcMethod: "GetDataBefore", - Use: "get-data-before [query-id] [timestamp]", - Short: "Query data before a timestamp", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "query_id"}, {ProtoField: "timestamp"}}, - }, { RpcMethod: "GetSnapshotsByReport", Use: "get-snapshots-by-report [query-id] [timestamp]", diff --git a/x/bridge/keeper/query_get_attestation_data_by_snapshot.go b/x/bridge/keeper/query_get_attestation_data_by_snapshot.go index 939061233..9dd316992 100644 --- a/x/bridge/keeper/query_get_attestation_data_by_snapshot.go +++ b/x/bridge/keeper/query_get_attestation_data_by_snapshot.go @@ -34,7 +34,7 @@ func (q Querier) GetAttestationDataBySnapshot(goCtx context.Context, req *types. return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("snapshot not found for snapshot %s", snapshot)) } queryId := snapshotData.QueryId - timestampTime := time.Unix(snapshotData.Timestamp, 0) + timestampTime := time.UnixMilli(snapshotData.Timestamp) aggReport, err := q.k.oracleKeeper.GetAggregateByTimestamp(ctx, queryId, timestampTime) if err != nil { diff --git a/x/bridge/keeper/query_get_attestation_data_by_snapshot_test.go b/x/bridge/keeper/query_get_attestation_data_by_snapshot_test.go index 48b5f7e83..dd6740280 100644 --- a/x/bridge/keeper/query_get_attestation_data_by_snapshot_test.go +++ b/x/bridge/keeper/query_get_attestation_data_by_snapshot_test.go @@ -36,7 +36,7 @@ func TestGetAttestationDataBySnapshot(t *testing.T) { require.Nil(t, getAttDataBySnapResponse) queryId := []byte("queryId") - timestampTime := time.Unix(100, 0) + timestampTime := time.UnixMilli(100) aggReport := oracletypes.Aggregate{ QueryId: queryId, AggregateValue: "1", @@ -47,11 +47,11 @@ func TestGetAttestationDataBySnapshot(t *testing.T) { require.NoError(t, err) err = k.AttestSnapshotDataMap.Set(ctx, snapshot, types.AttestationSnapshotData{ ValidatorCheckpoint: []byte("checkpoint"), - AttestationTimestamp: timestampTime.Unix() - 1, - PrevReportTimestamp: timestampTime.Unix() - 2, - NextReportTimestamp: timestampTime.Unix() + 1, + AttestationTimestamp: timestampTime.UnixMilli() - 1, + PrevReportTimestamp: timestampTime.UnixMilli() - 2, + NextReportTimestamp: timestampTime.UnixMilli() + 1, QueryId: queryId, - Timestamp: timestampTime.Unix(), + Timestamp: timestampTime.UnixMilli(), }) require.NoError(t, err) @@ -60,10 +60,10 @@ func TestGetAttestationDataBySnapshot(t *testing.T) { }) require.NoError(t, err) require.Equal(t, getAttDataBySnapResponse.QueryId, hex.EncodeToString(aggReport.QueryId)) - require.Equal(t, getAttDataBySnapResponse.Timestamp, strconv.FormatInt(timestampTime.Unix(), 10)) + require.Equal(t, getAttDataBySnapResponse.Timestamp, strconv.FormatInt(timestampTime.UnixMilli(), 10)) require.Equal(t, getAttDataBySnapResponse.AggregateValue, aggReport.AggregateValue) require.Equal(t, getAttDataBySnapResponse.AggregatePower, strconv.FormatInt(aggReport.ReporterPower, 10)) require.Equal(t, getAttDataBySnapResponse.Checkpoint, hex.EncodeToString([]byte("checkpoint"))) - require.Equal(t, getAttDataBySnapResponse.PreviousReportTimestamp, strconv.FormatInt(timestampTime.Unix()-2, 10)) - require.Equal(t, getAttDataBySnapResponse.NextReportTimestamp, strconv.FormatInt(timestampTime.Unix()+1, 10)) + require.Equal(t, getAttDataBySnapResponse.PreviousReportTimestamp, strconv.FormatInt(timestampTime.UnixMilli()-2, 10)) + require.Equal(t, getAttDataBySnapResponse.NextReportTimestamp, strconv.FormatInt(timestampTime.UnixMilli()+1, 10)) } diff --git a/x/bridge/keeper/query_get_data_before.go b/x/bridge/keeper/query_get_data_before.go deleted file mode 100644 index 937b27c13..000000000 --- a/x/bridge/keeper/query_get_data_before.go +++ /dev/null @@ -1,36 +0,0 @@ -package keeper - -import ( - "context" - "time" - - "github.com/tellor-io/layer/utils" - "github.com/tellor-io/layer/x/bridge/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (q Querier) GetDataBefore(ctx context.Context, req *types.QueryGetDataBeforeRequest) (*types.QueryGetDataBeforeResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - qIdBz, err := utils.QueryBytesFromString(req.QueryId) - if err != nil { - return nil, status.Error(codes.InvalidArgument, "invalid queryId") - } - - aggregate, timestamp, err := q.k.oracleKeeper.GetAggregateBefore(ctx, qIdBz, time.Unix(req.Timestamp, 0)) - if err != nil { - return nil, status.Error(codes.Internal, "failed to get aggregate before") - } - if aggregate == nil { - return nil, status.Error(codes.NotFound, "aggregate before not found") - } - timeUnix := timestamp.UnixMilli() - - return &types.QueryGetDataBeforeResponse{ - Aggregate: aggregate, - Timestamp: uint64(timeUnix), - }, nil -} diff --git a/x/bridge/keeper/query_get_data_before_test.go b/x/bridge/keeper/query_get_data_before_test.go deleted file mode 100644 index 83a60b00e..000000000 --- a/x/bridge/keeper/query_get_data_before_test.go +++ /dev/null @@ -1,65 +0,0 @@ -package keeper_test - -import ( - "testing" - "time" - - "github.com/stretchr/testify/require" - testkeeper "github.com/tellor-io/layer/testutil/keeper" - "github.com/tellor-io/layer/utils" - "github.com/tellor-io/layer/x/bridge/keeper" - "github.com/tellor-io/layer/x/bridge/types" - oracletypes "github.com/tellor-io/layer/x/oracle/types" -) - -func TestGetDataBefore(t *testing.T) { - k, _, _, ok, _, _, ctx := testkeeper.BridgeKeeper(t) - require.NotNil(t, k) - require.NotNil(t, ctx) - - getDataBeforeResponse, err := keeper.NewQuerier(k).GetDataBefore(ctx, nil) - require.ErrorContains(t, err, "invalid request") - require.Nil(t, getDataBeforeResponse) - - getDataBeforeResponse, err = keeper.NewQuerier(k).GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ - QueryId: "z", - }) - require.ErrorContains(t, err, "invalid queryId") - require.Nil(t, getDataBeforeResponse) - - agg := &oracletypes.Aggregate{} - timestampBefore := int64(1) - timestamp := time.Unix(timestampBefore, 0) - queryId := "1234abcd" - qIdBz, err := utils.QueryBytesFromString(queryId) - require.NoError(t, err) - ok.On("GetAggregateBefore", ctx, qIdBz, time.Unix(timestampBefore, 0)).Return(agg, timestamp, types.ErrSample).Once() - - getDataBeforeResponse, err = keeper.NewQuerier(k).GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ - QueryId: "1234abcd", - Timestamp: timestampBefore, - }) - require.ErrorContains(t, err, "failed to get aggregate before") - require.Nil(t, getDataBeforeResponse) - - agg = (*oracletypes.Aggregate)(nil) - ok.On("GetAggregateBefore", ctx, qIdBz, time.Unix(timestampBefore, 0)).Return(agg, timestamp, nil).Once() - - getDataBeforeResponse, err = keeper.NewQuerier(k).GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ - QueryId: "1234abcd", - Timestamp: timestampBefore, - }) - require.ErrorContains(t, err, "aggregate before not found") - require.Nil(t, getDataBeforeResponse) - - agg = &oracletypes.Aggregate{} - ok.On("GetAggregateBefore", ctx, qIdBz, time.Unix(timestampBefore, 0)).Return(agg, timestamp, nil).Once() - - getDataBeforeResponse, err = keeper.NewQuerier(k).GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ - QueryId: "1234abcd", - Timestamp: timestampBefore, - }) - require.NoError(t, err) - require.Equal(t, getDataBeforeResponse.Timestamp, uint64(timestamp.UnixMilli())) - require.Equal(t, getDataBeforeResponse.Aggregate, agg) -} diff --git a/x/bridge/types/query.pb.go b/x/bridge/types/query.pb.go index 9e9e595ba..ccb4a0ddf 100644 --- a/x/bridge/types/query.pb.go +++ b/x/bridge/types/query.pb.go @@ -11,7 +11,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types "github.com/tellor-io/layer/x/oracle/types" + _ "github.com/tellor-io/layer/x/oracle/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -1397,110 +1397,6 @@ func (m *AggregateReporter) GetPower() int64 { return 0 } -type QueryGetDataBeforeRequest struct { - QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` - Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (m *QueryGetDataBeforeRequest) Reset() { *m = QueryGetDataBeforeRequest{} } -func (m *QueryGetDataBeforeRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetDataBeforeRequest) ProtoMessage() {} -func (*QueryGetDataBeforeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{27} -} -func (m *QueryGetDataBeforeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetDataBeforeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetDataBeforeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetDataBeforeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetDataBeforeRequest.Merge(m, src) -} -func (m *QueryGetDataBeforeRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetDataBeforeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetDataBeforeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetDataBeforeRequest proto.InternalMessageInfo - -func (m *QueryGetDataBeforeRequest) GetQueryId() string { - if m != nil { - return m.QueryId - } - return "" -} - -func (m *QueryGetDataBeforeRequest) GetTimestamp() int64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -type QueryGetDataBeforeResponse struct { - Aggregate *types.Aggregate `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (m *QueryGetDataBeforeResponse) Reset() { *m = QueryGetDataBeforeResponse{} } -func (m *QueryGetDataBeforeResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetDataBeforeResponse) ProtoMessage() {} -func (*QueryGetDataBeforeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{28} -} -func (m *QueryGetDataBeforeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetDataBeforeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetDataBeforeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetDataBeforeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetDataBeforeResponse.Merge(m, src) -} -func (m *QueryGetDataBeforeResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetDataBeforeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetDataBeforeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetDataBeforeResponse proto.InternalMessageInfo - -func (m *QueryGetDataBeforeResponse) GetAggregate() *types.Aggregate { - if m != nil { - return m.Aggregate - } - return nil -} - -func (m *QueryGetDataBeforeResponse) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - type QueryGetSnapshotsByReportRequest struct { QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` @@ -1510,7 +1406,7 @@ func (m *QueryGetSnapshotsByReportRequest) Reset() { *m = QueryGetSnapsh func (m *QueryGetSnapshotsByReportRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetSnapshotsByReportRequest) ProtoMessage() {} func (*QueryGetSnapshotsByReportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{29} + return fileDescriptor_e48df680904493de, []int{27} } func (m *QueryGetSnapshotsByReportRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1561,7 +1457,7 @@ func (m *QueryGetSnapshotsByReportResponse) Reset() { *m = QueryGetSnaps func (m *QueryGetSnapshotsByReportResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetSnapshotsByReportResponse) ProtoMessage() {} func (*QueryGetSnapshotsByReportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{30} + return fileDescriptor_e48df680904493de, []int{28} } func (m *QueryGetSnapshotsByReportResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1607,7 +1503,7 @@ func (m *QueryGetAttestationDataBySnapshotRequest) Reset() { func (m *QueryGetAttestationDataBySnapshotRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetAttestationDataBySnapshotRequest) ProtoMessage() {} func (*QueryGetAttestationDataBySnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{31} + return fileDescriptor_e48df680904493de, []int{29} } func (m *QueryGetAttestationDataBySnapshotRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1662,7 +1558,7 @@ func (m *QueryGetAttestationDataBySnapshotResponse) String() string { } func (*QueryGetAttestationDataBySnapshotResponse) ProtoMessage() {} func (*QueryGetAttestationDataBySnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{32} + return fileDescriptor_e48df680904493de, []int{30} } func (m *QueryGetAttestationDataBySnapshotResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1755,7 +1651,7 @@ func (m *QueryGetAttestationsBySnapshotRequest) Reset() { *m = QueryGetA func (m *QueryGetAttestationsBySnapshotRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetAttestationsBySnapshotRequest) ProtoMessage() {} func (*QueryGetAttestationsBySnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{33} + return fileDescriptor_e48df680904493de, []int{31} } func (m *QueryGetAttestationsBySnapshotRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1801,7 +1697,7 @@ func (m *QueryGetAttestationsBySnapshotResponse) Reset() { func (m *QueryGetAttestationsBySnapshotResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetAttestationsBySnapshotResponse) ProtoMessage() {} func (*QueryGetAttestationsBySnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e48df680904493de, []int{34} + return fileDescriptor_e48df680904493de, []int{32} } func (m *QueryGetAttestationsBySnapshotResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1865,8 +1761,6 @@ func init() { proto.RegisterType((*QueryGetCurrentAggregateReportResponse)(nil), "layer.bridge.QueryGetCurrentAggregateReportResponse") proto.RegisterType((*Aggregate)(nil), "layer.bridge.Aggregate") proto.RegisterType((*AggregateReporter)(nil), "layer.bridge.AggregateReporter") - proto.RegisterType((*QueryGetDataBeforeRequest)(nil), "layer.bridge.QueryGetDataBeforeRequest") - proto.RegisterType((*QueryGetDataBeforeResponse)(nil), "layer.bridge.QueryGetDataBeforeResponse") proto.RegisterType((*QueryGetSnapshotsByReportRequest)(nil), "layer.bridge.QueryGetSnapshotsByReportRequest") proto.RegisterType((*QueryGetSnapshotsByReportResponse)(nil), "layer.bridge.QueryGetSnapshotsByReportResponse") proto.RegisterType((*QueryGetAttestationDataBySnapshotRequest)(nil), "layer.bridge.QueryGetAttestationDataBySnapshotRequest") @@ -1878,114 +1772,109 @@ func init() { func init() { proto.RegisterFile("layer/bridge/query.proto", fileDescriptor_e48df680904493de) } var fileDescriptor_e48df680904493de = []byte{ - // 1698 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcd, 0x6f, 0x13, 0x47, - 0x1b, 0xcf, 0xe6, 0xdb, 0x4f, 0xc2, 0x47, 0x06, 0x43, 0x1c, 0x2b, 0x38, 0x66, 0x5f, 0x5e, 0x30, - 0x04, 0xb2, 0x6f, 0x12, 0x3e, 0xde, 0x50, 0x40, 0xc4, 0x01, 0x4a, 0xa4, 0xaa, 0x80, 0x13, 0xa1, - 0x8a, 0x1e, 0xac, 0xb1, 0x3d, 0xac, 0x57, 0xd8, 0x5e, 0xb3, 0x3b, 0x76, 0xb1, 0xa2, 0x5c, 0x7a, - 0xee, 0xa1, 0x52, 0xd5, 0x7b, 0xff, 0x81, 0x5e, 0xda, 0x6b, 0xab, 0x9e, 0x2a, 0x71, 0x2b, 0x6a, - 0x2f, 0x3d, 0x55, 0x15, 0xe9, 0xa1, 0xff, 0x43, 0x2f, 0xd5, 0xce, 0xce, 0xec, 0xee, 0x78, 0x3f, - 0xec, 0x44, 0xe2, 0x14, 0xef, 0xcc, 0xf3, 0x3c, 0xf3, 0xfb, 0x3d, 0xf3, 0xcc, 0x33, 0xbf, 0x51, - 0x20, 0xd3, 0xc0, 0x3d, 0x62, 0x69, 0x15, 0xcb, 0xa8, 0xe9, 0x44, 0x7b, 0xd5, 0x21, 0x56, 0x6f, - 0xa5, 0x6d, 0x99, 0xd4, 0x44, 0xb3, 0x6c, 0x66, 0xc5, 0x9d, 0xc9, 0xa6, 0x75, 0x53, 0x37, 0xd9, - 0x84, 0xe6, 0xfc, 0x72, 0x6d, 0xb2, 0x8b, 0xba, 0x69, 0xea, 0x0d, 0xa2, 0xe1, 0xb6, 0xa1, 0xe1, - 0x56, 0xcb, 0xa4, 0x98, 0x1a, 0x66, 0xcb, 0xe6, 0xb3, 0x97, 0xab, 0xa6, 0xdd, 0x34, 0x6d, 0xad, - 0x82, 0x6d, 0x1e, 0x5a, 0xeb, 0xae, 0x56, 0x08, 0xc5, 0xab, 0x5a, 0x1b, 0xeb, 0x46, 0x8b, 0x19, - 0x73, 0xdb, 0x05, 0x09, 0x47, 0x1b, 0x5b, 0xb8, 0x29, 0xc2, 0x2c, 0xba, 0x53, 0xa6, 0x85, 0xab, - 0xce, 0x52, 0xba, 0x6e, 0x11, 0x1d, 0x53, 0xe2, 0xce, 0xaa, 0x69, 0x40, 0x4f, 0x9d, 0xd0, 0x4f, - 0x98, 0x4b, 0x89, 0xbc, 0xea, 0x10, 0x9b, 0xaa, 0xdb, 0x70, 0x4a, 0x1a, 0xb5, 0xdb, 0x66, 0xcb, - 0x26, 0x68, 0x0d, 0x26, 0xdd, 0xd0, 0x19, 0x25, 0xaf, 0x14, 0x66, 0xd6, 0xd2, 0x2b, 0x41, 0x92, - 0x2b, 0xae, 0x75, 0x71, 0xfc, 0xcd, 0x1f, 0x4b, 0x23, 0x25, 0x6e, 0xa9, 0xe6, 0x60, 0x91, 0x85, - 0xfa, 0x90, 0xd0, 0x07, 0xdd, 0xe6, 0x33, 0xdc, 0x30, 0x6a, 0x98, 0x9a, 0x96, 0xb7, 0x54, 0x07, - 0xce, 0xc6, 0xcc, 0xf3, 0x45, 0x77, 0x21, 0xed, 0xc6, 0x2f, 0x77, 0xc5, 0x64, 0xd9, 0x26, 0x34, - 0xa3, 0xe4, 0xc7, 0x0a, 0x33, 0x6b, 0xaa, 0x0c, 0x81, 0x85, 0x2a, 0xb2, 0xdf, 0x5e, 0xa8, 0x12, - 0xaa, 0xc8, 0x03, 0x3b, 0x84, 0xaa, 0xe7, 0x41, 0x15, 0xcb, 0x7a, 0xe3, 0x5b, 0x75, 0x52, 0x7d, - 0xd9, 0x36, 0x8d, 0x16, 0x15, 0xe0, 0x3e, 0x81, 0xff, 0x24, 0x5a, 0x71, 0x88, 0xab, 0x90, 0xf6, - 0xb1, 0x55, 0xbd, 0x79, 0x96, 0xa5, 0x54, 0xe9, 0x54, 0x37, 0xec, 0xaa, 0x3e, 0x83, 0x74, 0x14, - 0x56, 0x54, 0x80, 0x13, 0x84, 0xd6, 0x89, 0x45, 0x3a, 0xcd, 0xcd, 0x5a, 0xcd, 0x22, 0xb6, 0xcd, - 0xa3, 0xf4, 0x0f, 0xa3, 0x34, 0x4c, 0xb4, 0xcd, 0xcf, 0x88, 0x95, 0x19, 0xcd, 0x2b, 0x85, 0xf1, - 0x92, 0xfb, 0xa1, 0x9a, 0x30, 0x1f, 0x15, 0x77, 0x87, 0xd0, 0xf7, 0x94, 0xc8, 0xa7, 0x70, 0x62, - 0x48, 0x0e, 0xb3, 0xc3, 0x72, 0x20, 0x80, 0x22, 0xe0, 0x3f, 0x4e, 0x84, 0x7f, 0x56, 0x86, 0x3f, - 0x0c, 0xf2, 0x1f, 0x46, 0x21, 0x13, 0x5e, 0xc7, 0x2d, 0x62, 0x54, 0x8a, 0x5d, 0xcd, 0x29, 0xfc, - 0x7c, 0xe2, 0x6a, 0x3b, 0x84, 0x46, 0x2d, 0x88, 0x34, 0xf0, 0x4b, 0xa1, 0x4c, 0x8d, 0x26, 0xb1, - 0x29, 0x6e, 0xb6, 0x19, 0xf7, 0xb1, 0x12, 0xf2, 0xa6, 0x76, 0xc5, 0x0c, 0xba, 0x05, 0x0b, 0xbe, - 0x03, 0xcb, 0x4d, 0x99, 0xd6, 0x2d, 0x62, 0xd7, 0xcd, 0x46, 0x2d, 0x33, 0xc6, 0xdc, 0xe6, 0x3d, - 0x83, 0x27, 0xce, 0xfc, 0xae, 0x98, 0x46, 0x57, 0x00, 0x49, 0xc8, 0xcb, 0x75, 0x6c, 0xd7, 0x33, - 0xe3, 0x6c, 0x1f, 0x4e, 0x76, 0x03, 0xb0, 0x1e, 0x61, 0xbb, 0x1e, 0x5b, 0xc1, 0x13, 0xcc, 0x3e, - 0xb2, 0x82, 0x7f, 0x52, 0x40, 0x0d, 0x13, 0xf7, 0x0d, 0x78, 0x22, 0x63, 0x48, 0x2b, 0x47, 0x23, - 0x3d, 0x7a, 0x14, 0xd2, 0x63, 0xd1, 0xa4, 0xd5, 0xa7, 0xb0, 0x98, 0x44, 0x20, 0xf1, 0x58, 0xc7, - 0x24, 0xe5, 0x11, 0x14, 0x12, 0x1a, 0x86, 0xd4, 0x64, 0xd1, 0x22, 0xa4, 0xfa, 0xf3, 0xe1, 0x0f, - 0xa8, 0xdf, 0x2b, 0x70, 0x69, 0x88, 0x50, 0xbc, 0x03, 0xe5, 0x00, 0x42, 0x7d, 0x27, 0x30, 0x82, - 0x96, 0x60, 0xa6, 0x8b, 0x1b, 0x5e, 0x46, 0x46, 0x5d, 0x03, 0x77, 0x88, 0x15, 0x80, 0x04, 0x66, - 0xac, 0x0f, 0x0c, 0xba, 0x08, 0x27, 0xfa, 0x77, 0x62, 0x9c, 0xd9, 0x1c, 0x6f, 0x4b, 0x1b, 0xa0, - 0xde, 0x8b, 0xe0, 0xef, 0x6d, 0x6d, 0xb1, 0xb7, 0xdd, 0xaa, 0x91, 0xd7, 0x82, 0x7f, 0x1a, 0x26, - 0x0c, 0xe7, 0x9b, 0x73, 0x77, 0x3f, 0xd4, 0xed, 0x08, 0xda, 0xe1, 0x08, 0x9c, 0x76, 0x72, 0x0a, - 0x37, 0x60, 0x21, 0x10, 0xca, 0x26, 0x74, 0xc7, 0xd0, 0x87, 0xcc, 0xfe, 0x6d, 0xc8, 0x46, 0xb9, - 0xfa, 0xd9, 0xb6, 0x0d, 0xbd, 0x85, 0x69, 0xc7, 0x22, 0x36, 0x6b, 0x40, 0xa9, 0x52, 0x60, 0x44, - 0x7d, 0x0e, 0xcb, 0x81, 0x3b, 0x8d, 0x37, 0xbb, 0x62, 0xcf, 0xe3, 0xc3, 0x47, 0x04, 0x94, 0x65, - 0x98, 0xf3, 0xeb, 0x0c, 0x4b, 0x5d, 0xdf, 0x2f, 0x5a, 0xee, 0xa3, 0x3e, 0x86, 0x2b, 0xc3, 0xc5, - 0xe6, 0x58, 0x97, 0x60, 0x86, 0x74, 0x9b, 0x7d, 0x61, 0x81, 0x78, 0xae, 0xea, 0x3d, 0xc8, 0xcb, - 0x54, 0x8b, 0x3d, 0x2f, 0xdf, 0xc3, 0x25, 0xab, 0x07, 0xe7, 0x12, 0x22, 0xbc, 0xd7, 0x6b, 0xbc, - 0x08, 0xff, 0x15, 0x4b, 0x6f, 0x75, 0x2c, 0x8b, 0xb4, 0xe8, 0xa6, 0x10, 0x38, 0x25, 0xd2, 0x36, - 0x2d, 0x71, 0x93, 0xa3, 0x05, 0x98, 0x66, 0x12, 0xaa, 0x6c, 0xd4, 0x78, 0x0e, 0xa6, 0xd8, 0xf7, - 0x76, 0x4d, 0xdd, 0x87, 0x0b, 0x83, 0x62, 0x70, 0x0e, 0xd7, 0x21, 0xe5, 0xe9, 0x27, 0x7e, 0x13, - 0xcc, 0xcb, 0xc0, 0x7d, 0x4f, 0xdf, 0x52, 0xce, 0x9e, 0x7b, 0xd3, 0x05, 0xb2, 0xf7, 0xc5, 0x18, - 0xa4, 0x3c, 0xb7, 0x10, 0xce, 0x59, 0x0f, 0x27, 0xba, 0x00, 0xc7, 0xbd, 0x98, 0xcf, 0x70, 0xa3, - 0x43, 0xf8, 0x31, 0xee, 0x1b, 0x45, 0x57, 0x60, 0x0e, 0xcb, 0x04, 0x88, 0xc5, 0x8e, 0x74, 0xaa, - 0x14, 0x9e, 0x40, 0xe7, 0xe1, 0x98, 0xc5, 0x7f, 0xb3, 0x66, 0xca, 0x0f, 0xb6, 0x3c, 0x88, 0xae, - 0x02, 0xb2, 0x29, 0x6e, 0xd5, 0xb0, 0x55, 0x2b, 0xd7, 0x48, 0xd7, 0x60, 0xda, 0x93, 0xdd, 0x0e, - 0x4a, 0x69, 0x4e, 0xcc, 0xdc, 0x17, 0x13, 0xe8, 0x0e, 0xa4, 0x84, 0xbf, 0x9d, 0x99, 0x64, 0x3b, - 0xbc, 0x14, 0x97, 0x28, 0x6e, 0x57, 0xf2, 0x3d, 0x50, 0x06, 0xa6, 0x5e, 0x34, 0xb0, 0xae, 0x93, - 0x5a, 0x66, 0x2a, 0xaf, 0x14, 0xa6, 0x4b, 0xe2, 0xd3, 0xe9, 0x19, 0x2d, 0xb3, 0x55, 0x25, 0x99, - 0x69, 0xb7, 0x67, 0xb0, 0x0f, 0xb4, 0x06, 0xe9, 0x3e, 0x62, 0xac, 0x4d, 0x64, 0x52, 0xcc, 0x28, - 0x72, 0x0e, 0x9d, 0x81, 0xc9, 0x3a, 0x31, 0xf4, 0x3a, 0xcd, 0x00, 0xb3, 0xe2, 0x5f, 0xea, 0x03, - 0x98, 0x0b, 0x61, 0x43, 0x59, 0x98, 0x16, 0xe8, 0x78, 0xf5, 0x78, 0xdf, 0xb2, 0x86, 0x19, 0x13, - 0x1a, 0x66, 0xd7, 0xef, 0x3d, 0xf7, 0x31, 0xc5, 0x45, 0xf2, 0xc2, 0xb4, 0xc8, 0xe0, 0x62, 0x0c, - 0xd7, 0x8a, 0x74, 0xd2, 0x5e, 0xf9, 0x6d, 0x29, 0x18, 0x75, 0x70, 0x79, 0xba, 0xea, 0xff, 0x28, - 0xe5, 0xf9, 0xa9, 0xdf, 0x1e, 0x76, 0x5a, 0xb8, 0x6d, 0xd7, 0x4d, 0x6a, 0x17, 0x7b, 0xc3, 0x1e, - 0xae, 0x70, 0xf0, 0x54, 0x30, 0xf8, 0xa6, 0xdf, 0x39, 0x22, 0x82, 0xfb, 0x4d, 0xde, 0x16, 0x93, - 0xbc, 0xd9, 0xfa, 0x03, 0xea, 0x43, 0xff, 0xc6, 0xd9, 0xa4, 0xd4, 0x89, 0xeb, 0x54, 0x20, 0xcb, - 0x4e, 0x4f, 0xc4, 0x14, 0x38, 0xb3, 0x30, 0x2d, 0x1c, 0xc5, 0x36, 0x8a, 0x6f, 0xf5, 0x9f, 0x51, - 0xff, 0xe2, 0x49, 0x08, 0xc4, 0x31, 0x1d, 0x95, 0xb1, 0x73, 0x93, 0x7a, 0x99, 0x77, 0x3a, 0x61, - 0x87, 0xf0, 0xa3, 0xd9, 0x7f, 0x8a, 0x25, 0xc3, 0xb6, 0x77, 0x32, 0x83, 0x86, 0xee, 0xd1, 0x94, - 0xaf, 0xfe, 0x89, 0xd0, 0xd5, 0xbf, 0x0e, 0xa7, 0xb1, 0xcf, 0x27, 0x20, 0xc1, 0x26, 0x99, 0x69, - 0x3a, 0x30, 0x29, 0x89, 0xb0, 0xb6, 0x45, 0xba, 0x86, 0xd9, 0xb1, 0xcb, 0x6e, 0xa5, 0x07, 0x1c, - 0xa7, 0x98, 0xe3, 0xbc, 0x30, 0x70, 0xb7, 0xcb, 0xf7, 0x5d, 0x83, 0xd3, 0x2d, 0xf2, 0x9a, 0x86, - 0xfd, 0xa6, 0xdd, 0xe7, 0x90, 0x33, 0xd9, 0xe7, 0xa3, 0x6e, 0xf9, 0x7d, 0x3c, 0x90, 0x7c, 0xfb, - 0x70, 0x5b, 0xf8, 0x91, 0xdf, 0xc8, 0xe3, 0x82, 0xf0, 0xed, 0x53, 0x61, 0x36, 0x40, 0x5b, 0x54, - 0x95, 0x34, 0xb6, 0x76, 0x80, 0x60, 0x82, 0x85, 0x43, 0x2f, 0x61, 0x92, 0x8b, 0xd9, 0x7c, 0xc4, - 0x35, 0x25, 0x89, 0xba, 0xec, 0xb9, 0x04, 0x0b, 0x77, 0x71, 0x75, 0xf1, 0xf3, 0xdf, 0xfe, 0xfa, - 0x6a, 0xf4, 0x0c, 0x4a, 0x6b, 0x11, 0x8f, 0x76, 0xf4, 0xb5, 0x02, 0x27, 0xfb, 0xdf, 0xc2, 0xe8, - 0x72, 0x44, 0xd4, 0x98, 0x07, 0x75, 0x76, 0x79, 0x28, 0x5b, 0x8e, 0xa5, 0xc0, 0xb0, 0xa8, 0x28, - 0x2f, 0x63, 0xd1, 0x09, 0x2d, 0x3b, 0xaa, 0xa1, 0xeb, 0x43, 0xf8, 0x56, 0x81, 0x33, 0xd1, 0x52, - 0x14, 0xfd, 0x2f, 0x7a, 0xc5, 0xf8, 0x77, 0x75, 0x76, 0xf5, 0x10, 0x1e, 0x1c, 0xe9, 0x0a, 0x43, - 0x5a, 0x40, 0x17, 0xc2, 0x48, 0xa3, 0x44, 0x3a, 0xfa, 0x55, 0x81, 0xc5, 0x24, 0xe9, 0x8c, 0x6e, - 0x0c, 0x8d, 0x41, 0xde, 0xe1, 0x9b, 0x87, 0xf6, 0xe3, 0x0c, 0x36, 0x19, 0x83, 0x0f, 0xd0, 0xc6, - 0x70, 0x0c, 0xca, 0x6e, 0x41, 0x68, 0x7b, 0xde, 0x01, 0xda, 0x47, 0xbf, 0xf4, 0x91, 0xea, 0x17, - 0xc6, 0x03, 0x49, 0xc5, 0x68, 0xf1, 0x81, 0xa4, 0xe2, 0x14, 0xb8, 0x7a, 0x97, 0x91, 0xfa, 0x3f, - 0xba, 0x91, 0x44, 0xca, 0x63, 0x50, 0xae, 0xf4, 0xca, 0x4c, 0xe6, 0x6b, 0x7b, 0xec, 0xcf, 0xbe, - 0x53, 0xee, 0xc7, 0x24, 0x91, 0x8d, 0x2e, 0xc6, 0x42, 0x91, 0x15, 0x7c, 0xb6, 0x30, 0xd8, 0x90, - 0x83, 0x5c, 0x65, 0x20, 0x97, 0xd1, 0xa5, 0x48, 0x90, 0xce, 0xab, 0xc8, 0x36, 0x74, 0x39, 0xd3, - 0x7f, 0x2b, 0xb0, 0x34, 0x40, 0x62, 0xa3, 0x8d, 0xd8, 0x93, 0x36, 0x48, 0xf2, 0x67, 0x6f, 0x1d, - 0xc5, 0x95, 0xb3, 0xf9, 0x98, 0xb1, 0x79, 0x84, 0x1e, 0x46, 0x9f, 0x59, 0xae, 0xf4, 0x9d, 0x54, - 0x87, 0x5e, 0x15, 0xda, 0x5e, 0x68, 0x68, 0x1f, 0x7d, 0xa7, 0x40, 0x3a, 0x4a, 0xba, 0xa3, 0x95, - 0xa4, 0x04, 0x87, 0x5f, 0x09, 0x59, 0x6d, 0x68, 0x7b, 0xce, 0x64, 0x83, 0x31, 0x59, 0x47, 0xab, - 0xb1, 0xfb, 0x52, 0xe9, 0xf9, 0xc5, 0x23, 0xed, 0xcf, 0xcf, 0x0a, 0x2c, 0xc4, 0x0a, 0x76, 0xb4, - 0x1e, 0x8d, 0x24, 0xf1, 0x89, 0x90, 0xbd, 0x76, 0x38, 0x27, 0xce, 0xe1, 0x0e, 0xe3, 0x70, 0x13, - 0x5d, 0x0f, 0x73, 0xa8, 0xba, 0x9e, 0x65, 0xff, 0x1e, 0x77, 0xaf, 0x44, 0x6d, 0x4f, 0x68, 0x87, - 0x7d, 0xf4, 0x8d, 0x5b, 0xff, 0xbe, 0x9a, 0x8b, 0xab, 0xff, 0x90, 0x8a, 0x8c, 0xab, 0xff, 0xb0, - 0x30, 0x54, 0x6f, 0x33, 0x8c, 0x37, 0xd0, 0xb5, 0x30, 0xc6, 0x1a, 0xa6, 0xb8, 0x5c, 0x61, 0xe6, - 0x01, 0x58, 0x52, 0xaa, 0x7f, 0x74, 0xeb, 0x23, 0x24, 0xd0, 0xe2, 0xea, 0x23, 0x4e, 0x26, 0xc6, - 0xd5, 0x47, 0xac, 0xf2, 0x53, 0xef, 0x33, 0xdc, 0x77, 0xd1, 0xed, 0x30, 0x6e, 0x4f, 0x00, 0x3a, - 0x25, 0x12, 0x4a, 0xab, 0x84, 0x9f, 0xdf, 0x04, 0xb1, 0xa2, 0x2e, 0xae, 0x69, 0x0e, 0x92, 0x93, - 0x71, 0x4d, 0x73, 0xa0, 0x7a, 0x4c, 0xba, 0x09, 0x82, 0x52, 0xcd, 0xdd, 0x9b, 0x9e, 0xc7, 0x55, - 0xdb, 0x13, 0xbf, 0xbc, 0xfa, 0x8f, 0xd6, 0x39, 0x71, 0xf5, 0x9f, 0x28, 0xad, 0xe2, 0xea, 0x3f, - 0x59, 0x4a, 0x25, 0xd5, 0x7f, 0x50, 0x4e, 0xc5, 0xf0, 0x28, 0x6e, 0xbd, 0x79, 0x97, 0x53, 0xde, - 0xbe, 0xcb, 0x29, 0x7f, 0xbe, 0xcb, 0x29, 0x5f, 0x1e, 0xe4, 0x46, 0xde, 0x1e, 0xe4, 0x46, 0x7e, - 0x3f, 0xc8, 0x8d, 0x3c, 0xbf, 0xa4, 0x1b, 0xb4, 0xde, 0xa9, 0xac, 0x54, 0xcd, 0xa6, 0x46, 0x49, - 0xa3, 0x61, 0x5a, 0x57, 0x0d, 0x93, 0x2f, 0xf2, 0x5a, 0x2c, 0x43, 0x7b, 0x6d, 0x62, 0x57, 0x26, - 0xd9, 0xff, 0x32, 0xd6, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x1a, 0x1f, 0x57, 0x8e, 0x19, - 0x00, 0x00, + // 1628 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x6f, 0x13, 0x47, + 0x14, 0xcf, 0xe6, 0xdb, 0x2f, 0xe1, 0x23, 0x83, 0x21, 0x8e, 0x15, 0x1c, 0xb3, 0xa5, 0x60, 0x08, + 0x64, 0x9b, 0xa4, 0x40, 0x43, 0x01, 0x11, 0x07, 0x28, 0x91, 0xaa, 0x02, 0x0e, 0x42, 0x15, 0x3d, + 0x58, 0xe3, 0x78, 0xba, 0x5e, 0x61, 0x7b, 0x97, 0xdd, 0xb1, 0x8b, 0x15, 0xe5, 0xd2, 0x73, 0x0f, + 0x95, 0xaa, 0xfe, 0x19, 0xbd, 0xb4, 0xd7, 0x56, 0xed, 0xa5, 0x12, 0xb7, 0xa2, 0xf6, 0xd2, 0x53, + 0x55, 0x41, 0x0f, 0xfd, 0x1f, 0x7a, 0xa9, 0x76, 0x76, 0x66, 0x77, 0xc7, 0xfb, 0x61, 0x27, 0x12, + 0xa7, 0x78, 0xe7, 0x7d, 0xcc, 0xef, 0xf7, 0xe6, 0xed, 0x9b, 0xdf, 0x06, 0x72, 0x4d, 0xdc, 0x23, + 0xb6, 0x56, 0xb3, 0x8d, 0xba, 0x4e, 0xb4, 0xe7, 0x1d, 0x62, 0xf7, 0x56, 0x2c, 0xdb, 0xa4, 0x26, + 0x9a, 0x65, 0x96, 0x15, 0xcf, 0x92, 0xbf, 0xb8, 0x6b, 0x3a, 0x2d, 0xd3, 0xd1, 0x6a, 0xd8, 0xe1, + 0x6e, 0x5a, 0x77, 0xb5, 0x46, 0x28, 0x5e, 0xd5, 0x2c, 0xac, 0x1b, 0x6d, 0x4c, 0x0d, 0xb3, 0xed, + 0x45, 0xe6, 0xb3, 0xba, 0xa9, 0x9b, 0xec, 0xa7, 0xe6, 0xfe, 0xe2, 0xab, 0x8b, 0xba, 0x69, 0xea, + 0x4d, 0xa2, 0x61, 0xcb, 0xd0, 0x70, 0xbb, 0x6d, 0x52, 0x16, 0xe2, 0x70, 0xeb, 0x82, 0x84, 0xc3, + 0xc2, 0x36, 0x6e, 0x09, 0xd3, 0xa2, 0x67, 0x32, 0x6d, 0xbc, 0xeb, 0x86, 0xeb, 0xba, 0x4d, 0x74, + 0x4c, 0x89, 0x67, 0x55, 0xb3, 0x80, 0x1e, 0xb9, 0x70, 0x1e, 0xb2, 0x90, 0x0a, 0x79, 0xde, 0x21, + 0x0e, 0x55, 0xb7, 0xe1, 0x84, 0xb4, 0xea, 0x58, 0x66, 0xdb, 0x21, 0x68, 0x0d, 0x26, 0xbd, 0xd4, + 0x39, 0xa5, 0xa8, 0x94, 0x66, 0xd6, 0xb2, 0x2b, 0x61, 0x92, 0x2b, 0x9e, 0x77, 0x79, 0xfc, 0xe5, + 0x5f, 0x4b, 0x23, 0x15, 0xee, 0xa9, 0x16, 0x60, 0x91, 0xa5, 0xfa, 0x88, 0xd0, 0xbb, 0xdd, 0xd6, + 0x13, 0xdc, 0x34, 0xea, 0x98, 0x9a, 0xb6, 0xbf, 0x55, 0x07, 0x4e, 0x27, 0xd8, 0xf9, 0xa6, 0x8f, + 0x21, 0xeb, 0xe5, 0xaf, 0x76, 0x85, 0xb1, 0xea, 0x10, 0x9a, 0x53, 0x8a, 0x63, 0xa5, 0x99, 0x35, + 0x55, 0x86, 0xc0, 0x52, 0x95, 0xd9, 0x6f, 0x3f, 0x55, 0x05, 0xd5, 0xe4, 0x85, 0x1d, 0x42, 0xd5, + 0xb3, 0xa0, 0x8a, 0x6d, 0xfd, 0xf5, 0xad, 0x06, 0xd9, 0x7d, 0x66, 0x99, 0x46, 0x9b, 0x0a, 0x70, + 0x9f, 0xc2, 0x3b, 0xa9, 0x5e, 0x1c, 0xe2, 0x2a, 0x64, 0x03, 0x6c, 0xbb, 0xbe, 0x9d, 0x55, 0x29, + 0x53, 0x39, 0xd1, 0x8d, 0x86, 0xaa, 0x4f, 0x20, 0x1b, 0x87, 0x15, 0x95, 0xe0, 0x18, 0xa1, 0x0d, + 0x62, 0x93, 0x4e, 0x6b, 0xb3, 0x5e, 0xb7, 0x89, 0xe3, 0xf0, 0x2c, 0xfd, 0xcb, 0x28, 0x0b, 0x13, + 0x96, 0xf9, 0x05, 0xb1, 0x73, 0xa3, 0x45, 0xa5, 0x34, 0x5e, 0xf1, 0x1e, 0x54, 0x13, 0xe6, 0xe3, + 0xf2, 0xee, 0x10, 0xfa, 0x96, 0x0a, 0xf9, 0x08, 0x8e, 0x0d, 0xc9, 0x61, 0x76, 0x58, 0x0e, 0x04, + 0x50, 0x0c, 0xfc, 0x07, 0xa9, 0xf0, 0x4f, 0xcb, 0xf0, 0x87, 0x41, 0xfe, 0xe3, 0x28, 0xe4, 0xa2, + 0xfb, 0x78, 0x4d, 0x8c, 0x2a, 0x89, 0xbb, 0xb9, 0x8d, 0x5f, 0x4c, 0xdd, 0x6d, 0x87, 0xd0, 0xb8, + 0x0d, 0x91, 0x06, 0x41, 0x2b, 0x54, 0xa9, 0xd1, 0x22, 0x0e, 0xc5, 0x2d, 0x8b, 0x71, 0x1f, 0xab, + 0x20, 0xdf, 0xf4, 0x58, 0x58, 0xd0, 0x75, 0x58, 0x08, 0x02, 0x58, 0x6d, 0xaa, 0xb4, 0x61, 0x13, + 0xa7, 0x61, 0x36, 0xeb, 0xb9, 0x31, 0x16, 0x36, 0xef, 0x3b, 0x3c, 0x74, 0xed, 0x8f, 0x85, 0x19, + 0x5d, 0x02, 0x24, 0x21, 0xaf, 0x36, 0xb0, 0xd3, 0xc8, 0x8d, 0xb3, 0x73, 0x38, 0xde, 0x0d, 0xc1, + 0xba, 0x8f, 0x9d, 0x46, 0x62, 0x07, 0x4f, 0x30, 0xff, 0xd8, 0x0e, 0xfe, 0x59, 0x01, 0x35, 0x4a, + 0x3c, 0x70, 0xe0, 0x85, 0x4c, 0x20, 0xad, 0x1c, 0x8e, 0xf4, 0xe8, 0x61, 0x48, 0x8f, 0xc5, 0x93, + 0x56, 0x1f, 0xc1, 0x62, 0x1a, 0x81, 0xd4, 0xd7, 0x3a, 0xa1, 0x28, 0xf7, 0xa1, 0x94, 0x32, 0x30, + 0xa4, 0x21, 0x8b, 0x16, 0x21, 0xd3, 0x5f, 0x8f, 0x60, 0x41, 0xfd, 0x41, 0x81, 0x0b, 0x43, 0xa4, + 0xe2, 0x13, 0xa8, 0x00, 0x10, 0x99, 0x3b, 0xa1, 0x15, 0xb4, 0x04, 0x33, 0x5d, 0xdc, 0xf4, 0x2b, + 0x32, 0xea, 0x39, 0x78, 0x4b, 0xac, 0x01, 0x24, 0x30, 0x63, 0x7d, 0x60, 0xd0, 0x79, 0x38, 0xd6, + 0x7f, 0x12, 0xe3, 0xcc, 0xe7, 0xa8, 0x25, 0x1d, 0x80, 0x7a, 0x3b, 0x86, 0xbf, 0x7f, 0xb4, 0xe5, + 0xde, 0x76, 0xbb, 0x4e, 0x5e, 0x08, 0xfe, 0x59, 0x98, 0x30, 0xdc, 0x67, 0xce, 0xdd, 0x7b, 0x50, + 0xb7, 0x63, 0x68, 0x47, 0x33, 0x70, 0xda, 0xe9, 0x25, 0xdc, 0x80, 0x85, 0x50, 0x2a, 0x87, 0xd0, + 0x1d, 0x43, 0x1f, 0xb2, 0xfa, 0x37, 0x20, 0x1f, 0x17, 0x1a, 0x54, 0xdb, 0x31, 0xf4, 0x36, 0xa6, + 0x1d, 0x9b, 0x38, 0x6c, 0x00, 0x65, 0x2a, 0xa1, 0x15, 0xf5, 0x29, 0x2c, 0x87, 0xee, 0x34, 0x3e, + 0xec, 0xca, 0x3d, 0x9f, 0x0f, 0x5f, 0x11, 0x50, 0x96, 0x61, 0x2e, 0xe8, 0x33, 0x2c, 0x4d, 0xfd, + 0xa0, 0x69, 0x79, 0x8c, 0xfa, 0x00, 0x2e, 0x0d, 0x97, 0x9b, 0x63, 0x5d, 0x82, 0x19, 0xd2, 0x6d, + 0xf5, 0xa5, 0x05, 0xe2, 0x87, 0xaa, 0xb7, 0xa1, 0x28, 0x53, 0x2d, 0xf7, 0xfc, 0x7a, 0x0f, 0x57, + 0xac, 0x1e, 0x9c, 0x49, 0xc9, 0xf0, 0x56, 0xaf, 0xf1, 0x32, 0xbc, 0x2b, 0xb6, 0xde, 0xea, 0xd8, + 0x36, 0x69, 0xd3, 0x4d, 0x21, 0x70, 0x2a, 0xc4, 0x32, 0x6d, 0x71, 0x93, 0xa3, 0x05, 0x98, 0x66, + 0xb2, 0xab, 0x6a, 0xd4, 0x79, 0x0d, 0xa6, 0xd8, 0xf3, 0x76, 0x5d, 0xdd, 0x87, 0x73, 0x83, 0x72, + 0x70, 0x0e, 0x57, 0x20, 0xe3, 0xeb, 0x27, 0x7e, 0x13, 0xcc, 0xcb, 0xc0, 0x83, 0xc8, 0xc0, 0x53, + 0xae, 0x9e, 0x77, 0xd3, 0x85, 0xaa, 0xf7, 0xd5, 0x18, 0x64, 0xfc, 0xb0, 0x08, 0xce, 0x59, 0x1f, + 0x27, 0x3a, 0x07, 0x47, 0xfd, 0x9c, 0x4f, 0x70, 0xb3, 0x43, 0xf8, 0x6b, 0xdc, 0xb7, 0x8a, 0x2e, + 0xc1, 0x1c, 0x96, 0x09, 0x10, 0x9b, 0xbd, 0xd2, 0x99, 0x4a, 0xd4, 0x80, 0xce, 0xc2, 0x11, 0x9b, + 0xff, 0x66, 0xc3, 0x94, 0xbf, 0xd8, 0xf2, 0x22, 0xba, 0x0c, 0xc8, 0xa1, 0xb8, 0x5d, 0xc7, 0x76, + 0xbd, 0x5a, 0x27, 0x5d, 0x83, 0x89, 0x4f, 0x76, 0x3b, 0x28, 0x95, 0x39, 0x61, 0xb9, 0x23, 0x0c, + 0xe8, 0x26, 0x64, 0x44, 0xbc, 0x93, 0x9b, 0x64, 0x27, 0xbc, 0x94, 0x54, 0x28, 0xee, 0x57, 0x09, + 0x22, 0x50, 0x0e, 0xa6, 0x3e, 0x6f, 0x62, 0x5d, 0x27, 0xf5, 0xdc, 0x54, 0x51, 0x29, 0x4d, 0x57, + 0xc4, 0xa3, 0x3b, 0x33, 0xda, 0x66, 0x7b, 0x97, 0xe4, 0xa6, 0xbd, 0x99, 0xc1, 0x1e, 0xd0, 0x1a, + 0x64, 0xfb, 0x88, 0xb1, 0x31, 0x91, 0xcb, 0x30, 0xa7, 0x58, 0x1b, 0x3a, 0x05, 0x93, 0x0d, 0x62, + 0xe8, 0x0d, 0x9a, 0x03, 0xe6, 0xc5, 0x9f, 0xd4, 0xbb, 0x30, 0x17, 0xc1, 0x86, 0xf2, 0x30, 0x2d, + 0xd0, 0xf1, 0xee, 0xf1, 0x9f, 0x65, 0x0d, 0x33, 0x26, 0x34, 0xcc, 0x67, 0xc1, 0x5b, 0xb5, 0xd3, + 0xc6, 0x96, 0xd3, 0x30, 0xa9, 0x53, 0xee, 0x0d, 0xdb, 0x93, 0xd1, 0x96, 0xc9, 0x84, 0x5b, 0x66, + 0x33, 0x78, 0xe1, 0x62, 0x92, 0x07, 0xb3, 0xd1, 0x11, 0x46, 0x3e, 0xa3, 0x82, 0x05, 0xf5, 0x5e, + 0x30, 0xa8, 0x37, 0x29, 0x75, 0xf3, 0xba, 0x07, 0x77, 0x07, 0x53, 0x5c, 0xee, 0x89, 0x9c, 0x02, + 0x67, 0x1e, 0xa6, 0x45, 0xa0, 0x60, 0x2f, 0x9e, 0xd5, 0xff, 0x46, 0x83, 0x79, 0x9d, 0x92, 0x88, + 0x63, 0x3a, 0x2c, 0x63, 0xf7, 0x02, 0xf2, 0x4f, 0xd1, 0x1d, 0x20, 0x1d, 0xc2, 0x3b, 0xba, 0xbf, + 0xf9, 0x25, 0x47, 0xcb, 0x6f, 0xe8, 0xb0, 0xa3, 0xd7, 0xd1, 0xf2, 0x8d, 0x39, 0x11, 0xb9, 0x31, + 0xd7, 0xe1, 0x24, 0x0e, 0xf8, 0x84, 0x94, 0xcb, 0x24, 0x73, 0xcd, 0x86, 0x8c, 0x92, 0x76, 0xb1, + 0x6c, 0xd2, 0x35, 0xcc, 0x8e, 0x53, 0xf5, 0x1a, 0x24, 0x14, 0x38, 0xc5, 0x02, 0xe7, 0x85, 0x83, + 0x77, 0x5c, 0x41, 0xec, 0x1a, 0x9c, 0x6c, 0x93, 0x17, 0x34, 0x1a, 0x37, 0xed, 0x7d, 0x45, 0xb8, + 0xc6, 0xbe, 0x18, 0x75, 0x2b, 0x18, 0x7f, 0xa1, 0xe2, 0x3b, 0x07, 0x3b, 0xc2, 0x8f, 0x83, 0xf9, + 0x97, 0x94, 0x84, 0x1f, 0x9f, 0x0a, 0xb3, 0x21, 0xda, 0xa2, 0xab, 0xa4, 0xb5, 0xb5, 0x5f, 0xe6, + 0x60, 0x82, 0xa5, 0x43, 0xcf, 0x60, 0x92, 0x6b, 0xc0, 0x62, 0xcc, 0x74, 0x97, 0xb4, 0x50, 0xfe, + 0x4c, 0x8a, 0x87, 0xb7, 0xb9, 0xba, 0xf8, 0xe5, 0x1f, 0xff, 0x7c, 0x33, 0x7a, 0x0a, 0x65, 0xb5, + 0x98, 0x6f, 0x5d, 0xf4, 0xad, 0x02, 0xc7, 0xfb, 0x3f, 0x21, 0xd1, 0xc5, 0x98, 0xac, 0x09, 0xdf, + 0xa1, 0xf9, 0xe5, 0xa1, 0x7c, 0x39, 0x96, 0x12, 0xc3, 0xa2, 0xa2, 0xa2, 0x8c, 0x45, 0x27, 0xb4, + 0xea, 0x5e, 0xb6, 0xdd, 0x00, 0xc2, 0x77, 0x0a, 0x9c, 0x8a, 0x57, 0x70, 0xe8, 0xbd, 0xf8, 0x1d, + 0x93, 0x3f, 0x47, 0xf3, 0xab, 0x07, 0x88, 0xe0, 0x48, 0x57, 0x18, 0xd2, 0x12, 0x3a, 0x17, 0x45, + 0x1a, 0xa7, 0x6d, 0xd1, 0xef, 0x0a, 0x2c, 0xa6, 0x29, 0x4e, 0x74, 0x75, 0x68, 0x0c, 0xf2, 0x09, + 0x5f, 0x3b, 0x70, 0x1c, 0x67, 0xb0, 0xc9, 0x18, 0x7c, 0x88, 0x36, 0x86, 0x63, 0x50, 0xf5, 0x1a, + 0x42, 0xdb, 0xf3, 0x5f, 0xa0, 0x7d, 0xf4, 0x5b, 0x1f, 0xa9, 0x7e, 0x3d, 0x39, 0x90, 0x54, 0x82, + 0x84, 0x1d, 0x48, 0x2a, 0x49, 0xb8, 0xaa, 0xb7, 0x18, 0xa9, 0x0f, 0xd0, 0xd5, 0x34, 0x52, 0x3e, + 0x83, 0x6a, 0xad, 0x57, 0x65, 0xea, 0x58, 0xdb, 0x63, 0x7f, 0xf6, 0xdd, 0x76, 0x3f, 0x22, 0x69, + 0x53, 0x74, 0x3e, 0x11, 0x8a, 0x2c, 0x7c, 0xf3, 0xa5, 0xc1, 0x8e, 0x1c, 0xe4, 0x2a, 0x03, 0xb9, + 0x8c, 0x2e, 0xc4, 0x82, 0x74, 0x3f, 0x26, 0x1c, 0x43, 0x97, 0x2b, 0xfd, 0xaf, 0x02, 0x4b, 0x03, + 0x94, 0x29, 0xda, 0x48, 0x7c, 0xd3, 0x06, 0x29, 0xe5, 0xfc, 0xf5, 0xc3, 0x84, 0x72, 0x36, 0x9f, + 0x30, 0x36, 0xf7, 0xd1, 0xbd, 0xf8, 0x77, 0x96, 0x0b, 0x64, 0xb7, 0xd4, 0x11, 0x31, 0xae, 0xed, + 0x45, 0x96, 0xf6, 0xd1, 0xf7, 0x0a, 0x64, 0xe3, 0x14, 0x2f, 0x5a, 0x49, 0x2b, 0x70, 0x54, 0x5c, + 0xe7, 0xb5, 0xa1, 0xfd, 0x39, 0x93, 0x0d, 0xc6, 0x64, 0x1d, 0xad, 0x26, 0x9e, 0x4b, 0xad, 0x17, + 0x34, 0x8f, 0x74, 0x3e, 0xbf, 0x2a, 0xb0, 0x90, 0xa8, 0x73, 0xd1, 0x7a, 0x3c, 0x92, 0x54, 0x65, + 0x9d, 0x7f, 0xff, 0x60, 0x41, 0x9c, 0xc3, 0x4d, 0xc6, 0xe1, 0x1a, 0xba, 0x12, 0xe5, 0xb0, 0xeb, + 0x45, 0x56, 0x83, 0x7b, 0xdc, 0xbb, 0x12, 0xb5, 0x3d, 0xa1, 0x1d, 0xf6, 0xd1, 0x4f, 0x5e, 0xf1, + 0x23, 0xea, 0x27, 0xa9, 0xf8, 0x49, 0x1a, 0x2c, 0xa9, 0xf8, 0x89, 0xb2, 0x4a, 0xbd, 0xc3, 0x80, + 0xdf, 0x42, 0x37, 0xa2, 0xc0, 0x7d, 0x75, 0xe5, 0xd6, 0x3f, 0x82, 0x59, 0x3a, 0x07, 0x3e, 0x66, + 0x13, 0x15, 0x53, 0xd2, 0x44, 0x1a, 0xa4, 0xd5, 0x92, 0x26, 0xd2, 0x40, 0x69, 0x96, 0x36, 0x66, + 0xc3, 0x3a, 0xa8, 0x8e, 0x29, 0x76, 0xe9, 0x09, 0xae, 0xda, 0x9e, 0xf8, 0xe5, 0x37, 0x57, 0xbc, + 0x88, 0x48, 0x6a, 0xae, 0x54, 0xdd, 0x92, 0xd4, 0x5c, 0xe9, 0x3a, 0x25, 0xad, 0xb9, 0xc2, 0x5a, + 0x25, 0x81, 0x47, 0x79, 0xeb, 0xe5, 0xeb, 0x82, 0xf2, 0xea, 0x75, 0x41, 0xf9, 0xfb, 0x75, 0x41, + 0xf9, 0xfa, 0x4d, 0x61, 0xe4, 0xd5, 0x9b, 0xc2, 0xc8, 0x9f, 0x6f, 0x0a, 0x23, 0x4f, 0x2f, 0xe8, + 0x06, 0x6d, 0x74, 0x6a, 0x2b, 0xbb, 0x66, 0x4b, 0xa3, 0xa4, 0xd9, 0x34, 0xed, 0xcb, 0x86, 0xc9, + 0x37, 0x79, 0x21, 0xb6, 0xa1, 0x3d, 0x8b, 0x38, 0xb5, 0x49, 0xf6, 0xff, 0xf5, 0xf5, 0xff, 0x03, + 0x00, 0x00, 0xff, 0xff, 0x0d, 0x8a, 0x57, 0x4e, 0x22, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2011,7 +1900,6 @@ type QueryClient interface { GetEvmAddressByValidatorAddress(ctx context.Context, in *QueryGetEvmAddressByValidatorAddressRequest, opts ...grpc.CallOption) (*QueryGetEvmAddressByValidatorAddressResponse, error) GetValsetByTimestamp(ctx context.Context, in *QueryGetValsetByTimestampRequest, opts ...grpc.CallOption) (*QueryGetValsetByTimestampResponse, error) GetCurrentAggregateReport(ctx context.Context, in *QueryGetCurrentAggregateReportRequest, opts ...grpc.CallOption) (*QueryGetCurrentAggregateReportResponse, error) - GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) GetSnapshotsByReport(ctx context.Context, in *QueryGetSnapshotsByReportRequest, opts ...grpc.CallOption) (*QueryGetSnapshotsByReportResponse, error) GetAttestationDataBySnapshot(ctx context.Context, in *QueryGetAttestationDataBySnapshotRequest, opts ...grpc.CallOption) (*QueryGetAttestationDataBySnapshotResponse, error) GetAttestationsBySnapshot(ctx context.Context, in *QueryGetAttestationsBySnapshotRequest, opts ...grpc.CallOption) (*QueryGetAttestationsBySnapshotResponse, error) @@ -2106,15 +1994,6 @@ func (c *queryClient) GetCurrentAggregateReport(ctx context.Context, in *QueryGe return out, nil } -func (c *queryClient) GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) { - out := new(QueryGetDataBeforeResponse) - err := c.cc.Invoke(ctx, "/layer.bridge.Query/GetDataBefore", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) GetSnapshotsByReport(ctx context.Context, in *QueryGetSnapshotsByReportRequest, opts ...grpc.CallOption) (*QueryGetSnapshotsByReportResponse, error) { out := new(QueryGetSnapshotsByReportResponse) err := c.cc.Invoke(ctx, "/layer.bridge.Query/GetSnapshotsByReport", in, out, opts...) @@ -2155,7 +2034,6 @@ type QueryServer interface { GetEvmAddressByValidatorAddress(context.Context, *QueryGetEvmAddressByValidatorAddressRequest) (*QueryGetEvmAddressByValidatorAddressResponse, error) GetValsetByTimestamp(context.Context, *QueryGetValsetByTimestampRequest) (*QueryGetValsetByTimestampResponse, error) GetCurrentAggregateReport(context.Context, *QueryGetCurrentAggregateReportRequest) (*QueryGetCurrentAggregateReportResponse, error) - GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) GetSnapshotsByReport(context.Context, *QueryGetSnapshotsByReportRequest) (*QueryGetSnapshotsByReportResponse, error) GetAttestationDataBySnapshot(context.Context, *QueryGetAttestationDataBySnapshotRequest) (*QueryGetAttestationDataBySnapshotResponse, error) GetAttestationsBySnapshot(context.Context, *QueryGetAttestationsBySnapshotRequest) (*QueryGetAttestationsBySnapshotResponse, error) @@ -2192,9 +2070,6 @@ func (*UnimplementedQueryServer) GetValsetByTimestamp(ctx context.Context, req * func (*UnimplementedQueryServer) GetCurrentAggregateReport(ctx context.Context, req *QueryGetCurrentAggregateReportRequest) (*QueryGetCurrentAggregateReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCurrentAggregateReport not implemented") } -func (*UnimplementedQueryServer) GetDataBefore(ctx context.Context, req *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDataBefore not implemented") -} func (*UnimplementedQueryServer) GetSnapshotsByReport(ctx context.Context, req *QueryGetSnapshotsByReportRequest) (*QueryGetSnapshotsByReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSnapshotsByReport not implemented") } @@ -2371,24 +2246,6 @@ func _Query_GetCurrentAggregateReport_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _Query_GetDataBefore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetDataBeforeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetDataBefore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/layer.bridge.Query/GetDataBefore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetDataBefore(ctx, req.(*QueryGetDataBeforeRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GetSnapshotsByReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetSnapshotsByReportRequest) if err := dec(in); err != nil { @@ -2483,10 +2340,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "GetCurrentAggregateReport", Handler: _Query_GetCurrentAggregateReport_Handler, }, - { - MethodName: "GetDataBefore", - Handler: _Query_GetDataBefore_Handler, - }, { MethodName: "GetSnapshotsByReport", Handler: _Query_GetSnapshotsByReport_Handler, @@ -3461,81 +3314,6 @@ func (m *AggregateReporter) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetDataBeforeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetDataBeforeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetDataBeforeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Timestamp != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x10 - } - if len(m.QueryId) > 0 { - i -= len(m.QueryId) - copy(dAtA[i:], m.QueryId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.QueryId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetDataBeforeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetDataBeforeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetDataBeforeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Timestamp != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x10 - } - if m.Aggregate != nil { - { - size, err := m.Aggregate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *QueryGetSnapshotsByReportRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4203,38 +3981,6 @@ func (m *AggregateReporter) Size() (n int) { return n } -func (m *QueryGetDataBeforeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.QueryId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Timestamp != 0 { - n += 1 + sovQuery(uint64(m.Timestamp)) - } - return n -} - -func (m *QueryGetDataBeforeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Aggregate != nil { - l = m.Aggregate.Size() - n += 1 + l + sovQuery(uint64(l)) - } - if m.Timestamp != 0 { - n += 1 + sovQuery(uint64(m.Timestamp)) - } - return n -} - func (m *QueryGetSnapshotsByReportRequest) Size() (n int) { if m == nil { return 0 @@ -6928,212 +6674,6 @@ func (m *AggregateReporter) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetDataBeforeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetDataBeforeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetDataBeforeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueryId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetDataBeforeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetDataBeforeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetDataBeforeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Aggregate == nil { - m.Aggregate = &types.Aggregate{} - } - if err := m.Aggregate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *QueryGetSnapshotsByReportRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/bridge/types/query.pb.gw.go b/x/bridge/types/query.pb.gw.go index bab3edb8c..0f0457839 100644 --- a/x/bridge/types/query.pb.gw.go +++ b/x/bridge/types/query.pb.gw.go @@ -411,82 +411,6 @@ func local_request_Query_GetCurrentAggregateReport_0(ctx context.Context, marsha } -func request_Query_GetDataBefore_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetDataBeforeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["query_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query_id") - } - - protoReq.QueryId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) - } - - val, ok = pathParams["timestamp"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "timestamp") - } - - protoReq.Timestamp, err = runtime.Int64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "timestamp", err) - } - - msg, err := client.GetDataBefore(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetDataBefore_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetDataBeforeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["query_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query_id") - } - - protoReq.QueryId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) - } - - val, ok = pathParams["timestamp"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "timestamp") - } - - protoReq.Timestamp, err = runtime.Int64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "timestamp", err) - } - - msg, err := server.GetDataBefore(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_GetSnapshotsByReport_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetSnapshotsByReportRequest var metadata runtime.ServerMetadata @@ -884,29 +808,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetDataBefore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetDataBefore_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetDataBefore_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetSnapshotsByReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1197,26 +1098,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetDataBefore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetDataBefore_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetDataBefore_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetSnapshotsByReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1299,8 +1180,6 @@ var ( pattern_Query_GetCurrentAggregateReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"layer", "bridge", "get_current_aggregate_report", "query_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDataBefore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"layer", "bridge", "get_data_before", "query_id", "timestamp"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetSnapshotsByReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"layer", "bridge", "get_snapshots_by_report", "query_id", "timestamp"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_GetAttestationDataBySnapshot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"layer", "bridge", "get_attestation_data_by_snapshot", "snapshot"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1327,8 +1206,6 @@ var ( forward_Query_GetCurrentAggregateReport_0 = runtime.ForwardResponseMessage - forward_Query_GetDataBefore_0 = runtime.ForwardResponseMessage - forward_Query_GetSnapshotsByReport_0 = runtime.ForwardResponseMessage forward_Query_GetAttestationDataBySnapshot_0 = runtime.ForwardResponseMessage diff --git a/x/bridge/types/tx.pb.go b/x/bridge/types/tx.pb.go index 5d2824ba8..2eab270f0 100644 --- a/x/bridge/types/tx.pb.go +++ b/x/bridge/types/tx.pb.go @@ -330,37 +330,38 @@ func init() { func init() { proto.RegisterFile("layer/bridge/tx.proto", fileDescriptor_cb4091a52ebadfca) } var fileDescriptor_cb4091a52ebadfca = []byte{ - // 476 bytes of a gzipped FileDescriptorProto + // 482 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x8e, 0xdb, 0x50, 0xc8, 0x10, 0x21, 0x61, 0x0a, 0x4d, 0x4c, 0x71, 0xab, 0x08, 0xc4, 0x8f, - 0x60, 0x57, 0x29, 0x07, 0x24, 0x6e, 0x34, 0x5c, 0x7a, 0xc8, 0xc5, 0x42, 0x42, 0x2a, 0x07, 0xe4, - 0x9f, 0x91, 0xbb, 0x22, 0xf6, 0xb8, 0xbb, 0xeb, 0x92, 0x5c, 0x79, 0x02, 0xc4, 0x5b, 0x70, 0xe3, - 0x31, 0x7a, 0xec, 0x91, 0x13, 0x42, 0xc9, 0x81, 0xd7, 0x40, 0xf1, 0xda, 0x69, 0x49, 0xac, 0x96, - 0x93, 0x77, 0xbe, 0xf9, 0x3c, 0xf3, 0xed, 0x37, 0x3b, 0x70, 0x77, 0xe4, 0x4f, 0x50, 0xf2, 0x40, - 0x8a, 0x28, 0x46, 0xae, 0xc7, 0x2c, 0x93, 0xa4, 0xc9, 0x6e, 0x17, 0x30, 0x33, 0xb0, 0xb3, 0x15, - 0x92, 0x4a, 0x48, 0xf1, 0x44, 0xc5, 0xfc, 0xa4, 0x3f, 0xff, 0x18, 0x9a, 0xe3, 0x96, 0x89, 0xc0, - 0x57, 0xc8, 0x4f, 0xfa, 0x01, 0x6a, 0xbf, 0xcf, 0x43, 0x12, 0x69, 0x99, 0xdf, 0x8c, 0x29, 0xa6, - 0xe2, 0xc8, 0xe7, 0x27, 0x83, 0xf6, 0x26, 0x70, 0x6f, 0xa8, 0x62, 0x0f, 0x8f, 0x73, 0x54, 0xfa, - 0x8d, 0xd6, 0xa8, 0xb4, 0xaf, 0x05, 0xa5, 0xca, 0xee, 0xc0, 0xf5, 0x50, 0xa2, 0xaf, 0x49, 0x76, - 0xac, 0x5d, 0xeb, 0x49, 0xcb, 0xab, 0x42, 0xbb, 0x0b, 0x37, 0x8e, 0x73, 0x94, 0x93, 0x8f, 0x22, - 0xea, 0xac, 0x99, 0x54, 0x11, 0x1f, 0x44, 0xf6, 0x36, 0xb4, 0xb4, 0x48, 0xe6, 0x45, 0x92, 0xac, - 0xb3, 0x5e, 0xe4, 0xce, 0x81, 0xd7, 0xed, 0x2f, 0x7f, 0x7e, 0x3c, 0xab, 0xca, 0xf4, 0x76, 0xc1, - 0xad, 0x6f, 0xed, 0xa1, 0xca, 0x28, 0x55, 0xd8, 0xfb, 0x66, 0xc1, 0xed, 0xa1, 0x8a, 0xdf, 0x0b, - 0x7d, 0x14, 0x49, 0xff, 0xf3, 0x3b, 0xfa, 0x84, 0x97, 0x0a, 0xdb, 0x86, 0x96, 0xc4, 0x50, 0x64, - 0x02, 0x53, 0x5d, 0x2a, 0x3b, 0x07, 0xec, 0x57, 0xb0, 0xe1, 0x27, 0x94, 0xa7, 0xba, 0x10, 0x76, - 0x73, 0xaf, 0xcb, 0x8c, 0x63, 0x6c, 0xee, 0x18, 0x2b, 0x1d, 0x63, 0x03, 0x12, 0xe9, 0x7e, 0xf3, - 0xf4, 0xd7, 0x4e, 0xc3, 0x2b, 0xe9, 0x4b, 0xb2, 0xef, 0x43, 0x77, 0x45, 0xd3, 0x42, 0x71, 0x5e, - 0xd8, 0x39, 0x18, 0xf9, 0x22, 0x79, 0x8b, 0x19, 0x29, 0xa1, 0xcb, 0xfb, 0x5d, 0xa2, 0xfa, 0x01, - 0x40, 0x64, 0xb8, 0x95, 0xa1, 0x4d, 0xaf, 0x55, 0x22, 0x07, 0x91, 0xbd, 0x09, 0xd7, 0x44, 0x1a, - 0xe1, 0xb8, 0x50, 0xdd, 0xf4, 0x4c, 0xb0, 0xa4, 0xa9, 0x0b, 0x5b, 0x2b, 0x6d, 0x8d, 0xa2, 0xbd, - 0xef, 0x6b, 0xb0, 0x3e, 0x54, 0xb1, 0x2d, 0xe0, 0x4e, 0xdd, 0x94, 0x1f, 0xb2, 0x8b, 0xaf, 0x8b, - 0xd5, 0x0f, 0xc4, 0x79, 0xfe, 0x3f, 0xac, 0xaa, 0xa5, 0x7d, 0x08, 0xb7, 0x96, 0x46, 0xb6, 0xb3, - 0xf2, 0xff, 0xbf, 0x04, 0xe7, 0xf1, 0x15, 0x84, 0x45, 0xed, 0x0f, 0xd0, 0xbe, 0x78, 0xcd, 0x1a, - 0xfd, 0x35, 0xe6, 0x3b, 0x8f, 0xae, 0x60, 0x99, 0xe2, 0xfb, 0x83, 0xd3, 0xa9, 0x6b, 0x9d, 0x4d, - 0x5d, 0xeb, 0xf7, 0xd4, 0xb5, 0xbe, 0xce, 0xdc, 0xc6, 0xd9, 0xcc, 0x6d, 0xfc, 0x9c, 0xb9, 0x8d, - 0xc3, 0xa7, 0xb1, 0xd0, 0x47, 0x79, 0xc0, 0x42, 0x4a, 0xb8, 0xc6, 0xd1, 0x88, 0xe4, 0x0b, 0x41, - 0xdc, 0xec, 0xeb, 0x78, 0xb1, 0xb1, 0x93, 0x0c, 0x55, 0xb0, 0x51, 0x2c, 0xd6, 0xcb, 0xbf, 0x01, - 0x00, 0x00, 0xff, 0xff, 0x70, 0x53, 0x34, 0x24, 0xce, 0x03, 0x00, 0x00, + 0x10, 0x8e, 0xfb, 0x07, 0x19, 0x22, 0x24, 0x4c, 0xa1, 0x89, 0x29, 0x6e, 0x15, 0x81, 0x80, 0x0a, + 0x76, 0x95, 0x72, 0x40, 0xe2, 0x46, 0xc3, 0xa5, 0x87, 0x5c, 0x2c, 0x24, 0xa4, 0x72, 0x40, 0xfe, + 0x19, 0xb9, 0x2b, 0x62, 0x8f, 0xbb, 0xbb, 0x2e, 0xc9, 0x0d, 0xf1, 0x04, 0x88, 0x27, 0xc9, 0x63, + 0xf4, 0xd8, 0x23, 0x27, 0x84, 0x92, 0x43, 0x5f, 0x03, 0xc5, 0xeb, 0xa4, 0x25, 0xb1, 0x5a, 0x4e, + 0xde, 0xf9, 0xe6, 0xf3, 0xcc, 0xb7, 0xdf, 0xec, 0xc0, 0x83, 0xbe, 0x3f, 0x44, 0xc9, 0x03, 0x29, + 0xa2, 0x18, 0xb9, 0x1e, 0xb0, 0x4c, 0x92, 0x26, 0xbb, 0x51, 0xc0, 0xcc, 0xc0, 0x8e, 0x1b, 0x92, + 0x4a, 0x48, 0xf1, 0xc0, 0x57, 0xc8, 0x4f, 0x3b, 0x01, 0x6a, 0xbf, 0xc3, 0x43, 0x12, 0xa9, 0x61, + 0x3b, 0x5b, 0x65, 0x3e, 0x51, 0x31, 0x3f, 0xed, 0x4c, 0x3f, 0x65, 0x62, 0x33, 0xa6, 0x98, 0x8a, + 0x23, 0x9f, 0x9e, 0x0c, 0xda, 0x1e, 0xc2, 0xc3, 0x9e, 0x8a, 0x3d, 0x3c, 0xc9, 0x51, 0xe9, 0x77, + 0x5a, 0xa3, 0xd2, 0xbe, 0x16, 0x94, 0x2a, 0xbb, 0x09, 0xb7, 0x42, 0x89, 0xbe, 0x26, 0xd9, 0xb4, + 0x76, 0xad, 0xe7, 0x75, 0x6f, 0x16, 0xda, 0x2d, 0xb8, 0x7d, 0x92, 0xa3, 0x1c, 0x7e, 0x16, 0x51, + 0x73, 0xc5, 0xa4, 0x8a, 0xf8, 0x30, 0xb2, 0xb7, 0xa1, 0xae, 0x45, 0x32, 0x2d, 0x92, 0x64, 0xcd, + 0xd5, 0x22, 0x77, 0x09, 0xbc, 0x6d, 0x7c, 0xbf, 0x18, 0xed, 0xcd, 0xca, 0xb4, 0x77, 0xc1, 0xad, + 0x6e, 0xed, 0xa1, 0xca, 0x28, 0x55, 0xd8, 0xfe, 0x69, 0xc1, 0xbd, 0x9e, 0x8a, 0x3f, 0x0a, 0x7d, + 0x1c, 0x49, 0xff, 0xeb, 0x07, 0xfa, 0x82, 0xd7, 0x0a, 0xdb, 0x86, 0xba, 0xc4, 0x50, 0x64, 0x02, + 0x53, 0x5d, 0x2a, 0xbb, 0x04, 0xec, 0x37, 0xb0, 0xe1, 0x27, 0x94, 0xa7, 0xba, 0x10, 0x76, 0x67, + 0xbf, 0xc5, 0x8c, 0x55, 0x6c, 0x6a, 0x25, 0x2b, 0xad, 0x64, 0x5d, 0x12, 0xe9, 0xc1, 0xda, 0xd9, + 0xef, 0x9d, 0x9a, 0x57, 0xd2, 0x17, 0x64, 0x3f, 0x82, 0xd6, 0x92, 0xa6, 0xb9, 0xe2, 0xbc, 0xb0, + 0xb3, 0xdb, 0xf7, 0x45, 0xf2, 0x1e, 0x33, 0x52, 0x42, 0x97, 0xf7, 0xbb, 0x46, 0xf5, 0x63, 0x80, + 0xc8, 0x70, 0x67, 0x86, 0xae, 0x79, 0xf5, 0x12, 0x39, 0x8c, 0xec, 0x4d, 0x58, 0x17, 0x69, 0x84, + 0x83, 0x42, 0xf5, 0x9a, 0x67, 0x82, 0x05, 0x4d, 0x2d, 0xd8, 0x5a, 0x6a, 0x6b, 0x14, 0xed, 0x8f, + 0x56, 0x60, 0xb5, 0xa7, 0x62, 0x5b, 0xc0, 0xfd, 0xaa, 0x29, 0x3f, 0x61, 0x57, 0x5f, 0x17, 0xab, + 0x1e, 0x88, 0xf3, 0xf2, 0x7f, 0x58, 0xb3, 0x96, 0xf6, 0x11, 0xdc, 0x5d, 0x18, 0xd9, 0xce, 0xd2, + 0xff, 0xff, 0x12, 0x9c, 0x67, 0x37, 0x10, 0xe6, 0xb5, 0x3f, 0x41, 0xe3, 0xea, 0x35, 0x2b, 0xf4, + 0x57, 0x98, 0xef, 0x3c, 0xbd, 0x81, 0x65, 0x8a, 0x3b, 0xeb, 0xdf, 0x2e, 0x46, 0x7b, 0xd6, 0x41, + 0xf7, 0x6c, 0xec, 0x5a, 0xe7, 0x63, 0xd7, 0xfa, 0x33, 0x76, 0xad, 0x1f, 0x13, 0xb7, 0x76, 0x3e, + 0x71, 0x6b, 0xbf, 0x26, 0x6e, 0xed, 0xe8, 0x45, 0x2c, 0xf4, 0x71, 0x1e, 0xb0, 0x90, 0x12, 0xae, + 0xb1, 0xdf, 0x27, 0xf9, 0x4a, 0x10, 0x37, 0x6b, 0x3b, 0x98, 0x2f, 0xee, 0x30, 0x43, 0x15, 0x6c, + 0x14, 0xfb, 0xf5, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0xdc, 0x16, 0xc5, 0xd5, 0x03, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/oracle/autocli.go b/x/oracle/autocli.go index d572309ed..5a9e090fd 100644 --- a/x/oracle/autocli.go +++ b/x/oracle/autocli.go @@ -59,6 +59,12 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Query data before a timestamp", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "query_id"}, {ProtoField: "timestamp"}}, }, + { + RpcMethod: "RetrieveData", + Use: "retrieve-data [query_id] [timestamp]", + Short: "get data for a query at a specific timestamp", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "query_id"}, {ProtoField: "timestamp"}}, + }, { RpcMethod: "GetTimeBasedRewards", Use: "get-time-based-rewards", diff --git a/x/oracle/keeper/aggregate.go b/x/oracle/keeper/aggregate.go index 1751d1e7b..66360d355 100644 --- a/x/oracle/keeper/aggregate.go +++ b/x/oracle/keeper/aggregate.go @@ -125,29 +125,6 @@ func (k Keeper) SetAggregate(ctx context.Context, report *types.Aggregate) error return k.Aggregates.Set(ctx, collections.Join(report.QueryId, currentTimestamp), *report) } -// getDataBefore returns the last aggregate before or at the given timestamp for the given query id. -func (k Keeper) GetDataBefore(ctx context.Context, queryId []byte, timestamp time.Time) (*types.Aggregate, error) { - rng := collections.NewPrefixedPairRange[[]byte, int64](queryId).EndInclusive(timestamp.UnixMilli()).Descending() - var mostRecent *types.Aggregate - // This should get us the most recent aggregate, as they are walked in descending order - err := k.Aggregates.Walk(ctx, rng, func(key collections.Pair[[]byte, int64], value types.Aggregate) (stop bool, err error) { - if !value.Flagged { - mostRecent = &value - return true, nil - } - return false, nil - }) - if err != nil { - return nil, err - } - - if mostRecent == nil { - return nil, types.ErrNoAvailableReports.Wrapf("no data before timestamp %v available for query id %s", timestamp, hex.EncodeToString(queryId)) - } - - return mostRecent, nil -} - func (k Keeper) GetCurrentValueForQueryId(ctx context.Context, queryId []byte) (*types.Aggregate, error) { rng := collections.NewPrefixedPairRange[[]byte, int64](queryId).Descending() var mostRecent *types.Aggregate @@ -240,9 +217,12 @@ func (k Keeper) GetAggregateBefore(ctx context.Context, queryId []byte, timestam // Walk through the aggregates in descending order to find the most recent one before timestampBefore err = k.Aggregates.Walk(ctx, rng, func(key collections.Pair[[]byte, int64], value types.Aggregate) (stop bool, err error) { - mostRecent = &value - mostRecentTimestamp = key.K2() - return true, nil // Stop after the first (most recent) match + if !value.Flagged { + mostRecent = &value + mostRecentTimestamp = key.K2() + return true, nil // Stop after the first (most recent) match + } + return false, nil }) if err != nil { return nil, time.Time{}, err @@ -257,6 +237,7 @@ func (k Keeper) GetAggregateBefore(ctx context.Context, queryId []byte, timestam return mostRecent, timestamp, nil } +// todo: change func (k Keeper) GetAggregateByTimestamp(ctx context.Context, queryId []byte, timestamp time.Time) (aggregate *types.Aggregate, err error) { timestampUnix := timestamp.UnixMilli() @@ -287,7 +268,7 @@ func (k Keeper) GetAggregateByIndex(ctx context.Context, queryId []byte, index u // var aggregate *types.Aggregate var currentIndex uint64 - + k.Aggregates.Indexes.IndexesList() err = k.Aggregates.Walk(ctx, rng, func(key collections.Pair[[]byte, int64], value types.Aggregate) (stop bool, err error) { if currentIndex == index { aggregate = &value diff --git a/x/oracle/keeper/aggregate_test.go b/x/oracle/keeper/aggregate_test.go index 984497c3b..3505a3508 100644 --- a/x/oracle/keeper/aggregate_test.go +++ b/x/oracle/keeper/aggregate_test.go @@ -201,12 +201,12 @@ func (s *KeeperTestSuite) TestGetDataBefore() { earlyQuery := time.Unix(goback, 0) s.ctx = s.ctx.WithBlockTime(queryAt) - retAggregate, err := s.oracleKeeper.GetDataBefore(s.ctx, qId, queryAt) + retAggregate, _, err := s.oracleKeeper.GetAggregateBefore(s.ctx, qId, queryAt) s.NoError(err) s.Equal(aggregate, retAggregate) s.ctx = s.ctx.WithBlockTime(reportedAt) - nilAggregate, err := s.oracleKeeper.GetDataBefore(s.ctx, qId, earlyQuery) + nilAggregate, _, err := s.oracleKeeper.GetAggregateBefore(s.ctx, qId, earlyQuery) s.Nil(nilAggregate) s.NotNil(err) } diff --git a/x/oracle/keeper/msg_server_submit_value_test.go b/x/oracle/keeper/msg_server_submit_value_test.go index c3110533b..e81a114d5 100644 --- a/x/oracle/keeper/msg_server_submit_value_test.go +++ b/x/oracle/keeper/msg_server_submit_value_test.go @@ -49,12 +49,10 @@ func (s *KeeperTestSuite) TestSubmitValue() (sdk.AccAddress, []byte) { Cyclelist: true, BlockNumber: s.ctx.BlockHeight(), } - expectedReport := types.QueryGetReportsbyQidResponse{ - Reports: types.Reports{ - MicroReports: []*types.MicroReport{µReport}, - }, + expectedReport := types.QueryMicroReportsResponse{ + MicroReports: []types.MicroReport{microReport}, } - require.Equal(&expectedReport, report) + require.Equal(expectedReport.MicroReports, report.MicroReports) return addr, queryId } diff --git a/x/oracle/keeper/query.go b/x/oracle/keeper/query.go index d9e6fb9f8..e73036974 100644 --- a/x/oracle/keeper/query.go +++ b/x/oracle/keeper/query.go @@ -1,7 +1,14 @@ package keeper import ( + "context" + + "github.com/tellor-io/layer/utils" "github.com/tellor-io/layer/x/oracle/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "cosmossdk.io/collections" ) var _ types.QueryServer = Querier{} @@ -13,3 +20,15 @@ type Querier struct { func NewQuerier(keeper Keeper) Querier { return Querier{keeper: keeper} } + +func (k Querier) RetrieveData(ctx context.Context, req *types.QueryRetrieveDataRequest) (*types.QueryRetrieveDataResponse, error) { + queryId, err := utils.QueryBytesFromString(req.QueryId) + if err != nil { + return nil, status.Error(codes.InvalidArgument, "invalid queryId") + } + agg, err := k.keeper.Aggregates.Get(ctx, collections.Join(queryId, req.Timestamp)) + if err != nil { + return nil, err + } + return &types.QueryRetrieveDataResponse{Aggregate: &agg}, nil +} diff --git a/x/oracle/keeper/query_get_data_before.go b/x/oracle/keeper/query_get_data_before.go index d86ed111b..c7060346c 100644 --- a/x/oracle/keeper/query_get_data_before.go +++ b/x/oracle/keeper/query_get_data_before.go @@ -10,21 +10,25 @@ import ( "google.golang.org/grpc/status" ) -func (q Querier) GetDataBefore(goCtx context.Context, req *types.QueryGetDataBeforeRequest) (*types.QueryGetAggregatedReportResponse, error) { +func (k Querier) GetDataBefore(ctx context.Context, req *types.QueryGetDataBeforeRequest) (*types.QueryGetDataBeforeResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - qId, err := utils.QueryBytesFromString(req.QueryId) + qIdBz, err := utils.QueryBytesFromString(req.QueryId) if err != nil { - return nil, err + return nil, status.Error(codes.InvalidArgument, "invalid queryId") } - t := time.Unix(req.Timestamp, 0) - report, err := q.keeper.GetDataBefore(goCtx, qId, t) + aggregate, timestamp, err := k.keeper.GetAggregateBefore(ctx, qIdBz, time.UnixMilli(req.Timestamp)) if err != nil { return nil, err } - return &types.QueryGetAggregatedReportResponse{Report: report}, nil + timeUnix := timestamp.UnixMilli() + + return &types.QueryGetDataBeforeResponse{ + Aggregate: aggregate, + Timestamp: uint64(timeUnix), + }, nil } diff --git a/x/oracle/keeper/query_get_data_before_test.go b/x/oracle/keeper/query_get_data_before_test.go index 3e6f2de3d..d39a0faef 100644 --- a/x/oracle/keeper/query_get_data_before_test.go +++ b/x/oracle/keeper/query_get_data_before_test.go @@ -1,25 +1,48 @@ package keeper_test +import ( + "time" + + "github.com/tellor-io/layer/utils" + "github.com/tellor-io/layer/x/oracle/keeper" + "github.com/tellor-io/layer/x/oracle/types" + + "cosmossdk.io/collections" +) + func (s *KeeperTestSuite) TestQueryGetDataBefore() { - // require := s.Require() - - // s.TestSubmitValue() - // queryData := "00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000953706F745072696365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000003657468000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000037573640000000000000000000000000000000000000000000000000000000000" - // queryDataBytes, err := hex.DecodeString(queryData) - // fmt.Println("queryDataBytes: ", queryDataBytes) - // require.Nil(err) - // queryIdBytes := crypto.Keccak256(queryDataBytes) - // fmt.Println("queryIdBytes: ", queryIdBytes) - // queryId := hex.EncodeToString(queryIdBytes) - // fmt.Println("queryId: ", queryId) - // test := crypto.Keccak256([]byte(queryData)) - // fmt.Println("test: ", test) - // queryGetDataBeforeRequest := &types.QueryGetDataBeforeRequest{ - // QueryId: queryId, - // Timestamp: s.ctx.BlockTime().Unix() + 100, - // } - // s.ctx = s.ctx.WithBlockTime(s.ctx.BlockTime().Add(101)) - // data, err := s.oracleKeeper.GetDataBefore(s.ctx, queryGetDataBeforeRequest) - // require.Nil(err) - // fmt.Println(data) + ctx := s.ctx + querier := keeper.NewQuerier(s.oracleKeeper) + getDataBeforeResponse, err := querier.GetDataBefore(ctx, nil) + s.ErrorContains(err, "invalid request") + s.Nil(getDataBeforeResponse) + + getDataBeforeResponse, err = querier.GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ + QueryId: "z", + }) + s.ErrorContains(err, "invalid queryId") + s.Nil(getDataBeforeResponse) + + timestampBefore := int64(1) + timestamp := time.UnixMilli(timestampBefore) + + getDataBeforeResponse, err = querier.GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ + QueryId: "1234abcd", + Timestamp: timestampBefore, + }) + s.ErrorContains(err, "no aggregate report found before timestamp") + s.Nil(getDataBeforeResponse) + + queryId := "1234abcd" + qIdBz, err := utils.QueryBytesFromString(queryId) + s.NoError(err) + agg := types.Aggregate{QueryId: qIdBz} + s.NoError(s.oracleKeeper.Aggregates.Set(s.ctx, collections.Join(qIdBz, timestamp.UnixMilli()), agg)) + getDataBeforeResponse, err = querier.GetDataBefore(ctx, &types.QueryGetDataBeforeRequest{ + QueryId: queryId, + Timestamp: timestampBefore + 1, + }) + s.NoError(err) + s.Equal(getDataBeforeResponse.Timestamp, uint64(timestamp.UnixMilli())) + s.Equal(getDataBeforeResponse.Aggregate, &agg) } diff --git a/x/oracle/keeper/query_get_reports.go b/x/oracle/keeper/query_get_reports.go index 68edb3713..59dc81849 100644 --- a/x/oracle/keeper/query_get_reports.go +++ b/x/oracle/keeper/query_get_reports.go @@ -12,9 +12,26 @@ import ( "cosmossdk.io/collections/indexes" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" ) -func (k Querier) GetReportsbyQid(ctx context.Context, req *types.QueryGetReportsbyQidRequest) (*types.QueryGetReportsbyQidResponse, error) { +// WithCollectionPaginationTriplePrefix applies a prefix to a collection, whose key is a collection.Triple, +// being paginated that needs prefixing. +func WithCollectionPaginationTriplePrefix[K1, K2, K3 any](prefix K1) func(o *query.CollectionsPaginateOptions[collections.Triple[K1, K2, K3]]) { + return func(o *query.CollectionsPaginateOptions[collections.Triple[K1, K2, K3]]) { + prefix := collections.TriplePrefix[K1, K2, K3](prefix) + o.Prefix = &prefix + } +} + +func WithCollectionPaginationTripleSuperPrefix[K1, K2, K3 any](prefix1 K1, prefix2 K2) func(o *query.CollectionsPaginateOptions[collections.Triple[K1, K2, K3]]) { + return func(o *query.CollectionsPaginateOptions[collections.Triple[K1, K2, K3]]) { + prefix := collections.TripleSuperPrefix[K1, K2, K3](prefix1, prefix2) + o.Prefix = &prefix + } +} + +func (k Querier) GetReportsbyQid(ctx context.Context, req *types.QueryGetReportsbyQidRequest) (*types.QueryMicroReportsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -23,22 +40,21 @@ func (k Querier) GetReportsbyQid(ctx context.Context, req *types.QueryGetReports if err != nil { return nil, err } - - reports := types.Reports{ - MicroReports: []*types.MicroReport{}, - } - rng := collections.NewPrefixedTripleRange[[]byte, []byte, uint64](qId) - err = k.keeper.Reports.Walk(ctx, rng, func(key collections.Triple[[]byte, []byte, uint64], value types.MicroReport) (stop bool, err error) { - reports.MicroReports = append(reports.MicroReports, &value) - return false, nil - }) + microreports := make([]types.MicroReport, 0) + _, pageRes, err := query.CollectionPaginate( + ctx, k.keeper.Reports, req.Pagination, func(_ collections.Triple[[]byte, []byte, uint64], rep types.MicroReport) (types.MicroReport, error) { + microreports = append(microreports, rep) + return rep, nil + }, WithCollectionPaginationTriplePrefix[[]byte, []byte, uint64](qId), + ) if err != nil { - return nil, err + return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryGetReportsbyQidResponse{Reports: reports}, nil + + return &types.QueryMicroReportsResponse{MicroReports: microreports, Pagination: pageRes}, nil } -func (k Querier) GetReportsbyReporter(ctx context.Context, req *types.QueryGetReportsbyReporterRequest) (*types.QueryGetReportsbyReporterResponse, error) { +func (k Querier) GetReportsbyReporter(ctx context.Context, req *types.QueryGetReportsbyReporterRequest) (*types.QueryMicroReportsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -56,10 +72,10 @@ func (k Querier) GetReportsbyReporter(ctx context.Context, req *types.QueryGetRe return nil, err } - return &types.QueryGetReportsbyReporterResponse{MicroReports: reports}, nil + return &types.QueryMicroReportsResponse{MicroReports: reports}, nil } -func (k Querier) GetReportsbyReporterQid(ctx context.Context, req *types.QueryGetReportsbyReporterQidRequest) (*types.QueryGetReportsbyQidResponse, error) { +func (k Querier) GetReportsbyReporterQid(ctx context.Context, req *types.QueryGetReportsbyReporterQidRequest) (*types.QueryMicroReportsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -74,16 +90,15 @@ func (k Querier) GetReportsbyReporterQid(ctx context.Context, req *types.QueryGe return nil, err } - microReports := []*types.MicroReport{} - rng := collections.NewSuperPrefixedTripleRange[[]byte, []byte, uint64](qId, reporterAdd.Bytes()) - err = k.keeper.Reports.Walk(ctx, rng, func(key collections.Triple[[]byte, []byte, uint64], value types.MicroReport) (stop bool, err error) { - microReports = append(microReports, &value) - return false, nil - }) + microreports := make([]types.MicroReport, 0) + _, pageRes, err := query.CollectionPaginate( + ctx, k.keeper.Reports, req.Pagination, func(_ collections.Triple[[]byte, []byte, uint64], rep types.MicroReport) (types.MicroReport, error) { + microreports = append(microreports, rep) + return rep, nil + }, WithCollectionPaginationTripleSuperPrefix[[]byte, []byte, uint64](qId, reporterAdd.Bytes()), + ) if err != nil { - return nil, err + return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryGetReportsbyQidResponse{Reports: types.Reports{ - MicroReports: microReports, - }}, nil + return &types.QueryMicroReportsResponse{MicroReports: microreports, Pagination: pageRes}, nil } diff --git a/x/oracle/keeper/query_get_reports_test.go b/x/oracle/keeper/query_get_reports_test.go index ff01b5b41..80448478a 100644 --- a/x/oracle/keeper/query_get_reports_test.go +++ b/x/oracle/keeper/query_get_reports_test.go @@ -14,7 +14,7 @@ func (s *KeeperTestSuite) TestGetReportsByQueryId() { report, err := s.queryClient.GetReportsbyQid(s.ctx, req) s.Nil(err) - MicroReport := &types.MicroReport{ + MicroReport := types.MicroReport{ Reporter: addr.String(), Power: 1, QueryType: "SpotPrice", @@ -25,21 +25,19 @@ func (s *KeeperTestSuite) TestGetReportsByQueryId() { Cyclelist: true, BlockNumber: s.ctx.BlockHeight(), } - expectedReports := types.Reports{ - MicroReports: []*types.MicroReport{MicroReport}, - } + expectedReports := []types.MicroReport{MicroReport} - s.Equal(expectedReports, report.Reports) + s.Equal(expectedReports, report.MicroReports) report2, err := s.queryClient.GetReportsbyReporter(s.ctx, &types.QueryGetReportsbyReporterRequest{Reporter: addr.String()}) s.NoError(err) - s.Equal(*expectedReports.MicroReports[0], report2.MicroReports[0]) + s.Equal(expectedReports[0], report2.MicroReports[0]) report3, err := s.queryClient.GetReportsbyReporterQid(s.ctx, &types.QueryGetReportsbyReporterQidRequest{Reporter: addr.String(), QueryId: hex.EncodeToString(queryIdStr)}) s.NoError(err) - s.EqualValues(expectedReports.MicroReports, report3.Reports.MicroReports) + s.EqualValues(expectedReports, report3.MicroReports) report, err = s.queryClient.GetReportsbyQid(s.ctx, &types.QueryGetReportsbyQidRequest{QueryId: hex.EncodeToString(queryIdStr)}) s.NoError(err) - s.Equal(expectedReports, report.Reports) + s.Equal(expectedReports, report.MicroReports) } diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 9688ba600..f62b8a921 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -9,7 +9,7 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -117,22 +117,24 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } -type QueryGetReportsbyQidRequest struct { - QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` +type QueryMicroReportsResponse struct { + MicroReports []MicroReport `protobuf:"bytes,1,rep,name=microReports,proto3" json:"microReports"` + // pagination defines the pagination in the response. + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryGetReportsbyQidRequest) Reset() { *m = QueryGetReportsbyQidRequest{} } -func (m *QueryGetReportsbyQidRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetReportsbyQidRequest) ProtoMessage() {} -func (*QueryGetReportsbyQidRequest) Descriptor() ([]byte, []int) { +func (m *QueryMicroReportsResponse) Reset() { *m = QueryMicroReportsResponse{} } +func (m *QueryMicroReportsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMicroReportsResponse) ProtoMessage() {} +func (*QueryMicroReportsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_bb27caa9d264c5c4, []int{2} } -func (m *QueryGetReportsbyQidRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryMicroReportsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetReportsbyQidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryMicroReportsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetReportsbyQidRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryMicroReportsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -142,41 +144,51 @@ func (m *QueryGetReportsbyQidRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetReportsbyQidRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetReportsbyQidRequest.Merge(m, src) +func (m *QueryMicroReportsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMicroReportsResponse.Merge(m, src) } -func (m *QueryGetReportsbyQidRequest) XXX_Size() int { +func (m *QueryMicroReportsResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetReportsbyQidRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetReportsbyQidRequest.DiscardUnknown(m) +func (m *QueryMicroReportsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMicroReportsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetReportsbyQidRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryMicroReportsResponse proto.InternalMessageInfo -func (m *QueryGetReportsbyQidRequest) GetQueryId() string { +func (m *QueryMicroReportsResponse) GetMicroReports() []MicroReport { if m != nil { - return m.QueryId + return m.MicroReports } - return "" + return nil +} + +func (m *QueryMicroReportsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil } -type QueryGetReportsbyQidResponse struct { - Reports Reports `protobuf:"bytes,1,opt,name=reports,proto3" json:"reports"` +type QueryGetReportsbyQidRequest struct { + // query id of requested data + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryGetReportsbyQidResponse) Reset() { *m = QueryGetReportsbyQidResponse{} } -func (m *QueryGetReportsbyQidResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetReportsbyQidResponse) ProtoMessage() {} -func (*QueryGetReportsbyQidResponse) Descriptor() ([]byte, []int) { +func (m *QueryGetReportsbyQidRequest) Reset() { *m = QueryGetReportsbyQidRequest{} } +func (m *QueryGetReportsbyQidRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetReportsbyQidRequest) ProtoMessage() {} +func (*QueryGetReportsbyQidRequest) Descriptor() ([]byte, []int) { return fileDescriptor_bb27caa9d264c5c4, []int{3} } -func (m *QueryGetReportsbyQidResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGetReportsbyQidRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetReportsbyQidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGetReportsbyQidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetReportsbyQidResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGetReportsbyQidRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -186,27 +198,36 @@ func (m *QueryGetReportsbyQidResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetReportsbyQidResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetReportsbyQidResponse.Merge(m, src) +func (m *QueryGetReportsbyQidRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetReportsbyQidRequest.Merge(m, src) } -func (m *QueryGetReportsbyQidResponse) XXX_Size() int { +func (m *QueryGetReportsbyQidRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetReportsbyQidResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetReportsbyQidResponse.DiscardUnknown(m) +func (m *QueryGetReportsbyQidRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetReportsbyQidRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetReportsbyQidResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGetReportsbyQidRequest proto.InternalMessageInfo + +func (m *QueryGetReportsbyQidRequest) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} -func (m *QueryGetReportsbyQidResponse) GetReports() Reports { +func (m *QueryGetReportsbyQidRequest) GetPagination() *query.PageRequest { if m != nil { - return m.Reports + return m.Pagination } - return Reports{} + return nil } type QueryGetReportsbyReporterRequest struct { Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryGetReportsbyReporterRequest) Reset() { *m = QueryGetReportsbyReporterRequest{} } @@ -249,46 +270,9 @@ func (m *QueryGetReportsbyReporterRequest) GetReporter() string { return "" } -type QueryGetReportsbyReporterResponse struct { - MicroReports []MicroReport `protobuf:"bytes,1,rep,name=microReports,proto3" json:"microReports"` -} - -func (m *QueryGetReportsbyReporterResponse) Reset() { *m = QueryGetReportsbyReporterResponse{} } -func (m *QueryGetReportsbyReporterResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetReportsbyReporterResponse) ProtoMessage() {} -func (*QueryGetReportsbyReporterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{5} -} -func (m *QueryGetReportsbyReporterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetReportsbyReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetReportsbyReporterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetReportsbyReporterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetReportsbyReporterResponse.Merge(m, src) -} -func (m *QueryGetReportsbyReporterResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetReportsbyReporterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetReportsbyReporterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetReportsbyReporterResponse proto.InternalMessageInfo - -func (m *QueryGetReportsbyReporterResponse) GetMicroReports() []MicroReport { +func (m *QueryGetReportsbyReporterRequest) GetPagination() *query.PageRequest { if m != nil { - return m.MicroReports + return m.Pagination } return nil } @@ -296,13 +280,15 @@ func (m *QueryGetReportsbyReporterResponse) GetMicroReports() []MicroReport { type QueryGetReportsbyReporterQidRequest struct { Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` QueryId string `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // pagination defines an optional pagination for the request. + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryGetReportsbyReporterQidRequest) Reset() { *m = QueryGetReportsbyReporterQidRequest{} } func (m *QueryGetReportsbyReporterQidRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetReportsbyReporterQidRequest) ProtoMessage() {} func (*QueryGetReportsbyReporterQidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{6} + return fileDescriptor_bb27caa9d264c5c4, []int{5} } func (m *QueryGetReportsbyReporterQidRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -345,6 +331,13 @@ func (m *QueryGetReportsbyReporterQidRequest) GetQueryId() string { return "" } +func (m *QueryGetReportsbyReporterQidRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + type QueryGetCurrentTipRequest struct { QueryData string `protobuf:"bytes,1,opt,name=query_data,json=queryData,proto3" json:"query_data,omitempty"` } @@ -353,7 +346,7 @@ func (m *QueryGetCurrentTipRequest) Reset() { *m = QueryGetCurrentTipReq func (m *QueryGetCurrentTipRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetCurrentTipRequest) ProtoMessage() {} func (*QueryGetCurrentTipRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{7} + return fileDescriptor_bb27caa9d264c5c4, []int{6} } func (m *QueryGetCurrentTipRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -397,7 +390,7 @@ func (m *QueryGetCurrentTipResponse) Reset() { *m = QueryGetCurrentTipRe func (m *QueryGetCurrentTipResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetCurrentTipResponse) ProtoMessage() {} func (*QueryGetCurrentTipResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{8} + return fileDescriptor_bb27caa9d264c5c4, []int{7} } func (m *QueryGetCurrentTipResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -434,7 +427,7 @@ func (m *QueryGetUserTipTotalRequest) Reset() { *m = QueryGetUserTipTota func (m *QueryGetUserTipTotalRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetUserTipTotalRequest) ProtoMessage() {} func (*QueryGetUserTipTotalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{9} + return fileDescriptor_bb27caa9d264c5c4, []int{8} } func (m *QueryGetUserTipTotalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -478,7 +471,7 @@ func (m *QueryGetUserTipTotalResponse) Reset() { *m = QueryGetUserTipTot func (m *QueryGetUserTipTotalResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetUserTipTotalResponse) ProtoMessage() {} func (*QueryGetUserTipTotalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{10} + return fileDescriptor_bb27caa9d264c5c4, []int{9} } func (m *QueryGetUserTipTotalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -517,7 +510,7 @@ func (m *QueryGetCurrentAggregatedReportRequest) Reset() { func (m *QueryGetCurrentAggregatedReportRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetCurrentAggregatedReportRequest) ProtoMessage() {} func (*QueryGetCurrentAggregatedReportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{11} + return fileDescriptor_bb27caa9d264c5c4, []int{10} } func (m *QueryGetCurrentAggregatedReportRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -561,7 +554,7 @@ func (m *QueryGetAggregatedReportResponse) Reset() { *m = QueryGetAggreg func (m *QueryGetAggregatedReportResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetAggregatedReportResponse) ProtoMessage() {} func (*QueryGetAggregatedReportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{12} + return fileDescriptor_bb27caa9d264c5c4, []int{11} } func (m *QueryGetAggregatedReportResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -606,7 +599,7 @@ func (m *QueryGetDataBeforeRequest) Reset() { *m = QueryGetDataBeforeReq func (m *QueryGetDataBeforeRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetDataBeforeRequest) ProtoMessage() {} func (*QueryGetDataBeforeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bb27caa9d264c5c4, []int{13} + return fileDescriptor_bb27caa9d264c5c4, []int{12} } func (m *QueryGetDataBeforeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -649,6 +642,58 @@ func (m *QueryGetDataBeforeRequest) GetTimestamp() int64 { return 0 } +type QueryGetDataBeforeResponse struct { + Aggregate *Aggregate `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *QueryGetDataBeforeResponse) Reset() { *m = QueryGetDataBeforeResponse{} } +func (m *QueryGetDataBeforeResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetDataBeforeResponse) ProtoMessage() {} +func (*QueryGetDataBeforeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bb27caa9d264c5c4, []int{13} +} +func (m *QueryGetDataBeforeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetDataBeforeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetDataBeforeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetDataBeforeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetDataBeforeResponse.Merge(m, src) +} +func (m *QueryGetDataBeforeResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetDataBeforeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetDataBeforeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetDataBeforeResponse proto.InternalMessageInfo + +func (m *QueryGetDataBeforeResponse) GetAggregate() *Aggregate { + if m != nil { + return m.Aggregate + } + return nil +} + +func (m *QueryGetDataBeforeResponse) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp + } + return 0 +} + type QueryGetTimeBasedRewardsRequest struct { } @@ -809,13 +854,108 @@ func (m *QueryCurrentCyclelistQueryResponse) GetQueryData() string { return "" } +type QueryRetrieveDataRequest struct { + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *QueryRetrieveDataRequest) Reset() { *m = QueryRetrieveDataRequest{} } +func (m *QueryRetrieveDataRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRetrieveDataRequest) ProtoMessage() {} +func (*QueryRetrieveDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_bb27caa9d264c5c4, []int{18} +} +func (m *QueryRetrieveDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRetrieveDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRetrieveDataRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRetrieveDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRetrieveDataRequest.Merge(m, src) +} +func (m *QueryRetrieveDataRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRetrieveDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRetrieveDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRetrieveDataRequest proto.InternalMessageInfo + +func (m *QueryRetrieveDataRequest) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *QueryRetrieveDataRequest) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +type QueryRetrieveDataResponse struct { + Aggregate *Aggregate `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"` +} + +func (m *QueryRetrieveDataResponse) Reset() { *m = QueryRetrieveDataResponse{} } +func (m *QueryRetrieveDataResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRetrieveDataResponse) ProtoMessage() {} +func (*QueryRetrieveDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bb27caa9d264c5c4, []int{19} +} +func (m *QueryRetrieveDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRetrieveDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRetrieveDataResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRetrieveDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRetrieveDataResponse.Merge(m, src) +} +func (m *QueryRetrieveDataResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRetrieveDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRetrieveDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRetrieveDataResponse proto.InternalMessageInfo + +func (m *QueryRetrieveDataResponse) GetAggregate() *Aggregate { + if m != nil { + return m.Aggregate + } + return nil +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "layer.oracle.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "layer.oracle.QueryParamsResponse") + proto.RegisterType((*QueryMicroReportsResponse)(nil), "layer.oracle.QueryMicroReportsResponse") proto.RegisterType((*QueryGetReportsbyQidRequest)(nil), "layer.oracle.QueryGetReportsbyQidRequest") - proto.RegisterType((*QueryGetReportsbyQidResponse)(nil), "layer.oracle.QueryGetReportsbyQidResponse") proto.RegisterType((*QueryGetReportsbyReporterRequest)(nil), "layer.oracle.QueryGetReportsbyReporterRequest") - proto.RegisterType((*QueryGetReportsbyReporterResponse)(nil), "layer.oracle.QueryGetReportsbyReporterResponse") proto.RegisterType((*QueryGetReportsbyReporterQidRequest)(nil), "layer.oracle.QueryGetReportsbyReporterQidRequest") proto.RegisterType((*QueryGetCurrentTipRequest)(nil), "layer.oracle.QueryGetCurrentTipRequest") proto.RegisterType((*QueryGetCurrentTipResponse)(nil), "layer.oracle.QueryGetCurrentTipResponse") @@ -824,87 +964,96 @@ func init() { proto.RegisterType((*QueryGetCurrentAggregatedReportRequest)(nil), "layer.oracle.QueryGetCurrentAggregatedReportRequest") proto.RegisterType((*QueryGetAggregatedReportResponse)(nil), "layer.oracle.QueryGetAggregatedReportResponse") proto.RegisterType((*QueryGetDataBeforeRequest)(nil), "layer.oracle.QueryGetDataBeforeRequest") + proto.RegisterType((*QueryGetDataBeforeResponse)(nil), "layer.oracle.QueryGetDataBeforeResponse") proto.RegisterType((*QueryGetTimeBasedRewardsRequest)(nil), "layer.oracle.QueryGetTimeBasedRewardsRequest") proto.RegisterType((*QueryGetTimeBasedRewardsResponse)(nil), "layer.oracle.QueryGetTimeBasedRewardsResponse") proto.RegisterType((*QueryCurrentCyclelistQueryRequest)(nil), "layer.oracle.QueryCurrentCyclelistQueryRequest") proto.RegisterType((*QueryCurrentCyclelistQueryResponse)(nil), "layer.oracle.QueryCurrentCyclelistQueryResponse") + proto.RegisterType((*QueryRetrieveDataRequest)(nil), "layer.oracle.QueryRetrieveDataRequest") + proto.RegisterType((*QueryRetrieveDataResponse)(nil), "layer.oracle.QueryRetrieveDataResponse") } func init() { proto.RegisterFile("layer/oracle/query.proto", fileDescriptor_bb27caa9d264c5c4) } var fileDescriptor_bb27caa9d264c5c4 = []byte{ - // 1127 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x97, 0x41, 0x6f, 0x1b, 0x45, - 0x14, 0xc7, 0xb3, 0x6d, 0x49, 0x9b, 0x69, 0x2b, 0xc4, 0x34, 0x69, 0x9a, 0xad, 0xb1, 0x93, 0xad, - 0x44, 0xd3, 0x40, 0x76, 0x1b, 0x37, 0x29, 0x55, 0xa9, 0x42, 0xb1, 0x2b, 0x50, 0x90, 0x90, 0xa8, - 0x71, 0x2f, 0x08, 0x64, 0x8d, 0xbd, 0xc3, 0x66, 0x88, 0xbd, 0xb3, 0xd9, 0x1d, 0x03, 0x56, 0xe4, - 0x0b, 0x57, 0x2e, 0x48, 0x5c, 0x39, 0x70, 0x41, 0x42, 0x15, 0x42, 0x95, 0xe0, 0x8a, 0xc4, 0xb1, - 0xc7, 0x0a, 0x2e, 0x88, 0x43, 0x41, 0x09, 0x12, 0x5f, 0x03, 0xed, 0xcc, 0x1b, 0xdb, 0x6b, 0xef, - 0x6e, 0xdc, 0x5e, 0x12, 0xcf, 0xbc, 0xf7, 0x66, 0x7e, 0xf3, 0xe6, 0xcd, 0xff, 0xd9, 0xe8, 0x52, - 0x9b, 0xf4, 0x68, 0xe8, 0xf0, 0x90, 0xb4, 0xda, 0xd4, 0xd9, 0xef, 0xd2, 0xb0, 0x67, 0x07, 0x21, - 0x17, 0x1c, 0x9f, 0x93, 0x16, 0x5b, 0x59, 0xcc, 0x97, 0x48, 0x87, 0xf9, 0xdc, 0x91, 0x7f, 0x95, - 0x83, 0xb9, 0xd6, 0xe2, 0x51, 0x87, 0x47, 0x4e, 0x93, 0x44, 0x10, 0xe9, 0x7c, 0xb6, 0xd1, 0xa4, - 0x82, 0x6c, 0x38, 0x01, 0xf1, 0x98, 0x4f, 0x04, 0xe3, 0x3e, 0xf8, 0x16, 0x47, 0x7d, 0xb5, 0x57, - 0x8b, 0x33, 0x6d, 0x5f, 0x52, 0xf6, 0x86, 0x1c, 0x39, 0x6a, 0x00, 0xa6, 0x79, 0x8f, 0x7b, 0x5c, - 0xcd, 0xc7, 0x9f, 0x60, 0xb6, 0xe0, 0x71, 0xee, 0xb5, 0xa9, 0x43, 0x02, 0xe6, 0x10, 0xdf, 0xe7, - 0x42, 0xee, 0xa6, 0x63, 0x0a, 0x89, 0x53, 0x11, 0xcf, 0x0b, 0xa9, 0x47, 0x04, 0x05, 0x6b, 0x29, - 0x61, 0xed, 0xb0, 0x56, 0xc8, 0x1b, 0x21, 0x0d, 0x78, 0x28, 0x34, 0x4d, 0xc2, 0x21, 0x20, 0x21, - 0xe9, 0xe8, 0x95, 0xcd, 0x84, 0x49, 0x45, 0x69, 0xdb, 0x62, 0xc2, 0x26, 0x58, 0xa0, 0x0d, 0x97, - 0x13, 0x86, 0x6e, 0x44, 0xc3, 0x86, 0x60, 0x81, 0x32, 0x5a, 0xf3, 0x08, 0xdf, 0x8f, 0x93, 0xf7, - 0xbe, 0xdc, 0xa6, 0x46, 0xf7, 0xbb, 0x34, 0x12, 0xd6, 0x0e, 0xba, 0x90, 0x98, 0x8d, 0x02, 0xee, - 0x47, 0x14, 0x97, 0xd1, 0xac, 0xc2, 0xb9, 0x64, 0x2c, 0x1b, 0xab, 0x67, 0xcb, 0xf3, 0xf6, 0xe8, - 0x2d, 0xd9, 0xca, 0xbb, 0x72, 0xea, 0xf1, 0xd3, 0xd2, 0x4c, 0x0d, 0x3c, 0xad, 0x5b, 0xe8, 0xb2, - 0x5c, 0xea, 0x1d, 0x2a, 0x6a, 0x8a, 0xb7, 0xd9, 0xbb, 0xcf, 0x5c, 0xd8, 0x09, 0x2f, 0xa1, 0x33, - 0xf2, 0xf2, 0x1a, 0xcc, 0x95, 0x8b, 0xce, 0xd5, 0x4e, 0xcb, 0xf1, 0x8e, 0x6b, 0x3d, 0x40, 0x85, - 0xf4, 0x48, 0xa0, 0xd9, 0x42, 0xa7, 0x21, 0x03, 0x80, 0xb3, 0x90, 0xc4, 0x81, 0x20, 0xe0, 0xd1, - 0xbe, 0xd6, 0x36, 0x5a, 0x9e, 0x58, 0x56, 0x7d, 0xa0, 0xa1, 0xa6, 0x32, 0xd1, 0x99, 0x10, 0xa6, - 0x80, 0x6a, 0x30, 0xb6, 0x76, 0xd1, 0x4a, 0x4e, 0x3c, 0xb0, 0x55, 0xd1, 0x39, 0x79, 0xb3, 0xb5, - 0x01, 0xe0, 0xc9, 0xd5, 0xb3, 0xe5, 0xa5, 0x24, 0xe0, 0x7b, 0x43, 0x0f, 0x80, 0x4c, 0x04, 0x59, - 0x1f, 0xa1, 0x2b, 0x99, 0x3b, 0x8d, 0xa4, 0x30, 0x07, 0x36, 0x91, 0xde, 0x13, 0xc9, 0xf4, 0xde, - 0x46, 0x4b, 0x7a, 0xf5, 0x6a, 0x37, 0x0c, 0xa9, 0x2f, 0xea, 0x2c, 0xd0, 0x6b, 0xbe, 0x8c, 0x90, - 0x8a, 0x73, 0x89, 0x20, 0xb0, 0xea, 0x9c, 0x9c, 0xb9, 0x47, 0x04, 0xb1, 0x3e, 0x46, 0x66, 0x5a, - 0x2c, 0x1c, 0xfe, 0x4d, 0x74, 0x2a, 0x2e, 0x3f, 0x15, 0x56, 0x79, 0x35, 0x3e, 0xd9, 0x5f, 0x4f, - 0x4b, 0x0b, 0xea, 0x5d, 0x45, 0xee, 0x9e, 0xcd, 0xb8, 0xd3, 0x21, 0x62, 0xd7, 0xde, 0xf1, 0xc5, - 0xef, 0xbf, 0xac, 0x23, 0x78, 0x70, 0x3b, 0xbe, 0xa8, 0xc9, 0x40, 0x6b, 0x6b, 0x58, 0x33, 0x0f, - 0x22, 0x1a, 0xd6, 0x59, 0x50, 0xe7, 0x82, 0xb4, 0x35, 0xdc, 0x45, 0x34, 0x2b, 0x58, 0x10, 0x0c, - 0x8e, 0x0b, 0x23, 0xeb, 0xd3, 0x61, 0xc1, 0x24, 0xc3, 0x80, 0xeb, 0x5d, 0x84, 0x44, 0x3c, 0xd1, - 0x78, 0x5e, 0xba, 0x39, 0x19, 0x5e, 0x8f, 0x11, 0xab, 0xe8, 0x95, 0xb1, 0x0c, 0xbc, 0xa5, 0xdf, - 0xb9, 0xab, 0xee, 0x68, 0x8a, 0x0a, 0xff, 0x60, 0x58, 0x8a, 0x93, 0xd1, 0x00, 0xed, 0xa0, 0x59, - 0x75, 0x9b, 0x50, 0xe4, 0x8b, 0xc9, 0x1a, 0x1a, 0xc4, 0xd5, 0xc0, 0xcd, 0xaa, 0x0f, 0xef, 0x35, - 0xbe, 0xab, 0x0a, 0xfd, 0x84, 0x87, 0xf4, 0x78, 0x18, 0x5c, 0x40, 0x73, 0x82, 0x75, 0x68, 0x24, - 0x48, 0x27, 0x90, 0xb5, 0x72, 0xb2, 0x36, 0x9c, 0xb0, 0x56, 0x50, 0x49, 0xaf, 0x5a, 0x67, 0x1d, - 0x5a, 0x21, 0x51, 0x4c, 0xfa, 0x39, 0x09, 0xdd, 0x81, 0x68, 0x7c, 0x65, 0x0c, 0x8f, 0x33, 0xe9, - 0x03, 0xc7, 0xf1, 0xe2, 0xe3, 0xc4, 0x53, 0x70, 0x9c, 0x25, 0x1b, 0xf2, 0x1b, 0x6b, 0xb3, 0x0d, - 0xda, 0x6c, 0x57, 0x39, 0xf3, 0x2b, 0x9b, 0xf1, 0xd5, 0x3c, 0xfc, 0xbb, 0x74, 0xd5, 0x63, 0x62, - 0xb7, 0xdb, 0xb4, 0x5b, 0xbc, 0x03, 0xda, 0x0c, 0xff, 0xd6, 0x23, 0x77, 0xcf, 0x11, 0xbd, 0x80, - 0x46, 0x32, 0xe0, 0x87, 0xff, 0x1e, 0xad, 0x19, 0x35, 0x58, 0xde, 0xba, 0x02, 0xcf, 0x14, 0x6e, - 0xa7, 0xda, 0x6b, 0xb5, 0x69, 0x9b, 0x45, 0x42, 0x4e, 0x6a, 0xe4, 0x2a, 0xb2, 0xf2, 0x9c, 0x80, - 0x39, 0xff, 0x31, 0x94, 0x1f, 0x9e, 0x47, 0x2f, 0xc8, 0x00, 0xbc, 0x87, 0x66, 0x95, 0x06, 0xe2, - 0xe5, 0xe4, 0x2d, 0x4d, 0x4a, 0xac, 0xb9, 0x92, 0xe3, 0xa1, 0xf6, 0xb5, 0x0a, 0x5f, 0xfe, 0xf1, - 0xef, 0x37, 0x27, 0x2e, 0xe2, 0x79, 0x27, 0xa5, 0x23, 0xe0, 0x6f, 0x0d, 0xf4, 0xe2, 0x98, 0x34, - 0xe2, 0x6b, 0x29, 0x8b, 0xa6, 0x0b, 0xaf, 0xb9, 0x36, 0x8d, 0x2b, 0x80, 0x94, 0x25, 0xc8, 0x6b, - 0x78, 0x2d, 0x09, 0xe2, 0x51, 0x01, 0x9d, 0x2b, 0x6a, 0xf6, 0x1a, 0xfb, 0xcc, 0x75, 0x0e, 0x74, - 0x71, 0xf5, 0xf1, 0x23, 0x03, 0xcd, 0xa7, 0x09, 0x17, 0xb6, 0x8f, 0xd9, 0x78, 0x4c, 0x8b, 0x4d, - 0x67, 0x6a, 0x7f, 0xa0, 0x7d, 0x5d, 0xd2, 0x6e, 0x60, 0x27, 0x8f, 0x56, 0x2b, 0xa4, 0x73, 0xa0, - 0x3f, 0xf5, 0xf1, 0x6f, 0x06, 0x5a, 0xcc, 0xd0, 0x5a, 0xbc, 0x31, 0x25, 0xc5, 0x73, 0x66, 0xf8, - 0x6d, 0xc9, 0x7c, 0x17, 0x6f, 0x4f, 0xc3, 0xac, 0x52, 0x3d, 0xe0, 0x1e, 0xcd, 0xfa, 0x77, 0x06, - 0x3a, 0x9f, 0x10, 0x65, 0x7c, 0x35, 0x9d, 0x62, 0x42, 0xf2, 0xcd, 0xd5, 0xe3, 0x1d, 0x01, 0xf6, - 0x8e, 0x84, 0xbd, 0x89, 0x37, 0x1d, 0x41, 0xdb, 0x6d, 0x1e, 0xae, 0x33, 0x3e, 0x89, 0xdd, 0x52, - 0x71, 0xb1, 0xd6, 0x6a, 0xc0, 0xf8, 0xf9, 0xf4, 0xf1, 0xf7, 0xaa, 0x6e, 0x47, 0x15, 0x3a, 0xab, - 0x6e, 0x53, 0xc4, 0x3f, 0x2b, 0xab, 0x69, 0x82, 0x6f, 0xbd, 0x21, 0x41, 0xb7, 0xf0, 0x8d, 0x3c, - 0x50, 0xfd, 0x85, 0xa8, 0x21, 0xc5, 0xdd, 0x39, 0x50, 0xcd, 0xa4, 0x8f, 0x7f, 0x35, 0xd0, 0x85, - 0x14, 0x61, 0xc6, 0x9b, 0xb9, 0x79, 0xca, 0xe8, 0x02, 0x66, 0x46, 0xd5, 0x67, 0xc9, 0xbe, 0x75, - 0x57, 0xa2, 0xdf, 0xc6, 0xb7, 0xf2, 0xd0, 0x07, 0x5f, 0x2d, 0x5d, 0xa8, 0x8d, 0xd1, 0x52, 0xf8, - 0x49, 0x95, 0xc2, 0xb0, 0x07, 0x64, 0x95, 0xc2, 0x44, 0x97, 0x78, 0x66, 0xd8, 0x7b, 0x12, 0x76, - 0x1b, 0xdf, 0xc9, 0x82, 0x4d, 0xec, 0x32, 0x02, 0x19, 0x67, 0x1b, 0x3a, 0x4c, 0x1f, 0xff, 0xa8, - 0x12, 0x3e, 0xde, 0x3a, 0xf0, 0x7a, 0x3a, 0x4d, 0x46, 0x1b, 0xca, 0x82, 0xcf, 0xea, 0x48, 0xd6, - 0x4d, 0x09, 0x7f, 0x1d, 0xdb, 0x79, 0x99, 0x8e, 0x31, 0x1b, 0x71, 0x8b, 0x8a, 0x33, 0xad, 0xb0, - 0x7e, 0x36, 0xd0, 0x42, 0x6a, 0xdf, 0xc0, 0x69, 0x8a, 0x95, 0xd7, 0x86, 0xcc, 0xeb, 0xd3, 0x07, - 0x4c, 0x68, 0x5c, 0x06, 0xb4, 0x7e, 0x7e, 0x2d, 0x1d, 0xdf, 0x90, 0x49, 0xaf, 0x54, 0x1f, 0x1f, - 0x16, 0x8d, 0x27, 0x87, 0x45, 0xe3, 0x9f, 0xc3, 0xa2, 0xf1, 0xf5, 0x51, 0x71, 0xe6, 0xc9, 0x51, - 0x71, 0xe6, 0xcf, 0xa3, 0xe2, 0xcc, 0x87, 0xd7, 0x46, 0xda, 0xec, 0xf8, 0xa2, 0x5f, 0x0c, 0x7e, - 0x56, 0xc4, 0xdd, 0xb6, 0x39, 0x2b, 0x7f, 0x3b, 0xdc, 0xf8, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x84, - 0x03, 0xb4, 0xc6, 0xbf, 0x0d, 0x00, 0x00, + // 1229 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x97, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0xb3, 0x4d, 0x08, 0xcd, 0x34, 0x80, 0x98, 0xa6, 0x4d, 0xb2, 0x0d, 0x4e, 0xb2, 0x95, + 0x92, 0x34, 0x90, 0xdd, 0x26, 0x4d, 0x0a, 0x2a, 0x55, 0x29, 0x76, 0xd5, 0x28, 0x48, 0x48, 0xad, + 0x6b, 0x2e, 0x48, 0xc8, 0x1a, 0xdb, 0xc3, 0x76, 0x88, 0xed, 0xd9, 0xcc, 0x4e, 0x0a, 0x56, 0x14, + 0x09, 0x71, 0xe0, 0xc2, 0x05, 0x89, 0x13, 0x37, 0x0e, 0x20, 0x95, 0x8a, 0x03, 0x12, 0x5c, 0x91, + 0x38, 0xf6, 0x58, 0xc1, 0x05, 0x71, 0x28, 0x28, 0x41, 0xe2, 0xdf, 0x40, 0xf3, 0xcb, 0xde, 0xf5, + 0xfe, 0xb0, 0x95, 0x72, 0x49, 0xbc, 0xf3, 0x7e, 0xcc, 0xc7, 0xef, 0xbd, 0x99, 0xef, 0x1a, 0xcc, + 0x34, 0x51, 0x07, 0x33, 0x8f, 0x32, 0x54, 0x6f, 0x62, 0x6f, 0x6f, 0x1f, 0xb3, 0x8e, 0x1b, 0x30, + 0xca, 0x29, 0x9c, 0x94, 0x16, 0x57, 0x59, 0xec, 0x97, 0x51, 0x8b, 0xb4, 0xa9, 0x27, 0xff, 0x2a, + 0x07, 0x7b, 0xb5, 0x4e, 0xc3, 0x16, 0x0d, 0xbd, 0x1a, 0x0a, 0x75, 0xa4, 0xf7, 0x60, 0xbd, 0x86, + 0x39, 0x5a, 0xf7, 0x02, 0xe4, 0x93, 0x36, 0xe2, 0x84, 0xb6, 0xb5, 0x6f, 0x21, 0xea, 0x6b, 0xbc, + 0xea, 0x94, 0x18, 0xfb, 0xac, 0xb2, 0x57, 0xe5, 0x93, 0xa7, 0x1e, 0xb4, 0x69, 0xca, 0xa7, 0x3e, + 0x55, 0xeb, 0xe2, 0x93, 0x5e, 0x9d, 0xf3, 0x29, 0xf5, 0x9b, 0xd8, 0x43, 0x01, 0xf1, 0x50, 0xbb, + 0x4d, 0xb9, 0xdc, 0xcd, 0xc4, 0xcc, 0xc5, 0xbe, 0x15, 0xf2, 0x7d, 0x86, 0x7d, 0xc4, 0xb1, 0xb6, + 0xce, 0xc7, 0xac, 0x2d, 0x52, 0x67, 0xb4, 0xca, 0x70, 0x40, 0x19, 0x37, 0x34, 0x31, 0x87, 0x00, + 0x31, 0xd4, 0x32, 0x99, 0xed, 0x98, 0x49, 0x45, 0x19, 0xdb, 0x74, 0xcc, 0xc6, 0x49, 0x60, 0x0c, + 0x17, 0x62, 0x86, 0xfd, 0x10, 0xb3, 0x2a, 0x27, 0x81, 0x32, 0x3a, 0x53, 0x00, 0xde, 0x15, 0xc5, + 0xbb, 0x23, 0xb7, 0x29, 0xe3, 0xbd, 0x7d, 0x1c, 0x72, 0x67, 0x07, 0x9c, 0x8d, 0xad, 0x86, 0x01, + 0x6d, 0x87, 0x18, 0x6e, 0x80, 0x71, 0x85, 0x33, 0x63, 0x2d, 0x58, 0x2b, 0x67, 0x36, 0xa6, 0xdc, + 0x68, 0x97, 0x5c, 0xe5, 0x5d, 0x1c, 0x7b, 0xfc, 0x74, 0x7e, 0xa4, 0xac, 0x3d, 0x9d, 0xef, 0x2d, + 0x30, 0x2b, 0x73, 0xbd, 0x2b, 0xbe, 0x69, 0x59, 0x21, 0x77, 0x33, 0x96, 0xc0, 0x64, 0x2b, 0xb2, + 0x3e, 0x63, 0x2d, 0x8c, 0xae, 0x9c, 0xd9, 0x98, 0x8d, 0xe7, 0x8d, 0x44, 0xea, 0xe4, 0xb1, 0x20, + 0xb8, 0x0d, 0x40, 0xaf, 0xe5, 0x33, 0xa7, 0x24, 0xda, 0xb2, 0xab, 0xdb, 0x28, 0x7a, 0xee, 0xaa, + 0xc9, 0xd2, 0x9d, 0x77, 0xef, 0x20, 0x1f, 0x1b, 0x82, 0x72, 0x24, 0xd4, 0xf9, 0xd4, 0x02, 0x17, + 0x24, 0xeb, 0x36, 0xe6, 0x3a, 0x79, 0xad, 0x73, 0x97, 0x34, 0x74, 0x59, 0xe0, 0x2c, 0x38, 0x2d, + 0x33, 0x55, 0x49, 0x43, 0x56, 0x60, 0xa2, 0xfc, 0xbc, 0x7c, 0xde, 0x69, 0xc0, 0xdb, 0x29, 0x0c, + 0x4b, 0x03, 0x19, 0x64, 0xda, 0x18, 0xc2, 0xe7, 0x16, 0x58, 0x48, 0x20, 0xa8, 0x0f, 0x98, 0x19, + 0x0e, 0x1b, 0x9c, 0x66, 0x7a, 0x49, 0x73, 0x74, 0x9f, 0xff, 0x37, 0x90, 0x6f, 0x2d, 0x70, 0x31, + 0x13, 0x24, 0x52, 0x93, 0x3c, 0x96, 0x68, 0xbd, 0x4e, 0xe5, 0xd5, 0x6b, 0xf4, 0xc4, 0x98, 0xd7, + 0xf4, 0x74, 0x6d, 0x63, 0x5e, 0xda, 0x67, 0x0c, 0xb7, 0x79, 0x85, 0x04, 0x86, 0xed, 0x15, 0x00, + 0xd4, 0xfe, 0x0d, 0xc4, 0x91, 0xa6, 0x9b, 0x90, 0x2b, 0xb7, 0x10, 0x47, 0xce, 0x07, 0xc0, 0x4e, + 0x8b, 0xd5, 0xa3, 0xf9, 0x16, 0x18, 0x13, 0x87, 0x48, 0x85, 0x15, 0x5f, 0x15, 0x73, 0xf7, 0xe7, + 0xd3, 0xf9, 0x73, 0x0a, 0x31, 0x6c, 0xec, 0xba, 0x84, 0x7a, 0x2d, 0xc4, 0xef, 0xbb, 0x3b, 0x6d, + 0xfe, 0xdb, 0xcf, 0x6b, 0x40, 0xb3, 0xef, 0xb4, 0x79, 0x59, 0x06, 0x3a, 0x5b, 0xbd, 0x61, 0x7a, + 0x2f, 0xc4, 0xac, 0x42, 0x82, 0x0a, 0xe5, 0xa8, 0x69, 0xe0, 0xce, 0x83, 0x71, 0x4e, 0x82, 0xa0, + 0x5b, 0x36, 0xfd, 0xe4, 0x7c, 0x04, 0xe6, 0xd2, 0xc3, 0x34, 0xd7, 0x3b, 0x00, 0x70, 0xb1, 0x50, + 0x3d, 0x29, 0xdd, 0x84, 0x0c, 0xaf, 0x08, 0xc4, 0x12, 0x58, 0xea, 0xab, 0xc0, 0xdb, 0xe6, 0xb6, + 0x6a, 0xa8, 0x5e, 0x0f, 0x1e, 0x7d, 0xe7, 0x5e, 0x6f, 0x62, 0x93, 0xd1, 0x1a, 0xda, 0x03, 0xe3, + 0x6a, 0x2a, 0xf4, 0xcd, 0x31, 0x1d, 0x3f, 0xe1, 0xdd, 0xb8, 0xb2, 0x76, 0x73, 0x2a, 0xbd, 0xbe, + 0x8a, 0x5e, 0x15, 0xf1, 0x87, 0x94, 0xe1, 0x21, 0xce, 0xe1, 0x1c, 0x98, 0xe0, 0xa4, 0x85, 0x43, + 0x8e, 0x5a, 0x81, 0x9c, 0xb9, 0xd1, 0x72, 0x6f, 0xc1, 0xd9, 0xeb, 0x75, 0x3c, 0x9a, 0x55, 0x43, + 0x6e, 0x81, 0x89, 0xee, 0x65, 0x3d, 0x88, 0xb3, 0xe7, 0x99, 0xdc, 0x72, 0x2c, 0xba, 0xe5, 0x22, + 0x98, 0x37, 0x5b, 0x56, 0x48, 0x0b, 0x17, 0x51, 0x28, 0x8a, 0xf3, 0x31, 0x62, 0x8d, 0xee, 0x6d, + 0xfb, 0x45, 0xe4, 0xcc, 0x27, 0x7d, 0x34, 0x9c, 0x2f, 0x2a, 0x28, 0x96, 0x34, 0xd9, 0x6c, 0xec, + 0xb0, 0x98, 0x63, 0x52, 0xa2, 0xa4, 0x5d, 0xdc, 0x14, 0xd3, 0xf0, 0xe8, 0xaf, 0xf9, 0x65, 0x9f, + 0xf0, 0xfb, 0xfb, 0x35, 0xb7, 0x4e, 0x5b, 0x5a, 0xd4, 0xf4, 0xbf, 0xb5, 0xb0, 0xb1, 0xeb, 0xf1, + 0x4e, 0x80, 0x43, 0x19, 0xf0, 0xf0, 0xdf, 0x1f, 0x57, 0xad, 0xb2, 0x4e, 0xef, 0x5c, 0x04, 0x8b, + 0x12, 0x46, 0x0f, 0x44, 0xa9, 0x53, 0x6f, 0xe2, 0x26, 0x09, 0xb9, 0x5c, 0x34, 0xc8, 0x25, 0xe0, + 0xe4, 0x39, 0x69, 0xe6, 0x01, 0xe7, 0xef, 0x1e, 0x98, 0xd1, 0xfe, 0x9c, 0x11, 0xfc, 0x00, 0x8b, + 0xc5, 0x67, 0x6e, 0x71, 0x59, 0x0f, 0x4e, 0x3c, 0xe9, 0x33, 0x75, 0x78, 0xe3, 0xd7, 0x17, 0xc1, + 0x73, 0x32, 0x29, 0xdc, 0x05, 0xe3, 0x4a, 0xe5, 0xe0, 0x42, 0x3c, 0x2e, 0x29, 0xa2, 0xf6, 0x62, + 0x8e, 0x87, 0xe2, 0x71, 0xe6, 0x3e, 0xfb, 0xfd, 0x9f, 0xaf, 0x4e, 0x9d, 0x87, 0x53, 0x5e, 0x8a, + 0xe6, 0xc3, 0xaf, 0x2d, 0xf0, 0x52, 0x9f, 0x12, 0xc1, 0x4b, 0x29, 0x49, 0xd3, 0xd5, 0xca, 0x5e, + 0x4e, 0x71, 0x4d, 0x13, 0x61, 0x67, 0x43, 0x52, 0xbc, 0x06, 0x57, 0xe3, 0x14, 0x3e, 0xe6, 0xfa, + 0xc5, 0x24, 0xac, 0x75, 0xaa, 0x7b, 0xa4, 0xe1, 0x1d, 0x98, 0x96, 0x1c, 0xc2, 0x87, 0x16, 0x98, + 0x4a, 0x53, 0x06, 0xe8, 0x0e, 0x00, 0xec, 0xd3, 0xb2, 0xe1, 0x29, 0x5f, 0x97, 0x94, 0xeb, 0xd0, + 0xcb, 0xa3, 0x34, 0xd2, 0xe3, 0x1d, 0x98, 0x4f, 0x87, 0xf0, 0x17, 0x0b, 0x4c, 0x67, 0x88, 0x18, + 0x5c, 0x1f, 0x92, 0xf6, 0x24, 0x65, 0xbd, 0x2d, 0x81, 0x6f, 0xc2, 0x1b, 0xc3, 0x00, 0xab, 0xfa, + 0x76, 0xa1, 0xa3, 0xa5, 0xfe, 0xc6, 0x02, 0x2f, 0xc4, 0x24, 0x0a, 0x2e, 0xa7, 0x53, 0x27, 0x04, + 0xd0, 0x5e, 0x19, 0xec, 0xa8, 0x61, 0xaf, 0x4b, 0xd8, 0xab, 0x70, 0xd3, 0xe3, 0xb8, 0xd9, 0xa4, + 0x6c, 0x8d, 0xd0, 0x24, 0x76, 0x5d, 0xc5, 0x09, 0xe5, 0x31, 0x80, 0xe2, 0x64, 0x1f, 0xc2, 0xef, + 0xd4, 0xa4, 0x46, 0xf5, 0x2a, 0x6b, 0x52, 0x53, 0xa4, 0xd0, 0x5e, 0x1d, 0xc6, 0x55, 0x83, 0xbe, + 0x29, 0x41, 0xb7, 0xe0, 0x95, 0x3c, 0x50, 0xf3, 0x92, 0x5b, 0x95, 0x52, 0xe7, 0x1d, 0x28, 0x69, + 0x95, 0xa3, 0x70, 0x36, 0x45, 0xa6, 0xe0, 0x66, 0x6e, 0x9d, 0x32, 0x34, 0xd1, 0xce, 0x18, 0xf5, + 0x2c, 0x11, 0x74, 0x6e, 0x4a, 0xf4, 0x6b, 0xf0, 0x8d, 0x3c, 0xf4, 0xee, 0xad, 0xd3, 0xd0, 0xb3, + 0x11, 0x1d, 0x85, 0x47, 0x6a, 0x14, 0x7a, 0xda, 0x95, 0x35, 0x0a, 0x09, 0xcd, 0xcc, 0x1a, 0x85, + 0xa4, 0x0c, 0x46, 0xe6, 0x36, 0x07, 0x53, 0xf4, 0xbd, 0x5a, 0x93, 0x81, 0x11, 0x40, 0x51, 0x69, + 0x7d, 0x11, 0x1f, 0xc2, 0x1f, 0x54, 0xb1, 0xfb, 0x15, 0x0d, 0xae, 0xa5, 0x93, 0x64, 0xa8, 0x63, + 0x56, 0x95, 0xb3, 0x84, 0xd2, 0xb9, 0x2a, 0xf1, 0x2f, 0x43, 0x37, 0x0f, 0x5f, 0x60, 0x56, 0x85, + 0x72, 0x8a, 0x2a, 0x2b, 0xac, 0x9f, 0x2c, 0x70, 0x2e, 0x55, 0xce, 0xa0, 0x97, 0x42, 0x90, 0xa7, + 0x8e, 0xf6, 0xe5, 0xe1, 0x03, 0x12, 0x97, 0x5b, 0x06, 0xb4, 0x39, 0x7a, 0x75, 0x13, 0x5f, 0x95, + 0x45, 0x17, 0x27, 0x6f, 0x32, 0x2a, 0x75, 0x70, 0x29, 0x65, 0xef, 0x14, 0x81, 0x4d, 0xbd, 0xc6, + 0xd2, 0x34, 0xd3, 0xb9, 0x25, 0xd1, 0x6e, 0xc0, 0xeb, 0x59, 0x68, 0x4c, 0x47, 0xc9, 0x99, 0xc8, + 0x18, 0x86, 0x62, 0xe9, 0xf1, 0x51, 0xc1, 0x7a, 0x72, 0x54, 0xb0, 0xfe, 0x3e, 0x2a, 0x58, 0x5f, + 0x1e, 0x17, 0x46, 0x9e, 0x1c, 0x17, 0x46, 0xfe, 0x38, 0x2e, 0x8c, 0xbc, 0x7f, 0x29, 0xf2, 0x96, + 0xd2, 0xbf, 0xc3, 0x27, 0xdd, 0x9f, 0xb3, 0xe2, 0x65, 0xa5, 0x36, 0x2e, 0x7f, 0xb3, 0x5e, 0xf9, + 0x2f, 0x00, 0x00, 0xff, 0xff, 0x19, 0xad, 0x75, 0x45, 0x37, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -922,9 +1071,9 @@ type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of GetReportsbyQid items. - GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) - GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryGetReportsbyReporterResponse, error) - GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) + GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) + GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) + GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) // Queries a list of GetCurrentTip items. GetCurrentTip(ctx context.Context, in *QueryGetCurrentTipRequest, opts ...grpc.CallOption) (*QueryGetCurrentTipResponse, error) // Queries a list of GetUserTipTotal items. @@ -932,11 +1081,12 @@ type QueryClient interface { // Queries a list of GetAggregatedReport items. GetAggregatedReport(ctx context.Context, in *QueryGetCurrentAggregatedReportRequest, opts ...grpc.CallOption) (*QueryGetAggregatedReportResponse, error) // Queries a list of GetAggregatedReport items. - GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetAggregatedReportResponse, error) + GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) // Queries a list of GetTimeBasedRewards items. GetTimeBasedRewards(ctx context.Context, in *QueryGetTimeBasedRewardsRequest, opts ...grpc.CallOption) (*QueryGetTimeBasedRewardsResponse, error) // Queries a list of CurrentCyclelistQuery items. CurrentCyclelistQuery(ctx context.Context, in *QueryCurrentCyclelistQueryRequest, opts ...grpc.CallOption) (*QueryCurrentCyclelistQueryResponse, error) + RetrieveData(ctx context.Context, in *QueryRetrieveDataRequest, opts ...grpc.CallOption) (*QueryRetrieveDataResponse, error) } type queryClient struct { @@ -956,8 +1106,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } -func (c *queryClient) GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) { - out := new(QueryGetReportsbyQidResponse) +func (c *queryClient) GetReportsbyQid(ctx context.Context, in *QueryGetReportsbyQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) { + out := new(QueryMicroReportsResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetReportsbyQid", in, out, opts...) if err != nil { return nil, err @@ -965,8 +1115,8 @@ func (c *queryClient) GetReportsbyQid(ctx context.Context, in *QueryGetReportsby return out, nil } -func (c *queryClient) GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryGetReportsbyReporterResponse, error) { - out := new(QueryGetReportsbyReporterResponse) +func (c *queryClient) GetReportsbyReporter(ctx context.Context, in *QueryGetReportsbyReporterRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) { + out := new(QueryMicroReportsResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetReportsbyReporter", in, out, opts...) if err != nil { return nil, err @@ -974,8 +1124,8 @@ func (c *queryClient) GetReportsbyReporter(ctx context.Context, in *QueryGetRepo return out, nil } -func (c *queryClient) GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryGetReportsbyQidResponse, error) { - out := new(QueryGetReportsbyQidResponse) +func (c *queryClient) GetReportsbyReporterQid(ctx context.Context, in *QueryGetReportsbyReporterQidRequest, opts ...grpc.CallOption) (*QueryMicroReportsResponse, error) { + out := new(QueryMicroReportsResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetReportsbyReporterQid", in, out, opts...) if err != nil { return nil, err @@ -1010,8 +1160,8 @@ func (c *queryClient) GetAggregatedReport(ctx context.Context, in *QueryGetCurre return out, nil } -func (c *queryClient) GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetAggregatedReportResponse, error) { - out := new(QueryGetAggregatedReportResponse) +func (c *queryClient) GetDataBefore(ctx context.Context, in *QueryGetDataBeforeRequest, opts ...grpc.CallOption) (*QueryGetDataBeforeResponse, error) { + out := new(QueryGetDataBeforeResponse) err := c.cc.Invoke(ctx, "/layer.oracle.Query/GetDataBefore", in, out, opts...) if err != nil { return nil, err @@ -1037,14 +1187,23 @@ func (c *queryClient) CurrentCyclelistQuery(ctx context.Context, in *QueryCurren return out, nil } +func (c *queryClient) RetrieveData(ctx context.Context, in *QueryRetrieveDataRequest, opts ...grpc.CallOption) (*QueryRetrieveDataResponse, error) { + out := new(QueryRetrieveDataResponse) + err := c.cc.Invoke(ctx, "/layer.oracle.Query/RetrieveData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of GetReportsbyQid items. - GetReportsbyQid(context.Context, *QueryGetReportsbyQidRequest) (*QueryGetReportsbyQidResponse, error) - GetReportsbyReporter(context.Context, *QueryGetReportsbyReporterRequest) (*QueryGetReportsbyReporterResponse, error) - GetReportsbyReporterQid(context.Context, *QueryGetReportsbyReporterQidRequest) (*QueryGetReportsbyQidResponse, error) + GetReportsbyQid(context.Context, *QueryGetReportsbyQidRequest) (*QueryMicroReportsResponse, error) + GetReportsbyReporter(context.Context, *QueryGetReportsbyReporterRequest) (*QueryMicroReportsResponse, error) + GetReportsbyReporterQid(context.Context, *QueryGetReportsbyReporterQidRequest) (*QueryMicroReportsResponse, error) // Queries a list of GetCurrentTip items. GetCurrentTip(context.Context, *QueryGetCurrentTipRequest) (*QueryGetCurrentTipResponse, error) // Queries a list of GetUserTipTotal items. @@ -1052,11 +1211,12 @@ type QueryServer interface { // Queries a list of GetAggregatedReport items. GetAggregatedReport(context.Context, *QueryGetCurrentAggregatedReportRequest) (*QueryGetAggregatedReportResponse, error) // Queries a list of GetAggregatedReport items. - GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetAggregatedReportResponse, error) + GetDataBefore(context.Context, *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) // Queries a list of GetTimeBasedRewards items. GetTimeBasedRewards(context.Context, *QueryGetTimeBasedRewardsRequest) (*QueryGetTimeBasedRewardsResponse, error) // Queries a list of CurrentCyclelistQuery items. CurrentCyclelistQuery(context.Context, *QueryCurrentCyclelistQueryRequest) (*QueryCurrentCyclelistQueryResponse, error) + RetrieveData(context.Context, *QueryRetrieveDataRequest) (*QueryRetrieveDataResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1066,13 +1226,13 @@ type UnimplementedQueryServer struct { func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } -func (*UnimplementedQueryServer) GetReportsbyQid(ctx context.Context, req *QueryGetReportsbyQidRequest) (*QueryGetReportsbyQidResponse, error) { +func (*UnimplementedQueryServer) GetReportsbyQid(ctx context.Context, req *QueryGetReportsbyQidRequest) (*QueryMicroReportsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReportsbyQid not implemented") } -func (*UnimplementedQueryServer) GetReportsbyReporter(ctx context.Context, req *QueryGetReportsbyReporterRequest) (*QueryGetReportsbyReporterResponse, error) { +func (*UnimplementedQueryServer) GetReportsbyReporter(ctx context.Context, req *QueryGetReportsbyReporterRequest) (*QueryMicroReportsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReportsbyReporter not implemented") } -func (*UnimplementedQueryServer) GetReportsbyReporterQid(ctx context.Context, req *QueryGetReportsbyReporterQidRequest) (*QueryGetReportsbyQidResponse, error) { +func (*UnimplementedQueryServer) GetReportsbyReporterQid(ctx context.Context, req *QueryGetReportsbyReporterQidRequest) (*QueryMicroReportsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReportsbyReporterQid not implemented") } func (*UnimplementedQueryServer) GetCurrentTip(ctx context.Context, req *QueryGetCurrentTipRequest) (*QueryGetCurrentTipResponse, error) { @@ -1084,7 +1244,7 @@ func (*UnimplementedQueryServer) GetUserTipTotal(ctx context.Context, req *Query func (*UnimplementedQueryServer) GetAggregatedReport(ctx context.Context, req *QueryGetCurrentAggregatedReportRequest) (*QueryGetAggregatedReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAggregatedReport not implemented") } -func (*UnimplementedQueryServer) GetDataBefore(ctx context.Context, req *QueryGetDataBeforeRequest) (*QueryGetAggregatedReportResponse, error) { +func (*UnimplementedQueryServer) GetDataBefore(ctx context.Context, req *QueryGetDataBeforeRequest) (*QueryGetDataBeforeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDataBefore not implemented") } func (*UnimplementedQueryServer) GetTimeBasedRewards(ctx context.Context, req *QueryGetTimeBasedRewardsRequest) (*QueryGetTimeBasedRewardsResponse, error) { @@ -1093,6 +1253,9 @@ func (*UnimplementedQueryServer) GetTimeBasedRewards(ctx context.Context, req *Q func (*UnimplementedQueryServer) CurrentCyclelistQuery(ctx context.Context, req *QueryCurrentCyclelistQueryRequest) (*QueryCurrentCyclelistQueryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CurrentCyclelistQuery not implemented") } +func (*UnimplementedQueryServer) RetrieveData(ctx context.Context, req *QueryRetrieveDataRequest) (*QueryRetrieveDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RetrieveData not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1278,6 +1441,24 @@ func _Query_CurrentCyclelistQuery_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Query_RetrieveData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRetrieveDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RetrieveData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/layer.oracle.Query/RetrieveData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RetrieveData(ctx, req.(*QueryRetrieveDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "layer.oracle.Query", HandlerType: (*QueryServer)(nil), @@ -1322,6 +1503,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "CurrentCyclelistQuery", Handler: _Query_CurrentCyclelistQuery_Handler, }, + { + MethodName: "RetrieveData", + Handler: _Query_RetrieveData_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "layer/oracle/query.proto", @@ -1383,7 +1568,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetReportsbyQidRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryMicroReportsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1393,27 +1578,46 @@ func (m *QueryGetReportsbyQidRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetReportsbyQidRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryMicroReportsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetReportsbyQidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryMicroReportsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.QueryId) > 0 { - i -= len(m.QueryId) - copy(dAtA[i:], m.QueryId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.QueryId))) + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(m.MicroReports) > 0 { + for iNdEx := len(m.MicroReports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MicroReports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *QueryGetReportsbyQidResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGetReportsbyQidRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1423,26 +1627,35 @@ func (m *QueryGetReportsbyQidResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetReportsbyQidResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGetReportsbyQidRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetReportsbyQidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGetReportsbyQidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Reports.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i-- + dAtA[i] = 0x12 + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -1466,6 +1679,18 @@ func (m *QueryGetReportsbyReporterRequest) MarshalToSizedBuffer(dAtA []byte) (in _ = i var l int _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } if len(m.Reporter) > 0 { i -= len(m.Reporter) copy(dAtA[i:], m.Reporter) @@ -1476,43 +1701,6 @@ func (m *QueryGetReportsbyReporterRequest) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *QueryGetReportsbyReporterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetReportsbyReporterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetReportsbyReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MicroReports) > 0 { - for iNdEx := len(m.MicroReports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MicroReports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - func (m *QueryGetReportsbyReporterQidRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1533,6 +1721,18 @@ func (m *QueryGetReportsbyReporterQidRequest) MarshalToSizedBuffer(dAtA []byte) _ = i var l int _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } if len(m.QueryId) > 0 { i -= len(m.QueryId) copy(dAtA[i:], m.QueryId) @@ -1776,6 +1976,46 @@ func (m *QueryGetDataBeforeRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } +func (m *QueryGetDataBeforeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetDataBeforeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetDataBeforeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if m.Aggregate != nil { + { + size, err := m.Aggregate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *QueryGetTimeBasedRewardsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1885,6 +2125,76 @@ func (m *QueryCurrentCyclelistQueryResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } +func (m *QueryRetrieveDataRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRetrieveDataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRetrieveDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRetrieveDataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRetrieveDataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRetrieveDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Aggregate != nil { + { + size, err := m.Aggregate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -1916,27 +2226,39 @@ func (m *QueryParamsResponse) Size() (n int) { return n } -func (m *QueryGetReportsbyQidRequest) Size() (n int) { +func (m *QueryMicroReportsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.QueryId) - if l > 0 { + if len(m.MicroReports) > 0 { + for _, e := range m.MicroReports { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryGetReportsbyQidResponse) Size() (n int) { +func (m *QueryGetReportsbyQidRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.Reports.Size() - n += 1 + l + sovQuery(uint64(l)) + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -1950,20 +2272,9 @@ func (m *QueryGetReportsbyReporterRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - return n -} - -func (m *QueryGetReportsbyReporterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MicroReports) > 0 { - for _, e := range m.MicroReports { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) } return n } @@ -1982,6 +2293,10 @@ func (m *QueryGetReportsbyReporterQidRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -2075,6 +2390,22 @@ func (m *QueryGetDataBeforeRequest) Size() (n int) { return n } +func (m *QueryGetDataBeforeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Aggregate != nil { + l = m.Aggregate.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovQuery(uint64(m.Timestamp)) + } + return n +} + func (m *QueryGetTimeBasedRewardsRequest) Size() (n int) { if m == nil { return 0 @@ -2117,6 +2448,35 @@ func (m *QueryCurrentCyclelistQueryResponse) Size() (n int) { return n } +func (m *QueryRetrieveDataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovQuery(uint64(m.Timestamp)) + } + return n +} + +func (m *QueryRetrieveDataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Aggregate != nil { + l = m.Aggregate.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -2256,7 +2616,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetReportsbyQidRequest) Unmarshal(dAtA []byte) error { +func (m *QueryMicroReportsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2279,17 +2639,17 @@ func (m *QueryGetReportsbyQidRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetReportsbyQidRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMicroReportsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetReportsbyQidRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMicroReportsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MicroReports", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2299,77 +2659,29 @@ func (m *QueryGetReportsbyQidRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.QueryId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { + m.MicroReports = append(m.MicroReports, MicroReport{}) + if err := m.MicroReports[len(m.MicroReports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetReportsbyQidResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetReportsbyQidResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetReportsbyQidResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reports", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2396,7 +2708,10 @@ func (m *QueryGetReportsbyQidResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Reports.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2421,7 +2736,7 @@ func (m *QueryGetReportsbyQidResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetReportsbyReporterRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGetReportsbyQidRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2444,15 +2759,15 @@ func (m *QueryGetReportsbyReporterRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetReportsbyReporterRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetReportsbyQidRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetReportsbyReporterRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetReportsbyQidRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reporter", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2480,7 +2795,43 @@ func (m *QueryGetReportsbyReporterRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Reporter = string(dAtA[iNdEx:postIndex]) + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2503,7 +2854,7 @@ func (m *QueryGetReportsbyReporterRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetReportsbyReporterResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetReportsbyReporterRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2526,15 +2877,47 @@ func (m *QueryGetReportsbyReporterResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetReportsbyReporterResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetReportsbyReporterRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetReportsbyReporterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetReportsbyReporterRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MicroReports", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reporter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reporter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2561,8 +2944,10 @@ func (m *QueryGetReportsbyReporterResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MicroReports = append(m.MicroReports, MicroReport{}) - if err := m.MicroReports[len(m.MicroReports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2680,6 +3065,42 @@ func (m *QueryGetReportsbyReporterQidRequest) Unmarshal(dAtA []byte) error { } m.QueryId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3302,6 +3723,111 @@ func (m *QueryGetDataBeforeRequest) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryGetDataBeforeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGetDataBeforeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetDataBeforeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregate == nil { + m.Aggregate = &Aggregate{} + } + if err := m.Aggregate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *QueryGetTimeBasedRewardsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3567,6 +4093,193 @@ func (m *QueryCurrentCyclelistQueryResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryRetrieveDataRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryRetrieveDataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRetrieveDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRetrieveDataResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryRetrieveDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRetrieveDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregate == nil { + m.Aggregate = &Aggregate{} + } + if err := m.Aggregate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index b3bb0a481..e0973f75a 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -51,6 +51,10 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } +var ( + filter_Query_GetReportsbyQid_0 = &utilities.DoubleArray{Encoding: map[string]int{"query_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_GetReportsbyQid_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetReportsbyQidRequest var metadata runtime.ServerMetadata @@ -73,6 +77,13 @@ func request_Query_GetReportsbyQid_0(ctx context.Context, marshaler runtime.Mars return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetReportsbyQid_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.GetReportsbyQid(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -100,11 +111,22 @@ func local_request_Query_GetReportsbyQid_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetReportsbyQid_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.GetReportsbyQid(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_GetReportsbyReporter_0 = &utilities.DoubleArray{Encoding: map[string]int{"reporter": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_GetReportsbyReporter_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetReportsbyReporterRequest var metadata runtime.ServerMetadata @@ -127,6 +149,13 @@ func request_Query_GetReportsbyReporter_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "reporter", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetReportsbyReporter_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.GetReportsbyReporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -154,11 +183,22 @@ func local_request_Query_GetReportsbyReporter_0(ctx context.Context, marshaler r return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "reporter", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetReportsbyReporter_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.GetReportsbyReporter(ctx, &protoReq) return msg, metadata, err } +var ( + filter_Query_GetReportsbyReporterQid_0 = &utilities.DoubleArray{Encoding: map[string]int{"reporter": 0, "query_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + func request_Query_GetReportsbyReporterQid_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetReportsbyReporterQidRequest var metadata runtime.ServerMetadata @@ -192,6 +232,13 @@ func request_Query_GetReportsbyReporterQid_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetReportsbyReporterQid_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.GetReportsbyReporterQid(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -230,6 +277,13 @@ func local_request_Query_GetReportsbyReporterQid_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetReportsbyReporterQid_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.GetReportsbyReporterQid(ctx, &protoReq) return msg, metadata, err @@ -509,6 +563,82 @@ func local_request_Query_CurrentCyclelistQuery_0(ctx context.Context, marshaler } +func request_Query_RetrieveData_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRetrieveDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["query_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query_id") + } + + protoReq.QueryId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) + } + + val, ok = pathParams["timestamp"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "timestamp") + } + + protoReq.Timestamp, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "timestamp", err) + } + + msg, err := client.RetrieveData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_RetrieveData_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRetrieveDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["query_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query_id") + } + + protoReq.QueryId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query_id", err) + } + + val, ok = pathParams["timestamp"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "timestamp") + } + + protoReq.Timestamp, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "timestamp", err) + } + + msg, err := server.RetrieveData(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -745,6 +875,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_RetrieveData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_RetrieveData_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RetrieveData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -986,6 +1139,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_RetrieveData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_RetrieveData_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RetrieveData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1004,11 +1177,13 @@ var ( pattern_Query_GetAggregatedReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tellor-io", "layer", "oracle", "get_aggregated_report", "query_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDataBefore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tellor-io", "layer", "oracle", "GetDataBefore", "query_id", "timestamp"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDataBefore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tellor-io", "layer", "oracle", "get_data_before", "query_id", "timestamp"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_GetTimeBasedRewards_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tellor-io", "layer", "oracle", "get_time_based_rewards"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_CurrentCyclelistQuery_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tellor-io", "layer", "oracle", "current_cyclelist_query"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_RetrieveData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tellor-io", "layer", "oracle", "retrieve_data", "query_id", "timestamp"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1031,4 +1206,6 @@ var ( forward_Query_GetTimeBasedRewards_0 = runtime.ForwardResponseMessage forward_Query_CurrentCyclelistQuery_0 = runtime.ForwardResponseMessage + + forward_Query_RetrieveData_0 = runtime.ForwardResponseMessage )