google-cloud-dataqna-v1alpha 0.11.0 → 0.12.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 949094f566bf93740a43b804c1252f253b9e1b329bb8687029f17292f8577176
4
- data.tar.gz: 3bc866af883f8488a0091ac887786b5f85fe9ebfb5aa50cf7ed5e509b5a440c4
3
+ metadata.gz: d2b3206e07dbee18954e72d7fedcc8e181ef5c13b2d54baa5e1847077f1c57f8
4
+ data.tar.gz: b5a866f4d7e167d3e88cf366d20bf994cf4dc98520062bfdda10e04b58031135
5
5
  SHA512:
6
- metadata.gz: dd2e0e77ab4a022517db4d66ac9330847fcae046156fbf53c4a493a9522dac3a5c02b377790f90dbbc8daae2d30128e1552dca36a6afef389e1a15d99adf2c79
7
- data.tar.gz: c20916e76abae8b80d6e99154b0862b3a5199d1506e13d1f85cdc1a5221e2ae688ea491f3bce23f204665c7ebb3a8cc476ce6d85e60242cbd8bd237488f5b6f1
6
+ metadata.gz: 1bf50f3d0308e109ce05ab1232b17bdd92f41aead7d2b8445ed90911782019ab7302ea96430cdd8a6b5af3cfaf3f3b172d375ff906c507516c74c4ed371e9933
7
+ data.tar.gz: c6b385c565b972368493d1fff9ce49b170c60fee6ebd4f884e6069296174db6e1e9febf9c96e0976717392be22a3b58c5aa309404aaa69639a2817b6521f33e0
@@ -7,29 +7,8 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n3google/cloud/dataqna/v1alpha/annotated_string.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\"\x99\x03\n\x0f\x41nnotatedString\x12\x16\n\x0etext_formatted\x18\x01 \x01(\t\x12\x16\n\x0ehtml_formatted\x18\x02 \x01(\t\x12M\n\x07markups\x18\x03 \x03(\x0b\x32<.google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkup\x1a\x8a\x01\n\x0eSemanticMarkup\x12N\n\x04type\x18\x01 \x01(\x0e\x32@.google.cloud.dataqna.v1alpha.AnnotatedString.SemanticMarkupType\x12\x18\n\x10start_char_index\x18\x02 \x01(\x05\x12\x0e\n\x06length\x18\x03 \x01(\x05\"z\n\x12SemanticMarkupType\x12\x1b\n\x17MARKUP_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06METRIC\x10\x01\x12\r\n\tDIMENSION\x10\x02\x12\n\n\x06\x46ILTER\x10\x03\x12\n\n\x06UNUSED\x10\x04\x12\x0b\n\x07\x42LOCKED\x10\x05\x12\x07\n\x03ROW\x10\x06\x42\xd6\x01\n com.google.cloud.dataqna.v1alphaB\x14\x41nnotatedStringProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\x06proto3"
9
9
 
10
- pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Google
35
14
  module Cloud
@@ -387,8 +387,6 @@ module Google
387
387
  # @return [::String,nil]
388
388
  # @!attribute [rw] credentials
389
389
  # Credentials to send with calls. You may provide any of the following types:
390
- # * (`String`) The path to a service account key file in JSON format
391
- # * (`Hash`) A service account key as a Hash
392
390
  # * (`Google::Auth::Credentials`) A googleauth credentials object
393
391
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
394
392
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -397,7 +395,26 @@ module Google
397
395
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
398
396
  # * (`nil`) indicating no credentials
399
397
  #
400
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
398
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
399
+ # is deprecated. Providing an unvalidated credential configuration to
400
+ # Google APIs can compromise the security of your systems and data.
401
+ #
402
+ # @example
403
+ #
404
+ # # The recommended way to provide credentials is to use the `make_creds` method
405
+ # # on the appropriate credentials class for your environment.
406
+ #
407
+ # require "googleauth"
408
+ #
409
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
410
+ # json_key_io: ::File.open("/path/to/keyfile.json")
411
+ # )
412
+ #
413
+ # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
414
+ # config.credentials = credentials
415
+ # end
416
+ #
417
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
401
418
  # external source for authentication to Google Cloud, you must validate it before
