Skip to content

Commit

Permalink
chore(firestore): Add Write#update_transforms (FieldTransform) in low…
Browse files Browse the repository at this point in the history
…er-level client
  • Loading branch information
yoshi-automation committed Feb 27, 2020
1 parent c7e0e4b commit 8b47306
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1,291 deletions.
Expand Up @@ -153,6 +153,15 @@ module Operator
end
end

# The projection of document's fields to return.
# @!attribute [rw] fields
# @return [Array<Google::Firestore::V1::StructuredQuery::FieldReference>]
# The fields to return.
#
# If empty, all fields are returned. To only return the name
# of the document, use `['__name__']`.
class Projection; end

# A filter with a single operand.
# @!attribute [rw] op
# @return [Google::Firestore::V1::StructuredQuery::UnaryFilter::Operator]
Expand All @@ -174,6 +183,11 @@ module Operator
end
end

# A reference to a field, such as `max(messages.time) as max_time`.
# @!attribute [rw] field_path
# @return [String]
class FieldReference; end

# An order on a field.
# @!attribute [rw] field
# @return [Google::Firestore::V1::StructuredQuery::FieldReference]
Expand All @@ -183,20 +197,6 @@ module Operator
# The direction to order by. Defaults to `ASCENDING`.
class Order; end

# A reference to a field, such as `max(messages.time) as max_time`.
# @!attribute [rw] field_path
# @return [String]
class FieldReference; end

# The projection of document's fields to return.
# @!attribute [rw] fields
# @return [Array<Google::Firestore::V1::StructuredQuery::FieldReference>]
# The fields to return.
#
# If empty, all fields are returned. To only return the name
# of the document, use `['__name__']`.
class Projection; end

# A sort direction.
module Direction
# Unspecified.
Expand Down
Expand Up @@ -27,9 +27,6 @@ module V1
# @!attribute [rw] transform
# @return [Google::Firestore::V1::DocumentTransform]
# Applies a transformation to a document.
# At most one `transform` per document is allowed in a given request.
# An `update` cannot follow a `transform` on the same document in a given
# request.
# @!attribute [rw] update_mask
# @return [Google::Firestore::V1::DocumentMask]
# The fields to update in this write.
Expand All @@ -42,6 +39,13 @@ module V1
# Fields referenced in the mask, but not present in the input document, are
# deleted from the document on the server.
# The field paths in this mask must not contain a reserved field name.
# @!attribute [rw] update_transforms
# @return [Array<Google::Firestore::V1::DocumentTransform::FieldTransform>]
# The transforms to perform after update.
#
# This field can be set only when the operation is `update`. If present, this
# write is equivalent to performing `update` and `transform` to the same
# document atomically and in order.
# @!attribute [rw] current_document
# @return [Google::Firestore::V1::Precondition]
# An optional precondition on the document.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions google-cloud-firestore/lib/google/firestore/v1/query_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions google-cloud-firestore/lib/google/firestore/v1/write_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,268 changes: 6 additions & 1,262 deletions google-cloud-firestore/synth.metadata

Large diffs are not rendered by default.

0 comments on commit 8b47306

Please sign in to comment.