google-apis-discoveryengine_v1alpha 0.74.0 → 0.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1638,6 +1638,33 @@ module Google
1638
1638
  end
1639
1639
  end
1640
1640
 
1641
+ # Access Control Configuration.
1642
+ class GoogleCloudDiscoveryengineV1AclConfig
1643
+ include Google::Apis::Core::Hashable
1644
+
1645
+ # Identity Provider Config.
1646
+ # Corresponds to the JSON property `idpConfig`
1647
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1IdpConfig]
1648
+ attr_accessor :idp_config
1649
+
1650
+ # Immutable. The full resource name of the acl configuration. Format: `projects/`
1651
+ # project`/locations/`location`/aclConfig`. This field must be a UTF-8 encoded
1652
+ # string with a length limit of 1024 characters.
1653
+ # Corresponds to the JSON property `name`
1654
+ # @return [String]
1655
+ attr_accessor :name
1656
+
1657
+ def initialize(**args)
1658
+ update!(**args)
1659
+ end
1660
+
1661
+ # Update properties of this object
1662
+ def update!(**args)
1663
+ @idp_config = args[:idp_config] if args.key?(:idp_config)
1664
+ @name = args[:name] if args.key?(:name)
1665
+ end
1666
+ end
1667
+
1641
1668
  # Configuration data for advance site search.
1642
1669
  class GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig
1643
1670
  include Google::Apis::Core::Hashable
@@ -1808,6 +1835,12 @@ module Google
1808
1835
  # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase>]
1809
1836
  attr_accessor :banned_phrases
1810
1837
 
1838
+ # Configuration for customer defined Model Armor templates to be used for
1839
+ # sanitizing user prompts and assistant responses.
1840
+ # Corresponds to the JSON property `modelArmorConfig`
1841
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1AssistantCustomerPolicyModelArmorConfig]
1842
+ attr_accessor :model_armor_config
1843
+
1811
1844
  def initialize(**args)
1812
1845
  update!(**args)
1813
1846
  end
@@ -1815,6 +1848,7 @@ module Google
1815
1848
  # Update properties of this object
1816
1849
  def update!(**args)
1817
1850
  @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases)
1851
+ @model_armor_config = args[:model_armor_config] if args.key?(:model_armor_config)
1818
1852
  end
1819
1853
  end
1820
1854
 
@@ -1853,6 +1887,44 @@ module Google
1853
1887
  end
1854
1888
  end
1855
1889
 
1890
+ # Configuration for customer defined Model Armor templates to be used for
1891
+ # sanitizing user prompts and assistant responses.
1892
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicyModelArmorConfig
1893
+ include Google::Apis::Core::Hashable
1894
+
1895
+ # Optional. Defines the failure mode for Model Armor sanitization.
1896
+ # Corresponds to the JSON property `failureMode`
1897
+ # @return [String]
1898
+ attr_accessor :failure_mode
1899
+
1900
+ # Optional. The resource name of the Model Armor template for sanitizing
1901
+ # assistant responses. Format: `projects/`project`/locations/`location`/
1902
+ # templates/`template_id`` If not specified, no sanitization will be applied to
1903
+ # the assistant response.
1904
+ # Corresponds to the JSON property `responseTemplate`
1905
+ # @return [String]
1906
+ attr_accessor :response_template
1907
+
1908
+ # Optional. The resource name of the Model Armor template for sanitizing user
1909
+ # prompts. Format: `projects/`project`/locations/`location`/templates/`
1910
+ # template_id`` If not specified, no sanitization will be applied to the user
1911
+ # prompt.
1912
+ # Corresponds to the JSON property `userPromptTemplate`
1913
+ # @return [String]
1914
+ attr_accessor :user_prompt_template
1915
+
1916
+ def initialize(**args)
1917
+ update!(**args)
1918
+ end
1919
+
1920
+ # Update properties of this object
1921
+ def update!(**args)
1922
+ @failure_mode = args[:failure_mode] if args.key?(:failure_mode)
1923
+ @response_template = args[:response_template] if args.key?(:response_template)
1924
+ @user_prompt_template = args[:user_prompt_template] if args.key?(:user_prompt_template)
1925
+ end
1926
+ end
1927
+
1856
1928
  # Configuration for the generation of the assistant response.
1857
1929
  class GoogleCloudDiscoveryengineV1AssistantGenerationConfig
1858
1930
  include Google::Apis::Core::Hashable
@@ -3404,6 +3476,13 @@ module Google
3404
3476
  class GoogleCloudDiscoveryengineV1Engine
3405
3477
  include Google::Apis::Core::Hashable
3406
3478
 
3479
+ # Optional. Immutable. This the application type which this engine resource
3480
+ # represents. NOTE: this is a new concept independ of existing industry vertical
3481
+ # or solution type.
3482
+ # Corresponds to the JSON property `appType`
3483
+ # @return [String]
3484
+ attr_accessor :app_type
3485
+
3407
3486
  # Configurations for a Chat Engine.
3408
3487
  # Corresponds to the JSON property `chatEngineConfig`
3409
3488
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1EngineChatEngineConfig]
@@ -3499,6 +3578,7 @@ module Google
3499
3578
 
3500
3579
  # Update properties of this object
3501
3580
  def update!(**args)
3581
+ @app_type = args[:app_type] if args.key?(:app_type)
3502
3582
  @chat_engine_config = args[:chat_engine_config] if args.key?(:chat_engine_config)
3503
3583
  @chat_engine_metadata = args[:chat_engine_metadata] if args.key?(:chat_engine_metadata)
3504
3584
  @common_config = args[:common_config] if args.key?(:common_config)
@@ -3892,6 +3972,50 @@ module Google
3892
3972
  end
3893
3973
  end
3894
3974
 
3975
+ # Identity Provider Config.
3976
+ class GoogleCloudDiscoveryengineV1IdpConfig
3977
+ include Google::Apis::Core::Hashable
3978
+
3979
+ # Third party IDP Config.
3980
+ # Corresponds to the JSON property `externalIdpConfig`
3981
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1IdpConfigExternalIdpConfig]
3982
+ attr_accessor :external_idp_config
3983
+
3984
+ # Identity provider type configured.
3985
+ # Corresponds to the JSON property `idpType`
3986
+ # @return [String]
3987
+ attr_accessor :idp_type
3988
+
3989
+ def initialize(**args)
3990
+ update!(**args)
3991
+ end
3992
+
3993
+ # Update properties of this object
3994
+ def update!(**args)
3995
+ @external_idp_config = args[:external_idp_config] if args.key?(:external_idp_config)
3996
+ @idp_type = args[:idp_type] if args.key?(:idp_type)
3997
+ end
3998
+ end
3999
+
4000
+ # Third party IDP Config.
4001
+ class GoogleCloudDiscoveryengineV1IdpConfigExternalIdpConfig
4002
+ include Google::Apis::Core::Hashable
4003
+
4004
+ # Workforce pool name. Example: "locations/global/workforcePools/pool_id"
4005
+ # Corresponds to the JSON property `workforcePoolName`
4006
+ # @return [String]
4007
+ attr_accessor :workforce_pool_name
4008
+
4009
+ def initialize(**args)
4010
+ update!(**args)
4011
+ end
4012
+
4013
+ # Update properties of this object
4014
+ def update!(**args)
4015
+ @workforce_pool_name = args[:workforce_pool_name] if args.key?(:workforce_pool_name)
4016
+ end
4017
+ end
4018
+
3895
4019
  # Metadata related to the progress of the ImportCompletionSuggestions operation.
3896
4020
  # This will be returned by the google.longrunning.Operation.metadata field.
3897
4021
  class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
@@ -8085,6 +8209,12 @@ module Google
8085
8209
  # @return [Array<String>]
8086
8210
  attr_accessor :assist_skipped_reasons
8087
8211
 
8212
+ # Customer policy enforcement results. Contains the results of the various
8213
+ # policy checks, like the banned phrases or the Model Armor checks.
8214
+ # Corresponds to the JSON property `customerPolicyEnforcementResult`
8215
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResult]
8216
+ attr_accessor :customer_policy_enforcement_result
8217
+
8088
8218
  # Immutable. Identifier. Resource name of the `AssistAnswer`. Format: `projects/`
8089
8219
  # project`/locations/`location`/collections/`collection`/engines/`engine`/
8090
8220
  # sessions/`session`/assistAnswers/`assist_answer`` This field must be a UTF-8
@@ -8110,12 +8240,116 @@ module Google
8110
8240
  # Update properties of this object
8111
8241
  def update!(**args)
8112
8242
  @assist_skipped_reasons = args[:assist_skipped_reasons] if args.key?(:assist_skipped_reasons)
8243
+ @customer_policy_enforcement_result = args[:customer_policy_enforcement_result] if args.key?(:customer_policy_enforcement_result)
8113
8244
  @name = args[:name] if args.key?(:name)
8114
8245
  @replies = args[:replies] if args.key?(:replies)
8115
8246
  @state = args[:state] if args.key?(:state)
8116
8247
  end
8117
8248
  end
8118
8249
 
