Skip to content

Commit 9065134

Browse files
chore: remove snippet from the public api for the initial release and re-add beta label (#2353)
This has not been released yet, so marking this as a chore.
1 parent 4cd5895 commit 9065134

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Expression.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.google.cloud.firestore.pipeline.expressions;
1818

19+
import com.google.api.core.BetaApi;
1920
import com.google.api.core.InternalApi;
2021
import com.google.cloud.Timestamp;
2122
import com.google.cloud.firestore.Blob;
@@ -4282,6 +4283,7 @@ public static Expression geoDistance(String fieldName, GeoPoint location) {
42824283
* @param location Compute distance to this {@link GeoPoint}.
42834284
* @return A new {@link Expression} representing the geoDistance operation.
42844285
*/
4286+
@BetaApi
42854287
public static Expression geoDistance(Field field, GeoPoint location) {
42864288
return new FunctionExpression(
42874289
"geo_distance", java.util.Arrays.asList(field, constant(location)));
@@ -4301,6 +4303,7 @@ public static Expression geoDistance(Field field, GeoPoint location) {
43014303
* @param rquery Define the search query using the search domain-specific language (DSL).
43024304
* @return A new {@link BooleanExpression} representing the documentMatches operation.
43034305
*/
4306+
@BetaApi
43044307
public static BooleanExpression documentMatches(String rquery) {
43054308
return new BooleanFunctionExpression("document_matches", constant(rquery));
43064309
}
@@ -4353,6 +4356,7 @@ static BooleanExpression matches(Field field, String rquery) {
43534356
*
43544357
* @return A new {@link Expression} representing the score operation.
43554358
*/
4359+
@BetaApi
43564360
public static Expression score() {
43574361
return new FunctionExpression("score", com.google.common.collect.ImmutableList.of());
43584362
}
@@ -4375,7 +4379,9 @@ public static Expression score() {
43754379
* @param rquery Define the search query using the search domain-specific language (DSL).
43764380
* @return A new {@link Expression} representing the snippet operation.
43774381
*/
4378-
public static Expression snippet(String fieldName, String rquery) {
4382+
@BetaApi
4383+
@InternalApi
4384+
static Expression snippet(String fieldName, String rquery) {
43794385
return new FunctionExpression(
43804386
"snippet", java.util.Arrays.asList(field(fieldName), constant(rquery)));
43814387
}
@@ -4397,7 +4403,9 @@ public static Expression snippet(String fieldName, String rquery) {
43974403
* @param rquery Define the search query using the search domain-specific language (DSL).
43984404
* @return A new {@link Expression} representing the snippet operation.
43994405
*/
4400-
public final Expression snippet(String rquery) {
4406+
@BetaApi
4407+
@InternalApi
4408+
final Expression snippet(String rquery) {
44014409
return new FunctionExpression(
44024410
"snippet",
44034411
java.util.Arrays.asList(this, constant(rquery)),

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Field.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.google.cloud.firestore.pipeline.expressions;
1818

19+
import com.google.api.core.BetaApi;
1920
import com.google.api.core.InternalApi;
2021
import com.google.cloud.firestore.FieldPath;
2122
import com.google.cloud.firestore.Pipeline;
@@ -97,6 +98,7 @@ public Value toProto() {
9798
* @param location Compute distance to this {@link com.google.cloud.firestore.GeoPoint}.
9899
* @return A new {@link Expression} representing the geoDistance operation.
99100
*/
101+
@BetaApi
100102
public Expression geoDistance(com.google.cloud.firestore.GeoPoint location) {
101103
return Expression.geoDistance(this, location);
102104
}

0 commit comments

Comments
 (0)