// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Licensed under the GNU Affero General Public License (AGPL). // See License-AGPL.txt in the project root for license information. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.1 // source: usage/v1/billing.proto package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" 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) ) type UpdateInvoicesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Sessions []*BilledSession `protobuf:"bytes,3,rep,name=sessions,proto3" json:"sessions,omitempty"` } func (x *UpdateInvoicesRequest) Reset() { *x = UpdateInvoicesRequest{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateInvoicesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateInvoicesRequest) ProtoMessage() {} func (x *UpdateInvoicesRequest) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_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 UpdateInvoicesRequest.ProtoReflect.Descriptor instead. func (*UpdateInvoicesRequest) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{0} } func (x *UpdateInvoicesRequest) GetStartTime() *timestamppb.Timestamp { if x != nil { return x.StartTime } return nil } func (x *UpdateInvoicesRequest) GetEndTime() *timestamppb.Timestamp { if x != nil { return x.EndTime } return nil } func (x *UpdateInvoicesRequest) GetSessions() []*BilledSession { if x != nil { return x.Sessions } return nil } type UpdateInvoicesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *UpdateInvoicesResponse) Reset() { *x = UpdateInvoicesResponse{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateInvoicesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateInvoicesResponse) ProtoMessage() {} func (x *UpdateInvoicesResponse) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_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 UpdateInvoicesResponse.ProtoReflect.Descriptor instead. func (*UpdateInvoicesResponse) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{1} } type GetLatestInvoiceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Identifier: // *GetLatestInvoiceRequest_TeamId // *GetLatestInvoiceRequest_UserId Identifier isGetLatestInvoiceRequest_Identifier `protobuf_oneof:"identifier"` } func (x *GetLatestInvoiceRequest) Reset() { *x = GetLatestInvoiceRequest{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetLatestInvoiceRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetLatestInvoiceRequest) ProtoMessage() {} func (x *GetLatestInvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_proto_msgTypes[2] 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 GetLatestInvoiceRequest.ProtoReflect.Descriptor instead. func (*GetLatestInvoiceRequest) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{2} } func (m *GetLatestInvoiceRequest) GetIdentifier() isGetLatestInvoiceRequest_Identifier { if m != nil { return m.Identifier } return nil } func (x *GetLatestInvoiceRequest) GetTeamId() string { if x, ok := x.GetIdentifier().(*GetLatestInvoiceRequest_TeamId); ok { return x.TeamId } return "" } func (x *GetLatestInvoiceRequest) GetUserId() string { if x, ok := x.GetIdentifier().(*GetLatestInvoiceRequest_UserId); ok { return x.UserId } return "" } type isGetLatestInvoiceRequest_Identifier interface { isGetLatestInvoiceRequest_Identifier() } type GetLatestInvoiceRequest_TeamId struct { TeamId string `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3,oneof"` } type GetLatestInvoiceRequest_UserId struct { UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof"` } func (*GetLatestInvoiceRequest_TeamId) isGetLatestInvoiceRequest_Identifier() {} func (*GetLatestInvoiceRequest_UserId) isGetLatestInvoiceRequest_Identifier() {} type GetLatestInvoiceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields InvoiceId string `protobuf:"bytes,1,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"` Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` Amount float64 `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"` } func (x *GetLatestInvoiceResponse) Reset() { *x = GetLatestInvoiceResponse{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetLatestInvoiceResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetLatestInvoiceResponse) ProtoMessage() {} func (x *GetLatestInvoiceResponse) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_proto_msgTypes[3] 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 GetLatestInvoiceResponse.ProtoReflect.Descriptor instead. func (*GetLatestInvoiceResponse) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{3} } func (x *GetLatestInvoiceResponse) GetInvoiceId() string { if x != nil { return x.InvoiceId } return "" } func (x *GetLatestInvoiceResponse) GetCurrency() string { if x != nil { return x.Currency } return "" } func (x *GetLatestInvoiceResponse) GetAmount() float64 { if x != nil { return x.Amount } return 0 } type FinalizeInvoiceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields InvoiceId string `protobuf:"bytes,1,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"` } func (x *FinalizeInvoiceRequest) Reset() { *x = FinalizeInvoiceRequest{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *FinalizeInvoiceRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FinalizeInvoiceRequest) ProtoMessage() {} func (x *FinalizeInvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_proto_msgTypes[4] 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 FinalizeInvoiceRequest.ProtoReflect.Descriptor instead. func (*FinalizeInvoiceRequest) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{4} } func (x *FinalizeInvoiceRequest) GetInvoiceId() string { if x != nil { return x.InvoiceId } return "" } type FinalizeInvoiceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *FinalizeInvoiceResponse) Reset() { *x = FinalizeInvoiceResponse{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *FinalizeInvoiceResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FinalizeInvoiceResponse) ProtoMessage() {} func (x *FinalizeInvoiceResponse) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_proto_msgTypes[5] 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 FinalizeInvoiceResponse.ProtoReflect.Descriptor instead. func (*FinalizeInvoiceResponse) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{5} } // If there are two billable sessions for this instance ID, // the second one's "from" will be the first one's "to" type SetBilledSessionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` From *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` System string `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"` } func (x *SetBilledSessionRequest) Reset() { *x = SetBilledSessionRequest{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SetBilledSessionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetBilledSessionRequest) ProtoMessage() {} func (x *SetBilledSessionRequest) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_proto_msgTypes[6] 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 SetBilledSessionRequest.ProtoReflect.Descriptor instead. func (*SetBilledSessionRequest) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{6} } func (x *SetBilledSessionRequest) GetInstanceId() string { if x != nil { return x.InstanceId } return "" } func (x *SetBilledSessionRequest) GetFrom() *timestamppb.Timestamp { if x != nil { return x.From } return nil } func (x *SetBilledSessionRequest) GetSystem() string { if x != nil { return x.System } return "" } type SetBilledSessionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *SetBilledSessionResponse) Reset() { *x = SetBilledSessionResponse{} if protoimpl.UnsafeEnabled { mi := &file_usage_v1_billing_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SetBilledSessionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetBilledSessionResponse) ProtoMessage() {} func (x *SetBilledSessionResponse) ProtoReflect() protoreflect.Message { mi := &file_usage_v1_billing_proto_msgTypes[7] 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 SetBilledSessionResponse.ProtoReflect.Descriptor instead. func (*SetBilledSessionResponse) Descriptor() ([]byte, []int) { return file_usage_v1_billing_proto_rawDescGZIP(), []int{7} } var File_usage_v1_billing_proto protoreflect.FileDescriptor var file_usage_v1_billing_proto_rawDesc = []byte{ 0x0a, 0x16, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x37, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xfb, 0x02, 0x0a, 0x0e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_usage_v1_billing_proto_rawDescOnce sync.Once file_usage_v1_billing_proto_rawDescData = file_usage_v1_billing_proto_rawDesc ) func file_usage_v1_billing_proto_rawDescGZIP() []byte { file_usage_v1_billing_proto_rawDescOnce.Do(func() { file_usage_v1_billing_proto_rawDescData = protoimpl.X.CompressGZIP(file_usage_v1_billing_proto_rawDescData) }) return file_usage_v1_billing_proto_rawDescData } var file_usage_v1_billing_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_usage_v1_billing_proto_goTypes = []interface{}{ (*UpdateInvoicesRequest)(nil), // 0: usage.v1.UpdateInvoicesRequest (*UpdateInvoicesResponse)(nil), // 1: usage.v1.UpdateInvoicesResponse (*GetLatestInvoiceRequest)(nil), // 2: usage.v1.GetLatestInvoiceRequest (*GetLatestInvoiceResponse)(nil), // 3: usage.v1.GetLatestInvoiceResponse (*FinalizeInvoiceRequest)(nil), // 4: usage.v1.FinalizeInvoiceRequest (*FinalizeInvoiceResponse)(nil), // 5: usage.v1.FinalizeInvoiceResponse (*SetBilledSessionRequest)(nil), // 6: usage.v1.SetBilledSessionRequest (*SetBilledSessionResponse)(nil), // 7: usage.v1.SetBilledSessionResponse (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp (*BilledSession)(nil), // 9: usage.v1.BilledSession } var file_usage_v1_billing_proto_depIdxs = []int32{ 8, // 0: usage.v1.UpdateInvoicesRequest.start_time:type_name -> google.protobuf.Timestamp 8, // 1: usage.v1.UpdateInvoicesRequest.end_time:type_name -> google.protobuf.Timestamp 9, // 2: usage.v1.UpdateInvoicesRequest.sessions:type_name -> usage.v1.BilledSession 8, // 3: usage.v1.SetBilledSessionRequest.from:type_name -> google.protobuf.Timestamp 0, // 4: usage.v1.BillingService.UpdateInvoices:input_type -> usage.v1.UpdateInvoicesRequest 2, // 5: usage.v1.BillingService.GetLatestInvoice:input_type -> usage.v1.GetLatestInvoiceRequest 4, // 6: usage.v1.BillingService.FinalizeInvoice:input_type -> usage.v1.FinalizeInvoiceRequest 6, // 7: usage.v1.BillingService.SetBilledSession:input_type -> usage.v1.SetBilledSessionRequest 1, // 8: usage.v1.BillingService.UpdateInvoices:output_type -> usage.v1.UpdateInvoicesResponse 3, // 9: usage.v1.BillingService.GetLatestInvoice:output_type -> usage.v1.GetLatestInvoiceResponse 5, // 10: usage.v1.BillingService.FinalizeInvoice:output_type -> usage.v1.FinalizeInvoiceResponse 7, // 11: usage.v1.BillingService.SetBilledSession:output_type -> usage.v1.SetBilledSessionResponse 8, // [8:12] is the sub-list for method output_type 4, // [4:8] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_usage_v1_billing_proto_init() } func file_usage_v1_billing_proto_init() { if File_usage_v1_billing_proto != nil { return } file_usage_v1_usage_proto_init() if !protoimpl.UnsafeEnabled { file_usage_v1_billing_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateInvoicesRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateInvoicesResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetLatestInvoiceRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetLatestInvoiceResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FinalizeInvoiceRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FinalizeInvoiceResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetBilledSessionRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_usage_v1_billing_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetBilledSessionResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_usage_v1_billing_proto_msgTypes[2].OneofWrappers = []interface{}{ (*GetLatestInvoiceRequest_TeamId)(nil), (*GetLatestInvoiceRequest_UserId)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_usage_v1_billing_proto_rawDesc, NumEnums: 0, NumMessages: 8, NumExtensions: 0, NumServices: 1, }, GoTypes: file_usage_v1_billing_proto_goTypes, DependencyIndexes: file_usage_v1_billing_proto_depIdxs, MessageInfos: file_usage_v1_billing_proto_msgTypes, }.Build() File_usage_v1_billing_proto = out.File file_usage_v1_billing_proto_rawDesc = nil file_usage_v1_billing_proto_goTypes = nil file_usage_v1_billing_proto_depIdxs = nil }