| // Copyright 2019 The LUCI Authors. All rights reserved. |
| // Use of this source code is governed under the Apache License, Version 2.0 |
| // that can be found in the LICENSE file. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.26.0 |
| // protoc v3.17.0 |
| // source: go.chromium.org/luci/common/proto/examples/examples.proto |
| |
| package examples |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // An example request to list existing records. Demonstrates usage of standard |
| // fields. |
| // |
| // https://cloud.google.com/apis/design/standard_fields |
| type ListRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The value of next_page_token received in a ListResponse. Used to get the |
| // next page of records. If empty, gets the first page. |
| PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| // The maximum number of results to include in the response. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| } |
| |
| func (x *ListRequest) Reset() { |
| *x = ListRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ListRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListRequest) ProtoMessage() {} |
| |
| func (x *ListRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. |
| func (*ListRequest) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *ListRequest) GetPageToken() string { |
| if x != nil { |
| return x.PageToken |
| } |
| return "" |
| } |
| |
| func (x *ListRequest) GetPageSize() int32 { |
| if x != nil { |
| return x.PageSize |
| } |
| return 0 |
| } |
| |
| // An example response to a request to list records. Demonstrates usage of |
| // standard fields. |
| // |
| // https://cloud.google.com/apis/design/standard_fields |
| type ListResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The record. |
| Records []string `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` |
| // The value to use as the page_token in a ListRequest to get the next page of |
| // records. If empty, there are no more records. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| } |
| |
| func (x *ListResponse) Reset() { |
| *x = ListResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ListResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListResponse) ProtoMessage() {} |
| |
| func (x *ListResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. |
| func (*ListResponse) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *ListResponse) GetRecords() []string { |
| if x != nil { |
| return x.Records |
| } |
| return nil |
| } |
| |
| func (x *ListResponse) GetNextPageToken() string { |
| if x != nil { |
| return x.NextPageToken |
| } |
| return "" |
| } |
| |
| var File_go_chromium_org_luci_common_proto_examples_examples_proto protoreflect.FileDescriptor |
| |
| var file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc = []byte{ |
| 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, |
| 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x65, 0x78, 0x61, |
| 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x78, 0x61, |
| 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, |
| 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, |
| 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, |
| 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, |
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, |
| 0x22, 0x50, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 0x09, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, |
| 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, |
| 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, |
| 0x65, 0x6e, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, |
| 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, |
| 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, |
| 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescOnce sync.Once |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescData = file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc |
| ) |
| |
| func file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescOnce.Do(func() { |
| 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) |
| }) |
| return file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| var file_go_chromium_org_luci_common_proto_examples_examples_proto_goTypes = []interface{}{ |
| (*ListRequest)(nil), // 0: examples.ListRequest |
| (*ListResponse)(nil), // 1: examples.ListResponse |
| } |
| var file_go_chromium_org_luci_common_proto_examples_examples_proto_depIdxs = []int32{ |
| 0, // [0:0] is the sub-list for method output_type |
| 0, // [0:0] is the sub-list for method input_type |
| 0, // [0:0] is the sub-list for extension type_name |
| 0, // [0:0] is the sub-list for extension extendee |
| 0, // [0:0] is the sub-list for field type_name |
| } |
| |
| func init() { file_go_chromium_org_luci_common_proto_examples_examples_proto_init() } |
| func file_go_chromium_org_luci_common_proto_examples_examples_proto_init() { |
| if File_go_chromium_org_luci_common_proto_examples_examples_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ListRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ListResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 2, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_go_chromium_org_luci_common_proto_examples_examples_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_luci_common_proto_examples_examples_proto_depIdxs, |
| MessageInfos: file_go_chromium_org_luci_common_proto_examples_examples_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_luci_common_proto_examples_examples_proto = out.File |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_rawDesc = nil |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_goTypes = nil |
| file_go_chromium_org_luci_common_proto_examples_examples_proto_depIdxs = nil |
| } |