8250
+ # Customer policy enforcement results. Contains the results of the various
8251
+ # policy checks, like the banned phrases or the Model Armor checks.
8252
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResult
8253
+ include Google::Apis::Core::Hashable
8254
+
8255
+ # Customer policy enforcement results. Populated only if the assist call was
8256
+ # skipped due to a policy violation. It contains results from those filters that
8257
+ # blocked the processing of the query.
8258
+ # Corresponds to the JSON property `policyResults`
8259
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult>]
8260
+ attr_accessor :policy_results
8261
+
8262
+ # Final verdict of the customer policy enforcement. If only one policy blocked
8263
+ # the processing, the verdict is BLOCK.
8264
+ # Corresponds to the JSON property `verdict`
8265
+ # @return [String]
8266
+ attr_accessor :verdict
8267
+
8268
+ def initialize(**args)
8269
+ update!(**args)
8270
+ end
8271
+
8272
+ # Update properties of this object
8273
+ def update!(**args)
8274
+ @policy_results = args[:policy_results] if args.key?(:policy_results)
8275
+ @verdict = args[:verdict] if args.key?(:verdict)
8276
+ end
8277
+ end
8278
+
8279
+ # Customer policy enforcement result for the banned phrase policy.
8280
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult
8281
+ include Google::Apis::Core::Hashable
8282
+
8283
+ # The banned phrases that were found in the query or the answer.
8284
+ # Corresponds to the JSON property `bannedPhrases`
8285
+ # @return [Array<String>]
8286
+ attr_accessor :banned_phrases
8287
+
8288
+ def initialize(**args)
8289
+ update!(**args)
8290
+ end
8291
+
8292
+ # Update properties of this object
8293
+ def update!(**args)
8294
+ @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases)
8295
+ end
8296
+ end
8297
+
8298
+ # Customer policy enforcement result for the Model Armor policy.
8299
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult
8300
+ include Google::Apis::Core::Hashable
8301
+
8302
+ # The `Status` type defines a logical error model that is suitable for different
8303
+ # programming environments, including REST APIs and RPC APIs. It is used by [
8304
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
8305
+ # data: error code, error message, and error details. You can find out more
8306
+ # about this error model and how to work with it in the [API Design Guide](https:
8307
+ # //cloud.google.com/apis/design/errors).
8308
+ # Corresponds to the JSON property `error`
8309
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus]
8310
+ attr_accessor :error
8311
+
8312
+ # The Model Armor violation that was found.
8313
+ # Corresponds to the JSON property `modelArmorViolation`
8314
+ # @return [String]
8315
+ attr_accessor :model_armor_violation
8316
+
8317
+ def initialize(**args)
8318
+ update!(**args)
8319
+ end
8320
+
8321
+ # Update properties of this object
8322
+ def update!(**args)
8323
+ @error = args[:error] if args.key?(:error)
8324
+ @model_armor_violation = args[:model_armor_violation] if args.key?(:model_armor_violation)
8325
+ end
8326
+ end
8327
+
8328
+ # Customer policy enforcement result for a single policy type.
8329
+ class GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult
8330
+ include Google::Apis::Core::Hashable
8331
+
8332
+ # Customer policy enforcement result for the banned phrase policy.
8333
+ # Corresponds to the JSON property `bannedPhraseEnforcementResult`
8334
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult]
8335
+ attr_accessor :banned_phrase_enforcement_result
8336
+
8337
+ # Customer policy enforcement result for the Model Armor policy.
8338
+ # Corresponds to the JSON property `modelArmorEnforcementResult`
8339
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult]
8340
+ attr_accessor :model_armor_enforcement_result
8341
+
8342
+ def initialize(**args)
8343
+ update!(**args)
8344
+ end
8345
+
8346
+ # Update properties of this object
8347
+ def update!(**args)
8348
+ @banned_phrase_enforcement_result = args[:banned_phrase_enforcement_result] if args.key?(:banned_phrase_enforcement_result)
8349
+ @model_armor_enforcement_result = args[:model_armor_enforcement_result] if args.key?(:model_armor_enforcement_result)
8350
+ end
8351
+ end
8352
+
8119
8353
  # One part of the multi-part response of the assist call.
8120
8354
  class GoogleCloudDiscoveryengineV1alphaAssistAnswerReply
8121
8355
  include Google::Apis::Core::Hashable
@@ -8378,6 +8612,12 @@ module Google
8378
8612
  # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicyBannedPhrase>]
8379
8613
  attr_accessor :banned_phrases
8380
8614
 
8615
+ # Configuration for customer defined Model Armor templates to be used for
8616
+ # sanitizing user prompts and assistant responses.
8617
+ # Corresponds to the JSON property `modelArmorConfig`
8618
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicyModelArmorConfig]
8619
+ attr_accessor :model_armor_config
8620
+
8381
8621
  def initialize(**args)
8382
8622
  update!(**args)
8383
8623
  end
@@ -8385,6 +8625,7 @@ module Google
8385
8625
  # Update properties of this object
8386
8626
  def update!(**args)
8387
8627
  @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases)
8628
+ @model_armor_config = args[:model_armor_config] if args.key?(:model_armor_config)
8388
8629
  end
8389
8630
  end
8390
8631
 
@@ -8423,6 +8664,44 @@ module Google
8423
8664
  end
8424
8665
  end
8425
8666
 
8667
+ # Configuration for customer defined Model Armor templates to be used for
8668
+ # sanitizing user prompts and assistant responses.
8669
+ class GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicyModelArmorConfig
8670
+ include Google::Apis::Core::Hashable
8671
+
8672
+ # Optional. Defines the failure mode for Model Armor sanitization.
8673
+ # Corresponds to the JSON property `failureMode`
8674
+ # @return [String]
8675
+ attr_accessor :failure_mode
8676
+
8677
+ # Optional. The resource name of the Model Armor template for sanitizing
8678
+ # assistant responses. Format: `projects/`project`/locations/`location`/
8679
+ # templates/`template_id`` If not specified, no sanitization will be applied to
8680
+ # the assistant response.
8681
+ # Corresponds to the JSON property `responseTemplate`
8682
+ # @return [String]
8683
+ attr_accessor :response_template
8684
+
8685
+ # Optional. The resource name of the Model Armor template for sanitizing user
8686
+ # prompts. Format: `projects/`project`/locations/`location`/templates/`
8687
+ # template_id`` If not specified, no sanitization will be applied to the user
8688
+ # prompt.
8689
+ # Corresponds to the JSON property `userPromptTemplate`
8690
+ # @return [String]
8691
+ attr_accessor :user_prompt_template
8692
+
8693
+ def initialize(**args)
8694
+ update!(**args)
8695
+ end
8696
+
8697
+ # Update properties of this object
8698
+ def update!(**args)
8699
+ @failure_mode = args[:failure_mode] if args.key?(:failure_mode)
8700
+ @response_template = args[:response_template] if args.key?(:response_template)
8701
+ @user_prompt_template = args[:user_prompt_template] if args.key?(:user_prompt_template)
8702
+ end
8703
+ end
8704
+
8426
8705
  # Configuration for the generation of the assistant response.
8427
8706
  class GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig
8428
8707
  include Google::Apis::Core::Hashable
@@ -11404,6 +11683,12 @@ module Google
11404
11683
  # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
11405
11684
  attr_accessor :errors
11406
11685
 
11686
+ # Any params and credentials used specifically for hybrid connectors supporting
11687
+ # FEDERATED mode.
11688
+ # Corresponds to the JSON property `federatedConfig`
11689
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDataConnectorFederatedConfig]
11690
+ attr_accessor :federated_config
11691
+
11407
11692
  # Optional. If the connector is a hybrid connector, determines whether ingestion
11408
11693
  # is enabled and appropriate resources are provisioned during connector creation.
11409
11694
  # If the connector is not a hybrid connector, this field is ignored.
@@ -11543,6 +11828,14 @@ module Google
11543
11828
  # @return [String]
11544
11829
  attr_accessor :refresh_interval
11545
11830
 
11831
+ # Optional. Specifies keys to be removed from the 'params' field. This is only
11832
+ # active when 'params' is included in the 'update_mask' in an
11833
+ # UpdateDataConnectorRequest. Deletion takes precedence if a key is both in '
11834
+ # remove_param_keys' and present in the 'params' field of the request.
11835
+ # Corresponds to the JSON property `removeParamKeys`
11836
+ # @return [Array<String>]
11837
+ attr_accessor :remove_param_keys
11838
+
11546
11839
  # Output only. State of the connector.
11547
11840
  # Corresponds to the JSON property `state`
11548
11841
  # @return [String]
@@ -11591,6 +11884,7 @@ module Google
11591
11884
  @end_user_config = args[:end_user_config] if args.key?(:end_user_config)
11592
11885
  @entities = args[:entities] if args.key?(:entities)
11593
11886
  @errors = args[:errors] if args.key?(:errors)
11887
+ @federated_config = args[:federated_config] if args.key?(:federated_config)
11594
11888
  @hybrid_ingestion_disabled = args[:hybrid_ingestion_disabled] if args.key?(:hybrid_ingestion_disabled)
11595
11889
  @identity_refresh_interval = args[:identity_refresh_interval] if args.key?(:identity_refresh_interval)
11596
11890
  @identity_schedule_config = args[:identity_schedule_config] if args.key?(:identity_schedule_config)
@@ -11606,6 +11900,7 @@ module Google
11606
11900
  @realtime_state = args[:realtime_state] if args.key?(:realtime_state)
11607
11901
  @realtime_sync_config = args[:realtime_sync_config] if args.key?(:realtime_sync_config)