402
419
  # providing it to a Google API client library. Providing an unvalidated credential
403
420
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -13,30 +13,8 @@ require 'google/api/client_pb'
13
13
 
14
14
  descriptor_data = "\n:google/cloud/dataqna/v1alpha/auto_suggestion_service.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dataqna/v1alpha/annotated_string.proto\x1a\x17google/api/client.proto\"\xb9\x01\n\x15SuggestQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06scopes\x18\x02 \x03(\t\x12\r\n\x05query\x18\x03 \x01(\t\x12\x46\n\x10suggestion_types\x18\x04 \x03(\x0e\x32,.google.cloud.dataqna.v1alpha.SuggestionType\"\xb1\x01\n\nSuggestion\x12\x45\n\x0fsuggestion_info\x18\x01 \x01(\x0b\x32,.google.cloud.dataqna.v1alpha.SuggestionInfo\x12\x15\n\rranking_score\x18\x02 \x01(\x01\x12\x45\n\x0fsuggestion_type\x18\x03 \x01(\x0e\x32,.google.cloud.dataqna.v1alpha.SuggestionType\"\xe3\x01\n\x0eSuggestionInfo\x12K\n\x14\x61nnotated_suggestion\x18\x01 \x01(\x0b\x32-.google.cloud.dataqna.v1alpha.AnnotatedString\x12M\n\rquery_matches\x18\x02 \x03(\x0b\x32\x36.google.cloud.dataqna.v1alpha.SuggestionInfo.MatchInfo\x1a\x35\n\tMatchInfo\x12\x18\n\x10start_char_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\"W\n\x16SuggestQueriesResponse\x12=\n\x0bsuggestions\x18\x01 \x03(\x0b\x32(.google.cloud.dataqna.v1alpha.Suggestion*K\n\x0eSuggestionType\x12\x1f\n\x1bSUGGESTION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45NTITY\x10\x01\x12\x0c\n\x08TEMPLATE\x10\x02\x32\xa5\x02\n\x15\x41utoSuggestionService\x12\xbf\x01\n\x0eSuggestQueries\x12\x33.google.cloud.dataqna.v1alpha.SuggestQueriesRequest\x1a\x34.google.cloud.dataqna.v1alpha.SuggestQueriesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{parent=projects/*/locations/*}:suggestQueries:\x01*\x1aJ\xca\x41\x16\x64\x61taqna.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdc\x01\n com.google.cloud.dataqna.v1alphaB\x1a\x41utoSuggestionServiceProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\x06proto3"
15
15
 
16
- pool = Google::Protobuf::DescriptorPool.generated_pool
17
-
18
- begin
19
- pool.add_serialized_file(descriptor_data)
20
- rescue TypeError
21
- # Compatibility code: will be removed in the next major version.
22
- require 'google/protobuf/descriptor_pb'
23
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
- parsed.clear_dependency
25
- serialized = parsed.class.encode(parsed)
26
- file = pool.add_serialized_file(serialized)
27
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
- imports = [
29
- ["google.cloud.dataqna.v1alpha.AnnotatedString", "google/cloud/dataqna/v1alpha/annotated_string.proto"],
30
- ]
31
- imports.each do |type_name, expected_filename|
32
- import_file = pool.lookup(type_name).file_descriptor
33
- if import_file.name != expected_filename
34
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
- end
36
- end
37
- warn "Each proto file must use a consistent fully-qualified name."
38
- warn "This will become an error in the next major version."
39
- end
16
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
17
+ pool.add_serialized_file(descriptor_data)
40
18
 
41
19
  module Google
42
20
  module Cloud
