go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/examples/examples.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/examples/examples.proto 10 11 package examples 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // An example request to list existing records. Demonstrates usage of standard 28 // fields. 29 // 30 // https://cloud.google.com/apis/design/standard_fields 31 type ListRequest struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 // The value of next_page_token received in a ListResponse. Used to get the 37 // next page of records. If empty, gets the first page. 38 PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 39 // The maximum number of results to include in the response. 40 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 41 } 42 43 func (x *ListRequest) Reset() { 44 *x = ListRequest{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *ListRequest) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*ListRequest) ProtoMessage() {} 57 58 func (x *ListRequest) ProtoReflect() protoreflect.Message { 59 mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. 71 func (*ListRequest) Descriptor() ([]byte, []int) { 72 return file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *ListRequest) GetPageToken() string { 76 if x != nil { 77 return x.PageToken 78 } 79 return "" 80 } 81 82 func (x *ListRequest) GetPageSize() int32 { 83 if x != nil { 84 return x.PageSize 85 } 86 return 0 87 } 88 89 // An example response to a request to list records. Demonstrates usage of 90 // standard fields. 91 // 92 // https://cloud.google.com/apis/design/standard_fields 93 type ListResponse struct { 94 state protoimpl.MessageState 95 sizeCache protoimpl.SizeCache 96 unknownFields protoimpl.UnknownFields 97 98 // The record. 99 Records []string `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` 100 // The value to use as the page_token in a ListRequest to get the next page of 101 // records. If empty, there are no more records. 102 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 103 } 104 105 func (x *ListResponse) Reset() { 106 *x = ListResponse{} 107 if protoimpl.UnsafeEnabled { 108 mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[1] 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 ms.StoreMessageInfo(mi) 111 } 112 } 113 114 func (x *ListResponse) String() string { 115 return protoimpl.X.MessageStringOf(x) 116 } 117 118 func (*ListResponse) ProtoMessage() {} 119 120 func (x *ListResponse) ProtoReflect() protoreflect.Message { 121 mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[1] 122 if protoimpl.UnsafeEnabled && x != nil { 123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 124 if ms.LoadMessageInfo() == nil { 125 ms.StoreMessageInfo(mi) 126 } 127 return ms 128 } 129 return mi.MessageOf(x) 130 } 131 132 // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. 133 func (*ListResponse) Descriptor() ([]byte, []int) { 134 return file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescGZIP(), []int{1} 135 } 136 137 func (x *ListResponse) GetRecords() []string { 138 if x != nil { 139 return x.Records 140 } 141 return nil 142 } 143 144 func (x *ListResponse) GetNextPageToken() string { 145 if x != nil { 146 return x.NextPageToken 147 } 148 return "" 149 } 150 151 var File_go_chromium_org_luci_common_proto_examples_examples_proto protoreflect.FileDescriptor 152 153 var file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc = []byte{ 154 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 155 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 156 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x65, 0x78, 0x61, 157 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x78, 0x61, 158 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 159 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 160 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 161 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 162 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 163 0x22, 0x50, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 164 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 165 0x09, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 166 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 167 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 168 0x65, 0x6e, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 169 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 170 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 171 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 172 } 173 174 var ( 175 file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescOnce sync.Once 176 file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescData = file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc 177 ) 178 179 func file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescGZIP() []byte { 180 file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescOnce.Do(func() { 181 file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescData) 182 }) 183 return file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescData 184 } 185 186 var file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 187 var file_go_chromium_org_luci_common_proto_examples_examples_proto_goTypes = []interface{}{ 188 (*ListRequest)(nil), // 0: examples.ListRequest 189 (*ListResponse)(nil), // 1: examples.ListResponse 190 } 191 var file_go_chromium_org_luci_common_proto_examples_examples_proto_depIdxs = []int32{ 192 0, // [0:0] is the sub-list for method output_type 193 0, // [0:0] is the sub-list for method input_type 194 0, // [0:0] is the sub-list for extension type_name 195 0, // [0:0] is the sub-list for extension extendee 196 0, // [0:0] is the sub-list for field type_name 197 } 198 199 func init() { file_go_chromium_org_luci_common_proto_examples_examples_proto_init() } 200 func file_go_chromium_org_luci_common_proto_examples_examples_proto_init() { 201 if File_go_chromium_org_luci_common_proto_examples_examples_proto != nil { 202 return 203 } 204 if !protoimpl.UnsafeEnabled { 205 file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 206 switch v := v.(*ListRequest); i { 207 case 0: 208 return &v.state 209 case 1: 210 return &v.sizeCache 211 case 2: 212 return &v.unknownFields 213 default: 214 return nil 215 } 216 } 217 file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 218 switch v := v.(*ListResponse); i { 219 case 0: 220 return &v.state 221 case 1: 222 return &v.sizeCache 223 case 2: 224 return &v.unknownFields 225 default: 226 return nil 227 } 228 } 229 } 230 type x struct{} 231 out := protoimpl.TypeBuilder{ 232 File: protoimpl.DescBuilder{ 233 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 234 RawDescriptor: file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc, 235 NumEnums: 0, 236 NumMessages: 2, 237 NumExtensions: 0, 238 NumServices: 0, 239 }, 240 GoTypes: file_go_chromium_org_luci_common_proto_examples_examples_proto_goTypes, 241 DependencyIndexes: file_go_chromium_org_luci_common_proto_examples_examples_proto_depIdxs, 242 MessageInfos: file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes, 243 }.Build() 244 File_go_chromium_org_luci_common_proto_examples_examples_proto = out.File 245 file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc = nil 246 file_go_chromium_org_luci_common_proto_examples_examples_proto_goTypes = nil 247 file_go_chromium_org_luci_common_proto_examples_examples_proto_depIdxs = nil 248 }