11608
11902
  @refresh_interval = args[:refresh_interval] if args.key?(:refresh_interval)
11903
+ @remove_param_keys = args[:remove_param_keys] if args.key?(:remove_param_keys)
11609
11904
  @state = args[:state] if args.key?(:state)
11610
11905
  @static_ip_addresses = args[:static_ip_addresses] if args.key?(:static_ip_addresses)
11611
11906
  @static_ip_enabled = args[:static_ip_enabled] if args.key?(:static_ip_enabled)
@@ -11647,6 +11942,32 @@ module Google
11647
11942
  end
11648
11943
  end
11649
11944
 
11945
+ # Any params and credentials used specifically for hybrid connectors supporting
11946
+ # FEDERATED mode.
11947
+ class GoogleCloudDiscoveryengineV1alphaDataConnectorFederatedConfig
11948
+ include Google::Apis::Core::Hashable
11949
+
11950
+ # Optional. Any additional parameters needed for FEDERATED.
11951
+ # Corresponds to the JSON property `additionalParams`
11952
+ # @return [Hash<String,Object>]
11953
+ attr_accessor :additional_params
11954
+
11955
+ # Optional. Any authentication parameters specific to FEDERATED.
11956
+ # Corresponds to the JSON property `authParams`
11957
+ # @return [Hash<String,Object>]
11958
+ attr_accessor :auth_params
11959
+
11960
+ def initialize(**args)
11961
+ update!(**args)
11962
+ end
11963
+
11964
+ # Update properties of this object
11965
+ def update!(**args)
11966
+ @additional_params = args[:additional_params] if args.key?(:additional_params)
11967
+ @auth_params = args[:auth_params] if args.key?(:auth_params)
11968
+ end
11969
+ end
11970
+
11650
11971
  # The configuration for realtime sync to store additional params for realtime
11651
11972
  # sync.
11652
11973
  class GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig
@@ -13021,6 +13342,13 @@ module Google
13021
13342
  class GoogleCloudDiscoveryengineV1alphaEngine
13022
13343
  include Google::Apis::Core::Hashable
13023
13344
 
13345
+ # Optional. Immutable. This the application type which this engine resource
13346
+ # represents. NOTE: this is a new concept independ of existing industry vertical
13347
+ # or solution type.
13348
+ # Corresponds to the JSON property `appType`
13349
+ # @return [String]
13350
+ attr_accessor :app_type
13351
+
13024
13352
  # Configurations for a Chat Engine.
13025
13353
  # Corresponds to the JSON property `chatEngineConfig`
13026
13354
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig]
@@ -13126,6 +13454,7 @@ module Google
13126
13454
 
13127
13455
  # Update properties of this object
13128
13456
  def update!(**args)
13457
+ @app_type = args[:app_type] if args.key?(:app_type)
13129
13458
  @chat_engine_config = args[:chat_engine_config] if args.key?(:chat_engine_config)
13130
13459
  @chat_engine_metadata = args[:chat_engine_metadata] if args.key?(:chat_engine_metadata)
13131
13460
  @common_config = args[:common_config] if args.key?(:common_config)
@@ -23676,6 +24005,12 @@ module Google
23676
24005
  attr_accessor :default_web_grounding_toggle_off
23677
24006
  alias_method :default_web_grounding_toggle_off?, :default_web_grounding_toggle_off
23678
24007
 
24008
+ # Optional. Output only. Whether to disable user location context.
24009
+ # Corresponds to the JSON property `disableLocationContext`
24010
+ # @return [Boolean]
24011
+ attr_accessor :disable_location_context
24012
+ alias_method :disable_location_context?, :disable_location_context
24013
+
23679
24014
  # Whether or not the Google search grounding toggle is shown. Deprecated. Use
23680
24015
  # web_grounding_type instead.
23681
24016
  # Corresponds to the JSON property `googleSearchGroundingEnabled`
@@ -23695,6 +24030,7 @@ module Google
23695
24030
  # Update properties of this object
23696
24031
  def update!(**args)
23697
24032
  @default_web_grounding_toggle_off = args[:default_web_grounding_toggle_off] if args.key?(:default_web_grounding_toggle_off)
24033
+ @disable_location_context = args[:disable_location_context] if args.key?(:disable_location_context)
23698
24034
  @google_search_grounding_enabled = args[:google_search_grounding_enabled] if args.key?(:google_search_grounding_enabled)
23699
24035
  @web_grounding_type = args[:web_grounding_type] if args.key?(:web_grounding_type)
23700
24036
  end
@@ -23791,6 +24127,11 @@ module Google
23791
24127
  # @return [String]
23792
24128
  attr_accessor :content_config
23793
24129
 
24130
+ # Output only. The type of the data store config.
24131
+ # Corresponds to the JSON property `dataStoreConfigType`
24132
+ # @return [String]
24133
+ attr_accessor :data_store_config_type
24134
+
23794
24135
  # The display name of the data store.
23795
24136
  # Corresponds to the JSON property `displayName`
23796
24137
  # @return [String]
@@ -23831,6 +24172,7 @@ module Google
23831
24172
  # Update properties of this object
23832
24173
  def update!(**args)
23833
24174
  @content_config = args[:content_config] if args.key?(:content_config)
24175
+ @data_store_config_type = args[:data_store_config_type] if args.key?(:data_store_config_type)
23834
24176
  @display_name = args[:display_name] if args.key?(:display_name)
23835
24177
  @entity_name = args[:entity_name] if args.key?(:entity_name)
23836
24178
  @id = args[:id] if args.key?(:id)
@@ -24272,6 +24614,33 @@ module Google
24272
24614
  end
24273
24615
  end
24274
24616
 
24617
+ # Access Control Configuration.
24618
+ class GoogleCloudDiscoveryengineV1betaAclConfig
24619
+ include Google::Apis::Core::Hashable
24620
+
24621
+ # Identity Provider Config.
24622
+ # Corresponds to the JSON property `idpConfig`
24623
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaIdpConfig]
24624
+ attr_accessor :idp_config
24625
+
24626
+ # Immutable. The full resource name of the acl configuration. Format: `projects/`
24627
+ # project`/locations/`location`/aclConfig`. This field must be a UTF-8 encoded
24628
+ # string with a length limit of 1024 characters.
24629
+ # Corresponds to the JSON property `name`
24630
+ # @return [String]
24631
+ attr_accessor :name
24632
+
24633
+ def initialize(**args)
24634
+ update!(**args)
24635
+ end
24636
+
24637
+ # Update properties of this object
24638
+ def update!(**args)
24639
+ @idp_config = args[:idp_config] if args.key?(:idp_config)
24640
+ @name = args[:name] if args.key?(:name)
24641
+ end
24642
+ end
24643
+
24275
24644
  # Configuration data for advance site search.
24276
24645
  class GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig
24277
24646
  include Google::Apis::Core::Hashable
@@ -25815,6 +26184,13 @@ module Google
25815
26184
  class GoogleCloudDiscoveryengineV1betaEngine
25816
26185
  include Google::Apis::Core::Hashable
25817
26186
 
26187
+ # Optional. Immutable. This the application type which this engine resource
26188
+ # represents. NOTE: this is a new concept independ of existing industry vertical
26189
+ # or solution type.
26190
+ # Corresponds to the JSON property `appType`
26191
+ # @return [String]
26192
+ attr_accessor :app_type
26193
+
25818
26194
  # Configurations for a Chat Engine.
25819
26195
  # Corresponds to the JSON property `chatEngineConfig`
25820
26196
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig]
@@ -25910,6 +26286,7 @@ module Google
25910
26286
 
25911
26287
  # Update properties of this object
25912
26288
  def update!(**args)
26289
+ @app_type = args[:app_type] if args.key?(:app_type)
25913
26290
  @chat_engine_config = args[:chat_engine_config] if args.key?(:chat_engine_config)
25914
26291
  @chat_engine_metadata = args[:chat_engine_metadata] if args.key?(:chat_engine_metadata)
25915
26292
  @common_config = args[:common_config] if args.key?(:common_config)
@@ -26418,27 +26795,71 @@ module Google
26418
26795
  end
26419
26796
  end
26420
26797
 
26421
- # Metadata related to the progress of the ImportCompletionSuggestions operation.
26422
- # This will be returned by the google.longrunning.Operation.metadata field.
26423
- class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
26798
+ # Identity Provider Config.
26799
+ class GoogleCloudDiscoveryengineV1betaIdpConfig
26424
26800
  include Google::Apis::Core::Hashable
26425
26801
 
26426
- # Operation create time.
26427
- # Corresponds to the JSON property `createTime`
26428
- # @return [String]
26429
- attr_accessor :create_time
26802
+ # Third party IDP Config.
26803
+ # Corresponds to the JSON property `externalIdpConfig`
26804
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaIdpConfigExternalIdpConfig]
26805
+ attr_accessor :external_idp_config
26430
26806
 
26431
- # Count of CompletionSuggestions that failed to be imported.
26432
- # Corresponds to the JSON property `failureCount`
26433
- # @return [Fixnum]
26434
- attr_accessor :failure_count
26807
+ # Identity provider type configured.
26808
+ # Corresponds to the JSON property `idpType`
26809
+ # @return [String]
26810
+ attr_accessor :idp_type
26435
26811
 
