go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/textpb/internal/test.pb.go (about)

     1  // Copyright 2019 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.31.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/common/proto/textpb/internal/test.proto
    10  
    11  package internal
    12  
    13  import (
    14  	_ "go.chromium.org/luci/common/proto"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  type Leaf struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	Str     string   `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
    34  	Json    string   `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"`
    35  	JsonRep []string `protobuf:"bytes,3,rep,name=json_rep,json=jsonRep,proto3" json:"json_rep,omitempty"`
    36  }
    37  
    38  func (x *Leaf) Reset() {
    39  	*x = Leaf{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Leaf) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Leaf) ProtoMessage() {}
    52  
    53  func (x *Leaf) ProtoReflect() protoreflect.Message {
    54  	mi := &file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Leaf.ProtoReflect.Descriptor instead.
    66  func (*Leaf) Descriptor() ([]byte, []int) {
    67  	return file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Leaf) GetStr() string {
    71  	if x != nil {
    72  		return x.Str
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Leaf) GetJson() string {
    78  	if x != nil {
    79  		return x.Json
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Leaf) GetJsonRep() []string {
    85  	if x != nil {
    86  		return x.JsonRep
    87  	}
    88  	return nil
    89  }
    90  
    91  type Container struct {
    92  	state         protoimpl.MessageState
    93  	sizeCache     protoimpl.SizeCache
    94  	unknownFields protoimpl.UnknownFields
    95  
    96  	Leaf    *Leaf            `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"`
    97  	LeafRep []*Leaf          `protobuf:"bytes,2,rep,name=leaf_rep,json=leafRep,proto3" json:"leaf_rep,omitempty"`
    98  	Mapping map[string]*Leaf `protobuf:"bytes,3,rep,name=mapping,proto3" json:"mapping,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    99  }
   100  
   101  func (x *Container) Reset() {
   102  	*x = Container{}
   103  	if protoimpl.UnsafeEnabled {
   104  		mi := &file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes[1]
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		ms.StoreMessageInfo(mi)
   107  	}
   108  }
   109  
   110  func (x *Container) String() string {
   111  	return protoimpl.X.MessageStringOf(x)
   112  }
   113  
   114  func (*Container) ProtoMessage() {}
   115  
   116  func (x *Container) ProtoReflect() protoreflect.Message {
   117  	mi := &file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes[1]
   118  	if protoimpl.UnsafeEnabled && x != nil {
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		if ms.LoadMessageInfo() == nil {
   121  			ms.StoreMessageInfo(mi)
   122  		}
   123  		return ms
   124  	}
   125  	return mi.MessageOf(x)
   126  }
   127  
   128  // Deprecated: Use Container.ProtoReflect.Descriptor instead.
   129  func (*Container) Descriptor() ([]byte, []int) {
   130  	return file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescGZIP(), []int{1}
   131  }
   132  
   133  func (x *Container) GetLeaf() *Leaf {
   134  	if x != nil {
   135  		return x.Leaf
   136  	}
   137  	return nil
   138  }
   139  
   140  func (x *Container) GetLeafRep() []*Leaf {
   141  	if x != nil {
   142  		return x.LeafRep
   143  	}
   144  	return nil
   145  }
   146  
   147  func (x *Container) GetMapping() map[string]*Leaf {
   148  	if x != nil {
   149  		return x.Mapping
   150  	}
   151  	return nil
   152  }
   153  
   154  var File_go_chromium_org_luci_common_proto_textpb_internal_test_proto protoreflect.FileDescriptor
   155  
   156  var file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDesc = []byte{
   157  	0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   158  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72,
   159  	0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   160  	0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f,
   161  	0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x1a,
   162  	0x2f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   163  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
   164  	0x74, 0x6f, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   165  	0x22, 0x53, 0x0a, 0x04, 0x4c, 0x65, 0x61, 0x66, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18,
   166  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x18, 0x0a, 0x04, 0x6a, 0x73,
   167  	0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xa8, 0xfe, 0x23, 0x01, 0x52, 0x04,
   168  	0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70,
   169  	0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x04, 0xa8, 0xfe, 0x23, 0x01, 0x52, 0x07, 0x6a, 0x73,
   170  	0x6f, 0x6e, 0x52, 0x65, 0x70, 0x22, 0xfe, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69,
   171  	0x6e, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28,
   172  	0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
   173  	0x6e, 0x61, 0x6c, 0x2e, 0x4c, 0x65, 0x61, 0x66, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x12, 0x30,
   174  	0x0a, 0x08, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x72, 0x65, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
   175  	0x32, 0x15, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   176  	0x61, 0x6c, 0x2e, 0x4c, 0x65, 0x61, 0x66, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x66, 0x52, 0x65, 0x70,
   177  	0x12, 0x41, 0x0a, 0x07, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x03, 0x28,
   178  	0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
   179  	0x6e, 0x61, 0x6c, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2e, 0x4d, 0x61,
   180  	0x70, 0x70, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x61, 0x70, 0x70,
   181  	0x69, 0x6e, 0x67, 0x1a, 0x51, 0x0a, 0x0c, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x45, 0x6e,
   182  	0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   183  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
   184  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x69, 0x6e,
   185  	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x4c, 0x65, 0x61, 0x66, 0x52, 0x05, 0x76, 0x61, 0x6c,
   186  	0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
   187  	0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63,
   188  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x78, 0x74,
   189  	0x70, 0x62, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f,
   190  	0x74, 0x6f, 0x33,
   191  }
   192  
   193  var (
   194  	file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescOnce sync.Once
   195  	file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescData = file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDesc
   196  )
   197  
   198  func file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescGZIP() []byte {
   199  	file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescOnce.Do(func() {
   200  		file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescData)
   201  	})
   202  	return file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDescData
   203  }
   204  
   205  var file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   206  var file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_goTypes = []interface{}{
   207  	(*Leaf)(nil),      // 0: testpb.internal.Leaf
   208  	(*Container)(nil), // 1: testpb.internal.Container
   209  	nil,               // 2: testpb.internal.Container.MappingEntry
   210  }
   211  var file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_depIdxs = []int32{
   212  	0, // 0: testpb.internal.Container.leaf:type_name -> testpb.internal.Leaf
   213  	0, // 1: testpb.internal.Container.leaf_rep:type_name -> testpb.internal.Leaf
   214  	2, // 2: testpb.internal.Container.mapping:type_name -> testpb.internal.Container.MappingEntry
   215  	0, // 3: testpb.internal.Container.MappingEntry.value:type_name -> testpb.internal.Leaf
   216  	4, // [4:4] is the sub-list for method output_type
   217  	4, // [4:4] is the sub-list for method input_type
   218  	4, // [4:4] is the sub-list for extension type_name
   219  	4, // [4:4] is the sub-list for extension extendee
   220  	0, // [0:4] is the sub-list for field type_name
   221  }
   222  
   223  func init() { file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_init() }
   224  func file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_init() {
   225  	if File_go_chromium_org_luci_common_proto_textpb_internal_test_proto != nil {
   226  		return
   227  	}
   228  	if !protoimpl.UnsafeEnabled {
   229  		file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   230  			switch v := v.(*Leaf); i {
   231  			case 0:
   232  				return &v.state
   233  			case 1:
   234  				return &v.sizeCache
   235  			case 2:
   236  				return &v.unknownFields
   237  			default:
   238  				return nil
   239  			}
   240  		}
   241  		file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   242  			switch v := v.(*Container); i {
   243  			case 0:
   244  				return &v.state
   245  			case 1:
   246  				return &v.sizeCache
   247  			case 2:
   248  				return &v.unknownFields
   249  			default:
   250  				return nil
   251  			}
   252  		}
   253  	}
   254  	type x struct{}
   255  	out := protoimpl.TypeBuilder{
   256  		File: protoimpl.DescBuilder{
   257  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   258  			RawDescriptor: file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDesc,
   259  			NumEnums:      0,
   260  			NumMessages:   3,
   261  			NumExtensions: 0,
   262  			NumServices:   0,
   263  		},
   264  		GoTypes:           file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_goTypes,
   265  		DependencyIndexes: file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_depIdxs,
   266  		MessageInfos:      file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_msgTypes,
   267  	}.Build()
   268  	File_go_chromium_org_luci_common_proto_textpb_internal_test_proto = out.File
   269  	file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_rawDesc = nil
   270  	file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_goTypes = nil
   271  	file_go_chromium_org_luci_common_proto_textpb_internal_test_proto_depIdxs = nil
   272  }