Class: Google::Apis::FirestoreV1beta1::WriteResponse
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FirestoreV1beta1::WriteResponse
 
- 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
- 
  
    
      #commit_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time at which the commit occurred. 
- 
  
    
      #stream_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the stream. 
- 
  
    
      #stream_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A token that represents the position of this response in the stream. 
- 
  
    
      #write_results  ⇒ Array<Google::Apis::FirestoreV1beta1::WriteResult> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The result of applying the writes. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ WriteResponse 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of WriteResponse. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WriteResponse
Returns a new instance of WriteResponse
| 1956 1957 1958 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1956 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#commit_time ⇒ String
The time at which the commit occurred.
Corresponds to the JSON property commitTime
| 1933 1934 1935 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1933 def commit_time @commit_time end | 
#stream_id ⇒ String
The ID of the stream.
Only set on the first message, when a new stream was created.
Corresponds to the JSON property streamId
| 1939 1940 1941 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1939 def stream_id @stream_id end | 
#stream_token ⇒ String
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.
| 1947 1948 1949 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1947 def stream_token @stream_token end | 
#write_results ⇒ Array<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
| 1954 1955 1956 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1954 def write_results @write_results end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1961 1962 1963 1964 1965 1966 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1961 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 |