google.golang.org/grpc@v1.72.2/reflection/grpc_testing/proto2.pb.go (about)

     1  // Copyright 2017 gRPC authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.36.5
    18  // 	protoc        v5.27.1
    19  // source: reflection/grpc_testing/proto2.proto
    20  
    21  package grpc_testing
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  	unsafe "unsafe"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  type ToBeExtended struct {
    39  	state           protoimpl.MessageState `protogen:"open.v1"`
    40  	Foo             *int32                 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
    41  	extensionFields protoimpl.ExtensionFields
    42  	unknownFields   protoimpl.UnknownFields
    43  	sizeCache       protoimpl.SizeCache
    44  }
    45  
    46  func (x *ToBeExtended) Reset() {
    47  	*x = ToBeExtended{}
    48  	mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0]
    49  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  	ms.StoreMessageInfo(mi)
    51  }
    52  
    53  func (x *ToBeExtended) String() string {
    54  	return protoimpl.X.MessageStringOf(x)
    55  }
    56  
    57  func (*ToBeExtended) ProtoMessage() {}
    58  
    59  func (x *ToBeExtended) ProtoReflect() protoreflect.Message {
    60  	mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0]
    61  	if x != nil {
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		if ms.LoadMessageInfo() == nil {
    64  			ms.StoreMessageInfo(mi)
    65  		}
    66  		return ms
    67  	}
    68  	return mi.MessageOf(x)
    69  }
    70  
    71  // Deprecated: Use ToBeExtended.ProtoReflect.Descriptor instead.
    72  func (*ToBeExtended) Descriptor() ([]byte, []int) {
    73  	return file_reflection_grpc_testing_proto2_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  func (x *ToBeExtended) GetFoo() int32 {
    77  	if x != nil && x.Foo != nil {
    78  		return *x.Foo
    79  	}
    80  	return 0
    81  }
    82  
    83  var File_reflection_grpc_testing_proto2_proto protoreflect.FileDescriptor
    84  
    85  var file_reflection_grpc_testing_proto2_proto_rawDesc = string([]byte{
    86  	0x0a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
    87  	0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
    88  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
    89  	0x74, 0x69, 0x6e, 0x67, 0x22, 0x26, 0x0a, 0x0c, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65,
    90  	0x6e, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x02, 0x28,
    91  	0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x2a, 0x04, 0x08, 0x0a, 0x10, 0x1f, 0x42, 0x30, 0x5a, 0x2e,
    92  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
    93  	0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f,
    94  	0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
    95  })
    96  
    97  var (
    98  	file_reflection_grpc_testing_proto2_proto_rawDescOnce sync.Once
    99  	file_reflection_grpc_testing_proto2_proto_rawDescData []byte
   100  )
   101  
   102  func file_reflection_grpc_testing_proto2_proto_rawDescGZIP() []byte {
   103  	file_reflection_grpc_testing_proto2_proto_rawDescOnce.Do(func() {
   104  		file_reflection_grpc_testing_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_proto_rawDesc), len(file_reflection_grpc_testing_proto2_proto_rawDesc)))
   105  	})
   106  	return file_reflection_grpc_testing_proto2_proto_rawDescData
   107  }
   108  
   109  var file_reflection_grpc_testing_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   110  var file_reflection_grpc_testing_proto2_proto_goTypes = []any{
   111  	(*ToBeExtended)(nil), // 0: grpc.testing.ToBeExtended
   112  }
   113  var file_reflection_grpc_testing_proto2_proto_depIdxs = []int32{
   114  	0, // [0:0] is the sub-list for method output_type
   115  	0, // [0:0] is the sub-list for method input_type
   116  	0, // [0:0] is the sub-list for extension type_name
   117  	0, // [0:0] is the sub-list for extension extendee
   118  	0, // [0:0] is the sub-list for field type_name
   119  }
   120  
   121  func init() { file_reflection_grpc_testing_proto2_proto_init() }
   122  func file_reflection_grpc_testing_proto2_proto_init() {
   123  	if File_reflection_grpc_testing_proto2_proto != nil {
   124  		return
   125  	}
   126  	type x struct{}
   127  	out := protoimpl.TypeBuilder{
   128  		File: protoimpl.DescBuilder{
   129  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   130  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_proto_rawDesc), len(file_reflection_grpc_testing_proto2_proto_rawDesc)),
   131  			NumEnums:      0,
   132  			NumMessages:   1,
   133  			NumExtensions: 0,
   134  			NumServices:   0,
   135  		},
   136  		GoTypes:           file_reflection_grpc_testing_proto2_proto_goTypes,
   137  		DependencyIndexes: file_reflection_grpc_testing_proto2_proto_depIdxs,
   138  		MessageInfos:      file_reflection_grpc_testing_proto2_proto_msgTypes,
   139  	}.Build()
   140  	File_reflection_grpc_testing_proto2_proto = out.File
   141  	file_reflection_grpc_testing_proto2_proto_goTypes = nil
   142  	file_reflection_grpc_testing_proto2_proto_depIdxs = nil
   143  }