...

Source file src/cloud.google.com/go/rpcreplay/proto/intstore/intstore.pb.go

Documentation: cloud.google.com/go/rpcreplay/proto/intstore

     1  // Copyright 2024 Google LLC
     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  // IntStore is a service for testing the rpcreplay package.
    16  // It is a simple key-value store for integers.
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.31.0
    21  // 	protoc        v4.25.3
    22  // source: intstore.proto
    23  
    24  package intstore
    25  
    26  import (
    27  	reflect "reflect"
    28  	sync "sync"
    29  
    30  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    31  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  type Item struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    47  	Value int32  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
    48  }
    49  
    50  func (x *Item) Reset() {
    51  	*x = Item{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_intstore_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *Item) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*Item) ProtoMessage() {}
    64  
    65  func (x *Item) ProtoReflect() protoreflect.Message {
    66  	mi := &file_intstore_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use Item.ProtoReflect.Descriptor instead.
    78  func (*Item) Descriptor() ([]byte, []int) {
    79  	return file_intstore_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (x *Item) GetName() string {
    83  	if x != nil {
    84  		return x.Name
    85  	}
    86  	return ""
    87  }
    88  
    89  func (x *Item) GetValue() int32 {
    90  	if x != nil {
    91  		return x.Value
    92  	}
    93  	return 0
    94  }
    95  
    96  type SetResponse struct {
    97  	state         protoimpl.MessageState
    98  	sizeCache     protoimpl.SizeCache
    99  	unknownFields protoimpl.UnknownFields
   100  
   101  	PrevValue int32 `protobuf:"varint,1,opt,name=prev_value,json=prevValue,proto3" json:"prev_value,omitempty"`
   102  }
   103  
   104  func (x *SetResponse) Reset() {
   105  	*x = SetResponse{}
   106  	if protoimpl.UnsafeEnabled {
   107  		mi := &file_intstore_proto_msgTypes[1]
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		ms.StoreMessageInfo(mi)
   110  	}
   111  }
   112  
   113  func (x *SetResponse) String() string {
   114  	return protoimpl.X.MessageStringOf(x)
   115  }
   116  
   117  func (*SetResponse) ProtoMessage() {}
   118  
   119  func (x *SetResponse) ProtoReflect() protoreflect.Message {
   120  	mi := &file_intstore_proto_msgTypes[1]
   121  	if protoimpl.UnsafeEnabled && x != nil {
   122  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   123  		if ms.LoadMessageInfo() == nil {
   124  			ms.StoreMessageInfo(mi)
   125  		}
   126  		return ms
   127  	}
   128  	return mi.MessageOf(x)
   129  }
   130  
   131  // Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.
   132  func (*SetResponse) Descriptor() ([]byte, []int) {
   133  	return file_intstore_proto_rawDescGZIP(), []int{1}
   134  }
   135  
   136  func (x *SetResponse) GetPrevValue() int32 {
   137  	if x != nil {
   138  		return x.PrevValue
   139  	}
   140  	return 0
   141  }
   142  
   143  type GetRequest struct {
   144  	state         protoimpl.MessageState
   145  	sizeCache     protoimpl.SizeCache
   146  	unknownFields protoimpl.UnknownFields
   147  
   148  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   149  }
   150  
   151  func (x *GetRequest) Reset() {
   152  	*x = GetRequest{}
   153  	if protoimpl.UnsafeEnabled {
   154  		mi := &file_intstore_proto_msgTypes[2]
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		ms.StoreMessageInfo(mi)
   157  	}
   158  }
   159  
   160  func (x *GetRequest) String() string {
   161  	return protoimpl.X.MessageStringOf(x)
   162  }
   163  
   164  func (*GetRequest) ProtoMessage() {}
   165  
   166  func (x *GetRequest) ProtoReflect() protoreflect.Message {
   167  	mi := &file_intstore_proto_msgTypes[2]
   168  	if protoimpl.UnsafeEnabled && x != nil {
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		if ms.LoadMessageInfo() == nil {
   171  			ms.StoreMessageInfo(mi)
   172  		}
   173  		return ms
   174  	}
   175  	return mi.MessageOf(x)
   176  }
   177  
   178  // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
   179  func (*GetRequest) Descriptor() ([]byte, []int) {
   180  	return file_intstore_proto_rawDescGZIP(), []int{2}
   181  }
   182  
   183  func (x *GetRequest) GetName() string {
   184  	if x != nil {
   185  		return x.Name
   186  	}
   187  	return ""
   188  }
   189  
   190  type Summary struct {
   191  	state         protoimpl.MessageState
   192  	sizeCache     protoimpl.SizeCache
   193  	unknownFields protoimpl.UnknownFields
   194  
   195  	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
   196  }
   197  
   198  func (x *Summary) Reset() {
   199  	*x = Summary{}
   200  	if protoimpl.UnsafeEnabled {
   201  		mi := &file_intstore_proto_msgTypes[3]
   202  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   203  		ms.StoreMessageInfo(mi)
   204  	}
   205  }
   206  
   207  func (x *Summary) String() string {
   208  	return protoimpl.X.MessageStringOf(x)
   209  }
   210  
   211  func (*Summary) ProtoMessage() {}
   212  
   213  func (x *Summary) ProtoReflect() protoreflect.Message {
   214  	mi := &file_intstore_proto_msgTypes[3]
   215  	if protoimpl.UnsafeEnabled && x != nil {
   216  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   217  		if ms.LoadMessageInfo() == nil {
   218  			ms.StoreMessageInfo(mi)
   219  		}
   220  		return ms
   221  	}
   222  	return mi.MessageOf(x)
   223  }
   224  
   225  // Deprecated: Use Summary.ProtoReflect.Descriptor instead.
   226  func (*Summary) Descriptor() ([]byte, []int) {
   227  	return file_intstore_proto_rawDescGZIP(), []int{3}
   228  }
   229  
   230  func (x *Summary) GetCount() int32 {
   231  	if x != nil {
   232  		return x.Count
   233  	}
   234  	return 0
   235  }
   236  
   237  type ListItemsRequest struct {
   238  	state         protoimpl.MessageState
   239  	sizeCache     protoimpl.SizeCache
   240  	unknownFields protoimpl.UnknownFields
   241  
   242  	// Only list items whose value is greater than this.
   243  	GreaterThan int32 `protobuf:"varint,1,opt,name=greaterThan,proto3" json:"greaterThan,omitempty"`
   244  }
   245  
   246  func (x *ListItemsRequest) Reset() {
   247  	*x = ListItemsRequest{}
   248  	if protoimpl.UnsafeEnabled {
   249  		mi := &file_intstore_proto_msgTypes[4]
   250  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   251  		ms.StoreMessageInfo(mi)
   252  	}
   253  }
   254  
   255  func (x *ListItemsRequest) String() string {
   256  	return protoimpl.X.MessageStringOf(x)
   257  }
   258  
   259  func (*ListItemsRequest) ProtoMessage() {}
   260  
   261  func (x *ListItemsRequest) ProtoReflect() protoreflect.Message {
   262  	mi := &file_intstore_proto_msgTypes[4]
   263  	if protoimpl.UnsafeEnabled && x != nil {
   264  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   265  		if ms.LoadMessageInfo() == nil {
   266  			ms.StoreMessageInfo(mi)
   267  		}
   268  		return ms
   269  	}
   270  	return mi.MessageOf(x)
   271  }
   272  
   273  // Deprecated: Use ListItemsRequest.ProtoReflect.Descriptor instead.
   274  func (*ListItemsRequest) Descriptor() ([]byte, []int) {
   275  	return file_intstore_proto_rawDescGZIP(), []int{4}
   276  }
   277  
   278  func (x *ListItemsRequest) GetGreaterThan() int32 {
   279  	if x != nil {
   280  		return x.GreaterThan
   281  	}
   282  	return 0
   283  }
   284  
   285  var File_intstore_proto protoreflect.FileDescriptor
   286  
   287  var file_intstore_proto_rawDesc = []byte{
   288  	0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   289  	0x12, 0x08, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x30, 0x0a, 0x04, 0x49, 0x74,
   290  	0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   291  	0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
   292  	0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x0b,
   293  	0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
   294  	0x72, 0x65, 0x76, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
   295  	0x09, 0x70, 0x72, 0x65, 0x76, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x47, 0x65,
   296  	0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   297  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1f, 0x0a, 0x07,
   298  	0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
   299  	0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x34, 0x0a,
   300  	0x10, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   301  	0x74, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e,
   302  	0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x67, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72, 0x54,
   303  	0x68, 0x61, 0x6e, 0x32, 0x8e, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65,
   304  	0x12, 0x2e, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f,
   305  	0x72, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x15, 0x2e, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f,
   306  	0x72, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
   307  	0x12, 0x2d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x14, 0x2e, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f,
   308  	0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
   309  	0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x00, 0x12,
   310  	0x3b, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1a, 0x2e, 0x69,
   311  	0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d,
   312  	0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x69, 0x6e, 0x74, 0x73, 0x74,
   313  	0x6f, 0x72, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x00, 0x30, 0x01, 0x12, 0x32, 0x0a, 0x09,
   314  	0x53, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x0e, 0x2e, 0x69, 0x6e, 0x74, 0x73,
   315  	0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x11, 0x2e, 0x69, 0x6e, 0x74, 0x73,
   316  	0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x00, 0x28, 0x01,
   317  	0x12, 0x32, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x68, 0x61, 0x74, 0x12, 0x0e,
   318  	0x2e, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x0e,
   319  	0x2e, 0x69, 0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x00,
   320  	0x28, 0x01, 0x30, 0x01, 0x42, 0x2e, 0x5a, 0x2c, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
   321  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x72,
   322  	0x65, 0x70, 0x6c, 0x61, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x74, 0x73,
   323  	0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   324  }
   325  
   326  var (
   327  	file_intstore_proto_rawDescOnce sync.Once
   328  	file_intstore_proto_rawDescData = file_intstore_proto_rawDesc
   329  )
   330  
   331  func file_intstore_proto_rawDescGZIP() []byte {
   332  	file_intstore_proto_rawDescOnce.Do(func() {
   333  		file_intstore_proto_rawDescData = protoimpl.X.CompressGZIP(file_intstore_proto_rawDescData)
   334  	})
   335  	return file_intstore_proto_rawDescData
   336  }
   337  
   338  var file_intstore_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   339  var file_intstore_proto_goTypes = []interface{}{
   340  	(*Item)(nil),             // 0: intstore.Item
   341  	(*SetResponse)(nil),      // 1: intstore.SetResponse
   342  	(*GetRequest)(nil),       // 2: intstore.GetRequest
   343  	(*Summary)(nil),          // 3: intstore.Summary
   344  	(*ListItemsRequest)(nil), // 4: intstore.ListItemsRequest
   345  }
   346  var file_intstore_proto_depIdxs = []int32{
   347  	0, // 0: intstore.IntStore.Set:input_type -> intstore.Item
   348  	2, // 1: intstore.IntStore.Get:input_type -> intstore.GetRequest
   349  	4, // 2: intstore.IntStore.ListItems:input_type -> intstore.ListItemsRequest
   350  	0, // 3: intstore.IntStore.SetStream:input_type -> intstore.Item
   351  	0, // 4: intstore.IntStore.StreamChat:input_type -> intstore.Item
   352  	1, // 5: intstore.IntStore.Set:output_type -> intstore.SetResponse
   353  	0, // 6: intstore.IntStore.Get:output_type -> intstore.Item
   354  	0, // 7: intstore.IntStore.ListItems:output_type -> intstore.Item
   355  	3, // 8: intstore.IntStore.SetStream:output_type -> intstore.Summary
   356  	0, // 9: intstore.IntStore.StreamChat:output_type -> intstore.Item
   357  	5, // [5:10] is the sub-list for method output_type
   358  	0, // [0:5] is the sub-list for method input_type
   359  	0, // [0:0] is the sub-list for extension type_name
   360  	0, // [0:0] is the sub-list for extension extendee
   361  	0, // [0:0] is the sub-list for field type_name
   362  }
   363  
   364  func init() { file_intstore_proto_init() }
   365  func file_intstore_proto_init() {
   366  	if File_intstore_proto != nil {
   367  		return
   368  	}
   369  	if !protoimpl.UnsafeEnabled {
   370  		file_intstore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   371  			switch v := v.(*Item); i {
   372  			case 0:
   373  				return &v.state
   374  			case 1:
   375  				return &v.sizeCache
   376  			case 2:
   377  				return &v.unknownFields
   378  			default:
   379  				return nil
   380  			}
   381  		}
   382  		file_intstore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   383  			switch v := v.(*SetResponse); i {
   384  			case 0:
   385  				return &v.state
   386  			case 1:
   387  				return &v.sizeCache
   388  			case 2:
   389  				return &v.unknownFields
   390  			default:
   391  				return nil
   392  			}
   393  		}
   394  		file_intstore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   395  			switch v := v.(*GetRequest); i {
   396  			case 0:
   397  				return &v.state
   398  			case 1:
   399  				return &v.sizeCache
   400  			case 2:
   401  				return &v.unknownFields
   402  			default:
   403  				return nil
   404  			}
   405  		}
   406  		file_intstore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   407  			switch v := v.(*Summary); i {
   408  			case 0:
   409  				return &v.state
   410  			case 1:
   411  				return &v.sizeCache
   412  			case 2:
   413  				return &v.unknownFields
   414  			default:
   415  				return nil
   416  			}
   417  		}
   418  		file_intstore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   419  			switch v := v.(*ListItemsRequest); i {
   420  			case 0:
   421  				return &v.state
   422  			case 1:
   423  				return &v.sizeCache
   424  			case 2:
   425  				return &v.unknownFields
   426  			default:
   427  				return nil
   428  			}
   429  		}
   430  	}
   431  	type x struct{}
   432  	out := protoimpl.TypeBuilder{
   433  		File: protoimpl.DescBuilder{
   434  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   435  			RawDescriptor: file_intstore_proto_rawDesc,
   436  			NumEnums:      0,
   437  			NumMessages:   5,
   438  			NumExtensions: 0,
   439  			NumServices:   1,
   440  		},
   441  		GoTypes:           file_intstore_proto_goTypes,
   442  		DependencyIndexes: file_intstore_proto_depIdxs,
   443  		MessageInfos:      file_intstore_proto_msgTypes,
   444  	}.Build()
   445  	File_intstore_proto = out.File
   446  	file_intstore_proto_rawDesc = nil
   447  	file_intstore_proto_goTypes = nil
   448  	file_intstore_proto_depIdxs = nil
   449  }
   450  

View as plain text