github.com/cosmos/cosmos-sdk@v0.50.10/testutil/testdata/testpb/query.pulsar.go (about)

     1  // Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
     2  package testpb
     3  
     4  import (
     5  	fmt "fmt"
     6  	runtime "github.com/cosmos/cosmos-proto/runtime"
     7  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     8  	protoiface "google.golang.org/protobuf/runtime/protoiface"
     9  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    10  	anypb "google.golang.org/protobuf/types/known/anypb"
    11  	io "io"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  var (
    17  	md_EchoRequest         protoreflect.MessageDescriptor
    18  	fd_EchoRequest_message protoreflect.FieldDescriptor
    19  )
    20  
    21  func init() {
    22  	file_testpb_query_proto_init()
    23  	md_EchoRequest = File_testpb_query_proto.Messages().ByName("EchoRequest")
    24  	fd_EchoRequest_message = md_EchoRequest.Fields().ByName("message")
    25  }
    26  
    27  var _ protoreflect.Message = (*fastReflection_EchoRequest)(nil)
    28  
    29  type fastReflection_EchoRequest EchoRequest
    30  
    31  func (x *EchoRequest) ProtoReflect() protoreflect.Message {
    32  	return (*fastReflection_EchoRequest)(x)
    33  }
    34  
    35  func (x *EchoRequest) slowProtoReflect() protoreflect.Message {
    36  	mi := &file_testpb_query_proto_msgTypes[0]
    37  	if protoimpl.UnsafeEnabled && x != nil {
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		if ms.LoadMessageInfo() == nil {
    40  			ms.StoreMessageInfo(mi)
    41  		}
    42  		return ms
    43  	}
    44  	return mi.MessageOf(x)
    45  }
    46  
    47  var _fastReflection_EchoRequest_messageType fastReflection_EchoRequest_messageType
    48  var _ protoreflect.MessageType = fastReflection_EchoRequest_messageType{}
    49  
    50  type fastReflection_EchoRequest_messageType struct{}
    51  
    52  func (x fastReflection_EchoRequest_messageType) Zero() protoreflect.Message {
    53  	return (*fastReflection_EchoRequest)(nil)
    54  }
    55  func (x fastReflection_EchoRequest_messageType) New() protoreflect.Message {
    56  	return new(fastReflection_EchoRequest)
    57  }
    58  func (x fastReflection_EchoRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
    59  	return md_EchoRequest
    60  }
    61  
    62  // Descriptor returns message descriptor, which contains only the protobuf
    63  // type information for the message.
    64  func (x *fastReflection_EchoRequest) Descriptor() protoreflect.MessageDescriptor {
    65  	return md_EchoRequest
    66  }
    67  
    68  // Type returns the message type, which encapsulates both Go and protobuf
    69  // type information. If the Go type information is not needed,
    70  // it is recommended that the message descriptor be used instead.
    71  func (x *fastReflection_EchoRequest) Type() protoreflect.MessageType {
    72  	return _fastReflection_EchoRequest_messageType
    73  }
    74  
    75  // New returns a newly allocated and mutable empty message.
    76  func (x *fastReflection_EchoRequest) New() protoreflect.Message {
    77  	return new(fastReflection_EchoRequest)
    78  }
    79  
    80  // Interface unwraps the message reflection interface and
    81  // returns the underlying ProtoMessage interface.
    82  func (x *fastReflection_EchoRequest) Interface() protoreflect.ProtoMessage {
    83  	return (*EchoRequest)(x)
    84  }
    85  
    86  // Range iterates over every populated field in an undefined order,
    87  // calling f for each field descriptor and value encountered.
    88  // Range returns immediately if f returns false.
    89  // While iterating, mutating operations may only be performed
    90  // on the current field descriptor.
    91  func (x *fastReflection_EchoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
    92  	if x.Message != "" {
    93  		value := protoreflect.ValueOfString(x.Message)
    94  		if !f(fd_EchoRequest_message, value) {
    95  			return
    96  		}
    97  	}
    98  }
    99  
   100  // Has reports whether a field is populated.
   101  //
   102  // Some fields have the property of nullability where it is possible to
   103  // distinguish between the default value of a field and whether the field
   104  // was explicitly populated with the default value. Singular message fields,
   105  // member fields of a oneof, and proto2 scalar fields are nullable. Such
   106  // fields are populated only if explicitly set.
   107  //
   108  // In other cases (aside from the nullable cases above),
   109  // a proto3 scalar field is populated if it contains a non-zero value, and
   110  // a repeated field is populated if it is non-empty.
   111  func (x *fastReflection_EchoRequest) Has(fd protoreflect.FieldDescriptor) bool {
   112  	switch fd.FullName() {
   113  	case "testpb.EchoRequest.message":
   114  		return x.Message != ""
   115  	default:
   116  		if fd.IsExtension() {
   117  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest"))
   118  		}
   119  		panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName()))
   120  	}
   121  }
   122  
   123  // Clear clears the field such that a subsequent Has call reports false.
   124  //
   125  // Clearing an extension field clears both the extension type and value
   126  // associated with the given field number.
   127  //
   128  // Clear is a mutating operation and unsafe for concurrent use.
   129  func (x *fastReflection_EchoRequest) Clear(fd protoreflect.FieldDescriptor) {
   130  	switch fd.FullName() {
   131  	case "testpb.EchoRequest.message":
   132  		x.Message = ""
   133  	default:
   134  		if fd.IsExtension() {
   135  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest"))
   136  		}
   137  		panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName()))
   138  	}
   139  }
   140  
   141  // Get retrieves the value for a field.
   142  //
   143  // For unpopulated scalars, it returns the default value, where
   144  // the default value of a bytes scalar is guaranteed to be a copy.
   145  // For unpopulated composite types, it returns an empty, read-only view
   146  // of the value; to obtain a mutable reference, use Mutable.
   147  func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
   148  	switch descriptor.FullName() {
   149  	case "testpb.EchoRequest.message":
   150  		value := x.Message
   151  		return protoreflect.ValueOfString(value)
   152  	default:
   153  		if descriptor.IsExtension() {
   154  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest"))
   155  		}
   156  		panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", descriptor.FullName()))
   157  	}
   158  }
   159  
   160  // Set stores the value for a field.
   161  //
   162  // For a field belonging to a oneof, it implicitly clears any other field
   163  // that may be currently set within the same oneof.
   164  // For extension fields, it implicitly stores the provided ExtensionType.
   165  // When setting a composite type, it is unspecified whether the stored value
   166  // aliases the source's memory in any way. If the composite value is an
   167  // empty, read-only value, then it panics.
   168  //
   169  // Set is a mutating operation and unsafe for concurrent use.
   170  func (x *fastReflection_EchoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
   171  	switch fd.FullName() {
   172  	case "testpb.EchoRequest.message":
   173  		x.Message = value.Interface().(string)
   174  	default:
   175  		if fd.IsExtension() {
   176  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest"))
   177  		}
   178  		panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName()))
   179  	}
   180  }
   181  
   182  // Mutable returns a mutable reference to a composite type.
   183  //
   184  // If the field is unpopulated, it may allocate a composite value.
   185  // For a field belonging to a oneof, it implicitly clears any other field
   186  // that may be currently set within the same oneof.
   187  // For extension fields, it implicitly stores the provided ExtensionType
   188  // if not already stored.
   189  // It panics if the field does not contain a composite type.
   190  //
   191  // Mutable is a mutating operation and unsafe for concurrent use.
   192  func (x *fastReflection_EchoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
   193  	switch fd.FullName() {
   194  	case "testpb.EchoRequest.message":
   195  		panic(fmt.Errorf("field message of message testpb.EchoRequest is not mutable"))
   196  	default:
   197  		if fd.IsExtension() {
   198  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest"))
   199  		}
   200  		panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName()))
   201  	}
   202  }
   203  
   204  // NewField returns a new value that is assignable to the field
   205  // for the given descriptor. For scalars, this returns the default value.
   206  // For lists, maps, and messages, this returns a new, empty, mutable value.
   207  func (x *fastReflection_EchoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
   208  	switch fd.FullName() {
   209  	case "testpb.EchoRequest.message":
   210  		return protoreflect.ValueOfString("")
   211  	default:
   212  		if fd.IsExtension() {
   213  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest"))
   214  		}
   215  		panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName()))
   216  	}
   217  }
   218  
   219  // WhichOneof reports which field within the oneof is populated,
   220  // returning nil if none are populated.
   221  // It panics if the oneof descriptor does not belong to this message.
   222  func (x *fastReflection_EchoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
   223  	switch d.FullName() {
   224  	default:
   225  		panic(fmt.Errorf("%s is not a oneof field in testpb.EchoRequest", d.FullName()))
   226  	}
   227  	panic("unreachable")
   228  }
   229  
   230  // GetUnknown retrieves the entire list of unknown fields.
   231  // The caller may only mutate the contents of the RawFields
   232  // if the mutated bytes are stored back into the message with SetUnknown.
   233  func (x *fastReflection_EchoRequest) GetUnknown() protoreflect.RawFields {
   234  	return x.unknownFields
   235  }
   236  
   237  // SetUnknown stores an entire list of unknown fields.
   238  // The raw fields must be syntactically valid according to the wire format.
   239  // An implementation may panic if this is not the case.
   240  // Once stored, the caller must not mutate the content of the RawFields.
   241  // An empty RawFields may be passed to clear the fields.
   242  //
   243  // SetUnknown is a mutating operation and unsafe for concurrent use.
   244  func (x *fastReflection_EchoRequest) SetUnknown(fields protoreflect.RawFields) {
   245  	x.unknownFields = fields
   246  }
   247  
   248  // IsValid reports whether the message is valid.
   249  //
   250  // An invalid message is an empty, read-only value.
   251  //
   252  // An invalid message often corresponds to a nil pointer of the concrete
   253  // message type, but the details are implementation dependent.
   254  // Validity is not part of the protobuf data model, and may not
   255  // be preserved in marshaling or other operations.
   256  func (x *fastReflection_EchoRequest) IsValid() bool {
   257  	return x != nil
   258  }
   259  
   260  // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
   261  // This method may return nil.
   262  //
   263  // The returned methods type is identical to
   264  // "google.golang.org/protobuf/runtime/protoiface".Methods.
   265  // Consult the protoiface package documentation for details.
   266  func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods {
   267  	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
   268  		x := input.Message.Interface().(*EchoRequest)
   269  		if x == nil {
   270  			return protoiface.SizeOutput{
   271  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   272  				Size:              0,
   273  			}
   274  		}
   275  		options := runtime.SizeInputToOptions(input)
   276  		_ = options
   277  		var n int
   278  		var l int
   279  		_ = l
   280  		l = len(x.Message)
   281  		if l > 0 {
   282  			n += 1 + l + runtime.Sov(uint64(l))
   283  		}
   284  		if x.unknownFields != nil {
   285  			n += len(x.unknownFields)
   286  		}
   287  		return protoiface.SizeOutput{
   288  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   289  			Size:              n,
   290  		}
   291  	}
   292  
   293  	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
   294  		x := input.Message.Interface().(*EchoRequest)
   295  		if x == nil {
   296  			return protoiface.MarshalOutput{
   297  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   298  				Buf:               input.Buf,
   299  			}, nil
   300  		}
   301  		options := runtime.MarshalInputToOptions(input)
   302  		_ = options
   303  		size := options.Size(x)
   304  		dAtA := make([]byte, size)
   305  		i := len(dAtA)
   306  		_ = i
   307  		var l int
   308  		_ = l
   309  		if x.unknownFields != nil {
   310  			i -= len(x.unknownFields)
   311  			copy(dAtA[i:], x.unknownFields)
   312  		}
   313  		if len(x.Message) > 0 {
   314  			i -= len(x.Message)
   315  			copy(dAtA[i:], x.Message)
   316  			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
   317  			i--
   318  			dAtA[i] = 0xa
   319  		}
   320  		if input.Buf != nil {
   321  			input.Buf = append(input.Buf, dAtA...)
   322  		} else {
   323  			input.Buf = dAtA
   324  		}
   325  		return protoiface.MarshalOutput{
   326  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   327  			Buf:               input.Buf,
   328  		}, nil
   329  	}
   330  	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
   331  		x := input.Message.Interface().(*EchoRequest)
   332  		if x == nil {
   333  			return protoiface.UnmarshalOutput{
   334  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   335  				Flags:             input.Flags,
   336  			}, nil
   337  		}
   338  		options := runtime.UnmarshalInputToOptions(input)
   339  		_ = options
   340  		dAtA := input.Buf
   341  		l := len(dAtA)
   342  		iNdEx := 0
   343  		for iNdEx < l {
   344  			preIndex := iNdEx
   345  			var wire uint64
   346  			for shift := uint(0); ; shift += 7 {
   347  				if shift >= 64 {
   348  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
   349  				}
   350  				if iNdEx >= l {
   351  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   352  				}
   353  				b := dAtA[iNdEx]
   354  				iNdEx++
   355  				wire |= uint64(b&0x7F) << shift
   356  				if b < 0x80 {
   357  					break
   358  				}
   359  			}
   360  			fieldNum := int32(wire >> 3)
   361  			wireType := int(wire & 0x7)
   362  			if wireType == 4 {
   363  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoRequest: wiretype end group for non-group")
   364  			}
   365  			if fieldNum <= 0 {
   366  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   367  			}
   368  			switch fieldNum {
   369  			case 1:
   370  				if wireType != 2 {
   371  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
   372  				}
   373  				var stringLen uint64
   374  				for shift := uint(0); ; shift += 7 {
   375  					if shift >= 64 {
   376  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
   377  					}
   378  					if iNdEx >= l {
   379  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   380  					}
   381  					b := dAtA[iNdEx]
   382  					iNdEx++
   383  					stringLen |= uint64(b&0x7F) << shift
   384  					if b < 0x80 {
   385  						break
   386  					}
   387  				}
   388  				intStringLen := int(stringLen)
   389  				if intStringLen < 0 {
   390  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
   391  				}
   392  				postIndex := iNdEx + intStringLen
   393  				if postIndex < 0 {
   394  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
   395  				}
   396  				if postIndex > l {
   397  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   398  				}
   399  				x.Message = string(dAtA[iNdEx:postIndex])
   400  				iNdEx = postIndex
   401  			default:
   402  				iNdEx = preIndex
   403  				skippy, err := runtime.Skip(dAtA[iNdEx:])
   404  				if err != nil {
   405  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
   406  				}
   407  				if (skippy < 0) || (iNdEx+skippy) < 0 {
   408  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
   409  				}
   410  				if (iNdEx + skippy) > l {
   411  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   412  				}
   413  				if !options.DiscardUnknown {
   414  					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
   415  				}
   416  				iNdEx += skippy
   417  			}
   418  		}
   419  
   420  		if iNdEx > l {
   421  			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   422  		}
   423  		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
   424  	}
   425  	return &protoiface.Methods{
   426  		NoUnkeyedLiterals: struct{}{},
   427  		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
   428  		Size:              size,
   429  		Marshal:           marshal,
   430  		Unmarshal:         unmarshal,
   431  		Merge:             nil,
   432  		CheckInitialized:  nil,
   433  	}
   434  }
   435  
   436  var (
   437  	md_EchoResponse         protoreflect.MessageDescriptor
   438  	fd_EchoResponse_message protoreflect.FieldDescriptor
   439  )
   440  
   441  func init() {
   442  	file_testpb_query_proto_init()
   443  	md_EchoResponse = File_testpb_query_proto.Messages().ByName("EchoResponse")
   444  	fd_EchoResponse_message = md_EchoResponse.Fields().ByName("message")
   445  }
   446  
   447  var _ protoreflect.Message = (*fastReflection_EchoResponse)(nil)
   448  
   449  type fastReflection_EchoResponse EchoResponse
   450  
   451  func (x *EchoResponse) ProtoReflect() protoreflect.Message {
   452  	return (*fastReflection_EchoResponse)(x)
   453  }
   454  
   455  func (x *EchoResponse) slowProtoReflect() protoreflect.Message {
   456  	mi := &file_testpb_query_proto_msgTypes[1]
   457  	if protoimpl.UnsafeEnabled && x != nil {
   458  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   459  		if ms.LoadMessageInfo() == nil {
   460  			ms.StoreMessageInfo(mi)
   461  		}
   462  		return ms
   463  	}
   464  	return mi.MessageOf(x)
   465  }
   466  
   467  var _fastReflection_EchoResponse_messageType fastReflection_EchoResponse_messageType
   468  var _ protoreflect.MessageType = fastReflection_EchoResponse_messageType{}
   469  
   470  type fastReflection_EchoResponse_messageType struct{}
   471  
   472  func (x fastReflection_EchoResponse_messageType) Zero() protoreflect.Message {
   473  	return (*fastReflection_EchoResponse)(nil)
   474  }
   475  func (x fastReflection_EchoResponse_messageType) New() protoreflect.Message {
   476  	return new(fastReflection_EchoResponse)
   477  }
   478  func (x fastReflection_EchoResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
   479  	return md_EchoResponse
   480  }
   481  
   482  // Descriptor returns message descriptor, which contains only the protobuf
   483  // type information for the message.
   484  func (x *fastReflection_EchoResponse) Descriptor() protoreflect.MessageDescriptor {
   485  	return md_EchoResponse
   486  }
   487  
   488  // Type returns the message type, which encapsulates both Go and protobuf
   489  // type information. If the Go type information is not needed,
   490  // it is recommended that the message descriptor be used instead.
   491  func (x *fastReflection_EchoResponse) Type() protoreflect.MessageType {
   492  	return _fastReflection_EchoResponse_messageType
   493  }
   494  
   495  // New returns a newly allocated and mutable empty message.
   496  func (x *fastReflection_EchoResponse) New() protoreflect.Message {
   497  	return new(fastReflection_EchoResponse)
   498  }
   499  
   500  // Interface unwraps the message reflection interface and
   501  // returns the underlying ProtoMessage interface.
   502  func (x *fastReflection_EchoResponse) Interface() protoreflect.ProtoMessage {
   503  	return (*EchoResponse)(x)
   504  }
   505  
   506  // Range iterates over every populated field in an undefined order,
   507  // calling f for each field descriptor and value encountered.
   508  // Range returns immediately if f returns false.
   509  // While iterating, mutating operations may only be performed
   510  // on the current field descriptor.
   511  func (x *fastReflection_EchoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
   512  	if x.Message != "" {
   513  		value := protoreflect.ValueOfString(x.Message)
   514  		if !f(fd_EchoResponse_message, value) {
   515  			return
   516  		}
   517  	}
   518  }
   519  
   520  // Has reports whether a field is populated.
   521  //
   522  // Some fields have the property of nullability where it is possible to
   523  // distinguish between the default value of a field and whether the field
   524  // was explicitly populated with the default value. Singular message fields,
   525  // member fields of a oneof, and proto2 scalar fields are nullable. Such
   526  // fields are populated only if explicitly set.
   527  //
   528  // In other cases (aside from the nullable cases above),
   529  // a proto3 scalar field is populated if it contains a non-zero value, and
   530  // a repeated field is populated if it is non-empty.
   531  func (x *fastReflection_EchoResponse) Has(fd protoreflect.FieldDescriptor) bool {
   532  	switch fd.FullName() {
   533  	case "testpb.EchoResponse.message":
   534  		return x.Message != ""
   535  	default:
   536  		if fd.IsExtension() {
   537  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse"))
   538  		}
   539  		panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName()))
   540  	}
   541  }
   542  
   543  // Clear clears the field such that a subsequent Has call reports false.
   544  //
   545  // Clearing an extension field clears both the extension type and value
   546  // associated with the given field number.
   547  //
   548  // Clear is a mutating operation and unsafe for concurrent use.
   549  func (x *fastReflection_EchoResponse) Clear(fd protoreflect.FieldDescriptor) {
   550  	switch fd.FullName() {
   551  	case "testpb.EchoResponse.message":
   552  		x.Message = ""
   553  	default:
   554  		if fd.IsExtension() {
   555  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse"))
   556  		}
   557  		panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName()))
   558  	}
   559  }
   560  
   561  // Get retrieves the value for a field.
   562  //
   563  // For unpopulated scalars, it returns the default value, where
   564  // the default value of a bytes scalar is guaranteed to be a copy.
   565  // For unpopulated composite types, it returns an empty, read-only view
   566  // of the value; to obtain a mutable reference, use Mutable.
   567  func (x *fastReflection_EchoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
   568  	switch descriptor.FullName() {
   569  	case "testpb.EchoResponse.message":
   570  		value := x.Message
   571  		return protoreflect.ValueOfString(value)
   572  	default:
   573  		if descriptor.IsExtension() {
   574  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse"))
   575  		}
   576  		panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", descriptor.FullName()))
   577  	}
   578  }
   579  
   580  // Set stores the value for a field.
   581  //
   582  // For a field belonging to a oneof, it implicitly clears any other field
   583  // that may be currently set within the same oneof.
   584  // For extension fields, it implicitly stores the provided ExtensionType.
   585  // When setting a composite type, it is unspecified whether the stored value
   586  // aliases the source's memory in any way. If the composite value is an
   587  // empty, read-only value, then it panics.
   588  //
   589  // Set is a mutating operation and unsafe for concurrent use.
   590  func (x *fastReflection_EchoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
   591  	switch fd.FullName() {
   592  	case "testpb.EchoResponse.message":
   593  		x.Message = value.Interface().(string)
   594  	default:
   595  		if fd.IsExtension() {
   596  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse"))
   597  		}
   598  		panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName()))
   599  	}
   600  }
   601  
   602  // Mutable returns a mutable reference to a composite type.
   603  //
   604  // If the field is unpopulated, it may allocate a composite value.
   605  // For a field belonging to a oneof, it implicitly clears any other field
   606  // that may be currently set within the same oneof.
   607  // For extension fields, it implicitly stores the provided ExtensionType
   608  // if not already stored.
   609  // It panics if the field does not contain a composite type.
   610  //
   611  // Mutable is a mutating operation and unsafe for concurrent use.
   612  func (x *fastReflection_EchoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
   613  	switch fd.FullName() {
   614  	case "testpb.EchoResponse.message":
   615  		panic(fmt.Errorf("field message of message testpb.EchoResponse is not mutable"))
   616  	default:
   617  		if fd.IsExtension() {
   618  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse"))
   619  		}
   620  		panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName()))
   621  	}
   622  }
   623  
   624  // NewField returns a new value that is assignable to the field
   625  // for the given descriptor. For scalars, this returns the default value.
   626  // For lists, maps, and messages, this returns a new, empty, mutable value.
   627  func (x *fastReflection_EchoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
   628  	switch fd.FullName() {
   629  	case "testpb.EchoResponse.message":
   630  		return protoreflect.ValueOfString("")
   631  	default:
   632  		if fd.IsExtension() {
   633  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse"))
   634  		}
   635  		panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName()))
   636  	}
   637  }
   638  
   639  // WhichOneof reports which field within the oneof is populated,
   640  // returning nil if none are populated.
   641  // It panics if the oneof descriptor does not belong to this message.
   642  func (x *fastReflection_EchoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
   643  	switch d.FullName() {
   644  	default:
   645  		panic(fmt.Errorf("%s is not a oneof field in testpb.EchoResponse", d.FullName()))
   646  	}
   647  	panic("unreachable")
   648  }
   649  
   650  // GetUnknown retrieves the entire list of unknown fields.
   651  // The caller may only mutate the contents of the RawFields
   652  // if the mutated bytes are stored back into the message with SetUnknown.
   653  func (x *fastReflection_EchoResponse) GetUnknown() protoreflect.RawFields {
   654  	return x.unknownFields
   655  }
   656  
   657  // SetUnknown stores an entire list of unknown fields.
   658  // The raw fields must be syntactically valid according to the wire format.
   659  // An implementation may panic if this is not the case.
   660  // Once stored, the caller must not mutate the content of the RawFields.
   661  // An empty RawFields may be passed to clear the fields.
   662  //
   663  // SetUnknown is a mutating operation and unsafe for concurrent use.
   664  func (x *fastReflection_EchoResponse) SetUnknown(fields protoreflect.RawFields) {
   665  	x.unknownFields = fields
   666  }
   667  
   668  // IsValid reports whether the message is valid.
   669  //
   670  // An invalid message is an empty, read-only value.
   671  //
   672  // An invalid message often corresponds to a nil pointer of the concrete
   673  // message type, but the details are implementation dependent.
   674  // Validity is not part of the protobuf data model, and may not
   675  // be preserved in marshaling or other operations.
   676  func (x *fastReflection_EchoResponse) IsValid() bool {
   677  	return x != nil
   678  }
   679  
   680  // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
   681  // This method may return nil.
   682  //
   683  // The returned methods type is identical to
   684  // "google.golang.org/protobuf/runtime/protoiface".Methods.
   685  // Consult the protoiface package documentation for details.
   686  func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods {
   687  	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
   688  		x := input.Message.Interface().(*EchoResponse)
   689  		if x == nil {
   690  			return protoiface.SizeOutput{
   691  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   692  				Size:              0,
   693  			}
   694  		}
   695  		options := runtime.SizeInputToOptions(input)
   696  		_ = options
   697  		var n int
   698  		var l int
   699  		_ = l
   700  		l = len(x.Message)
   701  		if l > 0 {
   702  			n += 1 + l + runtime.Sov(uint64(l))
   703  		}
   704  		if x.unknownFields != nil {
   705  			n += len(x.unknownFields)
   706  		}
   707  		return protoiface.SizeOutput{
   708  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   709  			Size:              n,
   710  		}
   711  	}
   712  
   713  	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
   714  		x := input.Message.Interface().(*EchoResponse)
   715  		if x == nil {
   716  			return protoiface.MarshalOutput{
   717  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   718  				Buf:               input.Buf,
   719  			}, nil
   720  		}
   721  		options := runtime.MarshalInputToOptions(input)
   722  		_ = options
   723  		size := options.Size(x)
   724  		dAtA := make([]byte, size)
   725  		i := len(dAtA)
   726  		_ = i
   727  		var l int
   728  		_ = l
   729  		if x.unknownFields != nil {
   730  			i -= len(x.unknownFields)
   731  			copy(dAtA[i:], x.unknownFields)
   732  		}
   733  		if len(x.Message) > 0 {
   734  			i -= len(x.Message)
   735  			copy(dAtA[i:], x.Message)
   736  			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
   737  			i--
   738  			dAtA[i] = 0xa
   739  		}
   740  		if input.Buf != nil {
   741  			input.Buf = append(input.Buf, dAtA...)
   742  		} else {
   743  			input.Buf = dAtA
   744  		}
   745  		return protoiface.MarshalOutput{
   746  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   747  			Buf:               input.Buf,
   748  		}, nil
   749  	}
   750  	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
   751  		x := input.Message.Interface().(*EchoResponse)
   752  		if x == nil {
   753  			return protoiface.UnmarshalOutput{
   754  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
   755  				Flags:             input.Flags,
   756  			}, nil
   757  		}
   758  		options := runtime.UnmarshalInputToOptions(input)
   759  		_ = options
   760  		dAtA := input.Buf
   761  		l := len(dAtA)
   762  		iNdEx := 0
   763  		for iNdEx < l {
   764  			preIndex := iNdEx
   765  			var wire uint64
   766  			for shift := uint(0); ; shift += 7 {
   767  				if shift >= 64 {
   768  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
   769  				}
   770  				if iNdEx >= l {
   771  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   772  				}
   773  				b := dAtA[iNdEx]
   774  				iNdEx++
   775  				wire |= uint64(b&0x7F) << shift
   776  				if b < 0x80 {
   777  					break
   778  				}
   779  			}
   780  			fieldNum := int32(wire >> 3)
   781  			wireType := int(wire & 0x7)
   782  			if wireType == 4 {
   783  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoResponse: wiretype end group for non-group")
   784  			}
   785  			if fieldNum <= 0 {
   786  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   787  			}
   788  			switch fieldNum {
   789  			case 1:
   790  				if wireType != 2 {
   791  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
   792  				}
   793  				var stringLen uint64
   794  				for shift := uint(0); ; shift += 7 {
   795  					if shift >= 64 {
   796  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
   797  					}
   798  					if iNdEx >= l {
   799  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   800  					}
   801  					b := dAtA[iNdEx]
   802  					iNdEx++
   803  					stringLen |= uint64(b&0x7F) << shift
   804  					if b < 0x80 {
   805  						break
   806  					}
   807  				}
   808  				intStringLen := int(stringLen)
   809  				if intStringLen < 0 {
   810  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
   811  				}
   812  				postIndex := iNdEx + intStringLen
   813  				if postIndex < 0 {
   814  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
   815  				}
   816  				if postIndex > l {
   817  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   818  				}
   819  				x.Message = string(dAtA[iNdEx:postIndex])
   820  				iNdEx = postIndex
   821  			default:
   822  				iNdEx = preIndex
   823  				skippy, err := runtime.Skip(dAtA[iNdEx:])
   824  				if err != nil {
   825  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
   826  				}
   827  				if (skippy < 0) || (iNdEx+skippy) < 0 {
   828  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
   829  				}
   830  				if (iNdEx + skippy) > l {
   831  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   832  				}
   833  				if !options.DiscardUnknown {
   834  					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
   835  				}
   836  				iNdEx += skippy
   837  			}
   838  		}
   839  
   840  		if iNdEx > l {
   841  			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
   842  		}
   843  		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
   844  	}
   845  	return &protoiface.Methods{
   846  		NoUnkeyedLiterals: struct{}{},
   847  		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
   848  		Size:              size,
   849  		Marshal:           marshal,
   850  		Unmarshal:         unmarshal,
   851  		Merge:             nil,
   852  		CheckInitialized:  nil,
   853  	}
   854  }
   855  
   856  var (
   857  	md_SayHelloRequest      protoreflect.MessageDescriptor
   858  	fd_SayHelloRequest_name protoreflect.FieldDescriptor
   859  )
   860  
   861  func init() {
   862  	file_testpb_query_proto_init()
   863  	md_SayHelloRequest = File_testpb_query_proto.Messages().ByName("SayHelloRequest")
   864  	fd_SayHelloRequest_name = md_SayHelloRequest.Fields().ByName("name")
   865  }
   866  
   867  var _ protoreflect.Message = (*fastReflection_SayHelloRequest)(nil)
   868  
   869  type fastReflection_SayHelloRequest SayHelloRequest
   870  
   871  func (x *SayHelloRequest) ProtoReflect() protoreflect.Message {
   872  	return (*fastReflection_SayHelloRequest)(x)
   873  }
   874  
   875  func (x *SayHelloRequest) slowProtoReflect() protoreflect.Message {
   876  	mi := &file_testpb_query_proto_msgTypes[2]
   877  	if protoimpl.UnsafeEnabled && x != nil {
   878  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   879  		if ms.LoadMessageInfo() == nil {
   880  			ms.StoreMessageInfo(mi)
   881  		}
   882  		return ms
   883  	}
   884  	return mi.MessageOf(x)
   885  }
   886  
   887  var _fastReflection_SayHelloRequest_messageType fastReflection_SayHelloRequest_messageType
   888  var _ protoreflect.MessageType = fastReflection_SayHelloRequest_messageType{}
   889  
   890  type fastReflection_SayHelloRequest_messageType struct{}
   891  
   892  func (x fastReflection_SayHelloRequest_messageType) Zero() protoreflect.Message {
   893  	return (*fastReflection_SayHelloRequest)(nil)
   894  }
   895  func (x fastReflection_SayHelloRequest_messageType) New() protoreflect.Message {
   896  	return new(fastReflection_SayHelloRequest)
   897  }
   898  func (x fastReflection_SayHelloRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
   899  	return md_SayHelloRequest
   900  }
   901  
   902  // Descriptor returns message descriptor, which contains only the protobuf
   903  // type information for the message.
   904  func (x *fastReflection_SayHelloRequest) Descriptor() protoreflect.MessageDescriptor {
   905  	return md_SayHelloRequest
   906  }
   907  
   908  // Type returns the message type, which encapsulates both Go and protobuf
   909  // type information. If the Go type information is not needed,
   910  // it is recommended that the message descriptor be used instead.
   911  func (x *fastReflection_SayHelloRequest) Type() protoreflect.MessageType {
   912  	return _fastReflection_SayHelloRequest_messageType
   913  }
   914  
   915  // New returns a newly allocated and mutable empty message.
   916  func (x *fastReflection_SayHelloRequest) New() protoreflect.Message {
   917  	return new(fastReflection_SayHelloRequest)
   918  }
   919  
   920  // Interface unwraps the message reflection interface and
   921  // returns the underlying ProtoMessage interface.
   922  func (x *fastReflection_SayHelloRequest) Interface() protoreflect.ProtoMessage {
   923  	return (*SayHelloRequest)(x)
   924  }
   925  
   926  // Range iterates over every populated field in an undefined order,
   927  // calling f for each field descriptor and value encountered.
   928  // Range returns immediately if f returns false.
   929  // While iterating, mutating operations may only be performed
   930  // on the current field descriptor.
   931  func (x *fastReflection_SayHelloRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
   932  	if x.Name != "" {
   933  		value := protoreflect.ValueOfString(x.Name)
   934  		if !f(fd_SayHelloRequest_name, value) {
   935  			return
   936  		}
   937  	}
   938  }
   939  
   940  // Has reports whether a field is populated.
   941  //
   942  // Some fields have the property of nullability where it is possible to
   943  // distinguish between the default value of a field and whether the field
   944  // was explicitly populated with the default value. Singular message fields,
   945  // member fields of a oneof, and proto2 scalar fields are nullable. Such
   946  // fields are populated only if explicitly set.
   947  //
   948  // In other cases (aside from the nullable cases above),
   949  // a proto3 scalar field is populated if it contains a non-zero value, and
   950  // a repeated field is populated if it is non-empty.
   951  func (x *fastReflection_SayHelloRequest) Has(fd protoreflect.FieldDescriptor) bool {
   952  	switch fd.FullName() {
   953  	case "testpb.SayHelloRequest.name":
   954  		return x.Name != ""
   955  	default:
   956  		if fd.IsExtension() {
   957  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloRequest"))
   958  		}
   959  		panic(fmt.Errorf("message testpb.SayHelloRequest does not contain field %s", fd.FullName()))
   960  	}
   961  }
   962  
   963  // Clear clears the field such that a subsequent Has call reports false.
   964  //
   965  // Clearing an extension field clears both the extension type and value
   966  // associated with the given field number.
   967  //
   968  // Clear is a mutating operation and unsafe for concurrent use.
   969  func (x *fastReflection_SayHelloRequest) Clear(fd protoreflect.FieldDescriptor) {
   970  	switch fd.FullName() {
   971  	case "testpb.SayHelloRequest.name":
   972  		x.Name = ""
   973  	default:
   974  		if fd.IsExtension() {
   975  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloRequest"))
   976  		}
   977  		panic(fmt.Errorf("message testpb.SayHelloRequest does not contain field %s", fd.FullName()))
   978  	}
   979  }
   980  
   981  // Get retrieves the value for a field.
   982  //
   983  // For unpopulated scalars, it returns the default value, where
   984  // the default value of a bytes scalar is guaranteed to be a copy.
   985  // For unpopulated composite types, it returns an empty, read-only view
   986  // of the value; to obtain a mutable reference, use Mutable.
   987  func (x *fastReflection_SayHelloRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
   988  	switch descriptor.FullName() {
   989  	case "testpb.SayHelloRequest.name":
   990  		value := x.Name
   991  		return protoreflect.ValueOfString(value)
   992  	default:
   993  		if descriptor.IsExtension() {
   994  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloRequest"))
   995  		}
   996  		panic(fmt.Errorf("message testpb.SayHelloRequest does not contain field %s", descriptor.FullName()))
   997  	}
   998  }
   999  
  1000  // Set stores the value for a field.
  1001  //
  1002  // For a field belonging to a oneof, it implicitly clears any other field
  1003  // that may be currently set within the same oneof.
  1004  // For extension fields, it implicitly stores the provided ExtensionType.
  1005  // When setting a composite type, it is unspecified whether the stored value
  1006  // aliases the source's memory in any way. If the composite value is an
  1007  // empty, read-only value, then it panics.
  1008  //
  1009  // Set is a mutating operation and unsafe for concurrent use.
  1010  func (x *fastReflection_SayHelloRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
  1011  	switch fd.FullName() {
  1012  	case "testpb.SayHelloRequest.name":
  1013  		x.Name = value.Interface().(string)
  1014  	default:
  1015  		if fd.IsExtension() {
  1016  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloRequest"))
  1017  		}
  1018  		panic(fmt.Errorf("message testpb.SayHelloRequest does not contain field %s", fd.FullName()))
  1019  	}
  1020  }
  1021  
  1022  // Mutable returns a mutable reference to a composite type.
  1023  //
  1024  // If the field is unpopulated, it may allocate a composite value.
  1025  // For a field belonging to a oneof, it implicitly clears any other field
  1026  // that may be currently set within the same oneof.
  1027  // For extension fields, it implicitly stores the provided ExtensionType
  1028  // if not already stored.
  1029  // It panics if the field does not contain a composite type.
  1030  //
  1031  // Mutable is a mutating operation and unsafe for concurrent use.
  1032  func (x *fastReflection_SayHelloRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
  1033  	switch fd.FullName() {
  1034  	case "testpb.SayHelloRequest.name":
  1035  		panic(fmt.Errorf("field name of message testpb.SayHelloRequest is not mutable"))
  1036  	default:
  1037  		if fd.IsExtension() {
  1038  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloRequest"))
  1039  		}
  1040  		panic(fmt.Errorf("message testpb.SayHelloRequest does not contain field %s", fd.FullName()))
  1041  	}
  1042  }
  1043  
  1044  // NewField returns a new value that is assignable to the field
  1045  // for the given descriptor. For scalars, this returns the default value.
  1046  // For lists, maps, and messages, this returns a new, empty, mutable value.
  1047  func (x *fastReflection_SayHelloRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
  1048  	switch fd.FullName() {
  1049  	case "testpb.SayHelloRequest.name":
  1050  		return protoreflect.ValueOfString("")
  1051  	default:
  1052  		if fd.IsExtension() {
  1053  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloRequest"))
  1054  		}
  1055  		panic(fmt.Errorf("message testpb.SayHelloRequest does not contain field %s", fd.FullName()))
  1056  	}
  1057  }
  1058  
  1059  // WhichOneof reports which field within the oneof is populated,
  1060  // returning nil if none are populated.
  1061  // It panics if the oneof descriptor does not belong to this message.
  1062  func (x *fastReflection_SayHelloRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
  1063  	switch d.FullName() {
  1064  	default:
  1065  		panic(fmt.Errorf("%s is not a oneof field in testpb.SayHelloRequest", d.FullName()))
  1066  	}
  1067  	panic("unreachable")
  1068  }
  1069  
  1070  // GetUnknown retrieves the entire list of unknown fields.
  1071  // The caller may only mutate the contents of the RawFields
  1072  // if the mutated bytes are stored back into the message with SetUnknown.
  1073  func (x *fastReflection_SayHelloRequest) GetUnknown() protoreflect.RawFields {
  1074  	return x.unknownFields
  1075  }
  1076  
  1077  // SetUnknown stores an entire list of unknown fields.
  1078  // The raw fields must be syntactically valid according to the wire format.
  1079  // An implementation may panic if this is not the case.
  1080  // Once stored, the caller must not mutate the content of the RawFields.
  1081  // An empty RawFields may be passed to clear the fields.
  1082  //
  1083  // SetUnknown is a mutating operation and unsafe for concurrent use.
  1084  func (x *fastReflection_SayHelloRequest) SetUnknown(fields protoreflect.RawFields) {
  1085  	x.unknownFields = fields
  1086  }
  1087  
  1088  // IsValid reports whether the message is valid.
  1089  //
  1090  // An invalid message is an empty, read-only value.
  1091  //
  1092  // An invalid message often corresponds to a nil pointer of the concrete
  1093  // message type, but the details are implementation dependent.
  1094  // Validity is not part of the protobuf data model, and may not
  1095  // be preserved in marshaling or other operations.
  1096  func (x *fastReflection_SayHelloRequest) IsValid() bool {
  1097  	return x != nil
  1098  }
  1099  
  1100  // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
  1101  // This method may return nil.
  1102  //
  1103  // The returned methods type is identical to
  1104  // "google.golang.org/protobuf/runtime/protoiface".Methods.
  1105  // Consult the protoiface package documentation for details.
  1106  func (x *fastReflection_SayHelloRequest) ProtoMethods() *protoiface.Methods {
  1107  	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
  1108  		x := input.Message.Interface().(*SayHelloRequest)
  1109  		if x == nil {
  1110  			return protoiface.SizeOutput{
  1111  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1112  				Size:              0,
  1113  			}
  1114  		}
  1115  		options := runtime.SizeInputToOptions(input)
  1116  		_ = options
  1117  		var n int
  1118  		var l int
  1119  		_ = l
  1120  		l = len(x.Name)
  1121  		if l > 0 {
  1122  			n += 1 + l + runtime.Sov(uint64(l))
  1123  		}
  1124  		if x.unknownFields != nil {
  1125  			n += len(x.unknownFields)
  1126  		}
  1127  		return protoiface.SizeOutput{
  1128  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1129  			Size:              n,
  1130  		}
  1131  	}
  1132  
  1133  	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
  1134  		x := input.Message.Interface().(*SayHelloRequest)
  1135  		if x == nil {
  1136  			return protoiface.MarshalOutput{
  1137  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1138  				Buf:               input.Buf,
  1139  			}, nil
  1140  		}
  1141  		options := runtime.MarshalInputToOptions(input)
  1142  		_ = options
  1143  		size := options.Size(x)
  1144  		dAtA := make([]byte, size)
  1145  		i := len(dAtA)
  1146  		_ = i
  1147  		var l int
  1148  		_ = l
  1149  		if x.unknownFields != nil {
  1150  			i -= len(x.unknownFields)
  1151  			copy(dAtA[i:], x.unknownFields)
  1152  		}
  1153  		if len(x.Name) > 0 {
  1154  			i -= len(x.Name)
  1155  			copy(dAtA[i:], x.Name)
  1156  			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
  1157  			i--
  1158  			dAtA[i] = 0xa
  1159  		}
  1160  		if input.Buf != nil {
  1161  			input.Buf = append(input.Buf, dAtA...)
  1162  		} else {
  1163  			input.Buf = dAtA
  1164  		}
  1165  		return protoiface.MarshalOutput{
  1166  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1167  			Buf:               input.Buf,
  1168  		}, nil
  1169  	}
  1170  	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
  1171  		x := input.Message.Interface().(*SayHelloRequest)
  1172  		if x == nil {
  1173  			return protoiface.UnmarshalOutput{
  1174  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1175  				Flags:             input.Flags,
  1176  			}, nil
  1177  		}
  1178  		options := runtime.UnmarshalInputToOptions(input)
  1179  		_ = options
  1180  		dAtA := input.Buf
  1181  		l := len(dAtA)
  1182  		iNdEx := 0
  1183  		for iNdEx < l {
  1184  			preIndex := iNdEx
  1185  			var wire uint64
  1186  			for shift := uint(0); ; shift += 7 {
  1187  				if shift >= 64 {
  1188  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  1189  				}
  1190  				if iNdEx >= l {
  1191  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1192  				}
  1193  				b := dAtA[iNdEx]
  1194  				iNdEx++
  1195  				wire |= uint64(b&0x7F) << shift
  1196  				if b < 0x80 {
  1197  					break
  1198  				}
  1199  			}
  1200  			fieldNum := int32(wire >> 3)
  1201  			wireType := int(wire & 0x7)
  1202  			if wireType == 4 {
  1203  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SayHelloRequest: wiretype end group for non-group")
  1204  			}
  1205  			if fieldNum <= 0 {
  1206  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SayHelloRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1207  			}
  1208  			switch fieldNum {
  1209  			case 1:
  1210  				if wireType != 2 {
  1211  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1212  				}
  1213  				var stringLen uint64
  1214  				for shift := uint(0); ; shift += 7 {
  1215  					if shift >= 64 {
  1216  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  1217  					}
  1218  					if iNdEx >= l {
  1219  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1220  					}
  1221  					b := dAtA[iNdEx]
  1222  					iNdEx++
  1223  					stringLen |= uint64(b&0x7F) << shift
  1224  					if b < 0x80 {
  1225  						break
  1226  					}
  1227  				}
  1228  				intStringLen := int(stringLen)
  1229  				if intStringLen < 0 {
  1230  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  1231  				}
  1232  				postIndex := iNdEx + intStringLen
  1233  				if postIndex < 0 {
  1234  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  1235  				}
  1236  				if postIndex > l {
  1237  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1238  				}
  1239  				x.Name = string(dAtA[iNdEx:postIndex])
  1240  				iNdEx = postIndex
  1241  			default:
  1242  				iNdEx = preIndex
  1243  				skippy, err := runtime.Skip(dAtA[iNdEx:])
  1244  				if err != nil {
  1245  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
  1246  				}
  1247  				if (skippy < 0) || (iNdEx+skippy) < 0 {
  1248  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  1249  				}
  1250  				if (iNdEx + skippy) > l {
  1251  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1252  				}
  1253  				if !options.DiscardUnknown {
  1254  					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  1255  				}
  1256  				iNdEx += skippy
  1257  			}
  1258  		}
  1259  
  1260  		if iNdEx > l {
  1261  			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1262  		}
  1263  		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
  1264  	}
  1265  	return &protoiface.Methods{
  1266  		NoUnkeyedLiterals: struct{}{},
  1267  		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
  1268  		Size:              size,
  1269  		Marshal:           marshal,
  1270  		Unmarshal:         unmarshal,
  1271  		Merge:             nil,
  1272  		CheckInitialized:  nil,
  1273  	}
  1274  }
  1275  
  1276  var (
  1277  	md_SayHelloResponse          protoreflect.MessageDescriptor
  1278  	fd_SayHelloResponse_greeting protoreflect.FieldDescriptor
  1279  )
  1280  
  1281  func init() {
  1282  	file_testpb_query_proto_init()
  1283  	md_SayHelloResponse = File_testpb_query_proto.Messages().ByName("SayHelloResponse")
  1284  	fd_SayHelloResponse_greeting = md_SayHelloResponse.Fields().ByName("greeting")
  1285  }
  1286  
  1287  var _ protoreflect.Message = (*fastReflection_SayHelloResponse)(nil)
  1288  
  1289  type fastReflection_SayHelloResponse SayHelloResponse
  1290  
  1291  func (x *SayHelloResponse) ProtoReflect() protoreflect.Message {
  1292  	return (*fastReflection_SayHelloResponse)(x)
  1293  }
  1294  
  1295  func (x *SayHelloResponse) slowProtoReflect() protoreflect.Message {
  1296  	mi := &file_testpb_query_proto_msgTypes[3]
  1297  	if protoimpl.UnsafeEnabled && x != nil {
  1298  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1299  		if ms.LoadMessageInfo() == nil {
  1300  			ms.StoreMessageInfo(mi)
  1301  		}
  1302  		return ms
  1303  	}
  1304  	return mi.MessageOf(x)
  1305  }
  1306  
  1307  var _fastReflection_SayHelloResponse_messageType fastReflection_SayHelloResponse_messageType
  1308  var _ protoreflect.MessageType = fastReflection_SayHelloResponse_messageType{}
  1309  
  1310  type fastReflection_SayHelloResponse_messageType struct{}
  1311  
  1312  func (x fastReflection_SayHelloResponse_messageType) Zero() protoreflect.Message {
  1313  	return (*fastReflection_SayHelloResponse)(nil)
  1314  }
  1315  func (x fastReflection_SayHelloResponse_messageType) New() protoreflect.Message {
  1316  	return new(fastReflection_SayHelloResponse)
  1317  }
  1318  func (x fastReflection_SayHelloResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
  1319  	return md_SayHelloResponse
  1320  }
  1321  
  1322  // Descriptor returns message descriptor, which contains only the protobuf
  1323  // type information for the message.
  1324  func (x *fastReflection_SayHelloResponse) Descriptor() protoreflect.MessageDescriptor {
  1325  	return md_SayHelloResponse
  1326  }
  1327  
  1328  // Type returns the message type, which encapsulates both Go and protobuf
  1329  // type information. If the Go type information is not needed,
  1330  // it is recommended that the message descriptor be used instead.
  1331  func (x *fastReflection_SayHelloResponse) Type() protoreflect.MessageType {
  1332  	return _fastReflection_SayHelloResponse_messageType
  1333  }
  1334  
  1335  // New returns a newly allocated and mutable empty message.
  1336  func (x *fastReflection_SayHelloResponse) New() protoreflect.Message {
  1337  	return new(fastReflection_SayHelloResponse)
  1338  }
  1339  
  1340  // Interface unwraps the message reflection interface and
  1341  // returns the underlying ProtoMessage interface.
  1342  func (x *fastReflection_SayHelloResponse) Interface() protoreflect.ProtoMessage {
  1343  	return (*SayHelloResponse)(x)
  1344  }
  1345  
  1346  // Range iterates over every populated field in an undefined order,
  1347  // calling f for each field descriptor and value encountered.
  1348  // Range returns immediately if f returns false.
  1349  // While iterating, mutating operations may only be performed
  1350  // on the current field descriptor.
  1351  func (x *fastReflection_SayHelloResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
  1352  	if x.Greeting != "" {
  1353  		value := protoreflect.ValueOfString(x.Greeting)
  1354  		if !f(fd_SayHelloResponse_greeting, value) {
  1355  			return
  1356  		}
  1357  	}
  1358  }
  1359  
  1360  // Has reports whether a field is populated.
  1361  //
  1362  // Some fields have the property of nullability where it is possible to
  1363  // distinguish between the default value of a field and whether the field
  1364  // was explicitly populated with the default value. Singular message fields,
  1365  // member fields of a oneof, and proto2 scalar fields are nullable. Such
  1366  // fields are populated only if explicitly set.
  1367  //
  1368  // In other cases (aside from the nullable cases above),
  1369  // a proto3 scalar field is populated if it contains a non-zero value, and
  1370  // a repeated field is populated if it is non-empty.
  1371  func (x *fastReflection_SayHelloResponse) Has(fd protoreflect.FieldDescriptor) bool {
  1372  	switch fd.FullName() {
  1373  	case "testpb.SayHelloResponse.greeting":
  1374  		return x.Greeting != ""
  1375  	default:
  1376  		if fd.IsExtension() {
  1377  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloResponse"))
  1378  		}
  1379  		panic(fmt.Errorf("message testpb.SayHelloResponse does not contain field %s", fd.FullName()))
  1380  	}
  1381  }
  1382  
  1383  // Clear clears the field such that a subsequent Has call reports false.
  1384  //
  1385  // Clearing an extension field clears both the extension type and value
  1386  // associated with the given field number.
  1387  //
  1388  // Clear is a mutating operation and unsafe for concurrent use.
  1389  func (x *fastReflection_SayHelloResponse) Clear(fd protoreflect.FieldDescriptor) {
  1390  	switch fd.FullName() {
  1391  	case "testpb.SayHelloResponse.greeting":
  1392  		x.Greeting = ""
  1393  	default:
  1394  		if fd.IsExtension() {
  1395  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloResponse"))
  1396  		}
  1397  		panic(fmt.Errorf("message testpb.SayHelloResponse does not contain field %s", fd.FullName()))
  1398  	}
  1399  }
  1400  
  1401  // Get retrieves the value for a field.
  1402  //
  1403  // For unpopulated scalars, it returns the default value, where
  1404  // the default value of a bytes scalar is guaranteed to be a copy.
  1405  // For unpopulated composite types, it returns an empty, read-only view
  1406  // of the value; to obtain a mutable reference, use Mutable.
  1407  func (x *fastReflection_SayHelloResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
  1408  	switch descriptor.FullName() {
  1409  	case "testpb.SayHelloResponse.greeting":
  1410  		value := x.Greeting
  1411  		return protoreflect.ValueOfString(value)
  1412  	default:
  1413  		if descriptor.IsExtension() {
  1414  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloResponse"))
  1415  		}
  1416  		panic(fmt.Errorf("message testpb.SayHelloResponse does not contain field %s", descriptor.FullName()))
  1417  	}
  1418  }
  1419  
  1420  // Set stores the value for a field.
  1421  //
  1422  // For a field belonging to a oneof, it implicitly clears any other field
  1423  // that may be currently set within the same oneof.
  1424  // For extension fields, it implicitly stores the provided ExtensionType.
  1425  // When setting a composite type, it is unspecified whether the stored value
  1426  // aliases the source's memory in any way. If the composite value is an
  1427  // empty, read-only value, then it panics.
  1428  //
  1429  // Set is a mutating operation and unsafe for concurrent use.
  1430  func (x *fastReflection_SayHelloResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
  1431  	switch fd.FullName() {
  1432  	case "testpb.SayHelloResponse.greeting":
  1433  		x.Greeting = value.Interface().(string)
  1434  	default:
  1435  		if fd.IsExtension() {
  1436  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloResponse"))
  1437  		}
  1438  		panic(fmt.Errorf("message testpb.SayHelloResponse does not contain field %s", fd.FullName()))
  1439  	}
  1440  }
  1441  
  1442  // Mutable returns a mutable reference to a composite type.
  1443  //
  1444  // If the field is unpopulated, it may allocate a composite value.
  1445  // For a field belonging to a oneof, it implicitly clears any other field
  1446  // that may be currently set within the same oneof.
  1447  // For extension fields, it implicitly stores the provided ExtensionType
  1448  // if not already stored.
  1449  // It panics if the field does not contain a composite type.
  1450  //
  1451  // Mutable is a mutating operation and unsafe for concurrent use.
  1452  func (x *fastReflection_SayHelloResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
  1453  	switch fd.FullName() {
  1454  	case "testpb.SayHelloResponse.greeting":
  1455  		panic(fmt.Errorf("field greeting of message testpb.SayHelloResponse is not mutable"))
  1456  	default:
  1457  		if fd.IsExtension() {
  1458  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloResponse"))
  1459  		}
  1460  		panic(fmt.Errorf("message testpb.SayHelloResponse does not contain field %s", fd.FullName()))
  1461  	}
  1462  }
  1463  
  1464  // NewField returns a new value that is assignable to the field
  1465  // for the given descriptor. For scalars, this returns the default value.
  1466  // For lists, maps, and messages, this returns a new, empty, mutable value.
  1467  func (x *fastReflection_SayHelloResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
  1468  	switch fd.FullName() {
  1469  	case "testpb.SayHelloResponse.greeting":
  1470  		return protoreflect.ValueOfString("")
  1471  	default:
  1472  		if fd.IsExtension() {
  1473  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SayHelloResponse"))
  1474  		}
  1475  		panic(fmt.Errorf("message testpb.SayHelloResponse does not contain field %s", fd.FullName()))
  1476  	}
  1477  }
  1478  
  1479  // WhichOneof reports which field within the oneof is populated,
  1480  // returning nil if none are populated.
  1481  // It panics if the oneof descriptor does not belong to this message.
  1482  func (x *fastReflection_SayHelloResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
  1483  	switch d.FullName() {
  1484  	default:
  1485  		panic(fmt.Errorf("%s is not a oneof field in testpb.SayHelloResponse", d.FullName()))
  1486  	}
  1487  	panic("unreachable")
  1488  }
  1489  
  1490  // GetUnknown retrieves the entire list of unknown fields.
  1491  // The caller may only mutate the contents of the RawFields
  1492  // if the mutated bytes are stored back into the message with SetUnknown.
  1493  func (x *fastReflection_SayHelloResponse) GetUnknown() protoreflect.RawFields {
  1494  	return x.unknownFields
  1495  }
  1496  
  1497  // SetUnknown stores an entire list of unknown fields.
  1498  // The raw fields must be syntactically valid according to the wire format.
  1499  // An implementation may panic if this is not the case.
  1500  // Once stored, the caller must not mutate the content of the RawFields.
  1501  // An empty RawFields may be passed to clear the fields.
  1502  //
  1503  // SetUnknown is a mutating operation and unsafe for concurrent use.
  1504  func (x *fastReflection_SayHelloResponse) SetUnknown(fields protoreflect.RawFields) {
  1505  	x.unknownFields = fields
  1506  }
  1507  
  1508  // IsValid reports whether the message is valid.
  1509  //
  1510  // An invalid message is an empty, read-only value.
  1511  //
  1512  // An invalid message often corresponds to a nil pointer of the concrete
  1513  // message type, but the details are implementation dependent.
  1514  // Validity is not part of the protobuf data model, and may not
  1515  // be preserved in marshaling or other operations.
  1516  func (x *fastReflection_SayHelloResponse) IsValid() bool {
  1517  	return x != nil
  1518  }
  1519  
  1520  // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
  1521  // This method may return nil.
  1522  //
  1523  // The returned methods type is identical to
  1524  // "google.golang.org/protobuf/runtime/protoiface".Methods.
  1525  // Consult the protoiface package documentation for details.
  1526  func (x *fastReflection_SayHelloResponse) ProtoMethods() *protoiface.Methods {
  1527  	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
  1528  		x := input.Message.Interface().(*SayHelloResponse)
  1529  		if x == nil {
  1530  			return protoiface.SizeOutput{
  1531  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1532  				Size:              0,
  1533  			}
  1534  		}
  1535  		options := runtime.SizeInputToOptions(input)
  1536  		_ = options
  1537  		var n int
  1538  		var l int
  1539  		_ = l
  1540  		l = len(x.Greeting)
  1541  		if l > 0 {
  1542  			n += 1 + l + runtime.Sov(uint64(l))
  1543  		}
  1544  		if x.unknownFields != nil {
  1545  			n += len(x.unknownFields)
  1546  		}
  1547  		return protoiface.SizeOutput{
  1548  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1549  			Size:              n,
  1550  		}
  1551  	}
  1552  
  1553  	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
  1554  		x := input.Message.Interface().(*SayHelloResponse)
  1555  		if x == nil {
  1556  			return protoiface.MarshalOutput{
  1557  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1558  				Buf:               input.Buf,
  1559  			}, nil
  1560  		}
  1561  		options := runtime.MarshalInputToOptions(input)
  1562  		_ = options
  1563  		size := options.Size(x)
  1564  		dAtA := make([]byte, size)
  1565  		i := len(dAtA)
  1566  		_ = i
  1567  		var l int
  1568  		_ = l
  1569  		if x.unknownFields != nil {
  1570  			i -= len(x.unknownFields)
  1571  			copy(dAtA[i:], x.unknownFields)
  1572  		}
  1573  		if len(x.Greeting) > 0 {
  1574  			i -= len(x.Greeting)
  1575  			copy(dAtA[i:], x.Greeting)
  1576  			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Greeting)))
  1577  			i--
  1578  			dAtA[i] = 0xa
  1579  		}
  1580  		if input.Buf != nil {
  1581  			input.Buf = append(input.Buf, dAtA...)
  1582  		} else {
  1583  			input.Buf = dAtA
  1584  		}
  1585  		return protoiface.MarshalOutput{
  1586  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1587  			Buf:               input.Buf,
  1588  		}, nil
  1589  	}
  1590  	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
  1591  		x := input.Message.Interface().(*SayHelloResponse)
  1592  		if x == nil {
  1593  			return protoiface.UnmarshalOutput{
  1594  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1595  				Flags:             input.Flags,
  1596  			}, nil
  1597  		}
  1598  		options := runtime.UnmarshalInputToOptions(input)
  1599  		_ = options
  1600  		dAtA := input.Buf
  1601  		l := len(dAtA)
  1602  		iNdEx := 0
  1603  		for iNdEx < l {
  1604  			preIndex := iNdEx
  1605  			var wire uint64
  1606  			for shift := uint(0); ; shift += 7 {
  1607  				if shift >= 64 {
  1608  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  1609  				}
  1610  				if iNdEx >= l {
  1611  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1612  				}
  1613  				b := dAtA[iNdEx]
  1614  				iNdEx++
  1615  				wire |= uint64(b&0x7F) << shift
  1616  				if b < 0x80 {
  1617  					break
  1618  				}
  1619  			}
  1620  			fieldNum := int32(wire >> 3)
  1621  			wireType := int(wire & 0x7)
  1622  			if wireType == 4 {
  1623  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SayHelloResponse: wiretype end group for non-group")
  1624  			}
  1625  			if fieldNum <= 0 {
  1626  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SayHelloResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1627  			}
  1628  			switch fieldNum {
  1629  			case 1:
  1630  				if wireType != 2 {
  1631  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Greeting", wireType)
  1632  				}
  1633  				var stringLen uint64
  1634  				for shift := uint(0); ; shift += 7 {
  1635  					if shift >= 64 {
  1636  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  1637  					}
  1638  					if iNdEx >= l {
  1639  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1640  					}
  1641  					b := dAtA[iNdEx]
  1642  					iNdEx++
  1643  					stringLen |= uint64(b&0x7F) << shift
  1644  					if b < 0x80 {
  1645  						break
  1646  					}
  1647  				}
  1648  				intStringLen := int(stringLen)
  1649  				if intStringLen < 0 {
  1650  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  1651  				}
  1652  				postIndex := iNdEx + intStringLen
  1653  				if postIndex < 0 {
  1654  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  1655  				}
  1656  				if postIndex > l {
  1657  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1658  				}
  1659  				x.Greeting = string(dAtA[iNdEx:postIndex])
  1660  				iNdEx = postIndex
  1661  			default:
  1662  				iNdEx = preIndex
  1663  				skippy, err := runtime.Skip(dAtA[iNdEx:])
  1664  				if err != nil {
  1665  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
  1666  				}
  1667  				if (skippy < 0) || (iNdEx+skippy) < 0 {
  1668  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  1669  				}
  1670  				if (iNdEx + skippy) > l {
  1671  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1672  				}
  1673  				if !options.DiscardUnknown {
  1674  					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  1675  				}
  1676  				iNdEx += skippy
  1677  			}
  1678  		}
  1679  
  1680  		if iNdEx > l {
  1681  			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  1682  		}
  1683  		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
  1684  	}
  1685  	return &protoiface.Methods{
  1686  		NoUnkeyedLiterals: struct{}{},
  1687  		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
  1688  		Size:              size,
  1689  		Marshal:           marshal,
  1690  		Unmarshal:         unmarshal,
  1691  		Merge:             nil,
  1692  		CheckInitialized:  nil,
  1693  	}
  1694  }
  1695  
  1696  var (
  1697  	md_TestAnyRequest            protoreflect.MessageDescriptor
  1698  	fd_TestAnyRequest_any_animal protoreflect.FieldDescriptor
  1699  )
  1700  
  1701  func init() {
  1702  	file_testpb_query_proto_init()
  1703  	md_TestAnyRequest = File_testpb_query_proto.Messages().ByName("TestAnyRequest")
  1704  	fd_TestAnyRequest_any_animal = md_TestAnyRequest.Fields().ByName("any_animal")
  1705  }
  1706  
  1707  var _ protoreflect.Message = (*fastReflection_TestAnyRequest)(nil)
  1708  
  1709  type fastReflection_TestAnyRequest TestAnyRequest
  1710  
  1711  func (x *TestAnyRequest) ProtoReflect() protoreflect.Message {
  1712  	return (*fastReflection_TestAnyRequest)(x)
  1713  }
  1714  
  1715  func (x *TestAnyRequest) slowProtoReflect() protoreflect.Message {
  1716  	mi := &file_testpb_query_proto_msgTypes[4]
  1717  	if protoimpl.UnsafeEnabled && x != nil {
  1718  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1719  		if ms.LoadMessageInfo() == nil {
  1720  			ms.StoreMessageInfo(mi)
  1721  		}
  1722  		return ms
  1723  	}
  1724  	return mi.MessageOf(x)
  1725  }
  1726  
  1727  var _fastReflection_TestAnyRequest_messageType fastReflection_TestAnyRequest_messageType
  1728  var _ protoreflect.MessageType = fastReflection_TestAnyRequest_messageType{}
  1729  
  1730  type fastReflection_TestAnyRequest_messageType struct{}
  1731  
  1732  func (x fastReflection_TestAnyRequest_messageType) Zero() protoreflect.Message {
  1733  	return (*fastReflection_TestAnyRequest)(nil)
  1734  }
  1735  func (x fastReflection_TestAnyRequest_messageType) New() protoreflect.Message {
  1736  	return new(fastReflection_TestAnyRequest)
  1737  }
  1738  func (x fastReflection_TestAnyRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
  1739  	return md_TestAnyRequest
  1740  }
  1741  
  1742  // Descriptor returns message descriptor, which contains only the protobuf
  1743  // type information for the message.
  1744  func (x *fastReflection_TestAnyRequest) Descriptor() protoreflect.MessageDescriptor {
  1745  	return md_TestAnyRequest
  1746  }
  1747  
  1748  // Type returns the message type, which encapsulates both Go and protobuf
  1749  // type information. If the Go type information is not needed,
  1750  // it is recommended that the message descriptor be used instead.
  1751  func (x *fastReflection_TestAnyRequest) Type() protoreflect.MessageType {
  1752  	return _fastReflection_TestAnyRequest_messageType
  1753  }
  1754  
  1755  // New returns a newly allocated and mutable empty message.
  1756  func (x *fastReflection_TestAnyRequest) New() protoreflect.Message {
  1757  	return new(fastReflection_TestAnyRequest)
  1758  }
  1759  
  1760  // Interface unwraps the message reflection interface and
  1761  // returns the underlying ProtoMessage interface.
  1762  func (x *fastReflection_TestAnyRequest) Interface() protoreflect.ProtoMessage {
  1763  	return (*TestAnyRequest)(x)
  1764  }
  1765  
  1766  // Range iterates over every populated field in an undefined order,
  1767  // calling f for each field descriptor and value encountered.
  1768  // Range returns immediately if f returns false.
  1769  // While iterating, mutating operations may only be performed
  1770  // on the current field descriptor.
  1771  func (x *fastReflection_TestAnyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
  1772  	if x.AnyAnimal != nil {
  1773  		value := protoreflect.ValueOfMessage(x.AnyAnimal.ProtoReflect())
  1774  		if !f(fd_TestAnyRequest_any_animal, value) {
  1775  			return
  1776  		}
  1777  	}
  1778  }
  1779  
  1780  // Has reports whether a field is populated.
  1781  //
  1782  // Some fields have the property of nullability where it is possible to
  1783  // distinguish between the default value of a field and whether the field
  1784  // was explicitly populated with the default value. Singular message fields,
  1785  // member fields of a oneof, and proto2 scalar fields are nullable. Such
  1786  // fields are populated only if explicitly set.
  1787  //
  1788  // In other cases (aside from the nullable cases above),
  1789  // a proto3 scalar field is populated if it contains a non-zero value, and
  1790  // a repeated field is populated if it is non-empty.
  1791  func (x *fastReflection_TestAnyRequest) Has(fd protoreflect.FieldDescriptor) bool {
  1792  	switch fd.FullName() {
  1793  	case "testpb.TestAnyRequest.any_animal":
  1794  		return x.AnyAnimal != nil
  1795  	default:
  1796  		if fd.IsExtension() {
  1797  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyRequest"))
  1798  		}
  1799  		panic(fmt.Errorf("message testpb.TestAnyRequest does not contain field %s", fd.FullName()))
  1800  	}
  1801  }
  1802  
  1803  // Clear clears the field such that a subsequent Has call reports false.
  1804  //
  1805  // Clearing an extension field clears both the extension type and value
  1806  // associated with the given field number.
  1807  //
  1808  // Clear is a mutating operation and unsafe for concurrent use.
  1809  func (x *fastReflection_TestAnyRequest) Clear(fd protoreflect.FieldDescriptor) {
  1810  	switch fd.FullName() {
  1811  	case "testpb.TestAnyRequest.any_animal":
  1812  		x.AnyAnimal = nil
  1813  	default:
  1814  		if fd.IsExtension() {
  1815  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyRequest"))
  1816  		}
  1817  		panic(fmt.Errorf("message testpb.TestAnyRequest does not contain field %s", fd.FullName()))
  1818  	}
  1819  }
  1820  
  1821  // Get retrieves the value for a field.
  1822  //
  1823  // For unpopulated scalars, it returns the default value, where
  1824  // the default value of a bytes scalar is guaranteed to be a copy.
  1825  // For unpopulated composite types, it returns an empty, read-only view
  1826  // of the value; to obtain a mutable reference, use Mutable.
  1827  func (x *fastReflection_TestAnyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
  1828  	switch descriptor.FullName() {
  1829  	case "testpb.TestAnyRequest.any_animal":
  1830  		value := x.AnyAnimal
  1831  		return protoreflect.ValueOfMessage(value.ProtoReflect())
  1832  	default:
  1833  		if descriptor.IsExtension() {
  1834  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyRequest"))
  1835  		}
  1836  		panic(fmt.Errorf("message testpb.TestAnyRequest does not contain field %s", descriptor.FullName()))
  1837  	}
  1838  }
  1839  
  1840  // Set stores the value for a field.
  1841  //
  1842  // For a field belonging to a oneof, it implicitly clears any other field
  1843  // that may be currently set within the same oneof.
  1844  // For extension fields, it implicitly stores the provided ExtensionType.
  1845  // When setting a composite type, it is unspecified whether the stored value
  1846  // aliases the source's memory in any way. If the composite value is an
  1847  // empty, read-only value, then it panics.
  1848  //
  1849  // Set is a mutating operation and unsafe for concurrent use.
  1850  func (x *fastReflection_TestAnyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
  1851  	switch fd.FullName() {
  1852  	case "testpb.TestAnyRequest.any_animal":
  1853  		x.AnyAnimal = value.Message().Interface().(*anypb.Any)
  1854  	default:
  1855  		if fd.IsExtension() {
  1856  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyRequest"))
  1857  		}
  1858  		panic(fmt.Errorf("message testpb.TestAnyRequest does not contain field %s", fd.FullName()))
  1859  	}
  1860  }
  1861  
  1862  // Mutable returns a mutable reference to a composite type.
  1863  //
  1864  // If the field is unpopulated, it may allocate a composite value.
  1865  // For a field belonging to a oneof, it implicitly clears any other field
  1866  // that may be currently set within the same oneof.
  1867  // For extension fields, it implicitly stores the provided ExtensionType
  1868  // if not already stored.
  1869  // It panics if the field does not contain a composite type.
  1870  //
  1871  // Mutable is a mutating operation and unsafe for concurrent use.
  1872  func (x *fastReflection_TestAnyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
  1873  	switch fd.FullName() {
  1874  	case "testpb.TestAnyRequest.any_animal":
  1875  		if x.AnyAnimal == nil {
  1876  			x.AnyAnimal = new(anypb.Any)
  1877  		}
  1878  		return protoreflect.ValueOfMessage(x.AnyAnimal.ProtoReflect())
  1879  	default:
  1880  		if fd.IsExtension() {
  1881  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyRequest"))
  1882  		}
  1883  		panic(fmt.Errorf("message testpb.TestAnyRequest does not contain field %s", fd.FullName()))
  1884  	}
  1885  }
  1886  
  1887  // NewField returns a new value that is assignable to the field
  1888  // for the given descriptor. For scalars, this returns the default value.
  1889  // For lists, maps, and messages, this returns a new, empty, mutable value.
  1890  func (x *fastReflection_TestAnyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
  1891  	switch fd.FullName() {
  1892  	case "testpb.TestAnyRequest.any_animal":
  1893  		m := new(anypb.Any)
  1894  		return protoreflect.ValueOfMessage(m.ProtoReflect())
  1895  	default:
  1896  		if fd.IsExtension() {
  1897  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyRequest"))
  1898  		}
  1899  		panic(fmt.Errorf("message testpb.TestAnyRequest does not contain field %s", fd.FullName()))
  1900  	}
  1901  }
  1902  
  1903  // WhichOneof reports which field within the oneof is populated,
  1904  // returning nil if none are populated.
  1905  // It panics if the oneof descriptor does not belong to this message.
  1906  func (x *fastReflection_TestAnyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
  1907  	switch d.FullName() {
  1908  	default:
  1909  		panic(fmt.Errorf("%s is not a oneof field in testpb.TestAnyRequest", d.FullName()))
  1910  	}
  1911  	panic("unreachable")
  1912  }
  1913  
  1914  // GetUnknown retrieves the entire list of unknown fields.
  1915  // The caller may only mutate the contents of the RawFields
  1916  // if the mutated bytes are stored back into the message with SetUnknown.
  1917  func (x *fastReflection_TestAnyRequest) GetUnknown() protoreflect.RawFields {
  1918  	return x.unknownFields
  1919  }
  1920  
  1921  // SetUnknown stores an entire list of unknown fields.
  1922  // The raw fields must be syntactically valid according to the wire format.
  1923  // An implementation may panic if this is not the case.
  1924  // Once stored, the caller must not mutate the content of the RawFields.
  1925  // An empty RawFields may be passed to clear the fields.
  1926  //
  1927  // SetUnknown is a mutating operation and unsafe for concurrent use.
  1928  func (x *fastReflection_TestAnyRequest) SetUnknown(fields protoreflect.RawFields) {
  1929  	x.unknownFields = fields
  1930  }
  1931  
  1932  // IsValid reports whether the message is valid.
  1933  //
  1934  // An invalid message is an empty, read-only value.
  1935  //
  1936  // An invalid message often corresponds to a nil pointer of the concrete
  1937  // message type, but the details are implementation dependent.
  1938  // Validity is not part of the protobuf data model, and may not
  1939  // be preserved in marshaling or other operations.
  1940  func (x *fastReflection_TestAnyRequest) IsValid() bool {
  1941  	return x != nil
  1942  }
  1943  
  1944  // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
  1945  // This method may return nil.
  1946  //
  1947  // The returned methods type is identical to
  1948  // "google.golang.org/protobuf/runtime/protoiface".Methods.
  1949  // Consult the protoiface package documentation for details.
  1950  func (x *fastReflection_TestAnyRequest) ProtoMethods() *protoiface.Methods {
  1951  	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
  1952  		x := input.Message.Interface().(*TestAnyRequest)
  1953  		if x == nil {
  1954  			return protoiface.SizeOutput{
  1955  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1956  				Size:              0,
  1957  			}
  1958  		}
  1959  		options := runtime.SizeInputToOptions(input)
  1960  		_ = options
  1961  		var n int
  1962  		var l int
  1963  		_ = l
  1964  		if x.AnyAnimal != nil {
  1965  			l = options.Size(x.AnyAnimal)
  1966  			n += 1 + l + runtime.Sov(uint64(l))
  1967  		}
  1968  		if x.unknownFields != nil {
  1969  			n += len(x.unknownFields)
  1970  		}
  1971  		return protoiface.SizeOutput{
  1972  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1973  			Size:              n,
  1974  		}
  1975  	}
  1976  
  1977  	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
  1978  		x := input.Message.Interface().(*TestAnyRequest)
  1979  		if x == nil {
  1980  			return protoiface.MarshalOutput{
  1981  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  1982  				Buf:               input.Buf,
  1983  			}, nil
  1984  		}
  1985  		options := runtime.MarshalInputToOptions(input)
  1986  		_ = options
  1987  		size := options.Size(x)
  1988  		dAtA := make([]byte, size)
  1989  		i := len(dAtA)
  1990  		_ = i
  1991  		var l int
  1992  		_ = l
  1993  		if x.unknownFields != nil {
  1994  			i -= len(x.unknownFields)
  1995  			copy(dAtA[i:], x.unknownFields)
  1996  		}
  1997  		if x.AnyAnimal != nil {
  1998  			encoded, err := options.Marshal(x.AnyAnimal)
  1999  			if err != nil {
  2000  				return protoiface.MarshalOutput{
  2001  					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2002  					Buf:               input.Buf,
  2003  				}, err
  2004  			}
  2005  			i -= len(encoded)
  2006  			copy(dAtA[i:], encoded)
  2007  			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
  2008  			i--
  2009  			dAtA[i] = 0xa
  2010  		}
  2011  		if input.Buf != nil {
  2012  			input.Buf = append(input.Buf, dAtA...)
  2013  		} else {
  2014  			input.Buf = dAtA
  2015  		}
  2016  		return protoiface.MarshalOutput{
  2017  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2018  			Buf:               input.Buf,
  2019  		}, nil
  2020  	}
  2021  	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
  2022  		x := input.Message.Interface().(*TestAnyRequest)
  2023  		if x == nil {
  2024  			return protoiface.UnmarshalOutput{
  2025  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2026  				Flags:             input.Flags,
  2027  			}, nil
  2028  		}
  2029  		options := runtime.UnmarshalInputToOptions(input)
  2030  		_ = options
  2031  		dAtA := input.Buf
  2032  		l := len(dAtA)
  2033  		iNdEx := 0
  2034  		for iNdEx < l {
  2035  			preIndex := iNdEx
  2036  			var wire uint64
  2037  			for shift := uint(0); ; shift += 7 {
  2038  				if shift >= 64 {
  2039  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  2040  				}
  2041  				if iNdEx >= l {
  2042  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2043  				}
  2044  				b := dAtA[iNdEx]
  2045  				iNdEx++
  2046  				wire |= uint64(b&0x7F) << shift
  2047  				if b < 0x80 {
  2048  					break
  2049  				}
  2050  			}
  2051  			fieldNum := int32(wire >> 3)
  2052  			wireType := int(wire & 0x7)
  2053  			if wireType == 4 {
  2054  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TestAnyRequest: wiretype end group for non-group")
  2055  			}
  2056  			if fieldNum <= 0 {
  2057  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TestAnyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2058  			}
  2059  			switch fieldNum {
  2060  			case 1:
  2061  				if wireType != 2 {
  2062  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnyAnimal", wireType)
  2063  				}
  2064  				var msglen int
  2065  				for shift := uint(0); ; shift += 7 {
  2066  					if shift >= 64 {
  2067  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  2068  					}
  2069  					if iNdEx >= l {
  2070  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2071  					}
  2072  					b := dAtA[iNdEx]
  2073  					iNdEx++
  2074  					msglen |= int(b&0x7F) << shift
  2075  					if b < 0x80 {
  2076  						break
  2077  					}
  2078  				}
  2079  				if msglen < 0 {
  2080  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  2081  				}
  2082  				postIndex := iNdEx + msglen
  2083  				if postIndex < 0 {
  2084  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  2085  				}
  2086  				if postIndex > l {
  2087  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2088  				}
  2089  				if x.AnyAnimal == nil {
  2090  					x.AnyAnimal = &anypb.Any{}
  2091  				}
  2092  				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AnyAnimal); err != nil {
  2093  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
  2094  				}
  2095  				iNdEx = postIndex
  2096  			default:
  2097  				iNdEx = preIndex
  2098  				skippy, err := runtime.Skip(dAtA[iNdEx:])
  2099  				if err != nil {
  2100  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
  2101  				}
  2102  				if (skippy < 0) || (iNdEx+skippy) < 0 {
  2103  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  2104  				}
  2105  				if (iNdEx + skippy) > l {
  2106  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2107  				}
  2108  				if !options.DiscardUnknown {
  2109  					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  2110  				}
  2111  				iNdEx += skippy
  2112  			}
  2113  		}
  2114  
  2115  		if iNdEx > l {
  2116  			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2117  		}
  2118  		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
  2119  	}
  2120  	return &protoiface.Methods{
  2121  		NoUnkeyedLiterals: struct{}{},
  2122  		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
  2123  		Size:              size,
  2124  		Marshal:           marshal,
  2125  		Unmarshal:         unmarshal,
  2126  		Merge:             nil,
  2127  		CheckInitialized:  nil,
  2128  	}
  2129  }
  2130  
  2131  var (
  2132  	md_TestAnyResponse            protoreflect.MessageDescriptor
  2133  	fd_TestAnyResponse_has_animal protoreflect.FieldDescriptor
  2134  )
  2135  
  2136  func init() {
  2137  	file_testpb_query_proto_init()
  2138  	md_TestAnyResponse = File_testpb_query_proto.Messages().ByName("TestAnyResponse")
  2139  	fd_TestAnyResponse_has_animal = md_TestAnyResponse.Fields().ByName("has_animal")
  2140  }
  2141  
  2142  var _ protoreflect.Message = (*fastReflection_TestAnyResponse)(nil)
  2143  
  2144  type fastReflection_TestAnyResponse TestAnyResponse
  2145  
  2146  func (x *TestAnyResponse) ProtoReflect() protoreflect.Message {
  2147  	return (*fastReflection_TestAnyResponse)(x)
  2148  }
  2149  
  2150  func (x *TestAnyResponse) slowProtoReflect() protoreflect.Message {
  2151  	mi := &file_testpb_query_proto_msgTypes[5]
  2152  	if protoimpl.UnsafeEnabled && x != nil {
  2153  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2154  		if ms.LoadMessageInfo() == nil {
  2155  			ms.StoreMessageInfo(mi)
  2156  		}
  2157  		return ms
  2158  	}
  2159  	return mi.MessageOf(x)
  2160  }
  2161  
  2162  var _fastReflection_TestAnyResponse_messageType fastReflection_TestAnyResponse_messageType
  2163  var _ protoreflect.MessageType = fastReflection_TestAnyResponse_messageType{}
  2164  
  2165  type fastReflection_TestAnyResponse_messageType struct{}
  2166  
  2167  func (x fastReflection_TestAnyResponse_messageType) Zero() protoreflect.Message {
  2168  	return (*fastReflection_TestAnyResponse)(nil)
  2169  }
  2170  func (x fastReflection_TestAnyResponse_messageType) New() protoreflect.Message {
  2171  	return new(fastReflection_TestAnyResponse)
  2172  }
  2173  func (x fastReflection_TestAnyResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
  2174  	return md_TestAnyResponse
  2175  }
  2176  
  2177  // Descriptor returns message descriptor, which contains only the protobuf
  2178  // type information for the message.
  2179  func (x *fastReflection_TestAnyResponse) Descriptor() protoreflect.MessageDescriptor {
  2180  	return md_TestAnyResponse
  2181  }
  2182  
  2183  // Type returns the message type, which encapsulates both Go and protobuf
  2184  // type information. If the Go type information is not needed,
  2185  // it is recommended that the message descriptor be used instead.
  2186  func (x *fastReflection_TestAnyResponse) Type() protoreflect.MessageType {
  2187  	return _fastReflection_TestAnyResponse_messageType
  2188  }
  2189  
  2190  // New returns a newly allocated and mutable empty message.
  2191  func (x *fastReflection_TestAnyResponse) New() protoreflect.Message {
  2192  	return new(fastReflection_TestAnyResponse)
  2193  }
  2194  
  2195  // Interface unwraps the message reflection interface and
  2196  // returns the underlying ProtoMessage interface.
  2197  func (x *fastReflection_TestAnyResponse) Interface() protoreflect.ProtoMessage {
  2198  	return (*TestAnyResponse)(x)
  2199  }
  2200  
  2201  // Range iterates over every populated field in an undefined order,
  2202  // calling f for each field descriptor and value encountered.
  2203  // Range returns immediately if f returns false.
  2204  // While iterating, mutating operations may only be performed
  2205  // on the current field descriptor.
  2206  func (x *fastReflection_TestAnyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
  2207  	if x.HasAnimal != nil {
  2208  		value := protoreflect.ValueOfMessage(x.HasAnimal.ProtoReflect())
  2209  		if !f(fd_TestAnyResponse_has_animal, value) {
  2210  			return
  2211  		}
  2212  	}
  2213  }
  2214  
  2215  // Has reports whether a field is populated.
  2216  //
  2217  // Some fields have the property of nullability where it is possible to
  2218  // distinguish between the default value of a field and whether the field
  2219  // was explicitly populated with the default value. Singular message fields,
  2220  // member fields of a oneof, and proto2 scalar fields are nullable. Such
  2221  // fields are populated only if explicitly set.
  2222  //
  2223  // In other cases (aside from the nullable cases above),
  2224  // a proto3 scalar field is populated if it contains a non-zero value, and
  2225  // a repeated field is populated if it is non-empty.
  2226  func (x *fastReflection_TestAnyResponse) Has(fd protoreflect.FieldDescriptor) bool {
  2227  	switch fd.FullName() {
  2228  	case "testpb.TestAnyResponse.has_animal":
  2229  		return x.HasAnimal != nil
  2230  	default:
  2231  		if fd.IsExtension() {
  2232  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyResponse"))
  2233  		}
  2234  		panic(fmt.Errorf("message testpb.TestAnyResponse does not contain field %s", fd.FullName()))
  2235  	}
  2236  }
  2237  
  2238  // Clear clears the field such that a subsequent Has call reports false.
  2239  //
  2240  // Clearing an extension field clears both the extension type and value
  2241  // associated with the given field number.
  2242  //
  2243  // Clear is a mutating operation and unsafe for concurrent use.
  2244  func (x *fastReflection_TestAnyResponse) Clear(fd protoreflect.FieldDescriptor) {
  2245  	switch fd.FullName() {
  2246  	case "testpb.TestAnyResponse.has_animal":
  2247  		x.HasAnimal = nil
  2248  	default:
  2249  		if fd.IsExtension() {
  2250  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyResponse"))
  2251  		}
  2252  		panic(fmt.Errorf("message testpb.TestAnyResponse does not contain field %s", fd.FullName()))
  2253  	}
  2254  }
  2255  
  2256  // Get retrieves the value for a field.
  2257  //
  2258  // For unpopulated scalars, it returns the default value, where
  2259  // the default value of a bytes scalar is guaranteed to be a copy.
  2260  // For unpopulated composite types, it returns an empty, read-only view
  2261  // of the value; to obtain a mutable reference, use Mutable.
  2262  func (x *fastReflection_TestAnyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
  2263  	switch descriptor.FullName() {
  2264  	case "testpb.TestAnyResponse.has_animal":
  2265  		value := x.HasAnimal
  2266  		return protoreflect.ValueOfMessage(value.ProtoReflect())
  2267  	default:
  2268  		if descriptor.IsExtension() {
  2269  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyResponse"))
  2270  		}
  2271  		panic(fmt.Errorf("message testpb.TestAnyResponse does not contain field %s", descriptor.FullName()))
  2272  	}
  2273  }
  2274  
  2275  // Set stores the value for a field.
  2276  //
  2277  // For a field belonging to a oneof, it implicitly clears any other field
  2278  // that may be currently set within the same oneof.
  2279  // For extension fields, it implicitly stores the provided ExtensionType.
  2280  // When setting a composite type, it is unspecified whether the stored value
  2281  // aliases the source's memory in any way. If the composite value is an
  2282  // empty, read-only value, then it panics.
  2283  //
  2284  // Set is a mutating operation and unsafe for concurrent use.
  2285  func (x *fastReflection_TestAnyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
  2286  	switch fd.FullName() {
  2287  	case "testpb.TestAnyResponse.has_animal":
  2288  		x.HasAnimal = value.Message().Interface().(*HasAnimal)
  2289  	default:
  2290  		if fd.IsExtension() {
  2291  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyResponse"))
  2292  		}
  2293  		panic(fmt.Errorf("message testpb.TestAnyResponse does not contain field %s", fd.FullName()))
  2294  	}
  2295  }
  2296  
  2297  // Mutable returns a mutable reference to a composite type.
  2298  //
  2299  // If the field is unpopulated, it may allocate a composite value.
  2300  // For a field belonging to a oneof, it implicitly clears any other field
  2301  // that may be currently set within the same oneof.
  2302  // For extension fields, it implicitly stores the provided ExtensionType
  2303  // if not already stored.
  2304  // It panics if the field does not contain a composite type.
  2305  //
  2306  // Mutable is a mutating operation and unsafe for concurrent use.
  2307  func (x *fastReflection_TestAnyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
  2308  	switch fd.FullName() {
  2309  	case "testpb.TestAnyResponse.has_animal":
  2310  		if x.HasAnimal == nil {
  2311  			x.HasAnimal = new(HasAnimal)
  2312  		}
  2313  		return protoreflect.ValueOfMessage(x.HasAnimal.ProtoReflect())
  2314  	default:
  2315  		if fd.IsExtension() {
  2316  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyResponse"))
  2317  		}
  2318  		panic(fmt.Errorf("message testpb.TestAnyResponse does not contain field %s", fd.FullName()))
  2319  	}
  2320  }
  2321  
  2322  // NewField returns a new value that is assignable to the field
  2323  // for the given descriptor. For scalars, this returns the default value.
  2324  // For lists, maps, and messages, this returns a new, empty, mutable value.
  2325  func (x *fastReflection_TestAnyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
  2326  	switch fd.FullName() {
  2327  	case "testpb.TestAnyResponse.has_animal":
  2328  		m := new(HasAnimal)
  2329  		return protoreflect.ValueOfMessage(m.ProtoReflect())
  2330  	default:
  2331  		if fd.IsExtension() {
  2332  			panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.TestAnyResponse"))
  2333  		}
  2334  		panic(fmt.Errorf("message testpb.TestAnyResponse does not contain field %s", fd.FullName()))
  2335  	}
  2336  }
  2337  
  2338  // WhichOneof reports which field within the oneof is populated,
  2339  // returning nil if none are populated.
  2340  // It panics if the oneof descriptor does not belong to this message.
  2341  func (x *fastReflection_TestAnyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
  2342  	switch d.FullName() {
  2343  	default:
  2344  		panic(fmt.Errorf("%s is not a oneof field in testpb.TestAnyResponse", d.FullName()))
  2345  	}
  2346  	panic("unreachable")
  2347  }
  2348  
  2349  // GetUnknown retrieves the entire list of unknown fields.
  2350  // The caller may only mutate the contents of the RawFields
  2351  // if the mutated bytes are stored back into the message with SetUnknown.
  2352  func (x *fastReflection_TestAnyResponse) GetUnknown() protoreflect.RawFields {
  2353  	return x.unknownFields
  2354  }
  2355  
  2356  // SetUnknown stores an entire list of unknown fields.
  2357  // The raw fields must be syntactically valid according to the wire format.
  2358  // An implementation may panic if this is not the case.
  2359  // Once stored, the caller must not mutate the content of the RawFields.
  2360  // An empty RawFields may be passed to clear the fields.
  2361  //
  2362  // SetUnknown is a mutating operation and unsafe for concurrent use.
  2363  func (x *fastReflection_TestAnyResponse) SetUnknown(fields protoreflect.RawFields) {
  2364  	x.unknownFields = fields
  2365  }
  2366  
  2367  // IsValid reports whether the message is valid.
  2368  //
  2369  // An invalid message is an empty, read-only value.
  2370  //
  2371  // An invalid message often corresponds to a nil pointer of the concrete
  2372  // message type, but the details are implementation dependent.
  2373  // Validity is not part of the protobuf data model, and may not
  2374  // be preserved in marshaling or other operations.
  2375  func (x *fastReflection_TestAnyResponse) IsValid() bool {
  2376  	return x != nil
  2377  }
  2378  
  2379  // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
  2380  // This method may return nil.
  2381  //
  2382  // The returned methods type is identical to
  2383  // "google.golang.org/protobuf/runtime/protoiface".Methods.
  2384  // Consult the protoiface package documentation for details.
  2385  func (x *fastReflection_TestAnyResponse) ProtoMethods() *protoiface.Methods {
  2386  	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
  2387  		x := input.Message.Interface().(*TestAnyResponse)
  2388  		if x == nil {
  2389  			return protoiface.SizeOutput{
  2390  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2391  				Size:              0,
  2392  			}
  2393  		}
  2394  		options := runtime.SizeInputToOptions(input)
  2395  		_ = options
  2396  		var n int
  2397  		var l int
  2398  		_ = l
  2399  		if x.HasAnimal != nil {
  2400  			l = options.Size(x.HasAnimal)
  2401  			n += 1 + l + runtime.Sov(uint64(l))
  2402  		}
  2403  		if x.unknownFields != nil {
  2404  			n += len(x.unknownFields)
  2405  		}
  2406  		return protoiface.SizeOutput{
  2407  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2408  			Size:              n,
  2409  		}
  2410  	}
  2411  
  2412  	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
  2413  		x := input.Message.Interface().(*TestAnyResponse)
  2414  		if x == nil {
  2415  			return protoiface.MarshalOutput{
  2416  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2417  				Buf:               input.Buf,
  2418  			}, nil
  2419  		}
  2420  		options := runtime.MarshalInputToOptions(input)
  2421  		_ = options
  2422  		size := options.Size(x)
  2423  		dAtA := make([]byte, size)
  2424  		i := len(dAtA)
  2425  		_ = i
  2426  		var l int
  2427  		_ = l
  2428  		if x.unknownFields != nil {
  2429  			i -= len(x.unknownFields)
  2430  			copy(dAtA[i:], x.unknownFields)
  2431  		}
  2432  		if x.HasAnimal != nil {
  2433  			encoded, err := options.Marshal(x.HasAnimal)
  2434  			if err != nil {
  2435  				return protoiface.MarshalOutput{
  2436  					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2437  					Buf:               input.Buf,
  2438  				}, err
  2439  			}
  2440  			i -= len(encoded)
  2441  			copy(dAtA[i:], encoded)
  2442  			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
  2443  			i--
  2444  			dAtA[i] = 0xa
  2445  		}
  2446  		if input.Buf != nil {
  2447  			input.Buf = append(input.Buf, dAtA...)
  2448  		} else {
  2449  			input.Buf = dAtA
  2450  		}
  2451  		return protoiface.MarshalOutput{
  2452  			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2453  			Buf:               input.Buf,
  2454  		}, nil
  2455  	}
  2456  	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
  2457  		x := input.Message.Interface().(*TestAnyResponse)
  2458  		if x == nil {
  2459  			return protoiface.UnmarshalOutput{
  2460  				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
  2461  				Flags:             input.Flags,
  2462  			}, nil
  2463  		}
  2464  		options := runtime.UnmarshalInputToOptions(input)
  2465  		_ = options
  2466  		dAtA := input.Buf
  2467  		l := len(dAtA)
  2468  		iNdEx := 0
  2469  		for iNdEx < l {
  2470  			preIndex := iNdEx
  2471  			var wire uint64
  2472  			for shift := uint(0); ; shift += 7 {
  2473  				if shift >= 64 {
  2474  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  2475  				}
  2476  				if iNdEx >= l {
  2477  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2478  				}
  2479  				b := dAtA[iNdEx]
  2480  				iNdEx++
  2481  				wire |= uint64(b&0x7F) << shift
  2482  				if b < 0x80 {
  2483  					break
  2484  				}
  2485  			}
  2486  			fieldNum := int32(wire >> 3)
  2487  			wireType := int(wire & 0x7)
  2488  			if wireType == 4 {
  2489  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TestAnyResponse: wiretype end group for non-group")
  2490  			}
  2491  			if fieldNum <= 0 {
  2492  				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TestAnyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2493  			}
  2494  			switch fieldNum {
  2495  			case 1:
  2496  				if wireType != 2 {
  2497  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HasAnimal", wireType)
  2498  				}
  2499  				var msglen int
  2500  				for shift := uint(0); ; shift += 7 {
  2501  					if shift >= 64 {
  2502  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
  2503  					}
  2504  					if iNdEx >= l {
  2505  						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2506  					}
  2507  					b := dAtA[iNdEx]
  2508  					iNdEx++
  2509  					msglen |= int(b&0x7F) << shift
  2510  					if b < 0x80 {
  2511  						break
  2512  					}
  2513  				}
  2514  				if msglen < 0 {
  2515  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  2516  				}
  2517  				postIndex := iNdEx + msglen
  2518  				if postIndex < 0 {
  2519  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  2520  				}
  2521  				if postIndex > l {
  2522  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2523  				}
  2524  				if x.HasAnimal == nil {
  2525  					x.HasAnimal = &HasAnimal{}
  2526  				}
  2527  				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.HasAnimal); err != nil {
  2528  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
  2529  				}
  2530  				iNdEx = postIndex
  2531  			default:
  2532  				iNdEx = preIndex
  2533  				skippy, err := runtime.Skip(dAtA[iNdEx:])
  2534  				if err != nil {
  2535  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
  2536  				}
  2537  				if (skippy < 0) || (iNdEx+skippy) < 0 {
  2538  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
  2539  				}
  2540  				if (iNdEx + skippy) > l {
  2541  					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2542  				}
  2543  				if !options.DiscardUnknown {
  2544  					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  2545  				}
  2546  				iNdEx += skippy
  2547  			}
  2548  		}
  2549  
  2550  		if iNdEx > l {
  2551  			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
  2552  		}
  2553  		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
  2554  	}
  2555  	return &protoiface.Methods{
  2556  		NoUnkeyedLiterals: struct{}{},
  2557  		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
  2558  		Size:              size,
  2559  		Marshal:           marshal,
  2560  		Unmarshal:         unmarshal,
  2561  		Merge:             nil,
  2562  		CheckInitialized:  nil,
  2563  	}
  2564  }
  2565  
  2566  // Code generated by protoc-gen-go. DO NOT EDIT.
  2567  // versions:
  2568  // 	protoc-gen-go v1.27.0
  2569  // 	protoc        (unknown)
  2570  // source: testpb/query.proto
  2571  
  2572  const (
  2573  	// Verify that this generated code is sufficiently up-to-date.
  2574  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  2575  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  2576  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  2577  )
  2578  
  2579  type EchoRequest struct {
  2580  	state         protoimpl.MessageState
  2581  	sizeCache     protoimpl.SizeCache
  2582  	unknownFields protoimpl.UnknownFields
  2583  
  2584  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  2585  }
  2586  
  2587  func (x *EchoRequest) Reset() {
  2588  	*x = EchoRequest{}
  2589  	if protoimpl.UnsafeEnabled {
  2590  		mi := &file_testpb_query_proto_msgTypes[0]
  2591  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2592  		ms.StoreMessageInfo(mi)
  2593  	}
  2594  }
  2595  
  2596  func (x *EchoRequest) String() string {
  2597  	return protoimpl.X.MessageStringOf(x)
  2598  }
  2599  
  2600  func (*EchoRequest) ProtoMessage() {}
  2601  
  2602  // Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
  2603  func (*EchoRequest) Descriptor() ([]byte, []int) {
  2604  	return file_testpb_query_proto_rawDescGZIP(), []int{0}
  2605  }
  2606  
  2607  func (x *EchoRequest) GetMessage() string {
  2608  	if x != nil {
  2609  		return x.Message
  2610  	}
  2611  	return ""
  2612  }
  2613  
  2614  type EchoResponse struct {
  2615  	state         protoimpl.MessageState
  2616  	sizeCache     protoimpl.SizeCache
  2617  	unknownFields protoimpl.UnknownFields
  2618  
  2619  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  2620  }
  2621  
  2622  func (x *EchoResponse) Reset() {
  2623  	*x = EchoResponse{}
  2624  	if protoimpl.UnsafeEnabled {
  2625  		mi := &file_testpb_query_proto_msgTypes[1]
  2626  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2627  		ms.StoreMessageInfo(mi)
  2628  	}
  2629  }
  2630  
  2631  func (x *EchoResponse) String() string {
  2632  	return protoimpl.X.MessageStringOf(x)
  2633  }
  2634  
  2635  func (*EchoResponse) ProtoMessage() {}
  2636  
  2637  // Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
  2638  func (*EchoResponse) Descriptor() ([]byte, []int) {
  2639  	return file_testpb_query_proto_rawDescGZIP(), []int{1}
  2640  }
  2641  
  2642  func (x *EchoResponse) GetMessage() string {
  2643  	if x != nil {
  2644  		return x.Message
  2645  	}
  2646  	return ""
  2647  }
  2648  
  2649  type SayHelloRequest struct {
  2650  	state         protoimpl.MessageState
  2651  	sizeCache     protoimpl.SizeCache
  2652  	unknownFields protoimpl.UnknownFields
  2653  
  2654  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  2655  }
  2656  
  2657  func (x *SayHelloRequest) Reset() {
  2658  	*x = SayHelloRequest{}
  2659  	if protoimpl.UnsafeEnabled {
  2660  		mi := &file_testpb_query_proto_msgTypes[2]
  2661  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2662  		ms.StoreMessageInfo(mi)
  2663  	}
  2664  }
  2665  
  2666  func (x *SayHelloRequest) String() string {
  2667  	return protoimpl.X.MessageStringOf(x)
  2668  }
  2669  
  2670  func (*SayHelloRequest) ProtoMessage() {}
  2671  
  2672  // Deprecated: Use SayHelloRequest.ProtoReflect.Descriptor instead.
  2673  func (*SayHelloRequest) Descriptor() ([]byte, []int) {
  2674  	return file_testpb_query_proto_rawDescGZIP(), []int{2}
  2675  }
  2676  
  2677  func (x *SayHelloRequest) GetName() string {
  2678  	if x != nil {
  2679  		return x.Name
  2680  	}
  2681  	return ""
  2682  }
  2683  
  2684  type SayHelloResponse struct {
  2685  	state         protoimpl.MessageState
  2686  	sizeCache     protoimpl.SizeCache
  2687  	unknownFields protoimpl.UnknownFields
  2688  
  2689  	Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
  2690  }
  2691  
  2692  func (x *SayHelloResponse) Reset() {
  2693  	*x = SayHelloResponse{}
  2694  	if protoimpl.UnsafeEnabled {
  2695  		mi := &file_testpb_query_proto_msgTypes[3]
  2696  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2697  		ms.StoreMessageInfo(mi)
  2698  	}
  2699  }
  2700  
  2701  func (x *SayHelloResponse) String() string {
  2702  	return protoimpl.X.MessageStringOf(x)
  2703  }
  2704  
  2705  func (*SayHelloResponse) ProtoMessage() {}
  2706  
  2707  // Deprecated: Use SayHelloResponse.ProtoReflect.Descriptor instead.
  2708  func (*SayHelloResponse) Descriptor() ([]byte, []int) {
  2709  	return file_testpb_query_proto_rawDescGZIP(), []int{3}
  2710  }
  2711  
  2712  func (x *SayHelloResponse) GetGreeting() string {
  2713  	if x != nil {
  2714  		return x.Greeting
  2715  	}
  2716  	return ""
  2717  }
  2718  
  2719  type TestAnyRequest struct {
  2720  	state         protoimpl.MessageState
  2721  	sizeCache     protoimpl.SizeCache
  2722  	unknownFields protoimpl.UnknownFields
  2723  
  2724  	AnyAnimal *anypb.Any `protobuf:"bytes,1,opt,name=any_animal,json=anyAnimal,proto3" json:"any_animal,omitempty"`
  2725  }
  2726  
  2727  func (x *TestAnyRequest) Reset() {
  2728  	*x = TestAnyRequest{}
  2729  	if protoimpl.UnsafeEnabled {
  2730  		mi := &file_testpb_query_proto_msgTypes[4]
  2731  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2732  		ms.StoreMessageInfo(mi)
  2733  	}
  2734  }
  2735  
  2736  func (x *TestAnyRequest) String() string {
  2737  	return protoimpl.X.MessageStringOf(x)
  2738  }
  2739  
  2740  func (*TestAnyRequest) ProtoMessage() {}
  2741  
  2742  // Deprecated: Use TestAnyRequest.ProtoReflect.Descriptor instead.
  2743  func (*TestAnyRequest) Descriptor() ([]byte, []int) {
  2744  	return file_testpb_query_proto_rawDescGZIP(), []int{4}
  2745  }
  2746  
  2747  func (x *TestAnyRequest) GetAnyAnimal() *anypb.Any {
  2748  	if x != nil {
  2749  		return x.AnyAnimal
  2750  	}
  2751  	return nil
  2752  }
  2753  
  2754  type TestAnyResponse struct {
  2755  	state         protoimpl.MessageState
  2756  	sizeCache     protoimpl.SizeCache
  2757  	unknownFields protoimpl.UnknownFields
  2758  
  2759  	HasAnimal *HasAnimal `protobuf:"bytes,1,opt,name=has_animal,json=hasAnimal,proto3" json:"has_animal,omitempty"`
  2760  }
  2761  
  2762  func (x *TestAnyResponse) Reset() {
  2763  	*x = TestAnyResponse{}
  2764  	if protoimpl.UnsafeEnabled {
  2765  		mi := &file_testpb_query_proto_msgTypes[5]
  2766  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2767  		ms.StoreMessageInfo(mi)
  2768  	}
  2769  }
  2770  
  2771  func (x *TestAnyResponse) String() string {
  2772  	return protoimpl.X.MessageStringOf(x)
  2773  }
  2774  
  2775  func (*TestAnyResponse) ProtoMessage() {}
  2776  
  2777  // Deprecated: Use TestAnyResponse.ProtoReflect.Descriptor instead.
  2778  func (*TestAnyResponse) Descriptor() ([]byte, []int) {
  2779  	return file_testpb_query_proto_rawDescGZIP(), []int{5}
  2780  }
  2781  
  2782  func (x *TestAnyResponse) GetHasAnimal() *HasAnimal {
  2783  	if x != nil {
  2784  		return x.HasAnimal
  2785  	}
  2786  	return nil
  2787  }
  2788  
  2789  var File_testpb_query_proto protoreflect.FileDescriptor
  2790  
  2791  var file_testpb_query_proto_rawDesc = []byte{
  2792  	0x0a, 0x12, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70,
  2793  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x19, 0x67, 0x6f,
  2794  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e,
  2795  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f,
  2796  	0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27,
  2797  	0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
  2798  	0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  2799  	0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52,
  2800  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  2801  	0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  2802  	0x65, 0x22, 0x25, 0x0a, 0x0f, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71,
  2803  	0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  2804  	0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x10, 0x53, 0x61, 0x79, 0x48,
  2805  	0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08,
  2806  	0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  2807  	0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x45, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74,
  2808  	0x41, 0x6e, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x0a, 0x61, 0x6e,
  2809  	0x79, 0x5f, 0x61, 0x6e, 0x69, 0x6d, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
  2810  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  2811  	0x2e, 0x41, 0x6e, 0x79, 0x52, 0x09, 0x61, 0x6e, 0x79, 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x6c, 0x22,
  2812  	0x43, 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  2813  	0x73, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x61, 0x6e, 0x69, 0x6d, 0x61, 0x6c,
  2814  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e,
  2815  	0x48, 0x61, 0x73, 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x6c, 0x52, 0x09, 0x68, 0x61, 0x73, 0x41, 0x6e,
  2816  	0x69, 0x6d, 0x61, 0x6c, 0x32, 0xb5, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31,
  2817  	0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e,
  2818  	0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x74, 0x65,
  2819  	0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  2820  	0x65, 0x12, 0x3d, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x17, 0x2e,
  2821  	0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
  2822  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e,
  2823  	0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  2824  	0x12, 0x3a, 0x0a, 0x07, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x79, 0x12, 0x16, 0x2e, 0x74, 0x65,
  2825  	0x73, 0x74, 0x70, 0x62, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x79, 0x52, 0x65, 0x71, 0x75,
  2826  	0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x54, 0x65, 0x73,
  2827  	0x74, 0x41, 0x6e, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x8e, 0x01, 0x0a,
  2828  	0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, 0x0a, 0x51, 0x75, 0x65,
  2829  	0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75,
  2830  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73,
  2831  	0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x75, 0x74, 0x69, 0x6c,
  2832  	0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72,
  2833  	0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06,
  2834  	0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2,
  2835  	0x02, 0x12, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
  2836  	0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70,
  2837  	0x72, 0x6f, 0x74, 0x6f, 0x33,
  2838  }
  2839  
  2840  var (
  2841  	file_testpb_query_proto_rawDescOnce sync.Once
  2842  	file_testpb_query_proto_rawDescData = file_testpb_query_proto_rawDesc
  2843  )
  2844  
  2845  func file_testpb_query_proto_rawDescGZIP() []byte {
  2846  	file_testpb_query_proto_rawDescOnce.Do(func() {
  2847  		file_testpb_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_query_proto_rawDescData)
  2848  	})
  2849  	return file_testpb_query_proto_rawDescData
  2850  }
  2851  
  2852  var file_testpb_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  2853  var file_testpb_query_proto_goTypes = []interface{}{
  2854  	(*EchoRequest)(nil),      // 0: testpb.EchoRequest
  2855  	(*EchoResponse)(nil),     // 1: testpb.EchoResponse
  2856  	(*SayHelloRequest)(nil),  // 2: testpb.SayHelloRequest
  2857  	(*SayHelloResponse)(nil), // 3: testpb.SayHelloResponse
  2858  	(*TestAnyRequest)(nil),   // 4: testpb.TestAnyRequest
  2859  	(*TestAnyResponse)(nil),  // 5: testpb.TestAnyResponse
  2860  	(*anypb.Any)(nil),        // 6: google.protobuf.Any
  2861  	(*HasAnimal)(nil),        // 7: testpb.HasAnimal
  2862  }
  2863  var file_testpb_query_proto_depIdxs = []int32{
  2864  	6, // 0: testpb.TestAnyRequest.any_animal:type_name -> google.protobuf.Any
  2865  	7, // 1: testpb.TestAnyResponse.has_animal:type_name -> testpb.HasAnimal
  2866  	0, // 2: testpb.Query.Echo:input_type -> testpb.EchoRequest
  2867  	2, // 3: testpb.Query.SayHello:input_type -> testpb.SayHelloRequest
  2868  	4, // 4: testpb.Query.TestAny:input_type -> testpb.TestAnyRequest
  2869  	1, // 5: testpb.Query.Echo:output_type -> testpb.EchoResponse
  2870  	3, // 6: testpb.Query.SayHello:output_type -> testpb.SayHelloResponse
  2871  	5, // 7: testpb.Query.TestAny:output_type -> testpb.TestAnyResponse
  2872  	5, // [5:8] is the sub-list for method output_type
  2873  	2, // [2:5] is the sub-list for method input_type
  2874  	2, // [2:2] is the sub-list for extension type_name
  2875  	2, // [2:2] is the sub-list for extension extendee
  2876  	0, // [0:2] is the sub-list for field type_name
  2877  }
  2878  
  2879  func init() { file_testpb_query_proto_init() }
  2880  func file_testpb_query_proto_init() {
  2881  	if File_testpb_query_proto != nil {
  2882  		return
  2883  	}
  2884  	file_testpb_testdata_proto_init()
  2885  	if !protoimpl.UnsafeEnabled {
  2886  		file_testpb_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  2887  			switch v := v.(*EchoRequest); i {
  2888  			case 0:
  2889  				return &v.state
  2890  			case 1:
  2891  				return &v.sizeCache
  2892  			case 2:
  2893  				return &v.unknownFields
  2894  			default:
  2895  				return nil
  2896  			}
  2897  		}
  2898  		file_testpb_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  2899  			switch v := v.(*EchoResponse); i {
  2900  			case 0:
  2901  				return &v.state
  2902  			case 1:
  2903  				return &v.sizeCache
  2904  			case 2:
  2905  				return &v.unknownFields
  2906  			default:
  2907  				return nil
  2908  			}
  2909  		}
  2910  		file_testpb_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  2911  			switch v := v.(*SayHelloRequest); i {
  2912  			case 0:
  2913  				return &v.state
  2914  			case 1:
  2915  				return &v.sizeCache
  2916  			case 2:
  2917  				return &v.unknownFields
  2918  			default:
  2919  				return nil
  2920  			}
  2921  		}
  2922  		file_testpb_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  2923  			switch v := v.(*SayHelloResponse); i {
  2924  			case 0:
  2925  				return &v.state
  2926  			case 1:
  2927  				return &v.sizeCache
  2928  			case 2:
  2929  				return &v.unknownFields
  2930  			default:
  2931  				return nil
  2932  			}
  2933  		}
  2934  		file_testpb_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  2935  			switch v := v.(*TestAnyRequest); i {
  2936  			case 0:
  2937  				return &v.state
  2938  			case 1:
  2939  				return &v.sizeCache
  2940  			case 2:
  2941  				return &v.unknownFields
  2942  			default:
  2943  				return nil
  2944  			}
  2945  		}
  2946  		file_testpb_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  2947  			switch v := v.(*TestAnyResponse); i {
  2948  			case 0:
  2949  				return &v.state
  2950  			case 1:
  2951  				return &v.sizeCache
  2952  			case 2:
  2953  				return &v.unknownFields
  2954  			default:
  2955  				return nil
  2956  			}
  2957  		}
  2958  	}
  2959  	type x struct{}
  2960  	out := protoimpl.TypeBuilder{
  2961  		File: protoimpl.DescBuilder{
  2962  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  2963  			RawDescriptor: file_testpb_query_proto_rawDesc,
  2964  			NumEnums:      0,
  2965  			NumMessages:   6,
  2966  			NumExtensions: 0,
  2967  			NumServices:   1,
  2968  		},
  2969  		GoTypes:           file_testpb_query_proto_goTypes,
  2970  		DependencyIndexes: file_testpb_query_proto_depIdxs,
  2971  		MessageInfos:      file_testpb_query_proto_msgTypes,
  2972  	}.Build()
  2973  	File_testpb_query_proto = out.File
  2974  	file_testpb_query_proto_rawDesc = nil
  2975  	file_testpb_query_proto_goTypes = nil
  2976  	file_testpb_query_proto_depIdxs = nil
  2977  }