26436
- # Count of CompletionSuggestions successfully imported.
26437
- # Corresponds to the JSON property `successCount`
26438
- # @return [Fixnum]
26439
- attr_accessor :success_count
26812
+ def initialize(**args)
26813
+ update!(**args)
26814
+ end
26440
26815
 
26441
- # Operation last update time. If the operation is done, this is also the finish
26816
+ # Update properties of this object
26817
+ def update!(**args)
26818
+ @external_idp_config = args[:external_idp_config] if args.key?(:external_idp_config)
26819
+ @idp_type = args[:idp_type] if args.key?(:idp_type)
26820
+ end
26821
+ end
26822
+
26823
+ # Third party IDP Config.
26824
+ class GoogleCloudDiscoveryengineV1betaIdpConfigExternalIdpConfig
26825
+ include Google::Apis::Core::Hashable
26826
+
26827
+ # Workforce pool name. Example: "locations/global/workforcePools/pool_id"
26828
+ # Corresponds to the JSON property `workforcePoolName`
26829
+ # @return [String]
26830
+ attr_accessor :workforce_pool_name
26831
+
26832
+ def initialize(**args)
26833
+ update!(**args)
26834
+ end
26835
+
26836
+ # Update properties of this object
26837
+ def update!(**args)
26838
+ @workforce_pool_name = args[:workforce_pool_name] if args.key?(:workforce_pool_name)
26839
+ end
26840
+ end
26841
+
26842
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
26843
+ # This will be returned by the google.longrunning.Operation.metadata field.
26844
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
26845
+ include Google::Apis::Core::Hashable
26846
+
26847
+ # Operation create time.
26848
+ # Corresponds to the JSON property `createTime`
26849
+ # @return [String]
26850
+ attr_accessor :create_time
26851
+
26852
+ # Count of CompletionSuggestions that failed to be imported.
26853
+ # Corresponds to the JSON property `failureCount`
26854
+ # @return [Fixnum]
26855
+ attr_accessor :failure_count
26856
+
26857
+ # Count of CompletionSuggestions successfully imported.
26858
+ # Corresponds to the JSON property `successCount`
26859
+ # @return [Fixnum]
26860
+ attr_accessor :success_count
26861
+
26862
+ # Operation last update time. If the operation is done, this is also the finish
26442
26863
  # time.
26443
26864
  # Corresponds to the JSON property `updateTime`
26444
26865
  # @return [String]
@@ -29364,6 +29785,31 @@ module Google
29364
29785
  end
29365
29786
  end
29366
29787
 
29788
+ # Account and role information.
29789
+ class GoogleCloudNotebooklmV1alphaAccountAndRole
29790
+ include Google::Apis::Core::Hashable
29791
+
29792
+ # Required. The email address associated with the account.
29793
+ # Corresponds to the JSON property `email`
29794
+ # @return [String]
29795
+ attr_accessor :email
29796
+
29797
+ # Required. The role in the notebook.
29798
+ # Corresponds to the JSON property `role`
29799
+ # @return [String]
29800
+ attr_accessor :role
29801
+
29802
+ def initialize(**args)
29803
+ update!(**args)
29804
+ end
29805
+
29806
+ # Update properties of this object
29807
+ def update!(**args)
29808
+ @email = args[:email] if args.key?(:email)
29809
+ @role = args[:role] if args.key?(:role)
29810
+ end
29811
+ end
29812
+
29367
29813
  # Metadata about an agentspace source.
29368
29814
  class GoogleCloudNotebooklmV1alphaAgentspaceMetadata
29369
29815
  include Google::Apis::Core::Hashable
@@ -29389,6 +29835,99 @@ module Google
29389
29835
  end
29390
29836
  end
29391
29837
 
29838
+ # An audio overview of a notebook. This is a summary of the notebook in audio
29839
+ # format.
29840
+ class GoogleCloudNotebooklmV1alphaAudioOverview
29841
+ include Google::Apis::Core::Hashable
29842
+
29843
+ # The audio overview in wav format. This is only present if the status is
29844
+ # AUDIO_OVERVIEW_STATUS_COMPLETE.
29845
+ # Corresponds to the JSON property `audio`
29846
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
29847
+ # @return [String]
29848
+ attr_accessor :audio
29849
+
29850
+ # Output only. Unique ID of the audio overview.
29851
+ # Corresponds to the JSON property `audioOverviewId`
29852
+ # @return [String]
29853
+ attr_accessor :audio_overview_id
29854
+
29855
+ # The language code of the generated audio overview. Use the BCP 47 language
29856
+ # code (e.g. "en", "es", "hi", etc.).
29857
+ # Corresponds to the JSON property `languageCode`
29858
+ # @return [String]
29859
+ attr_accessor :language_code
29860
+
29861
+ # The mime type of the audio overview.
29862
+ # Corresponds to the JSON property `mimeType`
29863
+ # @return [String]
29864
+ attr_accessor :mime_type
29865
+
29866
+ # Identifier. The full resource name of the notebook. Format: `projects/`project`
29867
+ # /locations/`location`/notebooks/`notebook`/audioOverviews/`audio_overview_id``.
29868
+ # This field must be a UTF-8 encoded string with a length limit of 1024
29869
+ # characters.
29870
+ # Corresponds to the JSON property `name`
29871
+ # @return [String]
29872
+ attr_accessor :name
29873
+
29874
+ # The url used to play the audio overview.
29875
+ # Corresponds to the JSON property `playbackUrl`
29876
+ # @return [String]
29877
+ attr_accessor :playback_url
29878
+
29879
+ # The status of the audio overview.
29880
+ # Corresponds to the JSON property `status`
29881
+ # @return [String]
29882
+ attr_accessor :status
29883
+
29884
+ def initialize(**args)
29885
+ update!(**args)
29886
+ end
29887
+
29888
+ # Update properties of this object
29889
+ def update!(**args)
29890
+ @audio = args[:audio] if args.key?(:audio)
29891
+ @audio_overview_id = args[:audio_overview_id] if args.key?(:audio_overview_id)
29892
+ @language_code = args[:language_code] if args.key?(:language_code)
29893
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
29894
+ @name = args[:name] if args.key?(:name)
29895
+ @playback_url = args[:playback_url] if args.key?(:playback_url)
29896
+ @status = args[:status] if args.key?(:status)
29897
+ end
29898
+ end
29899
+
29900
+ # Options used during audio overview generation.
29901
+ class GoogleCloudNotebooklmV1alphaAudioOverviewGenerationOptions
29902
+ include Google::Apis::Core::Hashable
29903
+
29904
+ # What the hosts of the show should focus on.
29905
+ # Corresponds to the JSON property `episodeFocus`
29906
+ # @return [String]
29907
+ attr_accessor :episode_focus
29908
+
29909
+ # The language that the audio overview was requested in.
29910
+ # Corresponds to the JSON property `languageCode`
29911
+ # @return [String]
29912
+ attr_accessor :language_code
29913
+
29914
+ # Optional. The sources in which the audio overview is grounded.
29915
+ # Corresponds to the JSON property `sourceIds`
29916
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSourceId>]
29917
+ attr_accessor :source_ids
29918
+
29919
+ def initialize(**args)
29920
+ update!(**args)
29921
+ end
29922
+
29923
+ # Update properties of this object
29924
+ def update!(**args)
29925
+ @episode_focus = args[:episode_focus] if args.key?(:episode_focus)
29926
+ @language_code = args[:language_code] if args.key?(:language_code)
29927
+ @source_ids = args[:source_ids] if args.key?(:source_ids)
29928
+ end
29929
+ end
29930
+
29392
29931
  # Request for SourceService.BatchCreateSources method.
29393
29932
  class GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest
29394
29933
  include Google::Apis::Core::Hashable
@@ -29427,6 +29966,46 @@ module Google
29427
29966
  end
29428
29967
  end
29429
29968
 
29969
+ # Request for NotebookService.BatchDeleteNotebooks method.
29970
+ class GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest
29971
+ include Google::Apis::Core::Hashable
29972
+
29973
+ # Required. Full resource names of Notebook, such as `projects/`project`/
29974
+ # locations/`location`/notebooks/`notebook_id``.
29975
+ # Corresponds to the JSON property `names`
29976
+ # @return [Array<String>]
29977
+ attr_accessor :names
29978
+
29979
+ def initialize(**args)
29980
+ update!(**args)
29981
+ end
29982
+
29983
+ # Update properties of this object
29984
+ def update!(**args)
29985
+ @names = args[:names] if args.key?(:names)
29986
+ end
29987
+ end
29988
+
29989
+ # Request for SourceService.BatchDeleteSourcesRequest method.
29990
+ class GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest
29991
+ include Google::Apis::Core::Hashable
29992
+
29993
+ # Required. Names of sources to be deleted. Format: projects/`project`/locations/
29994
+ # `location`/notebooks/`notebook`/sources/`source`
29995
+ # Corresponds to the JSON property `names`
29996
+ # @return [Array<String>]
29997
+ attr_accessor :names
29998
+
29999
+ def initialize(**args)
30000
+ update!(**args)
30001
+ end
30002
+
30003
+ # Update properties of this object
30004
+ def update!(**args)
30005
+ @names = args[:names] if args.key?(:names)
30006
+ end
30007
+ end
30008
+
29430
30009
  # Customer-managed encryption configuration for Notebooks.
