Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaReplyReference

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

Overview

Defines reference in reply.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaReplyReference

Returns a new instance of GoogleCloudDiscoveryengineV1alphaReplyReference.



2527
2528
2529
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2527

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

Instance Attribute Details

#anchor_textString

Anchor text. Corresponds to the JSON property anchorText

Returns:

  • (String)


2510
2511
2512
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2510

def anchor_text
  @anchor_text
end

#endFixnum

Anchor text end index. Corresponds to the JSON property end

Returns:

  • (Fixnum)


2515
2516
2517
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2515

def end
  @end
end

#startFixnum

Anchor text start index. Corresponds to the JSON property start

Returns:

  • (Fixnum)


2520
2521
2522
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2520

def start
  @start
end

#uriString

URI link reference. Corresponds to the JSON property uri

Returns:

  • (String)


2525
2526
2527
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2525

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2532
2533
2534
2535
2536
2537
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2532

def update!(**args)
  @anchor_text = args[:anchor_text] if args.key?(:anchor_text)
  @end = args[:end] if args.key?(:end)
  @start = args[:start] if args.key?(:start)
  @uri = args[:uri] if args.key?(:uri)
end