github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/examples/library/apipb/library.pb.go (about)

     1  // https://cloud.google.com/apis/design/resource_names
     2  
     3  // Code generated by protoc-gen-go. DO NOT EDIT.
     4  // versions:
     5  // 	protoc-gen-go v1.26.0
     6  // 	protoc        v3.19.4
     7  // source: apipb/library.proto
     8  
     9  package apipb
    10  
    11  import (
    12  	_ "google.golang.org/genproto/googleapis/api/annotations"
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  type Book struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	// Resource name of the book. It must have the format of "shelves/*/books/*".
    32  	// For example: "shelves/shelf1/books/book2".
    33  	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    34  	Title      string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
    35  	Author     string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
    36  	CoverImage string `protobuf:"bytes,4,opt,name=cover_image,json=coverImage,proto3" json:"cover_image,omitempty"`
    37  }
    38  
    39  func (x *Book) Reset() {
    40  	*x = Book{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_apipb_library_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *Book) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*Book) ProtoMessage() {}
    53  
    54  func (x *Book) ProtoReflect() protoreflect.Message {
    55  	mi := &file_apipb_library_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use Book.ProtoReflect.Descriptor instead.
    67  func (*Book) Descriptor() ([]byte, []int) {
    68  	return file_apipb_library_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *Book) GetName() string {
    72  	if x != nil {
    73  		return x.Name
    74  	}
    75  	return ""
    76  }
    77  
    78  func (x *Book) GetTitle() string {
    79  	if x != nil {
    80  		return x.Title
    81  	}
    82  	return ""
    83  }
    84  
    85  func (x *Book) GetAuthor() string {
    86  	if x != nil {
    87  		return x.Author
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *Book) GetCoverImage() string {
    93  	if x != nil {
    94  		return x.CoverImage
    95  	}
    96  	return ""
    97  }
    98  
    99  type GetBookRequest struct {
   100  	state         protoimpl.MessageState
   101  	sizeCache     protoimpl.SizeCache
   102  	unknownFields protoimpl.UnknownFields
   103  
   104  	// Resource name of a book. For example: "shelves/shelf1/books/book2".
   105  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   106  }
   107  
   108  func (x *GetBookRequest) Reset() {
   109  	*x = GetBookRequest{}
   110  	if protoimpl.UnsafeEnabled {
   111  		mi := &file_apipb_library_proto_msgTypes[1]
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		ms.StoreMessageInfo(mi)
   114  	}
   115  }
   116  
   117  func (x *GetBookRequest) String() string {
   118  	return protoimpl.X.MessageStringOf(x)
   119  }
   120  
   121  func (*GetBookRequest) ProtoMessage() {}
   122  
   123  func (x *GetBookRequest) ProtoReflect() protoreflect.Message {
   124  	mi := &file_apipb_library_proto_msgTypes[1]
   125  	if protoimpl.UnsafeEnabled && x != nil {
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		if ms.LoadMessageInfo() == nil {
   128  			ms.StoreMessageInfo(mi)
   129  		}
   130  		return ms
   131  	}
   132  	return mi.MessageOf(x)
   133  }
   134  
   135  // Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.
   136  func (*GetBookRequest) Descriptor() ([]byte, []int) {
   137  	return file_apipb_library_proto_rawDescGZIP(), []int{1}
   138  }
   139  
   140  func (x *GetBookRequest) GetName() string {
   141  	if x != nil {
   142  		return x.Name
   143  	}
   144  	return ""
   145  }
   146  
   147  type CreateBookRequest struct {
   148  	state         protoimpl.MessageState
   149  	sizeCache     protoimpl.SizeCache
   150  	unknownFields protoimpl.UnknownFields
   151  
   152  	// Resource name of the parent resource where to create the book.
   153  	// For example: "shelves/shelf1".
   154  	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
   155  	// The Book resource to be created. Client must not set the `Book.name` field.
   156  	Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"`
   157  }
   158  
   159  func (x *CreateBookRequest) Reset() {
   160  	*x = CreateBookRequest{}
   161  	if protoimpl.UnsafeEnabled {
   162  		mi := &file_apipb_library_proto_msgTypes[2]
   163  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   164  		ms.StoreMessageInfo(mi)
   165  	}
   166  }
   167  
   168  func (x *CreateBookRequest) String() string {
   169  	return protoimpl.X.MessageStringOf(x)
   170  }
   171  
   172  func (*CreateBookRequest) ProtoMessage() {}
   173  
   174  func (x *CreateBookRequest) ProtoReflect() protoreflect.Message {
   175  	mi := &file_apipb_library_proto_msgTypes[2]
   176  	if protoimpl.UnsafeEnabled && x != nil {
   177  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   178  		if ms.LoadMessageInfo() == nil {
   179  			ms.StoreMessageInfo(mi)
   180  		}
   181  		return ms
   182  	}
   183  	return mi.MessageOf(x)
   184  }
   185  
   186  // Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead.
   187  func (*CreateBookRequest) Descriptor() ([]byte, []int) {
   188  	return file_apipb_library_proto_rawDescGZIP(), []int{2}
   189  }
   190  
   191  func (x *CreateBookRequest) GetParent() string {
   192  	if x != nil {
   193  		return x.Parent
   194  	}
   195  	return ""
   196  }
   197  
   198  func (x *CreateBookRequest) GetBook() *Book {
   199  	if x != nil {
   200  		return x.Book
   201  	}
   202  	return nil
   203  }
   204  
   205  var File_apipb_library_proto protoreflect.FileDescriptor
   206  
   207  var file_apipb_library_proto_rawDesc = []byte{
   208  	0x0a, 0x13, 0x61, 0x70, 0x69, 0x70, 0x62, 0x2f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e,
   209  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x65,
   210  	0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x1a,
   211  	0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
   212  	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a,
   213  	0x04, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
   214  	0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,
   215  	0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,
   216  	0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
   217  	0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x76, 0x65, 0x72,
   218  	0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f,
   219  	0x76, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x24, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42,
   220  	0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   221  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5f,
   222  	0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75,
   223  	0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
   224  	0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x62,
   225  	0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x72, 0x6b,
   226  	0x69, 0x6e, 0x67, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x62,
   227  	0x72, 0x61, 0x72, 0x79, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x32,
   228  	0x8c, 0x02, 0x0a, 0x07, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x79, 0x0a, 0x07, 0x47,
   229  	0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x28, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67,
   230  	0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72,
   231  	0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   232  	0x1a, 0x1e, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70,
   233  	0x6c, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e, 0x42, 0x6f, 0x6f, 0x6b,
   234  	0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
   235  	0x61, 0x6d, 0x65, 0x3d, 0x73, 0x68, 0x65, 0x6c, 0x76, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x6f,
   236  	0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x85, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74,
   237  	0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x2b, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e,
   238  	0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
   239  	0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
   240  	0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x65, 0x78, 0x61,
   241  	0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e, 0x42, 0x6f,
   242  	0x6f, 0x6b, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f,
   243  	0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x73, 0x68, 0x65, 0x6c, 0x76, 0x65, 0x73, 0x2f,
   244  	0x2a, 0x7d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x3a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x42, 0x3c,
   245  	0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6d, 0x63,
   246  	0x66, 0x61, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2f,
   247  	0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
   248  	0x2f, 0x61, 0x70, 0x69, 0x70, 0x62, 0x3b, 0x61, 0x70, 0x69, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
   249  	0x6f, 0x74, 0x6f, 0x33,
   250  }
   251  
   252  var (
   253  	file_apipb_library_proto_rawDescOnce sync.Once
   254  	file_apipb_library_proto_rawDescData = file_apipb_library_proto_rawDesc
   255  )
   256  
   257  func file_apipb_library_proto_rawDescGZIP() []byte {
   258  	file_apipb_library_proto_rawDescOnce.Do(func() {
   259  		file_apipb_library_proto_rawDescData = protoimpl.X.CompressGZIP(file_apipb_library_proto_rawDescData)
   260  	})
   261  	return file_apipb_library_proto_rawDescData
   262  }
   263  
   264  var file_apipb_library_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   265  var file_apipb_library_proto_goTypes = []interface{}{
   266  	(*Book)(nil),              // 0: larking.examples.library.Book
   267  	(*GetBookRequest)(nil),    // 1: larking.examples.library.GetBookRequest
   268  	(*CreateBookRequest)(nil), // 2: larking.examples.library.CreateBookRequest
   269  }
   270  var file_apipb_library_proto_depIdxs = []int32{
   271  	0, // 0: larking.examples.library.CreateBookRequest.book:type_name -> larking.examples.library.Book
   272  	1, // 1: larking.examples.library.Library.GetBook:input_type -> larking.examples.library.GetBookRequest
   273  	2, // 2: larking.examples.library.Library.CreateBook:input_type -> larking.examples.library.CreateBookRequest
   274  	0, // 3: larking.examples.library.Library.GetBook:output_type -> larking.examples.library.Book
   275  	0, // 4: larking.examples.library.Library.CreateBook:output_type -> larking.examples.library.Book
   276  	3, // [3:5] is the sub-list for method output_type
   277  	1, // [1:3] is the sub-list for method input_type
   278  	1, // [1:1] is the sub-list for extension type_name
   279  	1, // [1:1] is the sub-list for extension extendee
   280  	0, // [0:1] is the sub-list for field type_name
   281  }
   282  
   283  func init() { file_apipb_library_proto_init() }
   284  func file_apipb_library_proto_init() {
   285  	if File_apipb_library_proto != nil {
   286  		return
   287  	}
   288  	if !protoimpl.UnsafeEnabled {
   289  		file_apipb_library_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   290  			switch v := v.(*Book); i {
   291  			case 0:
   292  				return &v.state
   293  			case 1:
   294  				return &v.sizeCache
   295  			case 2:
   296  				return &v.unknownFields
   297  			default:
   298  				return nil
   299  			}
   300  		}
   301  		file_apipb_library_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   302  			switch v := v.(*GetBookRequest); i {
   303  			case 0:
   304  				return &v.state
   305  			case 1:
   306  				return &v.sizeCache
   307  			case 2:
   308  				return &v.unknownFields
   309  			default:
   310  				return nil
   311  			}
   312  		}
   313  		file_apipb_library_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   314  			switch v := v.(*CreateBookRequest); i {
   315  			case 0:
   316  				return &v.state
   317  			case 1:
   318  				return &v.sizeCache
   319  			case 2:
   320  				return &v.unknownFields
   321  			default:
   322  				return nil
   323  			}
   324  		}
   325  	}
   326  	type x struct{}
   327  	out := protoimpl.TypeBuilder{
   328  		File: protoimpl.DescBuilder{
   329  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   330  			RawDescriptor: file_apipb_library_proto_rawDesc,
   331  			NumEnums:      0,
   332  			NumMessages:   3,
   333  			NumExtensions: 0,
   334  			NumServices:   1,
   335  		},
   336  		GoTypes:           file_apipb_library_proto_goTypes,
   337  		DependencyIndexes: file_apipb_library_proto_depIdxs,
   338  		MessageInfos:      file_apipb_library_proto_msgTypes,
   339  	}.Build()
   340  	File_apipb_library_proto = out.File
   341  	file_apipb_library_proto_rawDesc = nil
   342  	file_apipb_library_proto_goTypes = nil
   343  	file_apipb_library_proto_depIdxs = nil
   344  }