@@ -14,33 +14,8 @@ require 'google/rpc/status_pb'
14
14
 
15
15
  descriptor_data = "\n+google/cloud/dataqna/v1alpha/question.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dataqna/v1alpha/annotated_string.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9d\x04\n\x08Question\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x16\n\x06scopes\x18\x02 \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x15\n\x05query\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1f\n\x17\x64\x61ta_source_annotations\x18\x04 \x03(\t\x12\x45\n\x0finterpret_error\x18\x05 \x01(\x0b\x32,.google.cloud.dataqna.v1alpha.InterpretError\x12\x45\n\x0finterpretations\x18\x06 \x03(\x0b\x32,.google.cloud.dataqna.v1alpha.Interpretation\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\nuser_email\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0b\x64\x65\x62ug_flags\x18\t \x01(\x0b\x32(.google.cloud.dataqna.v1alpha.DebugFlagsB\x06\xe0\x41\x05\xe0\x41\x04\x12(\n\ndebug_info\x18\n \x01(\x0b\x32\x14.google.protobuf.Any:b\xea\x41_\n\x1f\x64\x61taqna.googleapis.com/Question\x12<projects/{project}/locations/{location}/questions/{question}\"\xdb\x06\n\x0eInterpretError\x12\x0f\n\x07message\x18\x01 \x01(\t\x12M\n\x04\x63ode\x18\x02 \x01(\x0e\x32?.google.cloud.dataqna.v1alpha.InterpretError.InterpretErrorCode\x12S\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32\x42.google.cloud.dataqna.v1alpha.InterpretError.InterpretErrorDetails\x1a\xd1\x02\n\x15InterpretErrorDetails\x12\x65\n\x13unsupported_details\x18\x01 \x01(\x0b\x32H.google.cloud.dataqna.v1alpha.InterpretError.InterpretUnsupportedDetails\x12n\n\x18incomplete_query_details\x18\x02 \x01(\x0b\x32L.google.cloud.dataqna.v1alpha.InterpretError.InterpretIncompleteQueryDetails\x12\x61\n\x11\x61mbiguity_details\x18\x03 \x01(\x0b\x32\x46.google.cloud.dataqna.v1alpha.InterpretError.InterpretAmbiguityDetails\x1a@\n\x1bInterpretUnsupportedDetails\x12\x11\n\toperators\x18\x01 \x03(\t\x12\x0e\n\x06intent\x18\x02 \x03(\t\x1a\x62\n\x1fInterpretIncompleteQueryDetails\x12?\n\x08\x65ntities\x18\x01 \x03(\x0e\x32-.google.cloud.dataqna.v1alpha.InterpretEntity\x1a\x1b\n\x19InterpretAmbiguityDetails\"}\n\x12InterpretErrorCode\x12$\n INTERPRET_ERROR_CODE_UNSPECIFIED\x10\x00\x12\x11\n\rINVALID_QUERY\x10\x01\x12\x18\n\x14\x46\x41ILED_TO_UNDERSTAND\x10\x02\x12\x14\n\x10\x46\x41ILED_TO_ANSWER\x10\x03\"\x82\x03\n\rExecutionInfo\x12/\n\x13job_creation_status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12Z\n\x13job_execution_state\x18\x02 \x01(\x0e\x32=.google.cloud.dataqna.v1alpha.ExecutionInfo.JobExecutionState\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x0c\x62igquery_job\x18\x04 \x01(\x0b\x32).google.cloud.dataqna.v1alpha.BigQueryJob\"r\n\x11JobExecutionState\x12#\n\x1fJOB_EXECUTION_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_EXECUTED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"C\n\x0b\x42igQueryJob\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"\xf2\x02\n\x0eInterpretation\x12\x14\n\x0c\x64\x61ta_sources\x18\x01 \x03(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x01\x12\x16\n\x0eunused_phrases\x18\x03 \x03(\t\x12\x43\n\x0ehuman_readable\x18\x04 \x01(\x0b\x32+.google.cloud.dataqna.v1alpha.HumanReadable\x12W\n\x18interpretation_structure\x18\x05 \x01(\x0b\x32\x35.google.cloud.dataqna.v1alpha.InterpretationStructure\x12;\n\ndata_query\x18\x06 \x01(\x0b\x32\'.google.cloud.dataqna.v1alpha.DataQuery\x12\x43\n\x0e\x65xecution_info\x18\x07 \x01(\x0b\x32+.google.cloud.dataqna.v1alpha.ExecutionInfo\"\x18\n\tDataQuery\x12\x0b\n\x03sql\x18\x01 \x01(\t\"\xaa\x01\n\rHumanReadable\x12O\n\x18generated_interpretation\x18\x01 \x01(\x0b\x32-.google.cloud.dataqna.v1alpha.AnnotatedString\x12H\n\x11original_question\x18\x02 \x01(\x0b\x32-.google.cloud.dataqna.v1alpha.AnnotatedString\"\x92\x04\n\x17InterpretationStructure\x12\x64\n\x13visualization_types\x18\x01 \x03(\x0e\x32G.google.cloud.dataqna.v1alpha.InterpretationStructure.VisualizationType\x12U\n\x0b\x63olumn_info\x18\x02 \x03(\x0b\x32@.google.cloud.dataqna.v1alpha.InterpretationStructure.ColumnInfo\x1a\x38\n\nColumnInfo\x12\x14\n\x0coutput_alias\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xff\x01\n\x11VisualizationType\x12\"\n\x1eVISUALIZATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\r\n\tBAR_CHART\x10\x02\x12\x10\n\x0c\x43OLUMN_CHART\x10\x03\x12\x0c\n\x08TIMELINE\x10\x04\x12\x10\n\x0cSCATTER_PLOT\x10\x05\x12\r\n\tPIE_CHART\x10\x06\x12\x0e\n\nLINE_CHART\x10\x07\x12\x0e\n\nAREA_CHART\x10\x08\x12\x0f\n\x0b\x43OMBO_CHART\x10\t\x12\r\n\tHISTOGRAM\x10\n\x12\x11\n\rGENERIC_CHART\x10\x0b\x12\x18\n\x14\x43HART_NOT_UNDERSTOOD\x10\x0c\"\x95\x03\n\nDebugFlags\x12\x18\n\x10include_va_query\x18\x01 \x01(\x08\x12\x1f\n\x17include_nested_va_query\x18\x02 \x01(\x08\x12$\n\x1cinclude_human_interpretation\x18\x03 \x01(\x08\x12#\n\x1binclude_aqua_debug_response\x18\x04 \x01(\x08\x12\x15\n\rtime_override\x18\x05 \x01(\x03\x12\x1f\n\x17is_internal_google_user\x18\x06 \x01(\x08\x12\x14\n\x0cignore_cache\x18\x07 \x01(\x08\x12#\n\x1binclude_search_entities_rpc\x18\x08 \x01(\x08\x12+\n#include_list_column_annotations_rpc\x18\t \x01(\x08\x12(\n include_virtual_analyst_entities\x18\n \x01(\x08\x12\x1a\n\x12include_table_list\x18\x0b \x01(\x08\x12\x1b\n\x13include_domain_list\x18\x0c \x01(\x08*N\n\x0fInterpretEntity\x12 \n\x1cINTERPRET_ENTITY_UNSPECIFIED\x10\x00\x12\r\n\tDIMENSION\x10\x01\x12\n\n\x06METRIC\x10\x02\x42\xcf\x01\n com.google.cloud.dataqna.v1alphaB\rQuestionProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\x06proto3"
