google-cloud-channel-v1 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +26 -23
  3. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +4 -2
  4. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +3 -1
  5. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +4 -2
  6. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +7 -5
  7. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +3 -3
  8. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +4 -2
  9. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +3 -1
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +4 -2
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +7 -5
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +46 -46
  13. data/lib/google/cloud/channel/v1/common_pb.rb +25 -50
  14. data/lib/google/cloud/channel/v1/customers_pb.rb +27 -24
  15. data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +26 -54
  16. data/lib/google/cloud/channel/v1/entitlements_pb.rb +28 -73
  17. data/lib/google/cloud/channel/v1/offers_pb.rb +28 -104
  18. data/lib/google/cloud/channel/v1/operations_pb.rb +24 -18
  19. data/lib/google/cloud/channel/v1/products_pb.rb +24 -24
  20. data/lib/google/cloud/channel/v1/reports_service_pb.rb +29 -94
  21. data/lib/google/cloud/channel/v1/repricing_pb.rb +27 -52
  22. data/lib/google/cloud/channel/v1/service_pb.rb +33 -345
  23. data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +24 -35
  24. data/lib/google/cloud/channel/v1/version.rb +1 -1
  25. data/proto_docs/google/protobuf/any.rb +7 -4
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +4 -4
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/channel/v1/reports_service.proto
3
4
 
@@ -15,102 +16,36 @@ require 'google/type/datetime_pb'
15
16
  require 'google/type/decimal_pb'
16
17
  require 'google/type/money_pb'
17
18
 
