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