1- # Copyright 2017, Google LLC All rights reserved.
1+ # Copyright 2018 Google LLC
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
55# You may obtain a copy of the License at
66#
7- # http ://www.apache.org/licenses/LICENSE-2.0
7+ # https ://www.apache.org/licenses/LICENSE-2.0
88#
99# Unless required by applicable law or agreed to in writing, software
1010# distributed under the License is distributed on an "AS IS" BASIS,
@@ -27,79 +27,6 @@ class NullValue(object):
2727 NULL_VALUE = 0
2828
2929
30- class IndexField (object ):
31- class Mode (object ):
32- """
33- The mode determines how a field is indexed.
34-
35- Attributes:
36- MODE_UNSPECIFIED (int): The mode is unspecified.
37- ASCENDING (int): The field's values are indexed so as to support sequencing in
38- ascending order and also query by <, >, <=, >=, and =.
39- DESCENDING (int): The field's values are indexed so as to support sequencing in
40- descending order and also query by <, >, <=, >=, and =.
41- """
42- MODE_UNSPECIFIED = 0
43- ASCENDING = 2
44- DESCENDING = 3
45-
46-
47- class Index (object ):
48- class State (object ):
49- """
50- The state of an index. During index creation, an index will be in the
51- ``CREATING`` state. If the index is created successfully, it will transition
52- to the ``READY`` state. If the index is not able to be created, it will
53- transition to the ``ERROR`` state.
54-
55- Attributes:
56- STATE_UNSPECIFIED (int): The state is unspecified.
57- CREATING (int): The index is being created.
58- There is an active long-running operation for the index.
59- The index is updated when writing a document.
60- Some index data may exist.
61- READY (int): The index is ready to be used.
62- The index is updated when writing a document.
63- The index is fully populated from all stored documents it applies to.
64- ERROR (int): The index was being created, but something went wrong.
65- There is no active long-running operation for the index,
66- and the most recently finished long-running operation failed.
67- The index is not updated when writing a document.
68- Some index data may exist.
69- """
70- STATE_UNSPECIFIED = 0
71- CREATING = 3
72- READY = 2
73- ERROR = 5
74-
75-
76- class IndexOperationMetadata (object ):
77- class OperationType (object ):
78- """
79- The type of index operation.
80-
81- Attributes:
82- OPERATION_TYPE_UNSPECIFIED (int): Unspecified. Never set by server.
83- CREATING_INDEX (int): The operation is creating the index. Initiated by a ``CreateIndex`` call.
84- """
85- OPERATION_TYPE_UNSPECIFIED = 0
86- CREATING_INDEX = 1
87-
88-
89- class DocumentTransform (object ):
90- class FieldTransform (object ):
91- class ServerValue (object ):
92- """
93- A value that is calculated by the server.
94-
95- Attributes:
96- SERVER_VALUE_UNSPECIFIED (int): Unspecified. This value must not be used.
97- REQUEST_TIME (int): The time at which the server processed the request.
98- """
99- SERVER_VALUE_UNSPECIFIED = 0
100- REQUEST_TIME = 1
101-
102-
10330class StructuredQuery (object ):
10431 class Direction (object ):
10532 """
@@ -162,6 +89,21 @@ class Operator(object):
16289 IS_NULL = 3
16390
16491
92+ class DocumentTransform (object ):
93+ class FieldTransform (object ):
94+ class ServerValue (object ):
95+ """
96+ A value that is calculated by the server.
97+
98+ Attributes:
99+ SERVER_VALUE_UNSPECIFIED (int): Unspecified. This value must not be used.
100+ REQUEST_TIME (int): The time at which the server processed the request, with millisecond
101+ precision.
102+ """
103+ SERVER_VALUE_UNSPECIFIED = 0
104+ REQUEST_TIME = 1
105+
106+
165107class TargetChange (object ):
166108 class TargetChangeType (object ):
167109 """
0 commit comments