Class: Google::Apis::AiplatformV1beta1::LearningGenaiRecitationDocAttribution

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

Overview

The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 28

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRecitationDocAttribution

Returns a new instance of LearningGenaiRecitationDocAttribution.



30270
30271
30272
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30270

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

Instance Attribute Details

#amarna_idString

Corresponds to the JSON property amarnaId

Returns:

  • (String)


30118
30119
30120
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30118

def amarna_id
  @amarna_id
end

#arxiv_idString

Corresponds to the JSON property arxivId

Returns:

  • (String)


30123
30124
30125
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30123

def arxiv_id
  @arxiv_id
end

#authorString

Corresponds to the JSON property author

Returns:

  • (String)


30128
30129
30130
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30128

def author
  @author
end

#bibkeyString

Corresponds to the JSON property bibkey

Returns:

  • (String)


30133
30134
30135
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30133

def bibkey
  @bibkey
end

#book_titleString

Corresponds to the JSON property bookTitle

Returns:

  • (String)


30138
30139
30140
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30138

def book_title
  @book_title
end

#book_volume_idFixnum

The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set. Corresponds to the JSON property bookVolumeId

Returns:

  • (Fixnum)


30147
30148
30149
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30147

def book_volume_id
  @book_volume_id
end

#conversation_idString

Corresponds to the JSON property conversationId

Returns:

  • (String)


30152
30153
30154
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30152

def conversation_id
  @conversation_id
end

#datasetString

The dataset this document comes from. Corresponds to the JSON property dataset

Returns:

  • (String)


30157
30158
30159
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30157

def dataset
  @dataset
end

#filepathString

Corresponds to the JSON property filepath

Returns:

  • (String)


30162
30163
30164
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30162

def filepath
  @filepath
end

#gemini_idString

Corresponds to the JSON property geminiId

Returns:

  • (String)


30167
30168
30169
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30167

def gemini_id
  @gemini_id
end

#gnews_article_titleString

Corresponds to the JSON property gnewsArticleTitle

Returns:

  • (String)


30172
30173
30174
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30172

def gnews_article_title
  @gnews_article_title
end

#goodall_example_idString

Corresponds to the JSON property goodallExampleId

Returns:

  • (String)


30177
30178
30179
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30177

def goodall_example_id
  @goodall_example_id
end

#is_opt_outBoolean Also known as: is_opt_out?

Whether the document is opted out. Corresponds to the JSON property isOptOut

Returns:

  • (Boolean)


30182
30183
30184
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30182

def is_opt_out
  @is_opt_out
end

#is_promptBoolean Also known as: is_prompt?

When true, this attribution came from the user's prompt. Corresponds to the JSON property isPrompt

Returns:

  • (Boolean)


30188
30189
30190
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30188

def is_prompt
  @is_prompt
end

#lamda_example_idString

Corresponds to the JSON property lamdaExampleId

Returns:

  • (String)


30194
30195
30196
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30194

def lamda_example_id
  @lamda_example_id
end

#licenseString

Corresponds to the JSON property license

Returns:

  • (String)


30199
30200
30201
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30199

def license
  @license
end

#meena_conversation_idString

Corresponds to the JSON property meenaConversationId

Returns:

  • (String)


30204
30205
30206
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30204

def meena_conversation_id
  @meena_conversation_id
end

#natural_language_codeString

Natural (not programming) language of the document. Language code as defined by http://www.unicode.org/reports/tr35/#Identifiers and https://tools.ietf.org/ html/bcp47. Currently applicable to full-view books. Use docinfo-util.h to set & read language fields. See go/iii. Corresponds to the JSON property naturalLanguageCode

Returns:

  • (String)


30212
30213
30214
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30212

def natural_language_code
  @natural_language_code
end

#no_attributionBoolean Also known as: no_attribution?

True if this doc has no attribution information available. We use an explicit field for this instead of just implicitly leaving all the DocAttribution fields blank to distinguish a case where a bug/oversight has left the attribution information empty vs when we really have no attribution information available. Corresponds to the JSON property noAttribution

Returns:

  • (Boolean)


30221
30222
30223
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30221

def no_attribution
  @no_attribution
end

#podcast_utterance_idString

Corresponds to the JSON property podcastUtteranceId

Returns:

  • (String)


30227
30228
30229
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30227

def podcast_utterance_id
  @podcast_utterance_id
end

#publication_dateGoogle::Apis::AiplatformV1beta1::GoogleTypeDate

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property publicationDate



30239
30240
30241
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30239

def publication_date
  @publication_date
end

#quality_score_experiment_onlyFloat

This field is for opt-out experiment only, MUST never be used during actual production/serving. Corresponds to the JSON property qualityScoreExperimentOnly

Returns:

  • (Float)


30245
30246
30247
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30245

def quality_score_experiment_only
  @quality_score_experiment_only
end

#repoString

Github repository Corresponds to the JSON property repo

Returns:

  • (String)


30250
30251
30252
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30250

def repo
  @repo
end

#urlString

URL of a webdoc Corresponds to the JSON property url

Returns:

  • (String)


30255
30256
30257
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30255

def url
  @url
end

#volume_idString

Corresponds to the JSON property volumeId

Returns:

  • (String)


30260
30261
30262
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30260

def volume_id
  @volume_id
end

#wikipedia_article_titleString

Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset. Corresponds to the JSON property wikipediaArticleTitle

Returns:

  • (String)


30268
30269
30270
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30268

def wikipedia_article_title
  @wikipedia_article_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30275

def update!(**args)
  @amarna_id = args[:amarna_id] if args.key?(:amarna_id)
  @arxiv_id = args[:arxiv_id] if args.key?(:arxiv_id)
  @author = args[:author] if args.key?(:author)
  @bibkey = args[:bibkey] if args.key?(:bibkey)
  @book_title = args[:book_title] if args.key?(:book_title)
  @book_volume_id = args[:book_volume_id] if args.key?(:book_volume_id)
  @conversation_id = args[:conversation_id] if args.key?(:conversation_id)
  @dataset = args[:dataset] if args.key?(:dataset)
  @filepath = args[:filepath] if args.key?(:filepath)
  @gemini_id = args[:gemini_id] if args.key?(:gemini_id)
  @gnews_article_title = args[:gnews_article_title] if args.key?(:gnews_article_title)
  @goodall_example_id = args[:goodall_example_id] if args.key?(:goodall_example_id)
  @is_opt_out = args[:is_opt_out] if args.key?(:is_opt_out)
  @is_prompt = args[:is_prompt] if args.key?(:is_prompt)
  @lamda_example_id = args[:lamda_example_id] if args.key?(:lamda_example_id)
  @license = args[:license] if args.key?(:license)
  @meena_conversation_id = args[:meena_conversation_id] if args.key?(:meena_conversation_id)
  @natural_language_code = args[:natural_language_code] if args.key?(:natural_language_code)
  @no_attribution = args[:no_attribution] if args.key?(:no_attribution)
  @podcast_utterance_id = args[:podcast_utterance_id] if args.key?(:podcast_utterance_id)
  @publication_date = args[:publication_date] if args.key?(:publication_date)
  @quality_score_experiment_only = args[:quality_score_experiment_only] if args.key?(:quality_score_experiment_only)
  @repo = args[:repo] if args.key?(:repo)
  @url = args[:url] if args.key?(:url)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
  @wikipedia_article_title = args[:wikipedia_article_title] if args.key?(:wikipedia_article_title)
end