16
16
 
17
- pool = Google::Protobuf::DescriptorPool.generated_pool
18
-
19
- begin
20
- pool.add_serialized_file(descriptor_data)
21
- rescue TypeError
22
- # Compatibility code: will be removed in the next major version.
23
- require 'google/protobuf/descriptor_pb'
24
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
- parsed.clear_dependency
26
- serialized = parsed.class.encode(parsed)
27
- file = pool.add_serialized_file(serialized)
28
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
- imports = [
30
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
- ["google.protobuf.Any", "google/protobuf/any.proto"],
32
- ["google.rpc.Status", "google/rpc/status.proto"],
33
- ["google.cloud.dataqna.v1alpha.AnnotatedString", "google/cloud/dataqna/v1alpha/annotated_string.proto"],
34
- ]
35
- imports.each do |type_name, expected_filename|
36
- import_file = pool.lookup(type_name).file_descriptor
37
- if import_file.name != expected_filename
38
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
- end
40
- end
41
- warn "Each proto file must use a consistent fully-qualified name."
42
- warn "This will become an error in the next major version."
43
- end
17
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
18
+ pool.add_serialized_file(descriptor_data)
44
19
 
45
20
  module Google
46
21
  module Cloud
@@ -685,8 +685,6 @@ module Google
685
685
  # @return [::String,nil]
