1616
1717package com .google .cloud .firestore .pipeline .expressions ;
1818
19+ import com .google .api .core .BetaApi ;
1920import com .google .api .core .InternalApi ;
2021import com .google .cloud .Timestamp ;
2122import 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 )),
0 commit comments