29431
30010
  class GoogleCloudNotebooklmV1alphaCmekConfig
29432
30011
  include Google::Apis::Core::Hashable
@@ -29447,19 +30026,14 @@ module Google
29447
30026
  end
29448
30027
  end
29449
30028
 
29450
- # Response for NotebookService.ListRecentlyViewedNotebooks method.
29451
- class GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse
30029
+ # Request for AudioOverviewService.CreateAudioOverview method.
30030
+ class GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest
29452
30031
  include Google::Apis::Core::Hashable
29453
30032
 
29454
- # The page token, provide this to retrieve the subsequent page.
29455
- # Corresponds to the JSON property `nextPageToken`
29456
- # @return [String]
29457
- attr_accessor :next_page_token
29458
-
29459
- # The list of recently viewed notebooks.
29460
- # Corresponds to the JSON property `notebooks`
29461
- # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook>]
29462
- attr_accessor :notebooks
30033
+ # Options used during audio overview generation.
30034
+ # Corresponds to the JSON property `generationOptions`
30035
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaAudioOverviewGenerationOptions]
30036
+ attr_accessor :generation_options
29463
30037
 
29464
30038
  def initialize(**args)
29465
30039
  update!(**args)
@@ -29467,48 +30041,19 @@ module Google
29467
30041
 
29468
30042
  # Update properties of this object
29469
30043
  def update!(**args)
29470
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
29471
- @notebooks = args[:notebooks] if args.key?(:notebooks)
30044
+ @generation_options = args[:generation_options] if args.key?(:generation_options)
29472
30045
  end
29473
30046
  end
29474
30047
 
29475
- # Notebook is a resource where users can store their content (as sources) and
29476
- # interacts with the content.
29477
- class GoogleCloudNotebooklmV1alphaNotebook
30048
+ # Response for AudioOverviewService.CreateAudioOverview method.
30049
+ class GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse
29478
30050
  include Google::Apis::Core::Hashable
29479
30051
 
29480
- # Customer-managed encryption configuration for Notebooks.
29481
- # Corresponds to the JSON property `cmekConfig`
29482
- # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCmekConfig]
29483
- attr_accessor :cmek_config
29484
-
29485
- # Output only. The emoji of the notebook.
29486
- # Corresponds to the JSON property `emoji`
29487
- # @return [String]
29488
- attr_accessor :emoji
29489
-
29490
- # Metadata for a notebook.
29491
- # Corresponds to the JSON property `metadata`
29492
- # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebookMetadata]
29493
- attr_accessor :metadata
29494
-
29495
- # Identifier. The identifier of the notebook. Format: `projects/`project`/
29496
- # locations/`location`/notebooks/`notebook_id``. This field must be a UTF-8
29497
- # encoded string.
29498
- # Corresponds to the JSON property `name`
29499
- # @return [String]
29500
- attr_accessor :name
29501
-
29502
- # Optional. Notebook id, which is the last segment of the notebook's resource
29503
- # name. This is to make it similar with notebooklm API.
29504
- # Corresponds to the JSON property `notebookId`
29505
- # @return [String]
29506
- attr_accessor :notebook_id
29507
-
29508
- # Optional. The title of the notebook.
29509
- # Corresponds to the JSON property `title`
29510
- # @return [String]
29511
- attr_accessor :title
30052
+ # An audio overview of a notebook. This is a summary of the notebook in audio
30053
+ # format.
30054
+ # Corresponds to the JSON property `audioOverview`
30055
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaAudioOverview]
30056
+ attr_accessor :audio_overview
29512
30057
 
29513
30058
  def initialize(**args)
29514
30059
  update!(**args)
@@ -29516,41 +30061,74 @@ module Google
29516
30061
 
29517
30062
  # Update properties of this object
29518
30063
  def update!(**args)
29519
- @cmek_config = args[:cmek_config] if args.key?(:cmek_config)
29520
- @emoji = args[:emoji] if args.key?(:emoji)
29521
- @metadata = args[:metadata] if args.key?(:metadata)
29522
- @name = args[:name] if args.key?(:name)
29523
- @notebook_id = args[:notebook_id] if args.key?(:notebook_id)
29524
- @title = args[:title] if args.key?(:title)
30064
+ @audio_overview = args[:audio_overview] if args.key?(:audio_overview)
29525
30065
  end
29526
30066
  end
29527
30067
 
29528
- # Metadata for a notebook.
29529
- class GoogleCloudNotebooklmV1alphaNotebookMetadata
30068
+ # Failure reason containing details about why a source failed to ingest.
30069
+ class GoogleCloudNotebooklmV1alphaFailureReason
29530
30070
  include Google::Apis::Core::Hashable
29531
30071
 
29532
- # The time at which this project was created.
29533
- # Corresponds to the JSON property `createTime`
29534
- # @return [String]
29535
- attr_accessor :create_time
30072
+ # An audio file transcription specific error.
30073
+ # Corresponds to the JSON property `audioTranscriptionError`
30074
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError]
30075
+ attr_accessor :audio_transcription_error
29536
30076
 
29537
- # True if the project is shareable.
29538
- # Corresponds to the JSON property `isShareable`
29539
- # @return [Boolean]
29540
- attr_accessor :is_shareable
29541
- alias_method :is_shareable?, :is_shareable
30077
+ # Error to indicate that the source was removed because the domain was blocked.
30078
+ # Corresponds to the JSON property `domainBlocked`
30079
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked]
30080
+ attr_accessor :domain_blocked
29542
30081
 
29543
- # True if this project is currently shared with other people, false otherwise.
29544
- # Corresponds to the JSON property `isShared`
29545
- # @return [Boolean]
29546
- attr_accessor :is_shared
29547
- alias_method :is_shared?, :is_shared
30082
+ # A google drive specific error.
30083
+ # Corresponds to the JSON property `googleDriveError`
30084
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError]
30085
+ attr_accessor :google_drive_error
29548
30086
 
29549
- # A timestamp indicating the time that the current in session user has last
29550
- # viewed the project.
29551
- # Corresponds to the JSON property `lastViewed`
29552
- # @return [String]
29553
- attr_accessor :last_viewed
30087
+ # Indicates an error occurred while ingesting the source.
30088
+ # Corresponds to the JSON property `ingestionError`
30089
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonIngestionError]
30090
+ attr_accessor :ingestion_error
30091
+
30092
+ # Indicates that the source is paywalled and cannot be ingested.
30093
+ # Corresponds to the JSON property `paywallError`
30094
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonPaywallError]
30095
+ attr_accessor :paywall_error
30096
+
30097
+ # Indicates that the source is empty.
30098
+ # Corresponds to the JSON property `sourceEmpty`
30099
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty]
30100
+ attr_accessor :source_empty
30101
+
30102
+ # Indicates that the user does not have space for this source.
30103
+ # Corresponds to the JSON property `sourceLimitExceeded`
30104
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded]
30105
+ attr_accessor :source_limit_exceeded
30106
+
30107
+ # Indicates source word count exceeded the user's limit.
30108
+ # Corresponds to the JSON property `sourceTooLong`
30109
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong]
30110
+ attr_accessor :source_too_long
30111
+
30112
+ # Indicates that the source is unreachable. This is primarily used for sources
30113
+ # that are added via URL.
30114
+ # Corresponds to the JSON property `sourceUnreachable`
30115
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable]
30116
+ attr_accessor :source_unreachable
30117
+
30118
+ # Indicates an unknown error occurred.
30119
+ # Corresponds to the JSON property `unknown`
30120
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonUnknown]
30121
+ attr_accessor :unknown
30122
+
30123
+ # Indicates an error occurred while uploading the source.
30124
+ # Corresponds to the JSON property `uploadError`
30125
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonUploadError]
30126
+ attr_accessor :upload_error
30127
+
30128
+ # A youtube specific error.
30129
+ # Corresponds to the JSON property `youtubeError`
30130
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError]
30131
+ attr_accessor :youtube_error
29554
30132
 
29555
30133
  def initialize(**args)
29556
30134
  update!(**args)
@@ -29558,38 +30136,34 @@ module Google
29558
30136
 
29559
30137
  # Update properties of this object
29560
30138
  def update!(**args)
29561
- @create_time = args[:create_time] if args.key?(:create_time)
29562
- @is_shareable = args[:is_shareable] if args.key?(:is_shareable)
29563
- @is_shared = args[:is_shared] if args.key?(:is_shared)
29564
- @last_viewed = args[:last_viewed] if args.key?(:last_viewed)
30139
+ @audio_transcription_error = args[:audio_transcription_error] if args.key?(:audio_transcription_error)
30140
+ @domain_blocked = args[:domain_blocked] if args.key?(:domain_blocked)
30141
+ @google_drive_error = args[:google_drive_error] if args.key?(:google_drive_error)
30142
+ @ingestion_error = args[:ingestion_error] if args.key?(:ingestion_error)
30143
+ @paywall_error = args[:paywall_error] if args.key?(:paywall_error)
30144
+ @source_empty = args[:source_empty] if args.key?(:source_empty)
30145
+ @source_limit_exceeded = args[:source_limit_exceeded] if args.key?(:source_limit_exceeded)
30146
+ @source_too_long = args[:source_too_long] if args.key?(:source_too_long)
30147
+ @source_unreachable = args[:source_unreachable] if args.key?(:source_unreachable)
30148
+ @unknown = args[:unknown] if args.key?(:unknown)
30149
+ @upload_error = args[:upload_error] if args.key?(:upload_error)
30150
+ @youtube_error = args[:youtube_error] if args.key?(:youtube_error)
29565
30151
  end
