lib/google/cloud/bigquery/datapolicies/v1/datapolicy_pb.rb in google-cloud-bigquery-data_policies-v1-0.2.0 vs lib/google/cloud/bigquery/datapolicies/v1/datapolicy_pb.rb in google-cloud-bigquery-data_policies-v1-0.3.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/bigquery/datapolicies/v1/datapolicy.proto require 'google/protobuf' @@ -10,67 +11,35 @@ require 'google/iam/v1/iam_policy_pb' require 'google/iam/v1/policy_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/bigquery/datapolicies/v1/datapolicy.proto", :syntax => :proto3) do - add_message "google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest" do - optional :parent, :string, 1 - optional :data_policy, :message, 2, "google.cloud.bigquery.datapolicies.v1.DataPolicy" + +descriptor_data = "\n6google/cloud/bigquery/datapolicies/v1/datapolicy.proto\x12%google.cloud.bigquery.datapolicies.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xac\x01\n\x17\x43reateDataPolicyRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12K\n\x0b\x64\x61ta_policy\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x03\xe0\x41\x02\"\x97\x01\n\x17UpdateDataPolicyRequest\x12K\n\x0b\x64\x61ta_policy\x18\x01 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x17RenameDataPolicyRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12new_data_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"]\n\x17\x44\x65leteDataPolicyRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"Z\n\x14GetDataPolicyRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"\x96\x01\n\x17ListDataPoliciesRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"}\n\x18ListDataPoliciesResponse\x12H\n\rdata_policies\x18\x01 \x03(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x04\n\nDataPolicy\x12\x14\n\npolicy_tag\x18\x04 \x01(\tH\x00\x12W\n\x13\x64\x61ta_masking_policy\x18\x05 \x01(\x0b\x32\x38.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicyH\x01\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x10\x64\x61ta_policy_type\x18\x02 \x01(\x0e\x32@.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType\x12\x16\n\x0e\x64\x61ta_policy_id\x18\x03 \x01(\t\"m\n\x0e\x44\x61taPolicyType\x12 \n\x1c\x44\x41TA_POLICY_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1c\x43OLUMN_LEVEL_SECURITY_POLICY\x10\x03\x12\x17\n\x13\x44\x41TA_MASKING_POLICY\x10\x02:u\xea\x41r\n,bigquerydatapolicy.googleapis.com/DataPolicy\x12\x42projects/{project}/locations/{location}/dataPolicies/{data_policy}B\x10\n\x0ematching_labelB\x08\n\x06policy\"\x90\x02\n\x11\x44\x61taMaskingPolicy\x12n\n\x15predefined_expression\x18\x01 \x01(\x0e\x32M.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy.PredefinedExpressionH\x00\"u\n\x14PredefinedExpression\x12%\n!PREDEFINED_EXPRESSION_UNSPECIFIED\x10\x00\x12\n\n\x06SHA256\x10\x03\x12\x0f\n\x0b\x41LWAYS_NULL\x10\x05\x12\x19\n\x15\x44\x45\x46\x41ULT_MASKING_VALUE\x10\x07\x42\x14\n\x12masking_expression2\x90\x0f\n\x11\x44\x61taPolicyService\x12\xe1\x01\n\x10\x43reateDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"Z\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/dataPolicies:\x0b\x64\x61ta_policy\xda\x41\x12parent,data_policy\x12\xf2\x01\n\x10UpdateDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"k\x82\xd3\xe4\x93\x02K2</v1/{data_policy.name=projects/*/locations/*/dataPolicies/*}:\x0b\x64\x61ta_policy\xda\x41\x17\x64\x61ta_policy,update_mask\x12\xe3\x01\n\x10RenameDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"\\\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/dataPolicies/*}:rename:\x01*\xda\x41\x17name,new_data_policy_id\x12\xab\x01\n\x10\x44\x65leteDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dataPolicies/*}\xda\x41\x04name\x12\xc0\x01\n\rGetDataPolicy\x12;.google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dataPolicies/*}\xda\x41\x04name\x12\xd6\x01\n\x10ListDataPolicies\x12>.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest\x1a?.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dataPolicies\xda\x41\x06parent\x12\x97\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/dataPolicies/*}:getIamPolicy:\x01*\x12\x97\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/dataPolicies/*}:setIamPolicy:\x01*\x12\xbd\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{resource=projects/*/locations/*/dataPolicies/*}:testIamPermissions:\x01*\x1a~\xca\x41!bigquerydatapolicy.googleapis.com\xd2\x41Whttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\x89\x02\n)com.google.cloud.bigquery.datapolicies.v1B\x0f\x44\x61taPolicyProtoP\x01ZMcloud.google.com/go/bigquery/datapolicies/apiv1/datapoliciespb;datapoliciespb\xaa\x02%Google.Cloud.BigQuery.DataPolicies.V1\xca\x02%Google\\Cloud\\BigQuery\\DataPolicies\\V1\xea\x02)Google::Cloud::Bigquery::DataPolicies::V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest" do - optional :data_policy, :message, 1, "google.cloud.bigquery.datapolicies.v1.DataPolicy" - optional :update_mask, :message, 2, "google.protobuf.FieldMask" - end - add_message "google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest" do - optional :name, :string, 1 - optional :new_data_policy_id, :string, 2 - end - add_message "google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse" do - repeated :data_policies, :message, 1, "google.cloud.bigquery.datapolicies.v1.DataPolicy" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.bigquery.datapolicies.v1.DataPolicy" do - optional :name, :string, 1 - optional :data_policy_type, :enum, 2, "google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType" - optional :data_policy_id, :string, 3 - oneof :matching_label do - optional :policy_tag, :string, 4 - end - oneof :policy do - optional :data_masking_policy, :message, 5, "google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy" - end - end - add_enum "google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType" do - value :DATA_POLICY_TYPE_UNSPECIFIED, 0 - value :COLUMN_LEVEL_SECURITY_POLICY, 3 - value :DATA_MASKING_POLICY, 2 - end - add_message "google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy" do - oneof :masking_expression do - optional :predefined_expression, :enum, 1, "google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy.PredefinedExpression" - end - end - add_enum "google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy.PredefinedExpression" do - value :PREDEFINED_EXPRESSION_UNSPECIFIED, 0 - value :SHA256, 3 - value :ALWAYS_NULL, 5 - value :DEFAULT_MASKING_VALUE, 7 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Bigquery