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



3862
3863
3864
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3862

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)


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

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


3838
3839
3840
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3838

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)


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

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)


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

def resume_marker
  @resume_marker
end

#stateString

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

Returns:

  • (String)


3860
3861
3862
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3860

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3867
3868
3869
3870
3871
3872
3873
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 3867

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