go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/gae/service/datastore/internal/protos/multicursor/cursors.pb.go (about)

     1  // Copyright 2023 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/gae/service/datastore/internal/protos/multicursor/cursors.proto
    20  
    21  package multicursor
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // Cursors is a structure containing zero or more cursors. This is used for
    38  // embedding multiple cursors in a single blob/string.
    39  type Cursors struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	Version uint64   `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // currently 0
    45  	Cursors []string `protobuf:"bytes,2,rep,name=cursors,proto3" json:"cursors,omitempty"`  // list of cursors
    46  	// magic_number exists to make it easier to determine if this is a
    47  	// multicursor. There is a small but real chance that a base64 cursor
    48  	// representation does represent a valid multicursor. This should
    49  	// increase our chances in such a situation. The value is always 0xA455
    50  	MagicNumber int64 `protobuf:"varint,3,opt,name=magic_number,json=magicNumber,proto3" json:"magic_number,omitempty"`
    51  }
    52  
    53  func (x *Cursors) Reset() {
    54  	*x = Cursors{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *Cursors) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*Cursors) ProtoMessage() {}
    67  
    68  func (x *Cursors) ProtoReflect() protoreflect.Message {
    69  	mi := &file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use Cursors.ProtoReflect.Descriptor instead.
    81  func (*Cursors) Descriptor() ([]byte, []int) {
    82  	return file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *Cursors) GetVersion() uint64 {
    86  	if x != nil {
    87  		return x.Version
    88  	}
    89  	return 0
    90  }
    91  
    92  func (x *Cursors) GetCursors() []string {
    93  	if x != nil {
    94  		return x.Cursors
    95  	}
    96  	return nil
    97  }
    98  
    99  func (x *Cursors) GetMagicNumber() int64 {
   100  	if x != nil {
   101  		return x.MagicNumber
   102  	}
   103  	return 0
   104  }
   105  
   106  var File_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto protoreflect.FileDescriptor
   107  
   108  var file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDesc = []byte{
   109  	0x0a, 0x54, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   110  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x61, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   111  	0x63, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74,
   112  	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x75, 0x6c,
   113  	0x74, 0x69, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x73,
   114  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x75, 0x72,
   115  	0x73, 0x6f, 0x72, 0x22, 0x60, 0x0a, 0x07, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x18,
   116  	0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
   117  	0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x73,
   118  	0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x75, 0x72, 0x73, 0x6f,
   119  	0x72, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6e, 0x75, 0x6d, 0x62,
   120  	0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4e,
   121  	0x75, 0x6d, 0x62, 0x65, 0x72, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f,
   122  	0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x61,
   123  	0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74,
   124  	0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
   125  	0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x62,
   126  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   127  }
   128  
   129  var (
   130  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescOnce sync.Once
   131  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescData = file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDesc
   132  )
   133  
   134  func file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescGZIP() []byte {
   135  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescOnce.Do(func() {
   136  		file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescData)
   137  	})
   138  	return file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDescData
   139  }
   140  
   141  var file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   142  var file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_goTypes = []interface{}{
   143  	(*Cursors)(nil), // 0: multicursor.Cursors
   144  }
   145  var file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_depIdxs = []int32{
   146  	0, // [0:0] is the sub-list for method output_type
   147  	0, // [0:0] is the sub-list for method input_type
   148  	0, // [0:0] is the sub-list for extension type_name
   149  	0, // [0:0] is the sub-list for extension extendee
   150  	0, // [0:0] is the sub-list for field type_name
   151  }
   152  
   153  func init() {
   154  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_init()
   155  }
   156  func file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_init() {
   157  	if File_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto != nil {
   158  		return
   159  	}
   160  	if !protoimpl.UnsafeEnabled {
   161  		file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   162  			switch v := v.(*Cursors); i {
   163  			case 0:
   164  				return &v.state
   165  			case 1:
   166  				return &v.sizeCache
   167  			case 2:
   168  				return &v.unknownFields
   169  			default:
   170  				return nil
   171  			}
   172  		}
   173  	}
   174  	type x struct{}
   175  	out := protoimpl.TypeBuilder{
   176  		File: protoimpl.DescBuilder{
   177  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   178  			RawDescriptor: file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDesc,
   179  			NumEnums:      0,
   180  			NumMessages:   1,
   181  			NumExtensions: 0,
   182  			NumServices:   0,
   183  		},
   184  		GoTypes:           file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_goTypes,
   185  		DependencyIndexes: file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_depIdxs,
   186  		MessageInfos:      file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_msgTypes,
   187  	}.Build()
   188  	File_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto = out.File
   189  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_rawDesc = nil
   190  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_goTypes = nil
   191  	file_go_chromium_org_luci_gae_service_datastore_internal_protos_multicursor_cursors_proto_depIdxs = nil
   192  }