google.golang.org/grpc@v1.74.2/reflection/grpc_testing/proto2_ext2.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.6
    18  // 	protoc        v5.27.1
    19  // source: reflection/grpc_testing/proto2_ext2.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 AnotherExtension struct {
    39  	state           protoimpl.MessageState `protogen:"open.v1"`
    40  	Whatchamacallit *int32                 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"`
    41  	unknownFields   protoimpl.UnknownFields
    42  	sizeCache       protoimpl.SizeCache
    43  }
    44  
    45  func (x *AnotherExtension) Reset() {
    46  	*x = AnotherExtension{}
    47  	mi := &file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0]
    48  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  	ms.StoreMessageInfo(mi)
    50  }
    51  
    52  func (x *AnotherExtension) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*AnotherExtension) ProtoMessage() {}
    57  
    58  func (x *AnotherExtension) ProtoReflect() protoreflect.Message {
    59  	mi := &file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0]
    60  	if x != nil {
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		if ms.LoadMessageInfo() == nil {
    63  			ms.StoreMessageInfo(mi)
    64  		}
    65  		return ms
    66  	}
    67  	return mi.MessageOf(x)
    68  }
    69  
    70  // Deprecated: Use AnotherExtension.ProtoReflect.Descriptor instead.
    71  func (*AnotherExtension) Descriptor() ([]byte, []int) {
    72  	return file_reflection_grpc_testing_proto2_ext2_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (x *AnotherExtension) GetWhatchamacallit() int32 {
    76  	if x != nil && x.Whatchamacallit != nil {
    77  		return *x.Whatchamacallit
    78  	}
    79  	return 0
    80  }
    81  
    82  var file_reflection_grpc_testing_proto2_ext2_proto_extTypes = []protoimpl.ExtensionInfo{
    83  	{
    84  		ExtendedType:  (*ToBeExtended)(nil),
    85  		ExtensionType: (*string)(nil),
    86  		Field:         23,
    87  		Name:          "grpc.testing.frob",
    88  		Tag:           "bytes,23,opt,name=frob",
    89  		Filename:      "reflection/grpc_testing/proto2_ext2.proto",
    90  	},
    91  	{
    92  		ExtendedType:  (*ToBeExtended)(nil),
    93  		ExtensionType: (*AnotherExtension)(nil),
    94  		Field:         29,
    95  		Name:          "grpc.testing.nitz",
    96  		Tag:           "bytes,29,opt,name=nitz",
    97  		Filename:      "reflection/grpc_testing/proto2_ext2.proto",
    98  	},
    99  }
   100  
   101  // Extension fields to ToBeExtended.
   102  var (
   103  	// optional string frob = 23;
   104  	E_Frob = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[0]
   105  	// optional grpc.testing.AnotherExtension nitz = 29;
   106  	E_Nitz = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[1]
   107  )
   108  
   109  var File_reflection_grpc_testing_proto2_ext2_proto protoreflect.FileDescriptor
   110  
   111  const file_reflection_grpc_testing_proto2_ext2_proto_rawDesc = "" +
   112  	"\n" +
   113  	")reflection/grpc_testing/proto2_ext2.proto\x12\fgrpc.testing\x1a$reflection/grpc_testing/proto2.proto\"<\n" +
   114  	"\x10AnotherExtension\x12(\n" +
   115  	"\x0fwhatchamacallit\x18\x01 \x01(\x05R\x0fwhatchamacallit:.\n" +
   116  	"\x04frob\x12\x1a.grpc.testing.ToBeExtended\x18\x17 \x01(\tR\x04frob:N\n" +
   117  	"\x04nitz\x12\x1a.grpc.testing.ToBeExtended\x18\x1d \x01(\v2\x1e.grpc.testing.AnotherExtensionR\x04nitzB0Z.google.golang.org/grpc/reflection/grpc_testing"
   118  
   119  var (
   120  	file_reflection_grpc_testing_proto2_ext2_proto_rawDescOnce sync.Once
   121  	file_reflection_grpc_testing_proto2_ext2_proto_rawDescData []byte
   122  )
   123  
   124  func file_reflection_grpc_testing_proto2_ext2_proto_rawDescGZIP() []byte {
   125  	file_reflection_grpc_testing_proto2_ext2_proto_rawDescOnce.Do(func() {
   126  		file_reflection_grpc_testing_proto2_ext2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_ext2_proto_rawDesc), len(file_reflection_grpc_testing_proto2_ext2_proto_rawDesc)))
   127  	})
   128  	return file_reflection_grpc_testing_proto2_ext2_proto_rawDescData
   129  }
   130  
   131  var file_reflection_grpc_testing_proto2_ext2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   132  var file_reflection_grpc_testing_proto2_ext2_proto_goTypes = []any{
   133  	(*AnotherExtension)(nil), // 0: grpc.testing.AnotherExtension
   134  	(*ToBeExtended)(nil),     // 1: grpc.testing.ToBeExtended
   135  }
   136  var file_reflection_grpc_testing_proto2_ext2_proto_depIdxs = []int32{
   137  	1, // 0: grpc.testing.frob:extendee -> grpc.testing.ToBeExtended
   138  	1, // 1: grpc.testing.nitz:extendee -> grpc.testing.ToBeExtended
   139  	0, // 2: grpc.testing.nitz:type_name -> grpc.testing.AnotherExtension
   140  	3, // [3:3] is the sub-list for method output_type
   141  	3, // [3:3] is the sub-list for method input_type
   142  	2, // [2:3] is the sub-list for extension type_name
   143  	0, // [0:2] is the sub-list for extension extendee
   144  	0, // [0:0] is the sub-list for field type_name
   145  }
   146  
   147  func init() { file_reflection_grpc_testing_proto2_ext2_proto_init() }
   148  func file_reflection_grpc_testing_proto2_ext2_proto_init() {
   149  	if File_reflection_grpc_testing_proto2_ext2_proto != nil {
   150  		return
   151  	}
   152  	file_reflection_grpc_testing_proto2_proto_init()
   153  	type x struct{}
   154  	out := protoimpl.TypeBuilder{
   155  		File: protoimpl.DescBuilder{
   156  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   157  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_ext2_proto_rawDesc), len(file_reflection_grpc_testing_proto2_ext2_proto_rawDesc)),
   158  			NumEnums:      0,
   159  			NumMessages:   1,
   160  			NumExtensions: 2,
   161  			NumServices:   0,
   162  		},
   163  		GoTypes:           file_reflection_grpc_testing_proto2_ext2_proto_goTypes,
   164  		DependencyIndexes: file_reflection_grpc_testing_proto2_ext2_proto_depIdxs,
   165  		MessageInfos:      file_reflection_grpc_testing_proto2_ext2_proto_msgTypes,
   166  		ExtensionInfos:    file_reflection_grpc_testing_proto2_ext2_proto_extTypes,
   167  	}.Build()
   168  	File_reflection_grpc_testing_proto2_ext2_proto = out.File
   169  	file_reflection_grpc_testing_proto2_ext2_proto_goTypes = nil
   170  	file_reflection_grpc_testing_proto2_ext2_proto_depIdxs = nil
   171  }