29566
30152
  end
29567
30153
 
29568
- # Source represents a single source of content.
29569
- class GoogleCloudNotebooklmV1alphaSource
30154
+ # An audio file transcription specific error.
30155
+ class GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError
29570
30156
  include Google::Apis::Core::Hashable
29571
30157
 
29572
- # Represents the metadata of a source and some additional information.
29573
- # Corresponds to the JSON property `metadata`
29574
- # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSourceMetadata]
29575
- attr_accessor :metadata
29576
-
29577
- # Identifier. The full resource name of the source. Format: `projects/`project`/
29578
- # locations/`location`/notebooks/`notebook`/sources/`source_id``. This field
29579
- # must be a UTF-8 encoded string with a length limit of 1024 characters.
29580
- # Corresponds to the JSON property `name`
29581
- # @return [String]
29582
- attr_accessor :name
29583
-
29584
- # SourceId is the last segment of the source's resource name.
29585
- # Corresponds to the JSON property `sourceId`
29586
- # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSourceId]
29587
- attr_accessor :source_id
30158
+ # Could not detect language of the file (it may not be speech).
30159
+ # Corresponds to the JSON property `languageDetectionFailed`
30160
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed]
30161
+ attr_accessor :language_detection_failed
29588
30162
 
29589
- # Optional. Title of the source.
29590
- # Corresponds to the JSON property `title`
29591
- # @return [String]
29592
- attr_accessor :title
30163
+ # No audio was detected in the input file.
30164
+ # Corresponds to the JSON property `noAudioDetected`
30165
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected]
30166
+ attr_accessor :no_audio_detected
29593
30167
 
29594
30168
  def initialize(**args)
29595
30169
  update!(**args)
@@ -29597,8 +30171,466 @@ module Google
29597
30171
 
29598
30172
  # Update properties of this object
29599
30173
  def update!(**args)
30174
+ @language_detection_failed = args[:language_detection_failed] if args.key?(:language_detection_failed)
30175
+ @no_audio_detected = args[:no_audio_detected] if args.key?(:no_audio_detected)
30176
+ end
30177
+ end
30178
+
30179
+ # Could not detect language of the file (it may not be speech).
30180
+ class GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed
30181
+ include Google::Apis::Core::Hashable
30182
+
30183
+ def initialize(**args)
30184
+ update!(**args)
30185
+ end
30186
+
30187
+ # Update properties of this object
30188
+ def update!(**args)
30189
+ end
30190
+ end
30191
+
30192
+ # No audio was detected in the input file.
30193
+ class GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected
30194
+ include Google::Apis::Core::Hashable
30195
+
30196
+ def initialize(**args)
30197
+ update!(**args)
30198
+ end
30199
+
30200
+ # Update properties of this object
30201
+ def update!(**args)
30202
+ end
30203
+ end
30204
+
30205
+ # Error to indicate that the source was removed because the domain was blocked.
30206
+ class GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked
30207
+ include Google::Apis::Core::Hashable
30208
+
30209
+ def initialize(**args)
30210
+ update!(**args)
30211
+ end
30212
+
30213
+ # Update properties of this object
30214
+ def update!(**args)
30215
+ end
30216
+ end
30217
+
30218
+ # A google drive specific error.
30219
+ class GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError
30220
+ include Google::Apis::Core::Hashable
30221
+
30222
+ # The user was prevented from downloading the file.
30223
+ # Corresponds to the JSON property `downloadPrevented`
30224
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented]
30225
+ attr_accessor :download_prevented
30226
+
30227
+ def initialize(**args)
30228
+ update!(**args)
30229
+ end
30230
+
30231
+ # Update properties of this object
30232
+ def update!(**args)
30233
+ @download_prevented = args[:download_prevented] if args.key?(:download_prevented)
30234
+ end
30235
+ end
30236
+
30237
+ # The user was prevented from downloading the file.
30238
+ class GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented
30239
+ include Google::Apis::Core::Hashable
30240
+
30241
+ def initialize(**args)
30242
+ update!(**args)
30243
+ end
30244
+
30245
+ # Update properties of this object
30246
+ def update!(**args)
30247
+ end
30248
+ end
30249
+
30250
+ # Indicates an error occurred while ingesting the source.
30251
+ class GoogleCloudNotebooklmV1alphaFailureReasonIngestionError
30252
+ include Google::Apis::Core::Hashable
30253
+
30254
+ def initialize(**args)
30255
+ update!(**args)
30256
+ end
30257
+
30258
+ # Update properties of this object
30259
+ def update!(**args)
30260
+ end
30261
+ end
30262
+
30263
+ # Indicates that the source is paywalled and cannot be ingested.
30264
+ class GoogleCloudNotebooklmV1alphaFailureReasonPaywallError
30265
+ include Google::Apis::Core::Hashable
30266
+
30267
+ def initialize(**args)
30268
+ update!(**args)
30269
+ end
30270
+
30271
+ # Update properties of this object
30272
+ def update!(**args)
30273
+ end
30274
+ end
30275
+
30276
+ # Indicates that the source is empty.
30277
+ class GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty
30278
+ include Google::Apis::Core::Hashable
30279
+
30280
+ def initialize(**args)
30281
+ update!(**args)
30282
+ end
30283
+
30284
+ # Update properties of this object
30285
+ def update!(**args)
30286
+ end
30287
+ end
30288
+
30289
+ # Indicates that the user does not have space for this source.
30290
+ class GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded
30291
+ include Google::Apis::Core::Hashable
30292
+
30293
+ def initialize(**args)
30294
+ update!(**args)
30295
+ end
30296
+
30297
+ # Update properties of this object
30298
+ def update!(**args)
30299
+ end
30300
+ end
30301
+
30302
+ # Indicates source word count exceeded the user's limit.
30303
+ class GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong
30304
+ include Google::Apis::Core::Hashable
30305
+
30306
+ # The number of words in the source.
30307
+ # Corresponds to the JSON property `wordCount`
30308
+ # @return [Fixnum]
30309
+ attr_accessor :word_count
30310
+
30311
+ # The word count limit for the current user at the time of the upload.
30312
+ # Corresponds to the JSON property `wordLimit`
30313
+ # @return [Fixnum]
30314
+ attr_accessor :word_limit
30315
+
30316
+ def initialize(**args)
30317
+ update!(**args)
30318
+ end
30319
+
30320
+ # Update properties of this object
30321
+ def update!(**args)
30322
+ @word_count = args[:word_count] if args.key?(:word_count)
30323
+ @word_limit = args[:word_limit] if args.key?(:word_limit)
30324
+ end
30325
+ end
30326
+
30327
+ # Indicates that the source is unreachable. This is primarily used for sources
30328
+ # that are added via URL.
30329
+ class GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable
30330
+ include Google::Apis::Core::Hashable
30331
+
30332
+ # Describes why the source is unreachable.
30333
+ # Corresponds to the JSON property `errorDetails`
30334
+ # @return [String]
30335
+ attr_accessor :error_details
30336
+
30337
+ def initialize(**args)
30338
+ update!(**args)
30339
+ end
30340
+
30341
+ # Update properties of this object
30342
+ def update!(**args)
30343
+ @error_details = args[:error_details] if args.key?(:error_details)
30344
+ end
30345
+ end
30346
+
30347
+ # Indicates an unknown error occurred.
30348
+ class GoogleCloudNotebooklmV1alphaFailureReasonUnknown
30349
+ include Google::Apis::Core::Hashable
30350
+
30351
+ def initialize(**args)
30352
+ update!(**args)
30353
+ end
30354
+
30355
+ # Update properties of this object
30356
+ def update!(**args)
30357
+ end
30358
+ end
30359
+
30360
+ # Indicates an error occurred while uploading the source.
30361
+ class GoogleCloudNotebooklmV1alphaFailureReasonUploadError
30362
+ include Google::Apis::Core::Hashable
30363
+
30364
+ def initialize(**args)
30365
+ update!(**args)
30366
+ end
30367
+
30368
+ # Update properties of this object
30369
+ def update!(**args)
30370
+ end
30371
+ end
30372
+
30373
+ # A youtube specific error.
30374
+ class GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError
30375
+ include Google::Apis::Core::Hashable
30376
+
30377
+ # Error to indicate that the source was removed because the video was deleted.
30378
+ # Corresponds to the JSON property `videoDeleted`
30379
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted]
30380
+ attr_accessor :video_deleted
30381
+
30382
+ def initialize(**args)
30383
+ update!(**args)
30384
+ end
30385
+
30386
+ # Update properties of this object
30387
+ def update!(**args)
30388
+ @video_deleted = args[:video_deleted] if args.key?(:video_deleted)
30389
+ end
30390
+ end
30391
+
30392
+ # Error to indicate that the source was removed because the video was deleted.
30393
+ class GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted
30394
+ include Google::Apis::Core::Hashable
30395
+
30396
+ def initialize(**args)
30397
+ update!(**args)
30398
+ end
30399
+
30400
+ # Update properties of this object
30401
+ def update!(**args)
30402
+ end
30403
+ end
30404
+
30405
+ # Metadata about a google doc source.
30406
+ class GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata
30407
+ include Google::Apis::Core::Hashable
30408
+
30409
+ # Output only. The document id of the google doc.
30410
+ # Corresponds to the JSON property `documentId`
30411
+ # @return [String]
30412
+ attr_accessor :document_id
30413
+
30414
+ # Output only. Revision id for the doc.
30415
+ # Corresponds to the JSON property `revisionId`
30416
+ # @return [String]
30417
+ attr_accessor :revision_id
30418
+
30419
+ def initialize(**args)
30420
+ update!(**args)
30421
+ end
30422
+
30423
+ # Update properties of this object
30424
+ def update!(**args)
30425
+ @document_id = args[:document_id] if args.key?(:document_id)
30426
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
30427
+ end
30428
+ end
30429
+
30430
+ # Response for NotebookService.ListRecentlyViewedNotebooks method.
30431
+ class GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse
30432
+ include Google::Apis::Core::Hashable
30433
+
30434
+ # The page token, provide this to retrieve the subsequent page.
30435
+ # Corresponds to the JSON property `nextPageToken`
30436
+ # @return [String]
30437
+ attr_accessor :next_page_token
30438
+
30439
+ # The list of recently viewed notebooks.
30440
+ # Corresponds to the JSON property `notebooks`
30441
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook>]
30442
+ attr_accessor :notebooks
30443
+
30444
+ def initialize(**args)
30445
+ update!(**args)
30446
+ end
30447
+
30448
+ # Update properties of this object
30449
+ def update!(**args)
30450
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
30451
+ @notebooks = args[:notebooks] if args.key?(:notebooks)
30452
+ end
30453
+ end
30454
+
30455
+ # Notebook is a resource where users can store their content (as sources) and
30456
+ # interacts with the content.
30457
+ class GoogleCloudNotebooklmV1alphaNotebook
30458
+ include Google::Apis::Core::Hashable
30459
+
30460
+ # Customer-managed encryption configuration for Notebooks.
30461
+ # Corresponds to the JSON property `cmekConfig`
30462
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCmekConfig]
30463
+ attr_accessor :cmek_config
30464
+
30465
+ # Output only. The emoji of the notebook.
30466
+ # Corresponds to the JSON property `emoji`
30467
+ # @return [String]
30468
+ attr_accessor :emoji
30469
+
30470
+ # Metadata for a notebook.
30471
+ # Corresponds to the JSON property `metadata`
30472
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebookMetadata]
30473
+ attr_accessor :metadata
30474
+
30475
+ # Identifier. The identifier of the notebook. Format: `projects/`project`/
30476
+ # locations/`location`/notebooks/`notebook_id``. This field must be a UTF-8
30477
+ # encoded string.
30478
+ # Corresponds to the JSON property `name`
30479
+ # @return [String]
30480
+ attr_accessor :name
30481
+
30482
+ # Output only. Notebook id, which is the last segment of the notebook's resource
30483
+ # name.
30484
+ # Corresponds to the JSON property `notebookId`
30485
+ # @return [String]
30486
+ attr_accessor :notebook_id
30487
+
30488
+ # Output only. List of sources in the notebook. This is an output only field.
30489
+ # Corresponds to the JSON property `sources`
30490
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSource>]
30491
+ attr_accessor :sources
30492
+
30493
+ # Optional. The title of the notebook.
30494
+ # Corresponds to the JSON property `title`
30495
+ # @return [String]
30496
+ attr_accessor :title
30497
+
30498
+ def initialize(**args)
30499
+ update!(**args)
30500
+ end
30501
+
30502
+ # Update properties of this object
30503
+ def update!(**args)
30504
+ @cmek_config = args[:cmek_config] if args.key?(:cmek_config)
30505
+ @emoji = args[:emoji] if args.key?(:emoji)
29600
30506
  @metadata = args[:metadata] if args.key?(:metadata)
