@@ -113,6 +113,9 @@ static Filter fromPb(DatastoreV1.Filter filterPb) {
113113 }
114114 }
115115
116+ /**
117+ * A class representing a filter composed of a combination of other filters.
118+ */
116119 public static final class CompositeFilter extends Filter {
117120
118121 private static final long serialVersionUID = 3610352685739360009L ;
@@ -194,6 +197,9 @@ protected DatastoreV1.Filter toPb() {
194197 }
195198 }
196199
200+ /**
201+ * A class representing a filter based on a single property or ancestor.
202+ */
197203 public static final class PropertyFilter extends Filter {
198204
199205 private static final long serialVersionUID = -4514695915258598597L ;
@@ -514,6 +520,9 @@ static OrderBy fromPb(DatastoreV1.PropertyOrder propertyOrderPb) {
514520 }
515521 }
516522
523+ /**
524+ * A class representing a projection based on a property.
525+ */
517526 public static final class Projection implements Serializable {
518527
519528 private static final long serialVersionUID = 3083707957256279470L ;
@@ -665,12 +674,18 @@ public B clearOrderBy() {
665674 return self ();
666675 }
667676
677+ /**
678+ * Sets the query's order by clause (clearing any previously specified OrderBy settings).
679+ */
668680 public B orderBy (OrderBy orderBy , OrderBy ... others ) {
669681 clearOrderBy ();
670682 addOrderBy (orderBy , others );
671683 return self ();
672684 }
673685
686+ /**
687+ * Adds settings to the existing order by clause.
688+ */
674689 public B addOrderBy (OrderBy orderBy , OrderBy ... others ) {
675690 this .orderBy .add (orderBy );
676691 Collections .addAll (this .orderBy , others );
@@ -754,6 +769,9 @@ static final class Builder<V> extends BaseBuilder<V, Builder<V>> {
754769 }
755770 }
756771
772+ /**
773+ * A StructuredQuery builder for queries that return Entity results.
774+ */
757775 public static final class EntityQueryBuilder extends BaseBuilder <Entity , EntityQueryBuilder > {
758776
759777 EntityQueryBuilder () {
@@ -766,6 +784,9 @@ public StructuredQuery<Entity> build() {
766784 }
767785 }
768786
787+ /**
788+ * A StructuredQuery builder for queries that return Key results.
789+ */
769790 public static final class KeyQueryBuilder extends BaseBuilder <Key , KeyQueryBuilder > {
770791
771792 KeyQueryBuilder () {
@@ -787,6 +808,9 @@ public StructuredQuery<Key> build() {
787808 }
788809 }
789810
811+ /**
812+ * A StructuredQuery builder for projection queries.
813+ */
790814 public static final class ProjectionEntityQueryBuilder
791815 extends BaseBuilder <ProjectionEntity , ProjectionEntityQueryBuilder > {
792816
@@ -804,11 +828,17 @@ public ProjectionEntityQueryBuilder clearProjection() {
804828 return super .clearProjection ();
805829 }
806830
831+ /**
832+ * Sets the query's projection clause (clearing any previously specified Projection settings).
833+ */
807834 @ Override
808835 public ProjectionEntityQueryBuilder projection (Projection projection , Projection ... others ) {
809836 return super .projection (projection , others );
810837 }
811838
839+ /**
840+ * Adds one or more projections to the existing projection clause.
841+ */
812842 @ Override
813843 public ProjectionEntityQueryBuilder addProjection (Projection projection , Projection ... others ) {
814844 return super .addProjection (projection , others );
@@ -819,11 +849,17 @@ public ProjectionEntityQueryBuilder clearGroupBy() {
819849 return super .clearGroupBy ();
820850 }
821851
852+ /**
853+ * Sets the query's group by clause (clearing any previously specified GroupBy settings).
854+ */
822855 @ Override
823856 public ProjectionEntityQueryBuilder groupBy (String property , String ... others ) {
824857 return super .groupBy (property , others );
825858 }
826859
860+ /**
861+ * Adds one or more properties to the existing group by clause.
862+ */
827863 @ Override
828864 public ProjectionEntityQueryBuilder addGroupBy (String property , String ... others ) {
829865 return super .addGroupBy (property , others );
0 commit comments