Class: Google::Apis::RemotebuildexecutionV1::GoogleWatcherV1Change

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

Overview

A Change indicates the most recent state of an element.

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) ⇒ GoogleWatcherV1Change

Returns a new instance of GoogleWatcherV1Change



3848
3849
3850
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3848

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

Instance Attribute Details

#continuedBoolean Also known as: continued?

If true, this Change is followed by more Changes that are in the same group as this Change. Corresponds to the JSON property continued

Returns:

  • (Boolean)


3816
3817
3818
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3816

def continued
  @continued
end

#dataHash<String,Object>

The actual change data. This field is present only when state() == EXISTS or state() == ERROR. Please see google.protobuf.Any about how to use the Any type. Corresponds to the JSON property data

Returns:

  • (Hash<String,Object>)


3824
3825
3826
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3824

def data
  @data
end

#elementString

Name of the element, interpreted relative to the entity's actual name. "" refers to the entity itself. The element name is a valid UTF-8 string. Corresponds to the JSON property element

Returns:

  • (String)


3831
3832
3833
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3831

def element
  @element
end

#resume_markerString

If present, provides a compact representation of all the messages that have been received by the caller for the given entity, e.g., it could be a sequence number or a multi-part timestamp/version vector. This marker can be provided in the Request message, allowing the caller to resume the stream watching at a specific point without fetching the initial state. Corresponds to the JSON property resumeMarker NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3841
3842
3843
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3841

def resume_marker
  @resume_marker
end

#stateString

The state of the element. Corresponds to the JSON property state

Returns:

  • (String)


3846
3847
3848
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3846

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3853
3854
3855
3856
3857
3858
3859
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3853

def update!(**args)
  @continued = args[:continued] if args.key?(:continued)
  @data = args[:data] if args.key?(:data)
  @element = args[:element] if args.key?(:element)
  @resume_marker = args[:resume_marker] if args.key?(:resume_marker)
  @state = args[:state] if args.key?(:state)
end