github.com/jhump/protoreflect@v1.16.0/internal/testprotos/desc_test_value.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0-devel
     4  // 	protoc        v5.26.1
     5  // source: desc_test_value.proto
     6  
     7  package testprotos
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	structpb "google.golang.org/protobuf/types/known/structpb"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type SimpleValue struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	List *structpb.Value `protobuf:"bytes,1,opt,name=list,proto3" json:"list,omitempty"`
    30  }
    31  
    32  func (x *SimpleValue) Reset() {
    33  	*x = SimpleValue{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_desc_test_value_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *SimpleValue) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*SimpleValue) ProtoMessage() {}
    46  
    47  func (x *SimpleValue) ProtoReflect() protoreflect.Message {
    48  	mi := &file_desc_test_value_proto_msgTypes[0]
    49  	if protoimpl.UnsafeEnabled && x != nil {
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		if ms.LoadMessageInfo() == nil {
    52  			ms.StoreMessageInfo(mi)
    53  		}
    54  		return ms
    55  	}
    56  	return mi.MessageOf(x)
    57  }
    58  
    59  // Deprecated: Use SimpleValue.ProtoReflect.Descriptor instead.
    60  func (*SimpleValue) Descriptor() ([]byte, []int) {
    61  	return file_desc_test_value_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *SimpleValue) GetList() *structpb.Value {
    65  	if x != nil {
    66  		return x.List
    67  	}
    68  	return nil
    69  }
    70  
    71  var File_desc_test_value_proto protoreflect.FileDescriptor
    72  
    73  var file_desc_test_value_proto_rawDesc = []byte{
    74  	0x0a, 0x15, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75,
    75  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f,
    76  	0x74, 0x6f, 0x73, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
    77  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
    78  	0x6f, 0x22, 0x39, 0x0a, 0x0b, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65,
    79  	0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
    80  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
    81  	0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x33, 0x5a, 0x31,
    82  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70,
    83  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e,
    84  	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    85  	0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    86  }
    87  
    88  var (
    89  	file_desc_test_value_proto_rawDescOnce sync.Once
    90  	file_desc_test_value_proto_rawDescData = file_desc_test_value_proto_rawDesc
    91  )
    92  
    93  func file_desc_test_value_proto_rawDescGZIP() []byte {
    94  	file_desc_test_value_proto_rawDescOnce.Do(func() {
    95  		file_desc_test_value_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_value_proto_rawDescData)
    96  	})
    97  	return file_desc_test_value_proto_rawDescData
    98  }
    99  
   100  var file_desc_test_value_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   101  var file_desc_test_value_proto_goTypes = []interface{}{
   102  	(*SimpleValue)(nil),    // 0: testprotos.SimpleValue
   103  	(*structpb.Value)(nil), // 1: google.protobuf.Value
   104  }
   105  var file_desc_test_value_proto_depIdxs = []int32{
   106  	1, // 0: testprotos.SimpleValue.list:type_name -> google.protobuf.Value
   107  	1, // [1:1] is the sub-list for method output_type
   108  	1, // [1:1] is the sub-list for method input_type
   109  	1, // [1:1] is the sub-list for extension type_name
   110  	1, // [1:1] is the sub-list for extension extendee
   111  	0, // [0:1] is the sub-list for field type_name
   112  }
   113  
   114  func init() { file_desc_test_value_proto_init() }
   115  func file_desc_test_value_proto_init() {
   116  	if File_desc_test_value_proto != nil {
   117  		return
   118  	}
   119  	if !protoimpl.UnsafeEnabled {
   120  		file_desc_test_value_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   121  			switch v := v.(*SimpleValue); i {
   122  			case 0:
   123  				return &v.state
   124  			case 1:
   125  				return &v.sizeCache
   126  			case 2:
   127  				return &v.unknownFields
   128  			default:
   129  				return nil
   130  			}
   131  		}
   132  	}
   133  	type x struct{}
   134  	out := protoimpl.TypeBuilder{
   135  		File: protoimpl.DescBuilder{
   136  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   137  			RawDescriptor: file_desc_test_value_proto_rawDesc,
   138  			NumEnums:      0,
   139  			NumMessages:   1,
   140  			NumExtensions: 0,
   141  			NumServices:   0,
   142  		},
   143  		GoTypes:           file_desc_test_value_proto_goTypes,
   144  		DependencyIndexes: file_desc_test_value_proto_depIdxs,
   145  		MessageInfos:      file_desc_test_value_proto_msgTypes,
   146  	}.Build()
   147  	File_desc_test_value_proto = out.File
   148  	file_desc_test_value_proto_rawDesc = nil
   149  	file_desc_test_value_proto_goTypes = nil
   150  	file_desc_test_value_proto_depIdxs = nil
   151  }