Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit fdc2ad6

Browse files
feat: addition of billing_account field on Plan (#56)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/ff6f02d7-2420-4d34-b3d1-aeac4153f43d/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359869792 Source-Link: googleapis/googleapis@c7b5032 docs: clarification that valid address lines are required for all customers
1 parent 455646e commit fdc2ad6

File tree

12 files changed

+292
-50
lines changed

12 files changed

+292
-50
lines changed

google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,10 @@ public final UnaryCallable<GetCustomerRequest, Customer> getCustomerCallable() {
459459
*
460460
* <p>Return Value: List of
461461
* [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources
462-
* for the domain. List may be empty. Note: in the v1alpha1 version of the API, a NOT_FOUND error
463-
* is returned if no
464-
* [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resource
462+
* for the domain. List may be empty.
463+
*
464+
* <p>Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if no
465+
* [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources
465466
* match the domain.
466467
*
467468
* <p>Sample code:
@@ -502,9 +503,10 @@ public final CheckCloudIdentityAccountsExistResponse checkCloudIdentityAccountsE
502503
*
503504
* <p>Return Value: List of
504505
* [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources
505-
* for the domain. List may be empty. Note: in the v1alpha1 version of the API, a NOT_FOUND error
506-
* is returned if no
507-
* [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resource
506+
* for the domain. List may be empty.
507+
*
508+
* <p>Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if no
509+
* [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources
508510
* match the domain.
509511
*
510512
* <p>Sample code:

grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ public void getCustomer(
17441744
* List of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources for the domain.
17451745
* List may be empty.
17461746
* Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if
1747-
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resource match the domain.
1747+
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources match the domain.
17481748
* </pre>
17491749
*/
17501750
public void checkCloudIdentityAccountsExist(
@@ -2915,7 +2915,7 @@ public void getCustomer(
29152915
* List of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources for the domain.
29162916
* List may be empty.
29172917
* Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if
2918-
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resource match the domain.
2918+
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources match the domain.
29192919
* </pre>
29202920
*/
29212921
public void checkCloudIdentityAccountsExist(
@@ -3947,7 +3947,7 @@ public com.google.cloud.channel.v1.Customer getCustomer(
39473947
* List of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources for the domain.
39483948
* List may be empty.
39493949
* Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if
3950-
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resource match the domain.
3950+
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources match the domain.
39513951
* </pre>
39523952
*/
39533953
public com.google.cloud.channel.v1.CheckCloudIdentityAccountsExistResponse
@@ -4868,7 +4868,7 @@ protected CloudChannelServiceFutureStub build(
48684868
* List of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources for the domain.
48694869
* List may be empty.
48704870
* Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if
4871-
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resource match the domain.
4871+
* no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources match the domain.
48724872
* </pre>
48734873
*/
48744874
public com.google.common.util.concurrent.ListenableFuture<

proto-google-cloud-channel-v1/clirr-ignored-differences.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,9 @@
5656
<className>com/google/cloud/channel/v1/*OrBuilder</className>
5757
<method>* has*(*)</method>
5858
</difference>
59+
<difference>
60+
<differenceType>7012</differenceType>
61+
<className>com/google/cloud/channel/v1/*OrBuilder</className>
62+
<method>* get*(*)</method>
63+
</difference>
5964
</differences>

proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ public com.google.protobuf.ByteString getOrgDisplayNameBytes() {
344344
* <pre>
345345
* Required. Address of the organization of the customer entity.
346346
* Region and zip codes are required to enforce US laws and embargoes.
347+
* Valid address lines are required for all customers.
347348
* Language code is discarded. Use the Customer-level language code to set the
348349
* customer's language.
349350
* </pre>
@@ -364,6 +365,7 @@ public boolean hasOrgPostalAddress() {
364365
* <pre>
365366
* Required. Address of the organization of the customer entity.
366367
* Region and zip codes are required to enforce US laws and embargoes.
368+
* Valid address lines are required for all customers.
367369
* Language code is discarded. Use the Customer-level language code to set the
368370
* customer's language.
369371
* </pre>
@@ -386,6 +388,7 @@ public com.google.type.PostalAddress getOrgPostalAddress() {
386388
* <pre>
387389
* Required. Address of the organization of the customer entity.
388390
* Region and zip codes are required to enforce US laws and embargoes.
391+
* Valid address lines are required for all customers.
389392
* Language code is discarded. Use the Customer-level language code to set the
390393
* customer's language.
391394
* </pre>
@@ -1645,6 +1648,7 @@ public Builder setOrgDisplayNameBytes(com.google.protobuf.ByteString value) {
16451648
* <pre>
16461649
* Required. Address of the organization of the customer entity.
16471650
* Region and zip codes are required to enforce US laws and embargoes.
1651+
* Valid address lines are required for all customers.
16481652
* Language code is discarded. Use the Customer-level language code to set the
16491653
* customer's language.
16501654
* </pre>
@@ -1664,6 +1668,7 @@ public boolean hasOrgPostalAddress() {
16641668
* <pre>
16651669
* Required. Address of the organization of the customer entity.
16661670
* Region and zip codes are required to enforce US laws and embargoes.
1671+
* Valid address lines are required for all customers.
16671672
* Language code is discarded. Use the Customer-level language code to set the
16681673
* customer's language.
16691674
* </pre>
@@ -1689,6 +1694,7 @@ public com.google.type.PostalAddress getOrgPostalAddress() {
16891694
* <pre>
16901695
* Required. Address of the organization of the customer entity.
16911696
* Region and zip codes are required to enforce US laws and embargoes.
1697+
* Valid address lines are required for all customers.
16921698
* Language code is discarded. Use the Customer-level language code to set the
16931699
* customer's language.
16941700
* </pre>
@@ -1716,6 +1722,7 @@ public Builder setOrgPostalAddress(com.google.type.PostalAddress value) {
17161722
* <pre>
17171723
* Required. Address of the organization of the customer entity.
17181724
* Region and zip codes are required to enforce US laws and embargoes.
1725+
* Valid address lines are required for all customers.
17191726
* Language code is discarded. Use the Customer-level language code to set the
17201727
* customer's language.
17211728
* </pre>
@@ -1740,6 +1747,7 @@ public Builder setOrgPostalAddress(com.google.type.PostalAddress.Builder builder
17401747
* <pre>
17411748
* Required. Address of the organization of the customer entity.
17421749
* Region and zip codes are required to enforce US laws and embargoes.
1750+
* Valid address lines are required for all customers.
17431751
* Language code is discarded. Use the Customer-level language code to set the
17441752
* customer's language.
17451753
* </pre>
@@ -1771,6 +1779,7 @@ public Builder mergeOrgPostalAddress(com.google.type.PostalAddress value) {
17711779
* <pre>
17721780
* Required. Address of the organization of the customer entity.
17731781
* Region and zip codes are required to enforce US laws and embargoes.
1782+
* Valid address lines are required for all customers.
17741783
* Language code is discarded. Use the Customer-level language code to set the
17751784
* customer's language.
17761785
* </pre>
@@ -1796,6 +1805,7 @@ public Builder clearOrgPostalAddress() {
17961805
* <pre>
17971806
* Required. Address of the organization of the customer entity.
17981807
* Region and zip codes are required to enforce US laws and embargoes.
1808+
* Valid address lines are required for all customers.
17991809
* Language code is discarded. Use the Customer-level language code to set the
18001810
* customer's language.
18011811
* </pre>
@@ -1815,6 +1825,7 @@ public com.google.type.PostalAddress.Builder getOrgPostalAddressBuilder() {
18151825
* <pre>
18161826
* Required. Address of the organization of the customer entity.
18171827
* Region and zip codes are required to enforce US laws and embargoes.
1828+
* Valid address lines are required for all customers.
18181829
* Language code is discarded. Use the Customer-level language code to set the
18191830
* customer's language.
18201831
* </pre>
@@ -1838,6 +1849,7 @@ public com.google.type.PostalAddressOrBuilder getOrgPostalAddressOrBuilder() {
18381849
* <pre>
18391850
* Required. Address of the organization of the customer entity.
18401851
* Region and zip codes are required to enforce US laws and embargoes.
1852+
* Valid address lines are required for all customers.
18411853
* Language code is discarded. Use the Customer-level language code to set the
18421854
* customer's language.
18431855
* </pre>

proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public interface CustomerOrBuilder
8181
* <pre>
8282
* Required. Address of the organization of the customer entity.
8383
* Region and zip codes are required to enforce US laws and embargoes.
84+
* Valid address lines are required for all customers.
8485
* Language code is discarded. Use the Customer-level language code to set the
8586
* customer's language.
8687
* </pre>
@@ -98,6 +99,7 @@ public interface CustomerOrBuilder
9899
* <pre>
99100
* Required. Address of the organization of the customer entity.
100101
* Region and zip codes are required to enforce US laws and embargoes.
102+
* Valid address lines are required for all customers.
101103
* Language code is discarded. Use the Customer-level language code to set the
102104
* customer's language.
103105
* </pre>
@@ -115,6 +117,7 @@ public interface CustomerOrBuilder
115117
* <pre>
116118
* Required. Address of the organization of the customer entity.
117119
* Region and zip codes are required to enforce US laws and embargoes.
120+
* Valid address lines are required for all customers.
118121
* Language code is discarded. Use the Customer-level language code to set the
119122
* customer's language.
120123
* </pre>

proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -114,47 +114,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
114114
+ "7.google.cloud.channel.v1.CloudIdentityI"
115115
+ "nfo.CustomerType\022N\n\027promotional_order_ty"
116116
+ "pes\030\003 \003(\0162-.google.cloud.channel.v1.Prom"
117-
+ "otionalOrderType\"\355\001\n\004Plan\022:\n\014payment_pla"
117+
+ "otionalOrderType\"\206\002\n\004Plan\022:\n\014payment_pla"
118118
+ "n\030\001 \001(\0162$.google.cloud.channel.v1.Paymen"
119119
+ "tPlan\022:\n\014payment_type\030\002 \001(\0162$.google.clo"
120120
+ "ud.channel.v1.PaymentType\0226\n\rpayment_cyc"
121121
+ "le\030\003 \001(\0132\037.google.cloud.channel.v1.Perio"
122122
+ "d\0225\n\014trial_period\030\004 \001(\0132\037.google.cloud.c"
123-
+ "hannel.v1.Period\"\271\001\n\017PriceByResource\022<\n\r"
124-
+ "resource_type\030\001 \001(\0162%.google.cloud.chann"
125-
+ "el.v1.ResourceType\022-\n\005price\030\002 \001(\0132\036.goog"
126-
+ "le.cloud.channel.v1.Price\0229\n\014price_phase"
127-
+ "s\030\003 \003(\0132#.google.cloud.channel.v1.PriceP"
128-
+ "hase\"\212\001\n\005Price\022&\n\nbase_price\030\001 \001(\0132\022.goo"
129-
+ "gle.type.Money\022\020\n\010discount\030\002 \001(\001\022+\n\017effe"
130-
+ "ctive_price\030\003 \001(\0132\022.google.type.Money\022\032\n"
131-
+ "\022external_price_uri\030\004 \001(\t\"\331\001\n\nPricePhase"
132-
+ "\0228\n\013period_type\030\001 \001(\0162#.google.cloud.cha"
133-
+ "nnel.v1.PeriodType\022\024\n\014first_period\030\002 \001(\005"
134-
+ "\022\023\n\013last_period\030\003 \001(\005\022-\n\005price\030\004 \001(\0132\036.g"
135-
+ "oogle.cloud.channel.v1.Price\0227\n\013price_ti"
136-
+ "ers\030\005 \003(\0132\".google.cloud.channel.v1.Pric"
137-
+ "eTier\"i\n\tPriceTier\022\026\n\016first_resource\030\001 \001"
138-
+ "(\005\022\025\n\rlast_resource\030\002 \001(\005\022-\n\005price\030\003 \001(\013"
139-
+ "2\036.google.cloud.channel.v1.Price\"T\n\006Peri"
140-
+ "od\022\020\n\010duration\030\001 \001(\005\0228\n\013period_type\030\002 \001("
141-
+ "\0162#.google.cloud.channel.v1.PeriodType*m"
142-
+ "\n\024PromotionalOrderType\022 \n\034PROMOTIONAL_TY"
143-
+ "PE_UNSPECIFIED\020\000\022\017\n\013NEW_UPGRADE\020\001\022\014\n\010TRA"
144-
+ "NSFER\020\002\022\024\n\020PROMOTION_SWITCH\020\003*k\n\013Payment"
145-
+ "Plan\022\034\n\030PAYMENT_PLAN_UNSPECIFIED\020\000\022\016\n\nCO"
146-
+ "MMITMENT\020\001\022\014\n\010FLEXIBLE\020\002\022\010\n\004FREE\020\003\022\t\n\005TR"
147-
+ "IAL\020\004\022\013\n\007OFFLINE\020\005*D\n\013PaymentType\022\034\n\030PAY"
148-
+ "MENT_TYPE_UNSPECIFIED\020\000\022\n\n\006PREPAY\020\001\022\013\n\007P"
149-
+ "OSTPAY\020\002*\212\001\n\014ResourceType\022\035\n\031RESOURCE_TY"
150-
+ "PE_UNSPECIFIED\020\000\022\010\n\004SEAT\020\001\022\007\n\003MAU\020\002\022\006\n\002G"
151-
+ "B\020\003\022\021\n\rLICENSED_USER\020\004\022\013\n\007MINUTES\020\005\022\016\n\nI"
152-
+ "AAS_USAGE\020\006\022\020\n\014SUBSCRIPTION\020\007*G\n\nPeriodT"
153-
+ "ype\022\033\n\027PERIOD_TYPE_UNSPECIFIED\020\000\022\007\n\003DAY\020"
154-
+ "\001\022\t\n\005MONTH\020\002\022\010\n\004YEAR\020\003Bl\n\033com.google.clo"
155-
+ "ud.channel.v1B\013OffersProtoP\001Z>google.gol"
156-
+ "ang.org/genproto/googleapis/cloud/channe"
157-
+ "l/v1;channelb\006proto3"
123+
+ "hannel.v1.Period\022\027\n\017billing_account\030\005 \001("
124+
+ "\t\"\271\001\n\017PriceByResource\022<\n\rresource_type\030\001"
125+
+ " \001(\0162%.google.cloud.channel.v1.ResourceT"
126+
+ "ype\022-\n\005price\030\002 \001(\0132\036.google.cloud.channe"
127+
+ "l.v1.Price\0229\n\014price_phases\030\003 \003(\0132#.googl"
128+
+ "e.cloud.channel.v1.PricePhase\"\212\001\n\005Price\022"
129+
+ "&\n\nbase_price\030\001 \001(\0132\022.google.type.Money\022"
130+
+ "\020\n\010discount\030\002 \001(\001\022+\n\017effective_price\030\003 \001"
131+
+ "(\0132\022.google.type.Money\022\032\n\022external_price"
132+
+ "_uri\030\004 \001(\t\"\331\001\n\nPricePhase\0228\n\013period_type"
133+
+ "\030\001 \001(\0162#.google.cloud.channel.v1.PeriodT"
134+
+ "ype\022\024\n\014first_period\030\002 \001(\005\022\023\n\013last_period"
135+
+ "\030\003 \001(\005\022-\n\005price\030\004 \001(\0132\036.google.cloud.cha"
136+
+ "nnel.v1.Price\0227\n\013price_tiers\030\005 \003(\0132\".goo"
137+
+ "gle.cloud.channel.v1.PriceTier\"i\n\tPriceT"
138+
+ "ier\022\026\n\016first_resource\030\001 \001(\005\022\025\n\rlast_reso"
139+
+ "urce\030\002 \001(\005\022-\n\005price\030\003 \001(\0132\036.google.cloud"
140+
+ ".channel.v1.Price\"T\n\006Period\022\020\n\010duration\030"
141+
+ "\001 \001(\005\0228\n\013period_type\030\002 \001(\0162#.google.clou"
142+
+ "d.channel.v1.PeriodType*m\n\024PromotionalOr"
143+
+ "derType\022 \n\034PROMOTIONAL_TYPE_UNSPECIFIED\020"
144+
+ "\000\022\017\n\013NEW_UPGRADE\020\001\022\014\n\010TRANSFER\020\002\022\024\n\020PROM"
145+
+ "OTION_SWITCH\020\003*k\n\013PaymentPlan\022\034\n\030PAYMENT"
146+
+ "_PLAN_UNSPECIFIED\020\000\022\016\n\nCOMMITMENT\020\001\022\014\n\010F"
147+
+ "LEXIBLE\020\002\022\010\n\004FREE\020\003\022\t\n\005TRIAL\020\004\022\013\n\007OFFLIN"
148+
+ "E\020\005*D\n\013PaymentType\022\034\n\030PAYMENT_TYPE_UNSPE"
149+
+ "CIFIED\020\000\022\n\n\006PREPAY\020\001\022\013\n\007POSTPAY\020\002*\212\001\n\014Re"
150+
+ "sourceType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020"
151+
+ "\000\022\010\n\004SEAT\020\001\022\007\n\003MAU\020\002\022\006\n\002GB\020\003\022\021\n\rLICENSED"
152+
+ "_USER\020\004\022\013\n\007MINUTES\020\005\022\016\n\nIAAS_USAGE\020\006\022\020\n\014"
153+
+ "SUBSCRIPTION\020\007*G\n\nPeriodType\022\033\n\027PERIOD_T"
154+
+ "YPE_UNSPECIFIED\020\000\022\007\n\003DAY\020\001\022\t\n\005MONTH\020\002\022\010\n"
155+
+ "\004YEAR\020\003Bl\n\033com.google.cloud.channel.v1B\013"
156+
+ "OffersProtoP\001Z>google.golang.org/genprot"
157+
+ "o/googleapis/cloud/channel/v1;channelb\006p"
158+
+ "roto3"
158159
};
159160
descriptor =
160161
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -214,7 +215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
214215
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
215216
internal_static_google_cloud_channel_v1_Plan_descriptor,
216217
new java.lang.String[] {
217-
"PaymentPlan", "PaymentType", "PaymentCycle", "TrialPeriod",
218+
"PaymentPlan", "PaymentType", "PaymentCycle", "TrialPeriod", "BillingAccount",
218219
});
219220
internal_static_google_cloud_channel_v1_PriceByResource_descriptor =
220221
getDescriptor().getMessageTypes().get(5);

0 commit comments

Comments
 (0)