...

Source file src/google.golang.org/grpc/reflection/grpc_testing/proto2_ext2.pb.go

Documentation: google.golang.org/grpc/reflection/grpc_testing

     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.33.0
    18  // 	protoc        v4.25.2
    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  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  type AnotherExtension struct {
    38  	state         protoimpl.MessageState
    39  	sizeCache     protoimpl.SizeCache
    40  	unknownFields protoimpl.UnknownFields
    41  
    42  	Whatchamacallit *int32 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"`
    43  }
    44  
    45  func (x *AnotherExtension) Reset() {
    46  	*x = AnotherExtension{}
    47  	if protoimpl.UnsafeEnabled {
    48  		mi := &file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0]
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		ms.StoreMessageInfo(mi)
    51  	}
    52  }
    53  
    54  func (x *AnotherExtension) String() string {
    55  	return protoimpl.X.MessageStringOf(x)
    56  }
    57  
    58  func (*AnotherExtension) ProtoMessage() {}
    59  
    60  func (x *AnotherExtension) ProtoReflect() protoreflect.Message {
    61  	mi := &file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0]
    62  	if protoimpl.UnsafeEnabled && x != nil {
    63  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    64  		if ms.LoadMessageInfo() == nil {
    65  			ms.StoreMessageInfo(mi)
    66  		}
    67  		return ms
    68  	}
    69  	return mi.MessageOf(x)
    70  }
    71  
    72  // Deprecated: Use AnotherExtension.ProtoReflect.Descriptor instead.
    73  func (*AnotherExtension) Descriptor() ([]byte, []int) {
    74  	return file_reflection_grpc_testing_proto2_ext2_proto_rawDescGZIP(), []int{0}
    75  }
    76  
    77  func (x *AnotherExtension) GetWhatchamacallit() int32 {
    78  	if x != nil && x.Whatchamacallit != nil {
    79  		return *x.Whatchamacallit
    80  	}
    81  	return 0
    82  }
    83  
    84  var file_reflection_grpc_testing_proto2_ext2_proto_extTypes = []protoimpl.ExtensionInfo{
    85  	{
    86  		ExtendedType:  (*ToBeExtended)(nil),
    87  		ExtensionType: (*string)(nil),
    88  		Field:         23,
    89  		Name:          "grpc.testing.frob",
    90  		Tag:           "bytes,23,opt,name=frob",
    91  		Filename:      "reflection/grpc_testing/proto2_ext2.proto",
    92  	},
    93  	{
    94  		ExtendedType:  (*ToBeExtended)(nil),
    95  		ExtensionType: (*AnotherExtension)(nil),
    96  		Field:         29,
    97  		Name:          "grpc.testing.nitz",
    98  		Tag:           "bytes,29,opt,name=nitz",
    99  		Filename:      "reflection/grpc_testing/proto2_ext2.proto",
   100  	},
   101  }
   102  
   103  // Extension fields to ToBeExtended.
   104  var (
   105  	// optional string frob = 23;
   106  	E_Frob = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[0]
   107  	// optional grpc.testing.AnotherExtension nitz = 29;
   108  	E_Nitz = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[1]
   109  )
   110  
   111  var File_reflection_grpc_testing_proto2_ext2_proto protoreflect.FileDescriptor
   112  
   113  var file_reflection_grpc_testing_proto2_ext2_proto_rawDesc = []byte{
   114  	0x0a, 0x29, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
   115  	0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
   116  	0x5f, 0x65, 0x78, 0x74, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70,
   117  	0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65,
   118  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69,
   119  	0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
   120  	0x3c, 0x0a, 0x10, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
   121  	0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x77, 0x68, 0x61, 0x74, 0x63, 0x68, 0x61, 0x6d, 0x61,
   122  	0x63, 0x61, 0x6c, 0x6c, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x77, 0x68,
   123  	0x61, 0x74, 0x63, 0x68, 0x61, 0x6d, 0x61, 0x63, 0x61, 0x6c, 0x6c, 0x69, 0x74, 0x3a, 0x2e, 0x0a,
   124  	0x04, 0x66, 0x72, 0x6f, 0x62, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
   125  	0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65,
   126  	0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x62, 0x3a, 0x4e, 0x0a,
   127  	0x04, 0x6e, 0x69, 0x74, 0x7a, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
   128  	0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65,
   129  	0x64, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74,
   130  	0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x45, 0x78,
   131  	0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x69, 0x74, 0x7a, 0x42, 0x30, 0x5a,
   132  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   133  	0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69,
   134  	0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
   135  }
   136  
   137  var (
   138  	file_reflection_grpc_testing_proto2_ext2_proto_rawDescOnce sync.Once
   139  	file_reflection_grpc_testing_proto2_ext2_proto_rawDescData = file_reflection_grpc_testing_proto2_ext2_proto_rawDesc
   140  )
   141  
   142  func file_reflection_grpc_testing_proto2_ext2_proto_rawDescGZIP() []byte {
   143  	file_reflection_grpc_testing_proto2_ext2_proto_rawDescOnce.Do(func() {
   144  		file_reflection_grpc_testing_proto2_ext2_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_proto2_ext2_proto_rawDescData)
   145  	})
   146  	return file_reflection_grpc_testing_proto2_ext2_proto_rawDescData
   147  }
   148  
   149  var file_reflection_grpc_testing_proto2_ext2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   150  var file_reflection_grpc_testing_proto2_ext2_proto_goTypes = []interface{}{
   151  	(*AnotherExtension)(nil), // 0: grpc.testing.AnotherExtension
   152  	(*ToBeExtended)(nil),     // 1: grpc.testing.ToBeExtended
   153  }
   154  var file_reflection_grpc_testing_proto2_ext2_proto_depIdxs = []int32{
   155  	1, // 0: grpc.testing.frob:extendee -> grpc.testing.ToBeExtended
   156  	1, // 1: grpc.testing.nitz:extendee -> grpc.testing.ToBeExtended
   157  	0, // 2: grpc.testing.nitz:type_name -> grpc.testing.AnotherExtension
   158  	3, // [3:3] is the sub-list for method output_type
   159  	3, // [3:3] is the sub-list for method input_type
   160  	2, // [2:3] is the sub-list for extension type_name
   161  	0, // [0:2] is the sub-list for extension extendee
   162  	0, // [0:0] is the sub-list for field type_name
   163  }
   164  
   165  func init() { file_reflection_grpc_testing_proto2_ext2_proto_init() }
   166  func file_reflection_grpc_testing_proto2_ext2_proto_init() {
   167  	if File_reflection_grpc_testing_proto2_ext2_proto != nil {
   168  		return
   169  	}
   170  	file_reflection_grpc_testing_proto2_proto_init()
   171  	if !protoimpl.UnsafeEnabled {
   172  		file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   173  			switch v := v.(*AnotherExtension); i {
   174  			case 0:
   175  				return &v.state
   176  			case 1:
   177  				return &v.sizeCache
   178  			case 2:
   179  				return &v.unknownFields
   180  			default:
   181  				return nil
   182  			}
   183  		}
   184  	}
   185  	type x struct{}
   186  	out := protoimpl.TypeBuilder{
   187  		File: protoimpl.DescBuilder{
   188  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   189  			RawDescriptor: file_reflection_grpc_testing_proto2_ext2_proto_rawDesc,
   190  			NumEnums:      0,
   191  			NumMessages:   1,
   192  			NumExtensions: 2,
   193  			NumServices:   0,
   194  		},
   195  		GoTypes:           file_reflection_grpc_testing_proto2_ext2_proto_goTypes,
   196  		DependencyIndexes: file_reflection_grpc_testing_proto2_ext2_proto_depIdxs,
   197  		MessageInfos:      file_reflection_grpc_testing_proto2_ext2_proto_msgTypes,
   198  		ExtensionInfos:    file_reflection_grpc_testing_proto2_ext2_proto_extTypes,
   199  	}.Build()
   200  	File_reflection_grpc_testing_proto2_ext2_proto = out.File
   201  	file_reflection_grpc_testing_proto2_ext2_proto_rawDesc = nil
   202  	file_reflection_grpc_testing_proto2_ext2_proto_goTypes = nil
   203  	file_reflection_grpc_testing_proto2_ext2_proto_depIdxs = nil
   204  }
   205  

View as plain text