18
- Google::Protobuf::DescriptorPool.generated_pool.build do
19
- add_file("google/cloud/channel/v1/reports_service.proto", :syntax => :proto3) do
20
- add_message "google.cloud.channel.v1.RunReportJobRequest" do
21
- optional :name, :string, 1
22
- optional :date_range, :message, 2, "google.cloud.channel.v1.DateRange"
23
- optional :filter, :string, 3
24
- optional :language_code, :string, 4
25
- end
26
- add_message "google.cloud.channel.v1.RunReportJobResponse" do
27
- optional :report_job, :message, 1, "google.cloud.channel.v1.ReportJob"
28
- optional :report_metadata, :message, 2, "google.cloud.channel.v1.ReportResultsMetadata"
29
- end
30
- add_message "google.cloud.channel.v1.FetchReportResultsRequest" do
31
- optional :report_job, :string, 1
32
- optional :page_size, :int32, 2
33
- optional :page_token, :string, 3
34
- repeated :partition_keys, :string, 4
35
- end
36
- add_message "google.cloud.channel.v1.FetchReportResultsResponse" do
37
- optional :report_metadata, :message, 1, "google.cloud.channel.v1.ReportResultsMetadata"
38
- repeated :rows, :message, 2, "google.cloud.channel.v1.Row"
39
- optional :next_page_token, :string, 3
40
- end
41
- add_message "google.cloud.channel.v1.ListReportsRequest" do
42
- optional :parent, :string, 1
43
- optional :page_size, :int32, 2
44
- optional :page_token, :string, 3
45
- optional :language_code, :string, 4
46
- end
47
- add_message "google.cloud.channel.v1.ListReportsResponse" do
48
- repeated :reports, :message, 1, "google.cloud.channel.v1.Report"
49
- optional :next_page_token, :string, 2
50
- end
51
- add_message "google.cloud.channel.v1.ReportJob" do
52
- optional :name, :string, 1
53
- optional :report_status, :message, 2, "google.cloud.channel.v1.ReportStatus"
54
- end
55
- add_message "google.cloud.channel.v1.ReportResultsMetadata" do
56
- optional :report, :message, 1, "google.cloud.channel.v1.Report"
57
- optional :row_count, :int64, 2
58
- optional :date_range, :message, 3, "google.cloud.channel.v1.DateRange"
59
- optional :preceding_date_range, :message, 4, "google.cloud.channel.v1.DateRange"
60
- end
61
- add_message "google.cloud.channel.v1.Column" do
62
- optional :column_id, :string, 1
63
- optional :display_name, :string, 2
64
- optional :data_type, :enum, 3, "google.cloud.channel.v1.Column.DataType"
65
- end
66
- add_enum "google.cloud.channel.v1.Column.DataType" do
67
- value :DATA_TYPE_UNSPECIFIED, 0
68
- value :STRING, 1
69
- value :INT, 2
70
- value :DECIMAL, 3
71
- value :MONEY, 4
72
- value :DATE, 5
73
- value :DATE_TIME, 6
74
- end
75
- add_message "google.cloud.channel.v1.DateRange" do
76
- optional :usage_start_date_time, :message, 1, "google.type.DateTime"
77
- optional :usage_end_date_time, :message, 2, "google.type.DateTime"
78
- optional :invoice_start_date, :message, 3, "google.type.Date"
79
- optional :invoice_end_date, :message, 4, "google.type.Date"
80
- end
81
- add_message "google.cloud.channel.v1.Row" do
82
- repeated :values, :message, 1, "google.cloud.channel.v1.ReportValue"
83
- optional :partition_key, :string, 2
84
- end
85
- add_message "google.cloud.channel.v1.ReportValue" do
86
- oneof :value do
87
- optional :string_value, :string, 1
88
- optional :int_value, :int64, 2
89
- optional :decimal_value, :message, 3, "google.type.Decimal"
90
- optional :money_value, :message, 4, "google.type.Money"
91
- optional :date_value, :message, 5, "google.type.Date"
92
- optional :date_time_value, :message, 6, "google.type.DateTime"
93
- end
94
- end
95
- add_message "google.cloud.channel.v1.ReportStatus" do
96
- optional :state, :enum, 1, "google.cloud.channel.v1.ReportStatus.State"
97
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
98
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
99
- end
100
- add_enum "google.cloud.channel.v1.ReportStatus.State" do
101
- value :STATE_UNSPECIFIED, 0
102
- value :STARTED, 1
103
- value :WRITING, 2
104
- value :AVAILABLE, 3
105
- value :FAILED, 4
106
- end
107
- add_message "google.cloud.channel.v1.Report" do
108
- optional :name, :string, 1
109
- optional :display_name, :string, 2
110
- repeated :columns, :message, 3, "google.cloud.channel.v1.Column"
111
- optional :description, :string, 4
19
+
20
+ descriptor_data = "\n-google/cloud/channel/v1/reports_service.proto\x12\x17google.cloud.channel.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/channel/v1/operations.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\x1a\x19google/type/decimal.proto\x1a\x17google/type/money.proto\"\xbd\x01\n\x13RunReportJobRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"cloudchannel.googleapis.com/Report\x12;\n\ndate_range\x18\x02 \x01(\x0b\x32\".google.cloud.channel.v1.DateRangeB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n\x14RunReportJobResponse\x12\x36\n\nreport_job\x18\x01 \x01(\x0b\x32\".google.cloud.channel.v1.ReportJob\x12G\n\x0freport_metadata\x18\x02 \x01(\x0b\x32..google.cloud.channel.v1.ReportResultsMetadata\"\xac\x01\n\x19\x46\x65tchReportResultsRequest\x12\x41\n\nreport_job\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%cloudchannel.googleapis.com/ReportJob\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0epartition_keys\x18\x04 \x03(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x1a\x46\x65tchReportResultsResponse\x12G\n\x0freport_metadata\x18\x01 \x01(\x0b\x32..google.cloud.channel.v1.ReportResultsMetadata\x12*\n\x04rows\x18\x02 \x03(\x0b\x32\x1c.google.cloud.channel.v1.Row\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"v\n\x12ListReportsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\"`\n\x13ListReportsResponse\x12\x30\n\x07reports\x18\x01 \x03(\x0b\x32\x1f.google.cloud.channel.v1.Report\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb4\x01\n\tReportJob\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12<\n\rreport_status\x18\x02 \x01(\x0b\x32%.google.cloud.channel.v1.ReportStatus:V\xea\x41S\n%cloudchannel.googleapis.com/ReportJob\x12*accounts/{account}/reportJobs/{report_job}\"\xd5\x01\n\x15ReportResultsMetadata\x12/\n\x06report\x18\x01 \x01(\x0b\x32\x1f.google.cloud.channel.v1.Report\x12\x11\n\trow_count\x18\x02 \x01(\x03\x12\x36\n\ndate_range\x18\x03 \x01(\x0b\x32\".google.cloud.channel.v1.DateRange\x12@\n\x14preceding_date_range\x18\x04 \x01(\x0b\x32\".google.cloud.channel.v1.DateRange\"\xdb\x01\n\x06\x43olumn\x12\x11\n\tcolumn_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\tdata_type\x18\x03 \x01(\x0e\x32(.google.cloud.channel.v1.Column.DataType\"k\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x0b\n\x07\x44\x45\x43IMAL\x10\x03\x12\t\n\x05MONEY\x10\x04\x12\x08\n\x04\x44\x41TE\x10\x05\x12\r\n\tDATE_TIME\x10\x06\"\xd1\x01\n\tDateRange\x12\x34\n\x15usage_start_date_time\x18\x01 \x01(\x0b\x32\x15.google.type.DateTime\x12\x32\n\x13usage_end_date_time\x18\x02 \x01(\x0b\x32\x15.google.type.DateTime\x12-\n\x12invoice_start_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\x12+\n\x10invoice_end_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\"R\n\x03Row\x12\x34\n\x06values\x18\x01 \x03(\x0b\x32$.google.cloud.channel.v1.ReportValue\x12\x15\n\rpartition_key\x18\x02 \x01(\t\"\xf8\x01\n\x0bReportValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12-\n\rdecimal_value\x18\x03 \x01(\x0b\x32\x14.google.type.DecimalH\x00\x12)\n\x0bmoney_value\x18\x04 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12\'\n\ndate_value\x18\x05 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x30\n\x0f\x64\x61te_time_value\x18\x06 \x01(\x0b\x32\x15.google.type.DateTimeH\x00\x42\x07\n\x05value\"\xfd\x01\n\x0cReportStatus\x12:\n\x05state\x18\x01 \x01(\x0e\x32+.google.cloud.channel.v1.ReportStatus.State\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"S\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STARTED\x10\x01\x12\x0b\n\x07WRITING\x10\x02\x12\r\n\tAVAILABLE\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xc6\x01\n\x06Report\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x30\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1f.google.cloud.channel.v1.Column\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t:L\xea\x41I\n\"cloudchannel.googleapis.com/Report\x12#accounts/{account}/reports/{report}2\xa6\x05\n\x1a\x43loudChannelReportsService\x12\xb7\x01\n\x0cRunReportJob\x12,.google.cloud.channel.v1.RunReportJobRequest\x1a\x1d.google.longrunning.Operation\"Z\x82\xd3\xe4\x93\x02(\"#/v1/{name=accounts/*/reports/*}:run:\x01*\xca\x41)\n\x14RunReportJobResponse\x12\x11OperationMetadata\x12\xd2\x01\n\x12\x46\x65tchReportResults\x12\x32.google.cloud.channel.v1.FetchReportResultsRequest\x1a\x33.google.cloud.channel.v1.FetchReportResultsResponse\"S\x82\xd3\xe4\x93\x02@\";/v1/{report_job=accounts/*/reportJobs/*}:fetchReportResults:\x01*\xda\x41\nreport_job\x12\x9a\x01\n\x0bListReports\x12+.google.cloud.channel.v1.ListReportsRequest\x1a,.google.cloud.channel.v1.ListReportsResponse\"0\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{parent=accounts/*}/reports\xda\x41\x06parent\x1a\\\xca\x41\x1b\x63loudchannel.googleapis.com\xd2\x41;https://www.googleapis.com/auth/apps.reports.usage.readonlyBk\n\x1b\x63om.google.cloud.channel.v1B\x13ReportsServiceProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
21
+
22
+ pool = Google::Protobuf::DescriptorPool.generated_pool
23
+
24
+ begin
25
+ pool.add_serialized_file(descriptor_data)
26
+ rescue TypeError => e
27
+ # Compatibility code: will be removed in the next major version.
28
+ require 'google/protobuf/descriptor_pb'
29
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
30
+ parsed.clear_dependency
31
+ serialized = parsed.class.encode(parsed)
32
+ file = pool.add_serialized_file(serialized)
33
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
34
+ imports = [
35
+ ["google.type.DateTime", "google/type/datetime.proto"],
36
+ ["google.type.Date", "google/type/date.proto"],
37
+ ["google.type.Decimal", "google/type/decimal.proto"],
38
+ ["google.type.Money", "google/type/money.proto"],
39
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
40
+ ]
41
+ imports.each do |type_name, expected_filename|
42
+ import_file = pool.lookup(type_name).file_descriptor
43
+ if import_file.name != expected_filename
44
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
112
45
  end
113
46
  end
47
+ warn "Each proto file must use a consistent fully-qualified name."
48
+ warn "This will become an error in the next major version."
114
49
  end
115
50
 
116
51
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/channel/v1/repricing.proto
3
4
 
@@ -9,60 +10,34 @@ require 'google/protobuf/timestamp_pb'
9
10
  require 'google/type/date_pb'
10
11
  require 'google/type/decimal_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/channel/v1/repricing.proto", :syntax => :proto3) do
14
- add_message "google.cloud.channel.v1.CustomerRepricingConfig" do
15
- optional :name, :string, 1
16
- optional :repricing_config, :message, 2, "google.cloud.channel.v1.RepricingConfig"
17
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
18
- end
19
- add_message "google.cloud.channel.v1.ChannelPartnerRepricingConfig" do
20
- optional :name, :string, 1
21
- optional :repricing_config, :message, 2, "google.cloud.channel.v1.RepricingConfig"
22
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
23
- end
24
- add_message "google.cloud.channel.v1.RepricingConfig" do
25
- optional :effective_invoice_month, :message, 1, "google.type.Date"
26
- optional :adjustment, :message, 2, "google.cloud.channel.v1.RepricingAdjustment"
27
- optional :rebilling_basis, :enum, 3, "google.cloud.channel.v1.RebillingBasis"
28
- repeated :conditional_overrides, :message, 6, "google.cloud.channel.v1.ConditionalOverride"
29
- oneof :granularity do
30
- optional :entitlement_granularity, :message, 4, "google.cloud.channel.v1.RepricingConfig.EntitlementGranularity"
31
- optional :channel_partner_granularity, :message, 5, "google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity"
32
- end
33
- end
34
- add_message "google.cloud.channel.v1.RepricingConfig.EntitlementGranularity" do
35
- optional :entitlement, :string, 1
36
- end
37
- add_message "google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity" do
38
- end
39
- add_message "google.cloud.channel.v1.RepricingAdjustment" do
40
- oneof :adjustment do
41
- optional :percentage_adjustment, :message, 2, "google.cloud.channel.v1.PercentageAdjustment"
42
- end
43
- end
44
- add_message "google.cloud.channel.v1.PercentageAdjustment" do
45
- optional :percentage, :message, 2, "google.type.Decimal"
46
- end
47
- add_message "google.cloud.channel.v1.ConditionalOverride" do
48
- optional :adjustment, :message, 1, "google.cloud.channel.v1.RepricingAdjustment"
49
- optional :rebilling_basis, :enum, 2, "google.cloud.channel.v1.RebillingBasis"
50
- optional :repricing_condition, :message, 3, "google.cloud.channel.v1.RepricingCondition"
51
- end
52
- add_message "google.cloud.channel.v1.RepricingCondition" do
53
- oneof :condition do
54
- optional :sku_group_condition, :message, 1, "google.cloud.channel.v1.SkuGroupCondition"
55
- end
56
- end
57
- add_message "google.cloud.channel.v1.SkuGroupCondition" do
58
- optional :sku_group, :string, 1
59
- end
60
- add_enum "google.cloud.channel.v1.RebillingBasis" do
61
- value :REBILLING_BASIS_UNSPECIFIED, 0
62
- value :COST_AT_LIST, 1
63
- value :DIRECT_CUSTOMER_COST, 2
13
+
14
+ descriptor_data = "\n\'google/cloud/channel/v1/repricing.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\x1a\x19google/type/decimal.proto\"\xc5\x02\n\x17\x43ustomerRepricingConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12G\n\x10repricing_config\x18\x02 \x01(\x0b\x32(.google.cloud.channel.v1.RepricingConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n3cloudchannel.googleapis.com/CustomerRepricingConfig\x12\\accounts/{account}/customers/{customer}/customerRepricingConfigs/{customer_repricing_config}\"\xef\x02\n\x1d\x43hannelPartnerRepricingConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12G\n\x10repricing_config\x18\x02 \x01(\x0b\x32(.google.cloud.channel.v1.RepricingConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xbb\x01\xea\x41\xb7\x01\n9cloudchannel.googleapis.com/ChannelPartnerRepricingConfig\x12zaccounts/{account}/channelPartnerLinks/{channel_partner}/channelPartnerRepricingConfigs/{channel_partner_repricing_config}\"\xfd\x04\n\x0fRepricingConfig\x12\x62\n\x17\x65ntitlement_granularity\x18\x04 \x01(\x0b\x32?.google.cloud.channel.v1.RepricingConfig.EntitlementGranularityH\x00\x12i\n\x1b\x63hannel_partner_granularity\x18\x05 \x01(\x0b\x32\x42.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularityH\x00\x12\x37\n\x17\x65\x66\x66\x65\x63tive_invoice_month\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12\x45\n\nadjustment\x18\x02 \x01(\x0b\x32,.google.cloud.channel.v1.RepricingAdjustmentB\x03\xe0\x41\x02\x12\x45\n\x0frebilling_basis\x18\x03 \x01(\x0e\x32\'.google.cloud.channel.v1.RebillingBasisB\x03\xe0\x41\x02\x12K\n\x15\x63onditional_overrides\x18\x06 \x03(\x0b\x32,.google.cloud.channel.v1.ConditionalOverride\x1a[\n\x16\x45ntitlementGranularity\x12\x41\n\x0b\x65ntitlement\x18\x01 \x01(\tB,\xfa\x41)\n\'cloudchannel.googleapis.com/Entitlement\x1a\x1b\n\x19\x43hannelPartnerGranularityB\r\n\x0bgranularity\"s\n\x13RepricingAdjustment\x12N\n\x15percentage_adjustment\x18\x02 \x01(\x0b\x32-.google.cloud.channel.v1.PercentageAdjustmentH\x00\x42\x0c\n\nadjustment\"@\n\x14PercentageAdjustment\x12(\n\npercentage\x18\x02 \x01(\x0b\x32\x14.google.type.Decimal\"\xf2\x01\n\x13\x43onditionalOverride\x12\x45\n\nadjustment\x18\x01 \x01(\x0b\x32,.google.cloud.channel.v1.RepricingAdjustmentB\x03\xe0\x41\x02\x12\x45\n\x0frebilling_basis\x18\x02 \x01(\x0e\x32\'.google.cloud.channel.v1.RebillingBasisB\x03\xe0\x41\x02\x12M\n\x13repricing_condition\x18\x03 \x01(\x0b\x32+.google.cloud.channel.v1.RepricingConditionB\x03\xe0\x41\x02\"l\n\x12RepricingCondition\x12I\n\x13sku_group_condition\x18\x01 \x01(\x0b\x32*.google.cloud.channel.v1.SkuGroupConditionH\x00\x42\x0b\n\tcondition\"&\n\x11SkuGroupCondition\x12\x11\n\tsku_group\x18\x01 \x01(\t*]\n\x0eRebillingBasis\x12\x1f\n\x1bREBILLING_BASIS_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43OST_AT_LIST\x10\x01\x12\x18\n\x14\x44IRECT_CUSTOMER_COST\x10\x02\x42\x66\n\x1b\x63om.google.cloud.channel.v1B\x0eRepricingProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["google.type.Date", "google/type/date.proto"],
31
+ ["google.type.Decimal", "google/type/decimal.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
64
37
  end
65
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
66
41
  end
67
42
 
68
43
  module Google