686
686
  # @!attribute [rw] credentials
687
687
  # Credentials to send with calls. You may provide any of the following types:
688
- # * (`String`) The path to a service account key file in JSON format
689
- # * (`Hash`) A service account key as a Hash
690
688
  # * (`Google::Auth::Credentials`) A googleauth credentials object
691
689
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
692
690
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -695,7 +693,26 @@ module Google
695
693
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
696
694
  # * (`nil`) indicating no credentials
697
695
  #
698
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
696
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
697
+ # is deprecated. Providing an unvalidated credential configuration to
698
+ # Google APIs can compromise the security of your systems and data.
699
+ #
700
+ # @example
701
+ #
702
+ # # The recommended way to provide credentials is to use the `make_creds` method
703
+ # # on the appropriate credentials class for your environment.
704
+ #
705
+ # require "googleauth"
706
+ #
707
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
708
+ # json_key_io: ::File.open("/path/to/keyfile.json")
709
+ # )
710
+ #
711
+ # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
712
+ # config.credentials = credentials
713
+ # end
714
+ #
715
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
699
716
  # external source for authentication to Google Cloud, you must validate it before
700
717
  # providing it to a Google API client library. Providing an unvalidated credential
701
718
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -15,32 +15,8 @@ require 'google/protobuf/field_mask_pb'
15
15
 
