Debian Codegraph @

firestore/apiv1/admin/adminpb/snapshot.pb.go

raw
1 // Copyright 2025 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 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/firestore/admin/v1/snapshot.proto
20
21 package adminpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A consistent snapshot of a database at a specific point in time.
40 // A PITR (Point-in-time recovery) snapshot with previous versions of a
41 // database's data is available for every minute up to the associated database's
42 // data retention period. If the PITR feature is enabled, the retention period
43 // is 7 days; otherwise, it is one hour.
44 type PitrSnapshot struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Required. The name of the database that this was a snapshot of. Format:
50 // `projects/{project}/databases/{database}`.
51 Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
52 // Output only. Public UUID of the database the snapshot was associated with.
53 DatabaseUid []byte `protobuf:"bytes,2,opt,name=database_uid,json=databaseUid,proto3" json:"database_uid,omitempty"`
54 // Required. Snapshot time of the database.
55 SnapshotTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=snapshot_time,json=snapshotTime,proto3" json:"snapshot_time,omitempty"`
56 }
57
58 func (x *PitrSnapshot) Reset() {
59 *x = PitrSnapshot{}
60 mi := &file_google_firestore_admin_v1_snapshot_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64
65 func (x *PitrSnapshot) String() string {
66 return protoimpl.X.MessageStringOf(x)
67 }
68
69 func (*PitrSnapshot) ProtoMessage() {}
70
71 func (x *PitrSnapshot) ProtoReflect() protoreflect.Message {
72 mi := &file_google_firestore_admin_v1_snapshot_proto_msgTypes[0]
73 if x != nil {
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 if ms.LoadMessageInfo() == nil {
76 ms.StoreMessageInfo(mi)
77 }
78 return ms
79 }
80 return mi.MessageOf(x)
81 }
82
83 // Deprecated: Use PitrSnapshot.ProtoReflect.Descriptor instead.
84 func (*PitrSnapshot) Descriptor() ([]byte, []int) {
85 return file_google_firestore_admin_v1_snapshot_proto_rawDescGZIP(), []int{0}
86 }
87
88 func (x *PitrSnapshot) GetDatabase() string {
89 if x != nil {
90 return x.Database
91 }
92 return ""
93 }
94
95 func (x *PitrSnapshot) GetDatabaseUid() []byte {
96 if x != nil {
97 return x.DatabaseUid
98 }
99 return nil
100 }
101
102 func (x *PitrSnapshot) GetSnapshotTime() *timestamppb.Timestamp {
103 if x != nil {
104 return x.SnapshotTime
105 }
106 return nil
107 }
108
109 var File_google_firestore_admin_v1_snapshot_proto protoreflect.FileDescriptor
110
111 var file_google_firestore_admin_v1_snapshot_proto_rawDesc = []byte{
112 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
113 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6e, 0x61, 0x70,
114 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67,
115 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d,
116 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
117 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
118 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
119 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
120 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
121 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
122 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x0c, 0x50, 0x69, 0x74, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73,
123 0x68, 0x6f, 0x74, 0x12, 0x45, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18,
124 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x66,
125 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
126 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
127 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x61,
128 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
129 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x55,
130 0x69, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74,
131 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
132 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
133 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70,
134 0x73, 0x68, 0x6f, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0xe0, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d,
135 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72,
136 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x50, 0x69, 0x74, 0x72,
137 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
138 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
139 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61,
140 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e,
141 0x70, 0x62, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x70, 0x62, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46,
142 0x53, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
143 0x2e, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e,
144 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
145 0x75, 0x64, 0x5c, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x41, 0x64, 0x6d,
146 0x69, 0x6e, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
147 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
148 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
149 0x74, 0x6f, 0x33,
150 }
151
152 var (
153 file_google_firestore_admin_v1_snapshot_proto_rawDescOnce sync.Once
154 file_google_firestore_admin_v1_snapshot_proto_rawDescData = file_google_firestore_admin_v1_snapshot_proto_rawDesc
155 )
156
157 func file_google_firestore_admin_v1_snapshot_proto_rawDescGZIP() []byte {
158 file_google_firestore_admin_v1_snapshot_proto_rawDescOnce.Do(func() {
159 file_google_firestore_admin_v1_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_admin_v1_snapshot_proto_rawDescData)
160 })
161 return file_google_firestore_admin_v1_snapshot_proto_rawDescData
162 }
163
164 var file_google_firestore_admin_v1_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
165 var file_google_firestore_admin_v1_snapshot_proto_goTypes = []any{
166 (*PitrSnapshot)(nil), // 0: google.firestore.admin.v1.PitrSnapshot
167 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
168 }
169 var file_google_firestore_admin_v1_snapshot_proto_depIdxs = []int32{
170 1, // 0: google.firestore.admin.v1.PitrSnapshot.snapshot_time:type_name -> google.protobuf.Timestamp
171 1, // [1:1] is the sub-list for method output_type
172 1, // [1:1] is the sub-list for method input_type
173 1, // [1:1] is the sub-list for extension type_name
174 1, // [1:1] is the sub-list for extension extendee
175 0, // [0:1] is the sub-list for field type_name
176 }
177
178 func init() { file_google_firestore_admin_v1_snapshot_proto_init() }
179 func file_google_firestore_admin_v1_snapshot_proto_init() {
180 if File_google_firestore_admin_v1_snapshot_proto != nil {
181 return
182 }
183 type x struct{}
184 out := protoimpl.TypeBuilder{
185 File: protoimpl.DescBuilder{
186 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
187 RawDescriptor: file_google_firestore_admin_v1_snapshot_proto_rawDesc,
188 NumEnums: 0,
189 NumMessages: 1,
190 NumExtensions: 0,
191 NumServices: 0,
192 },
193 GoTypes: file_google_firestore_admin_v1_snapshot_proto_goTypes,
194 DependencyIndexes: file_google_firestore_admin_v1_snapshot_proto_depIdxs,
195 MessageInfos: file_google_firestore_admin_v1_snapshot_proto_msgTypes,
196 }.Build()
197 File_google_firestore_admin_v1_snapshot_proto = out.File
198 file_google_firestore_admin_v1_snapshot_proto_rawDesc = nil
199 file_google_firestore_admin_v1_snapshot_proto_goTypes = nil
200 file_google_firestore_admin_v1_snapshot_proto_depIdxs = nil
201 }