Class: Google::Apis::FirestoreV1beta1::WriteResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb

Overview

The response for Firestore.Write.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WriteResponse

Returns a new instance of WriteResponse.



2181
2182
2183
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2181

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#commit_timeString

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the write. Corresponds to the JSON property commitTime

Returns:

  • (String)


2158
2159
2160
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2158

def commit_time
  @commit_time
end

#stream_idString

The ID of the stream. Only set on the first message, when a new stream was created. Corresponds to the JSON property streamId

Returns:

  • (String)


2164
2165
2166
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2164

def stream_id
  @stream_id
end

#stream_tokenString

A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set. Corresponds to the JSON property streamToken NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2172
2173
2174
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2172

def stream_token
  @stream_token
end

#write_resultsArray<Google::Apis::FirestoreV1beta1::WriteResult>

The result of applying the writes. This i-th write result corresponds to the i-th write in the request. Corresponds to the JSON property writeResults



2179
2180
2181
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2179

def write_results
  @write_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2186
2187
2188
2189
2190
2191
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2186

def update!(**args)
  @commit_time = args[:commit_time] if args.key?(:commit_time)
  @stream_id = args[:stream_id] if args.key?(:stream_id)
  @stream_token = args[:stream_token] if args.key?(:stream_token)
  @write_results = args[:write_results] if args.key?(:write_results)
end