29601
30507
  @name = args[:name] if args.key?(:name)
30508
+ @notebook_id = args[:notebook_id] if args.key?(:notebook_id)
30509
+ @sources = args[:sources] if args.key?(:sources)
30510
+ @title = args[:title] if args.key?(:title)
30511
+ end
30512
+ end
30513
+
30514
+ # Metadata for a notebook.
30515
+ class GoogleCloudNotebooklmV1alphaNotebookMetadata
30516
+ include Google::Apis::Core::Hashable
30517
+
30518
+ # The time at which this project was created.
30519
+ # Corresponds to the JSON property `createTime`
30520
+ # @return [String]
30521
+ attr_accessor :create_time
30522
+
30523
+ # True if the project is shareable.
30524
+ # Corresponds to the JSON property `isShareable`
30525
+ # @return [Boolean]
30526
+ attr_accessor :is_shareable
30527
+ alias_method :is_shareable?, :is_shareable
30528
+
30529
+ # True if this project is currently shared with other people, false otherwise.
30530
+ # Corresponds to the JSON property `isShared`
30531
+ # @return [Boolean]
30532
+ attr_accessor :is_shared
30533
+ alias_method :is_shared?, :is_shared
30534
+
30535
+ # A timestamp indicating the time that the current in session user has last
30536
+ # viewed the project.
30537
+ # Corresponds to the JSON property `lastViewed`
30538
+ # @return [String]
30539
+ attr_accessor :last_viewed
30540
+
30541
+ def initialize(**args)
30542
+ update!(**args)
30543
+ end
30544
+
30545
+ # Update properties of this object
30546
+ def update!(**args)
30547
+ @create_time = args[:create_time] if args.key?(:create_time)
30548
+ @is_shareable = args[:is_shareable] if args.key?(:is_shareable)
30549
+ @is_shared = args[:is_shared] if args.key?(:is_shared)
30550
+ @last_viewed = args[:last_viewed] if args.key?(:last_viewed)
30551
+ end
30552
+ end
30553
+
30554
+ # Request for NotebookService.ShareNotebook method.
30555
+ class GoogleCloudNotebooklmV1alphaShareNotebookRequest
30556
+ include Google::Apis::Core::Hashable
30557
+
30558
+ # Required. The list of accounts and roles to share the notebook with.
30559
+ # Corresponds to the JSON property `accountAndRoles`
30560
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaAccountAndRole>]
30561
+ attr_accessor :account_and_roles
30562
+
30563
+ # Required. Whether to notify the shared users via email.
30564
+ # Corresponds to the JSON property `notifyViaEmail`
30565
+ # @return [Boolean]
30566
+ attr_accessor :notify_via_email
30567
+ alias_method :notify_via_email?, :notify_via_email
30568
+
30569
+ def initialize(**args)
30570
+ update!(**args)
30571
+ end
30572
+
30573
+ # Update properties of this object
30574
+ def update!(**args)
30575
+ @account_and_roles = args[:account_and_roles] if args.key?(:account_and_roles)
30576
+ @notify_via_email = args[:notify_via_email] if args.key?(:notify_via_email)
30577
+ end
30578
+ end
30579
+
30580
+ # Response for NotebookService.ShareNotebook method.
30581
+ class GoogleCloudNotebooklmV1alphaShareNotebookResponse
30582
+ include Google::Apis::Core::Hashable
30583
+
30584
+ def initialize(**args)
30585
+ update!(**args)
30586
+ end
30587
+
30588
+ # Update properties of this object
30589
+ def update!(**args)
30590
+ end
30591
+ end
30592
+
30593
+ # Source represents a single source of content.
30594
+ class GoogleCloudNotebooklmV1alphaSource
30595
+ include Google::Apis::Core::Hashable
30596
+
30597
+ # Represents the metadata of a source and some additional information.
30598
+ # Corresponds to the JSON property `metadata`
30599
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSourceMetadata]
30600
+ attr_accessor :metadata
30601
+
30602
+ # Identifier. The full resource name of the source. Format: `projects/`project`/
30603
+ # locations/`location`/notebooks/`notebook`/sources/`source_id``. This field
30604
+ # must be a UTF-8 encoded string with a length limit of 1024 characters.
30605
+ # Corresponds to the JSON property `name`
30606
+ # @return [String]
30607
+ attr_accessor :name
30608
+
30609
+ # Allows extension of Source Settings in the BatchCreateSources (Formerly
30610
+ # AddSource request).
30611
+ # Corresponds to the JSON property `settings`
30612
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSourceSettings]
30613
+ attr_accessor :settings
30614
+
30615
+ # SourceId is the last segment of the source's resource name.
30616
+ # Corresponds to the JSON property `sourceId`
30617
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSourceId]
30618
+ attr_accessor :source_id
30619
+
30620
+ # Optional. Title of the source.
30621
+ # Corresponds to the JSON property `title`
30622
+ # @return [String]
30623
+ attr_accessor :title
30624
+
30625
+ def initialize(**args)
30626
+ update!(**args)
30627
+ end
30628
+
30629
+ # Update properties of this object
30630
+ def update!(**args)
30631
+ @metadata = args[:metadata] if args.key?(:metadata)
30632
+ @name = args[:name] if args.key?(:name)
30633
+ @settings = args[:settings] if args.key?(:settings)
29602
30634
  @source_id = args[:source_id] if args.key?(:source_id)
29603
30635
  @title = args[:title] if args.key?(:title)
