Class: Google::Apis::CesV1::ListGuardrailsResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Response message for AgentService.ListGuardrails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListGuardrailsResponse

Returns a new instance of ListGuardrailsResponse.



4866
4867
4868
# File 'lib/google/apis/ces_v1/classes.rb', line 4866

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

Instance Attribute Details

#guardrailsArray<Google::Apis::CesV1::Guardrail>

The list of guardrails. Corresponds to the JSON property guardrails

Returns:



4858
4859
4860
# File 'lib/google/apis/ces_v1/classes.rb', line 4858

def guardrails
  @guardrails
end

#next_page_tokenString

A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


4864
4865
4866
# File 'lib/google/apis/ces_v1/classes.rb', line 4864

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4871
4872
4873
4874
# File 'lib/google/apis/ces_v1/classes.rb', line 4871

def update!(**args)
  @guardrails = args[:guardrails] if args.key?(:guardrails)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end