// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. package machine import ( _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/base/query/v1beta1" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" reflect "reflect" sync "sync" ) var ( md_QueryParamsRequest protoreflect.MessageDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryParamsRequest = File_planetmintgo_machine_query_proto.Messages().ByName("QueryParamsRequest") } var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) type fastReflection_QueryParamsRequest QueryParamsRequest func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryParamsRequest)(x) } func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[0] 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_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} type fastReflection_QueryParamsRequest_messageType struct{} func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryParamsRequest)(nil) } func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { return new(fastReflection_QueryParamsRequest) } func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryParamsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { return md_QueryParamsRequest } // 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_QueryParamsRequest) Type() protoreflect.MessageType { return _fastReflection_QueryParamsRequest_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { return new(fastReflection_QueryParamsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // 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_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryParamsRequest) 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.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().(*QueryParamsRequest) 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 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().(*QueryParamsRequest) 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: QueryParamsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { 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_QueryParamsResponse protoreflect.MessageDescriptor fd_QueryParamsResponse_params protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryParamsResponse = File_planetmintgo_machine_query_proto.Messages().ByName("QueryParamsResponse") fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") } var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) type fastReflection_QueryParamsResponse QueryParamsResponse func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryParamsResponse)(x) } func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[1] 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_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} type fastReflection_QueryParamsResponse_messageType struct{} func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryParamsResponse)(nil) } func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { return new(fastReflection_QueryParamsResponse) } func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryParamsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { return md_QueryParamsResponse } // 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_QueryParamsResponse) Type() protoreflect.MessageType { return _fastReflection_QueryParamsResponse_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { return new(fastReflection_QueryParamsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Params != nil { value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) if !f(fd_QueryParamsResponse_params, 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryParamsResponse.params": return x.Params != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryParamsResponse.params": x.Params = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryParamsResponse.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryParamsResponse.params": x.Params = value.Message().Interface().(*Params) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryParamsResponse.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryParamsResponse.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryParamsResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryParamsResponse) 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.Params != nil { l = options.Size(x.Params) 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().(*QueryParamsResponse) 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.Params != nil { encoded, err := options.Marshal(x.Params) 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().(*QueryParamsResponse) 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: QueryParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: 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 Params", 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.Params == nil { x.Params = &Params{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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.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_QueryGetMachineByPublicKeyRequest protoreflect.MessageDescriptor fd_QueryGetMachineByPublicKeyRequest_publicKey protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetMachineByPublicKeyRequest = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetMachineByPublicKeyRequest") fd_QueryGetMachineByPublicKeyRequest_publicKey = md_QueryGetMachineByPublicKeyRequest.Fields().ByName("publicKey") } var _ protoreflect.Message = (*fastReflection_QueryGetMachineByPublicKeyRequest)(nil) type fastReflection_QueryGetMachineByPublicKeyRequest QueryGetMachineByPublicKeyRequest func (x *QueryGetMachineByPublicKeyRequest) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetMachineByPublicKeyRequest)(x) } func (x *QueryGetMachineByPublicKeyRequest) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[2] 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_QueryGetMachineByPublicKeyRequest_messageType fastReflection_QueryGetMachineByPublicKeyRequest_messageType var _ protoreflect.MessageType = fastReflection_QueryGetMachineByPublicKeyRequest_messageType{} type fastReflection_QueryGetMachineByPublicKeyRequest_messageType struct{} func (x fastReflection_QueryGetMachineByPublicKeyRequest_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetMachineByPublicKeyRequest)(nil) } func (x fastReflection_QueryGetMachineByPublicKeyRequest_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByPublicKeyRequest) } func (x fastReflection_QueryGetMachineByPublicKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByPublicKeyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetMachineByPublicKeyRequest) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByPublicKeyRequest } // 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_QueryGetMachineByPublicKeyRequest) Type() protoreflect.MessageType { return _fastReflection_QueryGetMachineByPublicKeyRequest_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetMachineByPublicKeyRequest) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByPublicKeyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetMachineByPublicKeyRequest) Interface() protoreflect.ProtoMessage { return (*QueryGetMachineByPublicKeyRequest)(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_QueryGetMachineByPublicKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) if !f(fd_QueryGetMachineByPublicKeyRequest_publicKey, 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_QueryGetMachineByPublicKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyRequest.publicKey": return x.PublicKey != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyRequest 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_QueryGetMachineByPublicKeyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyRequest.publicKey": x.PublicKey = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyRequest 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_QueryGetMachineByPublicKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyRequest.publicKey": value := x.PublicKey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyRequest 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_QueryGetMachineByPublicKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyRequest.publicKey": x.PublicKey = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyRequest 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_QueryGetMachineByPublicKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyRequest.publicKey": panic(fmt.Errorf("field publicKey of message planetmintgo.machine.QueryGetMachineByPublicKeyRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyRequest 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_QueryGetMachineByPublicKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyRequest.publicKey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyRequest 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_QueryGetMachineByPublicKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetMachineByPublicKeyRequest", 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_QueryGetMachineByPublicKeyRequest) 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_QueryGetMachineByPublicKeyRequest) 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_QueryGetMachineByPublicKeyRequest) 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_QueryGetMachineByPublicKeyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetMachineByPublicKeyRequest) 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.PublicKey) 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().(*QueryGetMachineByPublicKeyRequest) 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.PublicKey) > 0 { i -= len(x.PublicKey) copy(dAtA[i:], x.PublicKey) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey))) 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().(*QueryGetMachineByPublicKeyRequest) 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: QueryGetMachineByPublicKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMachineByPublicKeyRequest: 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 PublicKey", 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.PublicKey = 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_QueryGetMachineByPublicKeyResponse protoreflect.MessageDescriptor fd_QueryGetMachineByPublicKeyResponse_machine protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetMachineByPublicKeyResponse = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetMachineByPublicKeyResponse") fd_QueryGetMachineByPublicKeyResponse_machine = md_QueryGetMachineByPublicKeyResponse.Fields().ByName("machine") } var _ protoreflect.Message = (*fastReflection_QueryGetMachineByPublicKeyResponse)(nil) type fastReflection_QueryGetMachineByPublicKeyResponse QueryGetMachineByPublicKeyResponse func (x *QueryGetMachineByPublicKeyResponse) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetMachineByPublicKeyResponse)(x) } func (x *QueryGetMachineByPublicKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[3] 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_QueryGetMachineByPublicKeyResponse_messageType fastReflection_QueryGetMachineByPublicKeyResponse_messageType var _ protoreflect.MessageType = fastReflection_QueryGetMachineByPublicKeyResponse_messageType{} type fastReflection_QueryGetMachineByPublicKeyResponse_messageType struct{} func (x fastReflection_QueryGetMachineByPublicKeyResponse_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetMachineByPublicKeyResponse)(nil) } func (x fastReflection_QueryGetMachineByPublicKeyResponse_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByPublicKeyResponse) } func (x fastReflection_QueryGetMachineByPublicKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByPublicKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetMachineByPublicKeyResponse) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByPublicKeyResponse } // 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_QueryGetMachineByPublicKeyResponse) Type() protoreflect.MessageType { return _fastReflection_QueryGetMachineByPublicKeyResponse_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetMachineByPublicKeyResponse) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByPublicKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetMachineByPublicKeyResponse) Interface() protoreflect.ProtoMessage { return (*QueryGetMachineByPublicKeyResponse)(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_QueryGetMachineByPublicKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Machine != nil { value := protoreflect.ValueOfMessage(x.Machine.ProtoReflect()) if !f(fd_QueryGetMachineByPublicKeyResponse_machine, 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_QueryGetMachineByPublicKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine": return x.Machine != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyResponse 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_QueryGetMachineByPublicKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine": x.Machine = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyResponse 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_QueryGetMachineByPublicKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine": value := x.Machine return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyResponse 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_QueryGetMachineByPublicKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine": x.Machine = value.Message().Interface().(*Machine) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyResponse 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_QueryGetMachineByPublicKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine": if x.Machine == nil { x.Machine = new(Machine) } return protoreflect.ValueOfMessage(x.Machine.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyResponse 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_QueryGetMachineByPublicKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine": m := new(Machine) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByPublicKeyResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByPublicKeyResponse 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_QueryGetMachineByPublicKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetMachineByPublicKeyResponse", 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_QueryGetMachineByPublicKeyResponse) 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_QueryGetMachineByPublicKeyResponse) 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_QueryGetMachineByPublicKeyResponse) 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_QueryGetMachineByPublicKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetMachineByPublicKeyResponse) 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.Machine != nil { l = options.Size(x.Machine) 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().(*QueryGetMachineByPublicKeyResponse) 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.Machine != nil { encoded, err := options.Marshal(x.Machine) 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().(*QueryGetMachineByPublicKeyResponse) 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: QueryGetMachineByPublicKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMachineByPublicKeyResponse: 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 Machine", 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.Machine == nil { x.Machine = &Machine{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Machine); 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.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_QueryGetTrustAnchorStatusRequest protoreflect.MessageDescriptor fd_QueryGetTrustAnchorStatusRequest_machineId protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetTrustAnchorStatusRequest = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetTrustAnchorStatusRequest") fd_QueryGetTrustAnchorStatusRequest_machineId = md_QueryGetTrustAnchorStatusRequest.Fields().ByName("machineId") } var _ protoreflect.Message = (*fastReflection_QueryGetTrustAnchorStatusRequest)(nil) type fastReflection_QueryGetTrustAnchorStatusRequest QueryGetTrustAnchorStatusRequest func (x *QueryGetTrustAnchorStatusRequest) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetTrustAnchorStatusRequest)(x) } func (x *QueryGetTrustAnchorStatusRequest) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[4] 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_QueryGetTrustAnchorStatusRequest_messageType fastReflection_QueryGetTrustAnchorStatusRequest_messageType var _ protoreflect.MessageType = fastReflection_QueryGetTrustAnchorStatusRequest_messageType{} type fastReflection_QueryGetTrustAnchorStatusRequest_messageType struct{} func (x fastReflection_QueryGetTrustAnchorStatusRequest_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetTrustAnchorStatusRequest)(nil) } func (x fastReflection_QueryGetTrustAnchorStatusRequest_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetTrustAnchorStatusRequest) } func (x fastReflection_QueryGetTrustAnchorStatusRequest_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetTrustAnchorStatusRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetTrustAnchorStatusRequest) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetTrustAnchorStatusRequest } // 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_QueryGetTrustAnchorStatusRequest) Type() protoreflect.MessageType { return _fastReflection_QueryGetTrustAnchorStatusRequest_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetTrustAnchorStatusRequest) New() protoreflect.Message { return new(fastReflection_QueryGetTrustAnchorStatusRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetTrustAnchorStatusRequest) Interface() protoreflect.ProtoMessage { return (*QueryGetTrustAnchorStatusRequest)(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_QueryGetTrustAnchorStatusRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.MachineId != "" { value := protoreflect.ValueOfString(x.MachineId) if !f(fd_QueryGetTrustAnchorStatusRequest_machineId, 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_QueryGetTrustAnchorStatusRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusRequest.machineId": return x.MachineId != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusRequest 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_QueryGetTrustAnchorStatusRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusRequest.machineId": x.MachineId = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusRequest 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_QueryGetTrustAnchorStatusRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusRequest.machineId": value := x.MachineId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusRequest 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_QueryGetTrustAnchorStatusRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusRequest.machineId": x.MachineId = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusRequest 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_QueryGetTrustAnchorStatusRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusRequest.machineId": panic(fmt.Errorf("field machineId of message planetmintgo.machine.QueryGetTrustAnchorStatusRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusRequest 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_QueryGetTrustAnchorStatusRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusRequest.machineId": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusRequest 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_QueryGetTrustAnchorStatusRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetTrustAnchorStatusRequest", 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_QueryGetTrustAnchorStatusRequest) 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_QueryGetTrustAnchorStatusRequest) 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_QueryGetTrustAnchorStatusRequest) 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_QueryGetTrustAnchorStatusRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetTrustAnchorStatusRequest) 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.MachineId) 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().(*QueryGetTrustAnchorStatusRequest) 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.MachineId) > 0 { i -= len(x.MachineId) copy(dAtA[i:], x.MachineId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MachineId))) 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().(*QueryGetTrustAnchorStatusRequest) 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: QueryGetTrustAnchorStatusRequest: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustAnchorStatusRequest: 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 MachineId", 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.MachineId = 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_QueryGetTrustAnchorStatusResponse protoreflect.MessageDescriptor fd_QueryGetTrustAnchorStatusResponse_machineId protoreflect.FieldDescriptor fd_QueryGetTrustAnchorStatusResponse_isActivated protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetTrustAnchorStatusResponse = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetTrustAnchorStatusResponse") fd_QueryGetTrustAnchorStatusResponse_machineId = md_QueryGetTrustAnchorStatusResponse.Fields().ByName("machineId") fd_QueryGetTrustAnchorStatusResponse_isActivated = md_QueryGetTrustAnchorStatusResponse.Fields().ByName("isActivated") } var _ protoreflect.Message = (*fastReflection_QueryGetTrustAnchorStatusResponse)(nil) type fastReflection_QueryGetTrustAnchorStatusResponse QueryGetTrustAnchorStatusResponse func (x *QueryGetTrustAnchorStatusResponse) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetTrustAnchorStatusResponse)(x) } func (x *QueryGetTrustAnchorStatusResponse) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[5] 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_QueryGetTrustAnchorStatusResponse_messageType fastReflection_QueryGetTrustAnchorStatusResponse_messageType var _ protoreflect.MessageType = fastReflection_QueryGetTrustAnchorStatusResponse_messageType{} type fastReflection_QueryGetTrustAnchorStatusResponse_messageType struct{} func (x fastReflection_QueryGetTrustAnchorStatusResponse_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetTrustAnchorStatusResponse)(nil) } func (x fastReflection_QueryGetTrustAnchorStatusResponse_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetTrustAnchorStatusResponse) } func (x fastReflection_QueryGetTrustAnchorStatusResponse_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetTrustAnchorStatusResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetTrustAnchorStatusResponse) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetTrustAnchorStatusResponse } // 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_QueryGetTrustAnchorStatusResponse) Type() protoreflect.MessageType { return _fastReflection_QueryGetTrustAnchorStatusResponse_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetTrustAnchorStatusResponse) New() protoreflect.Message { return new(fastReflection_QueryGetTrustAnchorStatusResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetTrustAnchorStatusResponse) Interface() protoreflect.ProtoMessage { return (*QueryGetTrustAnchorStatusResponse)(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_QueryGetTrustAnchorStatusResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.MachineId != "" { value := protoreflect.ValueOfString(x.MachineId) if !f(fd_QueryGetTrustAnchorStatusResponse_machineId, value) { return } } if x.IsActivated != false { value := protoreflect.ValueOfBool(x.IsActivated) if !f(fd_QueryGetTrustAnchorStatusResponse_isActivated, 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_QueryGetTrustAnchorStatusResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.machineId": return x.MachineId != "" case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.isActivated": return x.IsActivated != false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusResponse 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_QueryGetTrustAnchorStatusResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.machineId": x.MachineId = "" case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.isActivated": x.IsActivated = false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusResponse 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_QueryGetTrustAnchorStatusResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.machineId": value := x.MachineId return protoreflect.ValueOfString(value) case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.isActivated": value := x.IsActivated return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusResponse 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_QueryGetTrustAnchorStatusResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.machineId": x.MachineId = value.Interface().(string) case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.isActivated": x.IsActivated = value.Bool() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusResponse 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_QueryGetTrustAnchorStatusResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.machineId": panic(fmt.Errorf("field machineId of message planetmintgo.machine.QueryGetTrustAnchorStatusResponse is not mutable")) case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.isActivated": panic(fmt.Errorf("field isActivated of message planetmintgo.machine.QueryGetTrustAnchorStatusResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusResponse 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_QueryGetTrustAnchorStatusResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.machineId": return protoreflect.ValueOfString("") case "planetmintgo.machine.QueryGetTrustAnchorStatusResponse.isActivated": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetTrustAnchorStatusResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetTrustAnchorStatusResponse 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_QueryGetTrustAnchorStatusResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetTrustAnchorStatusResponse", 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_QueryGetTrustAnchorStatusResponse) 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_QueryGetTrustAnchorStatusResponse) 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_QueryGetTrustAnchorStatusResponse) 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_QueryGetTrustAnchorStatusResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetTrustAnchorStatusResponse) 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.MachineId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.IsActivated { n += 2 } 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().(*QueryGetTrustAnchorStatusResponse) 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.IsActivated { i-- if x.IsActivated { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } if len(x.MachineId) > 0 { i -= len(x.MachineId) copy(dAtA[i:], x.MachineId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MachineId))) 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().(*QueryGetTrustAnchorStatusResponse) 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: QueryGetTrustAnchorStatusResponse: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustAnchorStatusResponse: 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 MachineId", 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.MachineId = 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 IsActivated", wireType) } var v 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++ v |= int(b&0x7F) << shift if b < 0x80 { break } } x.IsActivated = bool(v != 0) 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_QueryGetMachineByAddressRequest protoreflect.MessageDescriptor fd_QueryGetMachineByAddressRequest_address protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetMachineByAddressRequest = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetMachineByAddressRequest") fd_QueryGetMachineByAddressRequest_address = md_QueryGetMachineByAddressRequest.Fields().ByName("address") } var _ protoreflect.Message = (*fastReflection_QueryGetMachineByAddressRequest)(nil) type fastReflection_QueryGetMachineByAddressRequest QueryGetMachineByAddressRequest func (x *QueryGetMachineByAddressRequest) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetMachineByAddressRequest)(x) } func (x *QueryGetMachineByAddressRequest) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_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_QueryGetMachineByAddressRequest_messageType fastReflection_QueryGetMachineByAddressRequest_messageType var _ protoreflect.MessageType = fastReflection_QueryGetMachineByAddressRequest_messageType{} type fastReflection_QueryGetMachineByAddressRequest_messageType struct{} func (x fastReflection_QueryGetMachineByAddressRequest_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetMachineByAddressRequest)(nil) } func (x fastReflection_QueryGetMachineByAddressRequest_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByAddressRequest) } func (x fastReflection_QueryGetMachineByAddressRequest_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByAddressRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetMachineByAddressRequest) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByAddressRequest } // 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_QueryGetMachineByAddressRequest) Type() protoreflect.MessageType { return _fastReflection_QueryGetMachineByAddressRequest_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetMachineByAddressRequest) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByAddressRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetMachineByAddressRequest) Interface() protoreflect.ProtoMessage { return (*QueryGetMachineByAddressRequest)(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_QueryGetMachineByAddressRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Address != "" { value := protoreflect.ValueOfString(x.Address) if !f(fd_QueryGetMachineByAddressRequest_address, 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_QueryGetMachineByAddressRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressRequest.address": return x.Address != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressRequest 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_QueryGetMachineByAddressRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressRequest.address": x.Address = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressRequest 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_QueryGetMachineByAddressRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressRequest.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressRequest 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_QueryGetMachineByAddressRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressRequest.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressRequest 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_QueryGetMachineByAddressRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressRequest.address": panic(fmt.Errorf("field address of message planetmintgo.machine.QueryGetMachineByAddressRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressRequest 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_QueryGetMachineByAddressRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressRequest.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressRequest 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_QueryGetMachineByAddressRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetMachineByAddressRequest", 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_QueryGetMachineByAddressRequest) 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_QueryGetMachineByAddressRequest) 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_QueryGetMachineByAddressRequest) 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_QueryGetMachineByAddressRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetMachineByAddressRequest) 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.Address) 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().(*QueryGetMachineByAddressRequest) 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.Address) > 0 { i -= len(x.Address) copy(dAtA[i:], x.Address) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) 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().(*QueryGetMachineByAddressRequest) 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: QueryGetMachineByAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMachineByAddressRequest: 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 Address", 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.Address = 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_QueryGetMachineByAddressResponse protoreflect.MessageDescriptor fd_QueryGetMachineByAddressResponse_machine protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetMachineByAddressResponse = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetMachineByAddressResponse") fd_QueryGetMachineByAddressResponse_machine = md_QueryGetMachineByAddressResponse.Fields().ByName("machine") } var _ protoreflect.Message = (*fastReflection_QueryGetMachineByAddressResponse)(nil) type fastReflection_QueryGetMachineByAddressResponse QueryGetMachineByAddressResponse func (x *QueryGetMachineByAddressResponse) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetMachineByAddressResponse)(x) } func (x *QueryGetMachineByAddressResponse) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_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_QueryGetMachineByAddressResponse_messageType fastReflection_QueryGetMachineByAddressResponse_messageType var _ protoreflect.MessageType = fastReflection_QueryGetMachineByAddressResponse_messageType{} type fastReflection_QueryGetMachineByAddressResponse_messageType struct{} func (x fastReflection_QueryGetMachineByAddressResponse_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetMachineByAddressResponse)(nil) } func (x fastReflection_QueryGetMachineByAddressResponse_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByAddressResponse) } func (x fastReflection_QueryGetMachineByAddressResponse_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByAddressResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetMachineByAddressResponse) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetMachineByAddressResponse } // 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_QueryGetMachineByAddressResponse) Type() protoreflect.MessageType { return _fastReflection_QueryGetMachineByAddressResponse_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetMachineByAddressResponse) New() protoreflect.Message { return new(fastReflection_QueryGetMachineByAddressResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetMachineByAddressResponse) Interface() protoreflect.ProtoMessage { return (*QueryGetMachineByAddressResponse)(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_QueryGetMachineByAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Machine != nil { value := protoreflect.ValueOfMessage(x.Machine.ProtoReflect()) if !f(fd_QueryGetMachineByAddressResponse_machine, 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_QueryGetMachineByAddressResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressResponse.machine": return x.Machine != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressResponse 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_QueryGetMachineByAddressResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressResponse.machine": x.Machine = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressResponse 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_QueryGetMachineByAddressResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressResponse.machine": value := x.Machine return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressResponse 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_QueryGetMachineByAddressResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressResponse.machine": x.Machine = value.Message().Interface().(*Machine) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressResponse 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_QueryGetMachineByAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressResponse.machine": if x.Machine == nil { x.Machine = new(Machine) } return protoreflect.ValueOfMessage(x.Machine.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressResponse 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_QueryGetMachineByAddressResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetMachineByAddressResponse.machine": m := new(Machine) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetMachineByAddressResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetMachineByAddressResponse 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_QueryGetMachineByAddressResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetMachineByAddressResponse", 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_QueryGetMachineByAddressResponse) 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_QueryGetMachineByAddressResponse) 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_QueryGetMachineByAddressResponse) 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_QueryGetMachineByAddressResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetMachineByAddressResponse) 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.Machine != nil { l = options.Size(x.Machine) 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().(*QueryGetMachineByAddressResponse) 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.Machine != nil { encoded, err := options.Marshal(x.Machine) 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().(*QueryGetMachineByAddressResponse) 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: QueryGetMachineByAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMachineByAddressResponse: 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 Machine", 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.Machine == nil { x.Machine = &Machine{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Machine); 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.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_QueryGetLiquidAssetsByMachineIdRequest protoreflect.MessageDescriptor fd_QueryGetLiquidAssetsByMachineIdRequest_machineId protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetLiquidAssetsByMachineIdRequest = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetLiquidAssetsByMachineIdRequest") fd_QueryGetLiquidAssetsByMachineIdRequest_machineId = md_QueryGetLiquidAssetsByMachineIdRequest.Fields().ByName("machineId") } var _ protoreflect.Message = (*fastReflection_QueryGetLiquidAssetsByMachineIdRequest)(nil) type fastReflection_QueryGetLiquidAssetsByMachineIdRequest QueryGetLiquidAssetsByMachineIdRequest func (x *QueryGetLiquidAssetsByMachineIdRequest) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetLiquidAssetsByMachineIdRequest)(x) } func (x *QueryGetLiquidAssetsByMachineIdRequest) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[8] 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_QueryGetLiquidAssetsByMachineIdRequest_messageType fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType var _ protoreflect.MessageType = fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType{} type fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType struct{} func (x fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetLiquidAssetsByMachineIdRequest)(nil) } func (x fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetLiquidAssetsByMachineIdRequest) } func (x fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetLiquidAssetsByMachineIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetLiquidAssetsByMachineIdRequest) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetLiquidAssetsByMachineIdRequest } // 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_QueryGetLiquidAssetsByMachineIdRequest) Type() protoreflect.MessageType { return _fastReflection_QueryGetLiquidAssetsByMachineIdRequest_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetLiquidAssetsByMachineIdRequest) New() protoreflect.Message { return new(fastReflection_QueryGetLiquidAssetsByMachineIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetLiquidAssetsByMachineIdRequest) Interface() protoreflect.ProtoMessage { return (*QueryGetLiquidAssetsByMachineIdRequest)(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_QueryGetLiquidAssetsByMachineIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.MachineId != "" { value := protoreflect.ValueOfString(x.MachineId) if !f(fd_QueryGetLiquidAssetsByMachineIdRequest_machineId, 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_QueryGetLiquidAssetsByMachineIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest.machineId": return x.MachineId != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 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_QueryGetLiquidAssetsByMachineIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest.machineId": x.MachineId = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 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_QueryGetLiquidAssetsByMachineIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest.machineId": value := x.MachineId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 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_QueryGetLiquidAssetsByMachineIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest.machineId": x.MachineId = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 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_QueryGetLiquidAssetsByMachineIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest.machineId": panic(fmt.Errorf("field machineId of message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 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_QueryGetLiquidAssetsByMachineIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest.machineId": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 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_QueryGetLiquidAssetsByMachineIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest", 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_QueryGetLiquidAssetsByMachineIdRequest) 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_QueryGetLiquidAssetsByMachineIdRequest) 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_QueryGetLiquidAssetsByMachineIdRequest) 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_QueryGetLiquidAssetsByMachineIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetLiquidAssetsByMachineIdRequest) 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.MachineId) 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().(*QueryGetLiquidAssetsByMachineIdRequest) 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.MachineId) > 0 { i -= len(x.MachineId) copy(dAtA[i:], x.MachineId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MachineId))) 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().(*QueryGetLiquidAssetsByMachineIdRequest) 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: QueryGetLiquidAssetsByMachineIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetLiquidAssetsByMachineIdRequest: 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 MachineId", 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.MachineId = 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_QueryGetLiquidAssetsByMachineIdResponse protoreflect.MessageDescriptor fd_QueryGetLiquidAssetsByMachineIdResponse_liquidAssetEntry protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_query_proto_init() md_QueryGetLiquidAssetsByMachineIdResponse = File_planetmintgo_machine_query_proto.Messages().ByName("QueryGetLiquidAssetsByMachineIdResponse") fd_QueryGetLiquidAssetsByMachineIdResponse_liquidAssetEntry = md_QueryGetLiquidAssetsByMachineIdResponse.Fields().ByName("liquidAssetEntry") } var _ protoreflect.Message = (*fastReflection_QueryGetLiquidAssetsByMachineIdResponse)(nil) type fastReflection_QueryGetLiquidAssetsByMachineIdResponse QueryGetLiquidAssetsByMachineIdResponse func (x *QueryGetLiquidAssetsByMachineIdResponse) ProtoReflect() protoreflect.Message { return (*fastReflection_QueryGetLiquidAssetsByMachineIdResponse)(x) } func (x *QueryGetLiquidAssetsByMachineIdResponse) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_query_proto_msgTypes[9] 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_QueryGetLiquidAssetsByMachineIdResponse_messageType fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType var _ protoreflect.MessageType = fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType{} type fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType struct{} func (x fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType) Zero() protoreflect.Message { return (*fastReflection_QueryGetLiquidAssetsByMachineIdResponse)(nil) } func (x fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType) New() protoreflect.Message { return new(fastReflection_QueryGetLiquidAssetsByMachineIdResponse) } func (x fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetLiquidAssetsByMachineIdResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_QueryGetLiquidAssetsByMachineIdResponse) Descriptor() protoreflect.MessageDescriptor { return md_QueryGetLiquidAssetsByMachineIdResponse } // 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_QueryGetLiquidAssetsByMachineIdResponse) Type() protoreflect.MessageType { return _fastReflection_QueryGetLiquidAssetsByMachineIdResponse_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_QueryGetLiquidAssetsByMachineIdResponse) New() protoreflect.Message { return new(fastReflection_QueryGetLiquidAssetsByMachineIdResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_QueryGetLiquidAssetsByMachineIdResponse) Interface() protoreflect.ProtoMessage { return (*QueryGetLiquidAssetsByMachineIdResponse)(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_QueryGetLiquidAssetsByMachineIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.LiquidAssetEntry != nil { value := protoreflect.ValueOfMessage(x.LiquidAssetEntry.ProtoReflect()) if !f(fd_QueryGetLiquidAssetsByMachineIdResponse_liquidAssetEntry, 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_QueryGetLiquidAssetsByMachineIdResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry": return x.LiquidAssetEntry != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 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_QueryGetLiquidAssetsByMachineIdResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry": x.LiquidAssetEntry = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 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_QueryGetLiquidAssetsByMachineIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry": value := x.LiquidAssetEntry return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 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_QueryGetLiquidAssetsByMachineIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry": x.LiquidAssetEntry = value.Message().Interface().(*LiquidAsset) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 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_QueryGetLiquidAssetsByMachineIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry": if x.LiquidAssetEntry == nil { x.LiquidAssetEntry = new(LiquidAsset) } return protoreflect.ValueOfMessage(x.LiquidAssetEntry.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 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_QueryGetLiquidAssetsByMachineIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry": m := new(LiquidAsset) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse")) } panic(fmt.Errorf("message planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 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_QueryGetLiquidAssetsByMachineIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse", 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_QueryGetLiquidAssetsByMachineIdResponse) 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_QueryGetLiquidAssetsByMachineIdResponse) 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_QueryGetLiquidAssetsByMachineIdResponse) 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_QueryGetLiquidAssetsByMachineIdResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*QueryGetLiquidAssetsByMachineIdResponse) 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.LiquidAssetEntry != nil { l = options.Size(x.LiquidAssetEntry) 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().(*QueryGetLiquidAssetsByMachineIdResponse) 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.LiquidAssetEntry != nil { encoded, err := options.Marshal(x.LiquidAssetEntry) 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().(*QueryGetLiquidAssetsByMachineIdResponse) 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: QueryGetLiquidAssetsByMachineIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetLiquidAssetsByMachineIdResponse: 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 LiquidAssetEntry", 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.LiquidAssetEntry == nil { x.LiquidAssetEntry = &LiquidAsset{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LiquidAssetEntry); 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.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, } } // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 // protoc (unknown) // source: planetmintgo/machine/query.proto const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // QueryParamsRequest is request type for the Query/Params RPC method. type QueryParamsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *QueryParamsRequest) Reset() { *x = QueryParamsRequest{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryParamsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryParamsRequest) ProtoMessage() {} // Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{0} } // QueryParamsResponse is response type for the Query/Params RPC method. type QueryParamsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (x *QueryParamsResponse) Reset() { *x = QueryParamsResponse{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryParamsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryParamsResponse) ProtoMessage() {} // Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{1} } func (x *QueryParamsResponse) GetParams() *Params { if x != nil { return x.Params } return nil } type QueryGetMachineByPublicKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` } func (x *QueryGetMachineByPublicKeyRequest) Reset() { *x = QueryGetMachineByPublicKeyRequest{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetMachineByPublicKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetMachineByPublicKeyRequest) ProtoMessage() {} // Deprecated: Use QueryGetMachineByPublicKeyRequest.ProtoReflect.Descriptor instead. func (*QueryGetMachineByPublicKeyRequest) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{2} } func (x *QueryGetMachineByPublicKeyRequest) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } type QueryGetMachineByPublicKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` } func (x *QueryGetMachineByPublicKeyResponse) Reset() { *x = QueryGetMachineByPublicKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetMachineByPublicKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetMachineByPublicKeyResponse) ProtoMessage() {} // Deprecated: Use QueryGetMachineByPublicKeyResponse.ProtoReflect.Descriptor instead. func (*QueryGetMachineByPublicKeyResponse) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{3} } func (x *QueryGetMachineByPublicKeyResponse) GetMachine() *Machine { if x != nil { return x.Machine } return nil } type QueryGetTrustAnchorStatusRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MachineId string `protobuf:"bytes,1,opt,name=machineId,proto3" json:"machineId,omitempty"` } func (x *QueryGetTrustAnchorStatusRequest) Reset() { *x = QueryGetTrustAnchorStatusRequest{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetTrustAnchorStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetTrustAnchorStatusRequest) ProtoMessage() {} // Deprecated: Use QueryGetTrustAnchorStatusRequest.ProtoReflect.Descriptor instead. func (*QueryGetTrustAnchorStatusRequest) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{4} } func (x *QueryGetTrustAnchorStatusRequest) GetMachineId() string { if x != nil { return x.MachineId } return "" } type QueryGetTrustAnchorStatusResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MachineId string `protobuf:"bytes,1,opt,name=machineId,proto3" json:"machineId,omitempty"` IsActivated bool `protobuf:"varint,2,opt,name=isActivated,proto3" json:"isActivated,omitempty"` } func (x *QueryGetTrustAnchorStatusResponse) Reset() { *x = QueryGetTrustAnchorStatusResponse{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetTrustAnchorStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetTrustAnchorStatusResponse) ProtoMessage() {} // Deprecated: Use QueryGetTrustAnchorStatusResponse.ProtoReflect.Descriptor instead. func (*QueryGetTrustAnchorStatusResponse) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{5} } func (x *QueryGetTrustAnchorStatusResponse) GetMachineId() string { if x != nil { return x.MachineId } return "" } func (x *QueryGetTrustAnchorStatusResponse) GetIsActivated() bool { if x != nil { return x.IsActivated } return false } type QueryGetMachineByAddressRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (x *QueryGetMachineByAddressRequest) Reset() { *x = QueryGetMachineByAddressRequest{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetMachineByAddressRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetMachineByAddressRequest) ProtoMessage() {} // Deprecated: Use QueryGetMachineByAddressRequest.ProtoReflect.Descriptor instead. func (*QueryGetMachineByAddressRequest) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{6} } func (x *QueryGetMachineByAddressRequest) GetAddress() string { if x != nil { return x.Address } return "" } type QueryGetMachineByAddressResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` } func (x *QueryGetMachineByAddressResponse) Reset() { *x = QueryGetMachineByAddressResponse{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetMachineByAddressResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetMachineByAddressResponse) ProtoMessage() {} // Deprecated: Use QueryGetMachineByAddressResponse.ProtoReflect.Descriptor instead. func (*QueryGetMachineByAddressResponse) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{7} } func (x *QueryGetMachineByAddressResponse) GetMachine() *Machine { if x != nil { return x.Machine } return nil } type QueryGetLiquidAssetsByMachineIdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MachineId string `protobuf:"bytes,1,opt,name=machineId,proto3" json:"machineId,omitempty"` } func (x *QueryGetLiquidAssetsByMachineIdRequest) Reset() { *x = QueryGetLiquidAssetsByMachineIdRequest{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetLiquidAssetsByMachineIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetLiquidAssetsByMachineIdRequest) ProtoMessage() {} // Deprecated: Use QueryGetLiquidAssetsByMachineIdRequest.ProtoReflect.Descriptor instead. func (*QueryGetLiquidAssetsByMachineIdRequest) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{8} } func (x *QueryGetLiquidAssetsByMachineIdRequest) GetMachineId() string { if x != nil { return x.MachineId } return "" } type QueryGetLiquidAssetsByMachineIdResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields LiquidAssetEntry *LiquidAsset `protobuf:"bytes,1,opt,name=liquidAssetEntry,proto3" json:"liquidAssetEntry,omitempty"` } func (x *QueryGetLiquidAssetsByMachineIdResponse) Reset() { *x = QueryGetLiquidAssetsByMachineIdResponse{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryGetLiquidAssetsByMachineIdResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryGetLiquidAssetsByMachineIdResponse) ProtoMessage() {} // Deprecated: Use QueryGetLiquidAssetsByMachineIdResponse.ProtoReflect.Descriptor instead. func (*QueryGetLiquidAssetsByMachineIdResponse) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_query_proto_rawDescGZIP(), []int{9} } func (x *QueryGetLiquidAssetsByMachineIdResponse) GetLiquidAssetEntry() *LiquidAsset { if x != nil { return x.LiquidAssetEntry } return nil } var File_planetmintgo_machine_query_proto protoreflect.FileDescriptor var file_planetmintgo_machine_query_proto_rawDesc = []byte{ 0x0a, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 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, 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, 0x21, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x56, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x41, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x5d, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0x40, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x22, 0x3b, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x5b, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0x46, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x78, 0x0a, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x10, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x32, 0xce, 0x07, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2d, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xdb, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x37, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2d, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x2f, 0x7b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x7d, 0x12, 0xd6, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x36, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2d, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x7b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x7d, 0x12, 0xb3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xd0, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x3c, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x7d, 0x42, 0xbe, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0xca, 0x02, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x5c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0xe2, 0x02, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x5c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x3a, 0x3a, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_planetmintgo_machine_query_proto_rawDescOnce sync.Once file_planetmintgo_machine_query_proto_rawDescData = file_planetmintgo_machine_query_proto_rawDesc ) func file_planetmintgo_machine_query_proto_rawDescGZIP() []byte { file_planetmintgo_machine_query_proto_rawDescOnce.Do(func() { file_planetmintgo_machine_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_planetmintgo_machine_query_proto_rawDescData) }) return file_planetmintgo_machine_query_proto_rawDescData } var file_planetmintgo_machine_query_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_planetmintgo_machine_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: planetmintgo.machine.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: planetmintgo.machine.QueryParamsResponse (*QueryGetMachineByPublicKeyRequest)(nil), // 2: planetmintgo.machine.QueryGetMachineByPublicKeyRequest (*QueryGetMachineByPublicKeyResponse)(nil), // 3: planetmintgo.machine.QueryGetMachineByPublicKeyResponse (*QueryGetTrustAnchorStatusRequest)(nil), // 4: planetmintgo.machine.QueryGetTrustAnchorStatusRequest (*QueryGetTrustAnchorStatusResponse)(nil), // 5: planetmintgo.machine.QueryGetTrustAnchorStatusResponse (*QueryGetMachineByAddressRequest)(nil), // 6: planetmintgo.machine.QueryGetMachineByAddressRequest (*QueryGetMachineByAddressResponse)(nil), // 7: planetmintgo.machine.QueryGetMachineByAddressResponse (*QueryGetLiquidAssetsByMachineIdRequest)(nil), // 8: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest (*QueryGetLiquidAssetsByMachineIdResponse)(nil), // 9: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse (*Params)(nil), // 10: planetmintgo.machine.Params (*Machine)(nil), // 11: planetmintgo.machine.Machine (*LiquidAsset)(nil), // 12: planetmintgo.machine.LiquidAsset } var file_planetmintgo_machine_query_proto_depIdxs = []int32{ 10, // 0: planetmintgo.machine.QueryParamsResponse.params:type_name -> planetmintgo.machine.Params 11, // 1: planetmintgo.machine.QueryGetMachineByPublicKeyResponse.machine:type_name -> planetmintgo.machine.Machine 11, // 2: planetmintgo.machine.QueryGetMachineByAddressResponse.machine:type_name -> planetmintgo.machine.Machine 12, // 3: planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse.liquidAssetEntry:type_name -> planetmintgo.machine.LiquidAsset 0, // 4: planetmintgo.machine.Query.Params:input_type -> planetmintgo.machine.QueryParamsRequest 2, // 5: planetmintgo.machine.Query.GetMachineByPublicKey:input_type -> planetmintgo.machine.QueryGetMachineByPublicKeyRequest 4, // 6: planetmintgo.machine.Query.GetTrustAnchorStatus:input_type -> planetmintgo.machine.QueryGetTrustAnchorStatusRequest 6, // 7: planetmintgo.machine.Query.GetMachineByAddress:input_type -> planetmintgo.machine.QueryGetMachineByAddressRequest 8, // 8: planetmintgo.machine.Query.GetLiquidAssetsByMachineId:input_type -> planetmintgo.machine.QueryGetLiquidAssetsByMachineIdRequest 1, // 9: planetmintgo.machine.Query.Params:output_type -> planetmintgo.machine.QueryParamsResponse 3, // 10: planetmintgo.machine.Query.GetMachineByPublicKey:output_type -> planetmintgo.machine.QueryGetMachineByPublicKeyResponse 5, // 11: planetmintgo.machine.Query.GetTrustAnchorStatus:output_type -> planetmintgo.machine.QueryGetTrustAnchorStatusResponse 7, // 12: planetmintgo.machine.Query.GetMachineByAddress:output_type -> planetmintgo.machine.QueryGetMachineByAddressResponse 9, // 13: planetmintgo.machine.Query.GetLiquidAssetsByMachineId:output_type -> planetmintgo.machine.QueryGetLiquidAssetsByMachineIdResponse 9, // [9:14] is the sub-list for method output_type 4, // [4:9] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_planetmintgo_machine_query_proto_init() } func file_planetmintgo_machine_query_proto_init() { if File_planetmintgo_machine_query_proto != nil { return } file_planetmintgo_machine_params_proto_init() file_planetmintgo_machine_machine_proto_init() file_planetmintgo_machine_liquid_asset_proto_init() if !protoimpl.UnsafeEnabled { file_planetmintgo_machine_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetMachineByPublicKeyRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetMachineByPublicKeyResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetTrustAnchorStatusRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetTrustAnchorStatusResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetMachineByAddressRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetMachineByAddressResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetLiquidAssetsByMachineIdRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetLiquidAssetsByMachineIdResponse); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_planetmintgo_machine_query_proto_rawDesc, NumEnums: 0, NumMessages: 10, NumExtensions: 0, NumServices: 1, }, GoTypes: file_planetmintgo_machine_query_proto_goTypes, DependencyIndexes: file_planetmintgo_machine_query_proto_depIdxs, MessageInfos: file_planetmintgo_machine_query_proto_msgTypes, }.Build() File_planetmintgo_machine_query_proto = out.File file_planetmintgo_machine_query_proto_rawDesc = nil file_planetmintgo_machine_query_proto_goTypes = nil file_planetmintgo_machine_query_proto_depIdxs = nil }