29604
30636
  end
@@ -29632,6 +30664,11 @@ module Google
29632
30664
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaAgentspaceMetadata]
29633
30665
  attr_accessor :agentspace_metadata
29634
30666
 
30667
+ # Metadata about a google doc source.
30668
+ # Corresponds to the JSON property `googleDocsMetadata`
30669
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata]
30670
+ attr_accessor :google_docs_metadata
30671
+
29635
30672
  # The timestamp the source was added.
29636
30673
  # Corresponds to the JSON property `sourceAddedTimestamp`
29637
30674
  # @return [String]
@@ -29647,6 +30684,11 @@ module Google
29647
30684
  # @return [Fixnum]
29648
30685
  attr_accessor :word_count
29649
30686
 
30687
+ # Metadata about a youtube video source.
30688
+ # Corresponds to the JSON property `youtubeMetadata`
30689
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaYoutubeMetadata]
30690
+ attr_accessor :youtube_metadata
30691
+
29650
30692
  def initialize(**args)
29651
30693
  update!(**args)
29652
30694
  end
@@ -29654,9 +30696,37 @@ module Google
29654
30696
  # Update properties of this object
29655
30697
  def update!(**args)
29656
30698
  @agentspace_metadata = args[:agentspace_metadata] if args.key?(:agentspace_metadata)
30699
+ @google_docs_metadata = args[:google_docs_metadata] if args.key?(:google_docs_metadata)
29657
30700
  @source_added_timestamp = args[:source_added_timestamp] if args.key?(:source_added_timestamp)
29658
30701
  @token_count = args[:token_count] if args.key?(:token_count)
29659
30702
  @word_count = args[:word_count] if args.key?(:word_count)
30703
+ @youtube_metadata = args[:youtube_metadata] if args.key?(:youtube_metadata)
30704
+ end
30705
+ end
30706
+
30707
+ # Allows extension of Source Settings in the BatchCreateSources (Formerly
30708
+ # AddSource request).
30709
+ class GoogleCloudNotebooklmV1alphaSourceSettings
30710
+ include Google::Apis::Core::Hashable
30711
+
30712
+ # Failure reason containing details about why a source failed to ingest.
30713
+ # Corresponds to the JSON property `failureReason`
30714
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaFailureReason]
30715
+ attr_accessor :failure_reason
30716
+
30717
+ # Status of the source.
30718
+ # Corresponds to the JSON property `status`
30719
+ # @return [String]
30720
+ attr_accessor :status
30721
+
30722
+ def initialize(**args)
30723
+ update!(**args)
30724
+ end
30725
+
30726
+ # Update properties of this object
30727
+ def update!(**args)
30728
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
30729
+ @status = args[:status] if args.key?(:status)
29660
30730
  end
29661
30731
  end
29662
30732
 
@@ -29733,6 +30803,26 @@ module Google
29733
30803
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent]
29734
30804
  attr_accessor :agentspace_content
29735
30805
 
30806
+ # The content from Google Drive.
30807
+ # Corresponds to the JSON property `googleDriveContent`
30808
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent]
30809
+ attr_accessor :google_drive_content
30810
+
30811
+ # The text content uploaded as source.
30812
+ # Corresponds to the JSON property `textContent`
30813
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaUserContentTextContent]
30814
+ attr_accessor :text_content
30815
+
30816
+ # Video content uploaded as source.
30817
+ # Corresponds to the JSON property `videoContent`
30818
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaUserContentVideoContent]
30819
+ attr_accessor :video_content
30820
+
30821
+ # The web content uploaded as source.
30822
+ # Corresponds to the JSON property `webContent`
30823
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaUserContentWebContent]
30824
+ attr_accessor :web_content
30825
+
29736
30826
  def initialize(**args)
29737
30827
  update!(**args)
29738
30828
  end
@@ -29740,6 +30830,10 @@ module Google
29740
30830
  # Update properties of this object
29741
30831
  def update!(**args)
29742
30832
  @agentspace_content = args[:agentspace_content] if args.key?(:agentspace_content)
30833
+ @google_drive_content = args[:google_drive_content] if args.key?(:google_drive_content)
30834
+ @text_content = args[:text_content] if args.key?(:text_content)
30835
+ @video_content = args[:video_content] if args.key?(:video_content)
30836
+ @web_content = args[:web_content] if args.key?(:web_content)
29743
30837
  end
29744
30838
  end
29745
30839
 
@@ -29774,6 +30868,134 @@ module Google
29774
30868
  end
29775
30869
  end
29776
30870
 
30871
+ # The content from Google Drive.
30872
+ class GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent
30873
+ include Google::Apis::Core::Hashable
30874
+
30875
+ # The document id of the selected document.
30876
+ # Corresponds to the JSON property `documentId`
30877
+ # @return [String]
30878
+ attr_accessor :document_id
30879
+
30880
+ # The mime type of the selected document. This can be used to differentiate type
30881
+ # of content selected in the drive picker. Use application/vnd.google-apps.
30882
+ # document for Google Docs or application/vnd.google-apps.presentation for
30883
+ # Google Slides.
30884
+ # Corresponds to the JSON property `mimeType`
30885
+ # @return [String]
30886
+ attr_accessor :mime_type
30887
+
30888
+ # The name to be displayed for the source.
30889
+ # Corresponds to the JSON property `sourceName`
30890
+ # @return [String]
30891
+ attr_accessor :source_name
30892
+
30893
+ def initialize(**args)
30894
+ update!(**args)
30895
+ end
30896
+
30897
+ # Update properties of this object
30898
+ def update!(**args)
30899
+ @document_id = args[:document_id] if args.key?(:document_id)
30900
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
30901
+ @source_name = args[:source_name] if args.key?(:source_name)
30902
+ end
30903
+ end
30904
+
30905
+ # The text content uploaded as source.
30906
+ class GoogleCloudNotebooklmV1alphaUserContentTextContent
30907
+ include Google::Apis::Core::Hashable
30908
+
30909
+ # The name to be displayed for the source.
30910
+ # Corresponds to the JSON property `content`
30911
+ # @return [String]
30912
+ attr_accessor :content
30913
+
30914
+ # The display name of the text source.
30915
+ # Corresponds to the JSON property `sourceName`
30916
+ # @return [String]
30917
+ attr_accessor :source_name
30918
+
30919
+ def initialize(**args)
30920
+ update!(**args)
30921
+ end
30922
+
30923
+ # Update properties of this object
30924
+ def update!(**args)
30925
+ @content = args[:content] if args.key?(:content)
30926
+ @source_name = args[:source_name] if args.key?(:source_name)
30927
+ end
30928
+ end
30929
+
30930
+ # Video content uploaded as source.
30931
+ class GoogleCloudNotebooklmV1alphaUserContentVideoContent
30932
+ include Google::Apis::Core::Hashable
30933
+
30934
+ # The youtube url of the video content.
30935
+ # Corresponds to the JSON property `youtubeUrl`
30936
+ # @return [String]
30937
+ attr_accessor :youtube_url
30938
+
30939
+ def initialize(**args)
30940
+ update!(**args)
30941
+ end
30942
+
30943
+ # Update properties of this object
30944
+ def update!(**args)
30945
+ @youtube_url = args[:youtube_url] if args.key?(:youtube_url)
30946
+ end
30947
+ end
30948
+
30949
+ # The web content uploaded as source.
30950
+ class GoogleCloudNotebooklmV1alphaUserContentWebContent
30951
+ include Google::Apis::Core::Hashable
30952
+
30953
+ # The name to be displayed for the source.
30954
+ # Corresponds to the JSON property `sourceName`
30955
+ # @return [String]
30956
+ attr_accessor :source_name
30957
+
30958
+ # If URL is supplied, will fetch the webpage in the backend.
30959
+ # Corresponds to the JSON property `url`
30960
+ # @return [String]
30961
+ attr_accessor :url
30962
+
30963
+ def initialize(**args)
30964
+ update!(**args)
30965
+ end
30966
+
30967
+ # Update properties of this object
30968
+ def update!(**args)
30969
+ @source_name = args[:source_name] if args.key?(:source_name)
30970
+ @url = args[:url] if args.key?(:url)
30971
+ end
30972
+ end
30973
+
30974
+ # Metadata about a youtube video source.
30975
+ class GoogleCloudNotebooklmV1alphaYoutubeMetadata
30976
+ include Google::Apis::Core::Hashable
30977
+
30978
+ # Output only. The channel name of the youtube video.
30979
+ # Corresponds to the JSON property `channelName`
30980
+ # @return [String]
30981
+ attr_accessor :channel_name
30982
+
30983
+ # Output only. The id of the youtube video.
30984
+ # Corresponds to the JSON property `videoId`
30985
+ # @return [String]
30986
+ attr_accessor :video_id
30987
+
30988
+ def initialize(**args)
30989
+ update!(**args)
30990
+ end
30991
+
30992
+ # Update properties of this object
30993
+ def update!(**args)
30994
+ @channel_name = args[:channel_name] if args.key?(:channel_name)
30995
+ @video_id = args[:video_id] if args.key?(:video_id)
30996
+ end
30997
+ end
30998
+
29777
30999
  # The request message for Operations.CancelOperation.
29778
31000
  class GoogleLongrunningCancelOperationRequest
29779
31001
  include Google::Apis::Core::Hashable