16
16
  descriptor_data = "\n3google/cloud/dataqna/v1alpha/question_service.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/dataqna/v1alpha/question.proto\x1a\x30google/cloud/dataqna/v1alpha/user_feedback.proto\x1a google/protobuf/field_mask.proto\"z\n\x12GetQuestionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taqna.googleapis.com/Question\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x91\x01\n\x15\x43reateQuestionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\x08question\x18\x02 \x01(\x0b\x32&.google.cloud.dataqna.v1alpha.QuestionB\x03\xe0\x41\x02\"N\n\x16\x45xecuteQuestionRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14interpretation_index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"S\n\x16GetUserFeedbackRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataqna.googleapis.com/UserFeedback\"\x94\x01\n\x19UpdateUserFeedbackRequest\x12\x46\n\ruser_feedback\x18\x01 \x01(\x0b\x32*.google.cloud.dataqna.v1alpha.UserFeedbackB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xec\x08\n\x0fQuestionService\x12\xaa\x01\n\x0bGetQuestion\x12\x30.google.cloud.dataqna.v1alpha.GetQuestionRequest\x1a&.google.cloud.dataqna.v1alpha.Question\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=projects/*/locations/*/questions/*}\x12\xc5\x01\n\x0e\x43reateQuestion\x12\x33.google.cloud.dataqna.v1alpha.CreateQuestionRequest\x1a&.google.cloud.dataqna.v1alpha.Question\"V\xda\x41\x0fparent,question\x82\xd3\xe4\x93\x02>\"2/v1alpha/{parent=projects/*/locations/*}/questions:\x08question\x12\xd2\x01\n\x0f\x45xecuteQuestion\x12\x34.google.cloud.dataqna.v1alpha.ExecuteQuestionRequest\x1a&.google.cloud.dataqna.v1alpha.Question\"a\xda\x41\x19name,interpretation_index\x82\xd3\xe4\x93\x02?\":/v1alpha/{name=projects/*/locations/*/questions/*}:execute:\x01*\x12\xc3\x01\n\x0fGetUserFeedback\x12\x34.google.cloud.dataqna.v1alpha.GetUserFeedbackRequest\x1a*.google.cloud.dataqna.v1alpha.UserFeedback\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1alpha/{name=projects/*/locations/*/questions/*/userFeedback}\x12\xfc\x01\n\x12UpdateUserFeedback\x12\x37.google.cloud.dataqna.v1alpha.UpdateUserFeedbackRequest\x1a*.google.cloud.dataqna.v1alpha.UserFeedback\"\x80\x01\xda\x41\x19user_feedback,update_mask\x82\xd3\xe4\x93\x02^2M/v1alpha/{user_feedback.name=projects/*/locations/*/questions/*/userFeedback}:\ruser_feedback\x1aJ\xca\x41\x16\x64\x61taqna.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd6\x01\n com.google.cloud.dataqna.v1alphaB\x14QuestionServiceProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\x06proto3"
17
17
 
18
- pool = Google::Protobuf::DescriptorPool.generated_pool
19
-
20
- begin
21
- pool.add_serialized_file(descriptor_data)
22
- rescue TypeError
23
- # Compatibility code: will be removed in the next major version.
24
- require 'google/protobuf/descriptor_pb'
25
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
- parsed.clear_dependency
27
- serialized = parsed.class.encode(parsed)
28
- file = pool.add_serialized_file(serialized)
29
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
- imports = [
31
- ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
32
- ["google.cloud.dataqna.v1alpha.Question", "google/cloud/dataqna/v1alpha/question.proto"],
33
- ["google.cloud.dataqna.v1alpha.UserFeedback", "google/cloud/dataqna/v1alpha/user_feedback.proto"],
34
- ]
35
- imports.each do |type_name, expected_filename|
36
- import_file = pool.lookup(type_name).file_descriptor
37
- if import_file.name != expected_filename
38
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
- end
40
- end
41
- warn "Each proto file must use a consistent fully-qualified name."
42
- warn "This will become an error in the next major version."
43
- end
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
44
20
 
45
21
  module Google
46
22
  module Cloud
@@ -10,29 +10,8 @@ require 'google/api/resource_pb'
10
10
 
11
11
  descriptor_data = "\n0google/cloud/dataqna/v1alpha/user_feedback.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd9\x02\n\x0cUserFeedback\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\x12\x66ree_form_feedback\x18\x02 \x01(\t\x12M\n\x06rating\x18\x03 \x01(\x0e\x32=.google.cloud.dataqna.v1alpha.UserFeedback.UserFeedbackRating\"V\n\x12UserFeedbackRating\x12$\n USER_FEEDBACK_RATING_UNSPECIFIED\x10\x00\x12\x0c\n\x08POSITIVE\x10\x01\x12\x0c\n\x08NEGATIVE\x10\x02:s\xea\x41p\n#dataqna.googleapis.com/UserFeedback\x12Iprojects/{project}/locations/{location}/questions/{question}/userFeedbackB\xd3\x01\n com.google.cloud.dataqna.v1alphaB\x11UserFeedbackProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\x06proto3"
12
12
 
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
36
15
 
37
16
  module Google
38
17
  module Cloud
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataQnA
23
23
  module V1alpha
24
- VERSION = "0.11.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataqna-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: '3.1'
97
+ version: '3.2'
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="