Skip to content

Commit ab20252

Browse files
Package Info, build fix
1 parent b11230b commit ab20252

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2021 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+
/** @hide */
16+
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
17+
package com.google.firebase.firestore.bundle;
18+
19+
import androidx.annotation.RestrictTo;

firebase-firestore/src/main/java/com/google/firebase/firestore/local/LocalSerializer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ TargetData decodeTargetData(com.google.firebase.firestore.proto.Target targetPro
269269
resumeToken);
270270
}
271271

272-
public com.google.firestore.proto.BundledQuery encodeBundledQuery(
273-
com.google.firebase.firestore.local.BundledQuery bundledQuery) {
272+
public BundledQuery encodeBundledQuery(
273+
com.google.firebase.firestore.bundle.BundledQuery bundledQuery) {
274274
com.google.firestore.v1.Target.QueryTarget queryTarget =
275275
rpcSerializer.encodeQueryTarget(bundledQuery.getTarget());
276276

277-
com.google.firestore.proto.BundledQuery.Builder result =
278-
com.google.firestore.proto.BundledQuery.newBuilder();
277+
BundledQuery.Builder result =
278+
BundledQuery.newBuilder();
279279
result.setLimitType(
280280
bundledQuery.getLimitType().equals(LimitType.LIMIT_TO_FIRST)
281281
? BundledQuery.LimitType.FIRST
@@ -286,8 +286,8 @@ public com.google.firestore.proto.BundledQuery encodeBundledQuery(
286286
return result.build();
287287
}
288288

289-
public com.google.firebase.firestore.local.BundledQuery decodeBundledQuery(
290-
com.google.firestore.proto.BundledQuery bundledQuery) {
289+
public com.google.firebase.firestore.bundle.BundledQuery decodeBundledQuery(
290+
BundledQuery bundledQuery) {
291291
LimitType limitType =
292292
bundledQuery.getLimitType().equals(BundledQuery.LimitType.FIRST)
293293
? LimitType.LIMIT_TO_FIRST
@@ -296,6 +296,6 @@ public com.google.firebase.firestore.local.BundledQuery decodeBundledQuery(
296296
rpcSerializer.decodeQueryTarget(
297297
bundledQuery.getParent(), bundledQuery.getStructuredQuery());
298298

299-
return new com.google.firebase.firestore.local.BundledQuery(target, limitType);
299+
return new com.google.firebase.firestore.bundle.BundledQuery(target, limitType);
300300
}
301301
}

firebase-firestore/src/test/java/com/google/firebase/firestore/local/LocalSerializerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import static org.junit.Assert.assertTrue;
3131

3232
import com.google.firebase.Timestamp;
33+
import com.google.firebase.firestore.bundle.BundledQuery;
3334
import com.google.firebase.firestore.core.Query;
3435
import com.google.firebase.firestore.core.Target;
3536
import com.google.firebase.firestore.model.DatabaseId;

0 commit comments

Comments
 (0)