xref: /aosp_15_r20/external/golang-protobuf/types/known/emptypb/empty.pb.go (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
1// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.  All rights reserved.
3// https://developers.google.com/protocol-buffers/
4//
5// Redistribution and use in source and binary forms, with or without
6// modification, are permitted provided that the following conditions are
7// met:
8//
9//     * Redistributions of source code must retain the above copyright
10// notice, this list of conditions and the following disclaimer.
11//     * Redistributions in binary form must reproduce the above
12// copyright notice, this list of conditions and the following disclaimer
13// in the documentation and/or other materials provided with the
14// distribution.
15//     * Neither the name of Google Inc. nor the names of its
16// contributors may be used to endorse or promote products derived from
17// this software without specific prior written permission.
18//
19// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31// Code generated by protoc-gen-go. DO NOT EDIT.
32// source: google/protobuf/empty.proto
33
34package emptypb
35
36import (
37	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
38	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
39	reflect "reflect"
40	sync "sync"
41)
42
43// A generic empty message that you can re-use to avoid defining duplicated
44// empty messages in your APIs. A typical example is to use it as the request
45// or the response type of an API method. For instance:
46//
47//	service Foo {
48//	  rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
49//	}
50type Empty struct {
51	state         protoimpl.MessageState
52	sizeCache     protoimpl.SizeCache
53	unknownFields protoimpl.UnknownFields
54}
55
56func (x *Empty) Reset() {
57	*x = Empty{}
58	if protoimpl.UnsafeEnabled {
59		mi := &file_google_protobuf_empty_proto_msgTypes[0]
60		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
61		ms.StoreMessageInfo(mi)
62	}
63}
64
65func (x *Empty) String() string {
66	return protoimpl.X.MessageStringOf(x)
67}
68
69func (*Empty) ProtoMessage() {}
70
71func (x *Empty) ProtoReflect() protoreflect.Message {
72	mi := &file_google_protobuf_empty_proto_msgTypes[0]
73	if protoimpl.UnsafeEnabled && x != nil {
74		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75		if ms.LoadMessageInfo() == nil {
76			ms.StoreMessageInfo(mi)
77		}
78		return ms
79	}
80	return mi.MessageOf(x)
81}
82
83// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
84func (*Empty) Descriptor() ([]byte, []int) {
85	return file_google_protobuf_empty_proto_rawDescGZIP(), []int{0}
86}
87
88var File_google_protobuf_empty_proto protoreflect.FileDescriptor
89
90var file_google_protobuf_empty_proto_rawDesc = []byte{
91	0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
92	0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67,
93	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x07,
94	0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x7d, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
95	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0a,
96	0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x6f,
97	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
98	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b,
99	0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2,
100	0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50,
101	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77,
102	0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
103}
104
105var (
106	file_google_protobuf_empty_proto_rawDescOnce sync.Once
107	file_google_protobuf_empty_proto_rawDescData = file_google_protobuf_empty_proto_rawDesc
108)
109
110func file_google_protobuf_empty_proto_rawDescGZIP() []byte {
111	file_google_protobuf_empty_proto_rawDescOnce.Do(func() {
112		file_google_protobuf_empty_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_empty_proto_rawDescData)
113	})
114	return file_google_protobuf_empty_proto_rawDescData
115}
116
117var file_google_protobuf_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
118var file_google_protobuf_empty_proto_goTypes = []interface{}{
119	(*Empty)(nil), // 0: google.protobuf.Empty
120}
121var file_google_protobuf_empty_proto_depIdxs = []int32{
122	0, // [0:0] is the sub-list for method output_type
123	0, // [0:0] is the sub-list for method input_type
124	0, // [0:0] is the sub-list for extension type_name
125	0, // [0:0] is the sub-list for extension extendee
126	0, // [0:0] is the sub-list for field type_name
127}
128
129func init() { file_google_protobuf_empty_proto_init() }
130func file_google_protobuf_empty_proto_init() {
131	if File_google_protobuf_empty_proto != nil {
132		return
133	}
134	if !protoimpl.UnsafeEnabled {
135		file_google_protobuf_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
136			switch v := v.(*Empty); i {
137			case 0:
138				return &v.state
139			case 1:
140				return &v.sizeCache
141			case 2:
142				return &v.unknownFields
143			default:
144				return nil
145			}
146		}
147	}
148	type x struct{}
149	out := protoimpl.TypeBuilder{
150		File: protoimpl.DescBuilder{
151			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
152			RawDescriptor: file_google_protobuf_empty_proto_rawDesc,
153			NumEnums:      0,
154			NumMessages:   1,
155			NumExtensions: 0,
156			NumServices:   0,
157		},
158		GoTypes:           file_google_protobuf_empty_proto_goTypes,
159		DependencyIndexes: file_google_protobuf_empty_proto_depIdxs,
160		MessageInfos:      file_google_protobuf_empty_proto_msgTypes,
161	}.Build()
162	File_google_protobuf_empty_proto = out.File
163	file_google_protobuf_empty_proto_rawDesc = nil
164	file_google_protobuf_empty_proto_goTypes = nil
165	file_google_protobuf_empty_proto_depIdxs = nil
166}
167