• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/channel/v1/entitlements.proto
18 
19 package com.google.cloud.channel.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Service provisioned for an entitlement.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.channel.v1.ProvisionedService}
29  */
30 public final class ProvisionedService extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.ProvisionedService)
33     ProvisionedServiceOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ProvisionedService.newBuilder() to construct.
ProvisionedService(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ProvisionedService(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ProvisionedService()40   private ProvisionedService() {
41     provisioningId_ = "";
42     productId_ = "";
43     skuId_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new ProvisionedService();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.channel.v1.EntitlementsProto
59         .internal_static_google_cloud_channel_v1_ProvisionedService_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.channel.v1.EntitlementsProto
66         .internal_static_google_cloud_channel_v1_ProvisionedService_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.channel.v1.ProvisionedService.class,
69             com.google.cloud.channel.v1.ProvisionedService.Builder.class);
70   }
71 
72   public static final int PROVISIONING_ID_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object provisioningId_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * Output only. Provisioning ID of the entitlement. For Google Workspace, this
81    * is the underlying Subscription ID. For Google Cloud Platform, this is the
82    * Billing Account ID of the billing subaccount."
83    * </pre>
84    *
85    * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
86    *
87    * @return The provisioningId.
88    */
89   @java.lang.Override
getProvisioningId()90   public java.lang.String getProvisioningId() {
91     java.lang.Object ref = provisioningId_;
92     if (ref instanceof java.lang.String) {
93       return (java.lang.String) ref;
94     } else {
95       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
96       java.lang.String s = bs.toStringUtf8();
97       provisioningId_ = s;
98       return s;
99     }
100   }
101   /**
102    *
103    *
104    * <pre>
105    * Output only. Provisioning ID of the entitlement. For Google Workspace, this
106    * is the underlying Subscription ID. For Google Cloud Platform, this is the
107    * Billing Account ID of the billing subaccount."
108    * </pre>
109    *
110    * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
111    *
112    * @return The bytes for provisioningId.
113    */
114   @java.lang.Override
getProvisioningIdBytes()115   public com.google.protobuf.ByteString getProvisioningIdBytes() {
116     java.lang.Object ref = provisioningId_;
117     if (ref instanceof java.lang.String) {
118       com.google.protobuf.ByteString b =
119           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
120       provisioningId_ = b;
121       return b;
122     } else {
123       return (com.google.protobuf.ByteString) ref;
124     }
125   }
126 
127   public static final int PRODUCT_ID_FIELD_NUMBER = 2;
128 
129   @SuppressWarnings("serial")
130   private volatile java.lang.Object productId_ = "";
131   /**
132    *
133    *
134    * <pre>
135    * Output only. The product pertaining to the provisioning resource as
136    * specified in the Offer.
137    * </pre>
138    *
139    * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
140    *
141    * @return The productId.
142    */
143   @java.lang.Override
getProductId()144   public java.lang.String getProductId() {
145     java.lang.Object ref = productId_;
146     if (ref instanceof java.lang.String) {
147       return (java.lang.String) ref;
148     } else {
149       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
150       java.lang.String s = bs.toStringUtf8();
151       productId_ = s;
152       return s;
153     }
154   }
155   /**
156    *
157    *
158    * <pre>
159    * Output only. The product pertaining to the provisioning resource as
160    * specified in the Offer.
161    * </pre>
162    *
163    * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
164    *
165    * @return The bytes for productId.
166    */
167   @java.lang.Override
getProductIdBytes()168   public com.google.protobuf.ByteString getProductIdBytes() {
169     java.lang.Object ref = productId_;
170     if (ref instanceof java.lang.String) {
171       com.google.protobuf.ByteString b =
172           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
173       productId_ = b;
174       return b;
175     } else {
176       return (com.google.protobuf.ByteString) ref;
177     }
178   }
179 
180   public static final int SKU_ID_FIELD_NUMBER = 3;
181 
182   @SuppressWarnings("serial")
183   private volatile java.lang.Object skuId_ = "";
184   /**
185    *
186    *
187    * <pre>
188    * Output only. The SKU pertaining to the provisioning resource as specified
189    * in the Offer.
190    * </pre>
191    *
192    * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
193    *
194    * @return The skuId.
195    */
196   @java.lang.Override
getSkuId()197   public java.lang.String getSkuId() {
198     java.lang.Object ref = skuId_;
199     if (ref instanceof java.lang.String) {
200       return (java.lang.String) ref;
201     } else {
202       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
203       java.lang.String s = bs.toStringUtf8();
204       skuId_ = s;
205       return s;
206     }
207   }
208   /**
209    *
210    *
211    * <pre>
212    * Output only. The SKU pertaining to the provisioning resource as specified
213    * in the Offer.
214    * </pre>
215    *
216    * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
217    *
218    * @return The bytes for skuId.
219    */
220   @java.lang.Override
getSkuIdBytes()221   public com.google.protobuf.ByteString getSkuIdBytes() {
222     java.lang.Object ref = skuId_;
223     if (ref instanceof java.lang.String) {
224       com.google.protobuf.ByteString b =
225           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
226       skuId_ = b;
227       return b;
228     } else {
229       return (com.google.protobuf.ByteString) ref;
230     }
231   }
232 
233   private byte memoizedIsInitialized = -1;
234 
235   @java.lang.Override
isInitialized()236   public final boolean isInitialized() {
237     byte isInitialized = memoizedIsInitialized;
238     if (isInitialized == 1) return true;
239     if (isInitialized == 0) return false;
240 
241     memoizedIsInitialized = 1;
242     return true;
243   }
244 
245   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)246   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
247     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisioningId_)) {
248       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, provisioningId_);
249     }
250     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) {
251       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, productId_);
252     }
253     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skuId_)) {
254       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, skuId_);
255     }
256     getUnknownFields().writeTo(output);
257   }
258 
259   @java.lang.Override
getSerializedSize()260   public int getSerializedSize() {
261     int size = memoizedSize;
262     if (size != -1) return size;
263 
264     size = 0;
265     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisioningId_)) {
266       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, provisioningId_);
267     }
268     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) {
269       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, productId_);
270     }
271     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skuId_)) {
272       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, skuId_);
273     }
274     size += getUnknownFields().getSerializedSize();
275     memoizedSize = size;
276     return size;
277   }
278 
279   @java.lang.Override
equals(final java.lang.Object obj)280   public boolean equals(final java.lang.Object obj) {
281     if (obj == this) {
282       return true;
283     }
284     if (!(obj instanceof com.google.cloud.channel.v1.ProvisionedService)) {
285       return super.equals(obj);
286     }
287     com.google.cloud.channel.v1.ProvisionedService other =
288         (com.google.cloud.channel.v1.ProvisionedService) obj;
289 
290     if (!getProvisioningId().equals(other.getProvisioningId())) return false;
291     if (!getProductId().equals(other.getProductId())) return false;
292     if (!getSkuId().equals(other.getSkuId())) return false;
293     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
294     return true;
295   }
296 
297   @java.lang.Override
hashCode()298   public int hashCode() {
299     if (memoizedHashCode != 0) {
300       return memoizedHashCode;
301     }
302     int hash = 41;
303     hash = (19 * hash) + getDescriptor().hashCode();
304     hash = (37 * hash) + PROVISIONING_ID_FIELD_NUMBER;
305     hash = (53 * hash) + getProvisioningId().hashCode();
306     hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER;
307     hash = (53 * hash) + getProductId().hashCode();
308     hash = (37 * hash) + SKU_ID_FIELD_NUMBER;
309     hash = (53 * hash) + getSkuId().hashCode();
310     hash = (29 * hash) + getUnknownFields().hashCode();
311     memoizedHashCode = hash;
312     return hash;
313   }
314 
parseFrom(java.nio.ByteBuffer data)315   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(java.nio.ByteBuffer data)
316       throws com.google.protobuf.InvalidProtocolBufferException {
317     return PARSER.parseFrom(data);
318   }
319 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)320   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
321       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
322       throws com.google.protobuf.InvalidProtocolBufferException {
323     return PARSER.parseFrom(data, extensionRegistry);
324   }
325 
parseFrom( com.google.protobuf.ByteString data)326   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
327       com.google.protobuf.ByteString data)
328       throws com.google.protobuf.InvalidProtocolBufferException {
329     return PARSER.parseFrom(data);
330   }
331 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)332   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
333       com.google.protobuf.ByteString data,
334       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
335       throws com.google.protobuf.InvalidProtocolBufferException {
336     return PARSER.parseFrom(data, extensionRegistry);
337   }
338 
parseFrom(byte[] data)339   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(byte[] data)
340       throws com.google.protobuf.InvalidProtocolBufferException {
341     return PARSER.parseFrom(data);
342   }
343 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)344   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
345       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
346       throws com.google.protobuf.InvalidProtocolBufferException {
347     return PARSER.parseFrom(data, extensionRegistry);
348   }
349 
parseFrom(java.io.InputStream input)350   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(java.io.InputStream input)
351       throws java.io.IOException {
352     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
353   }
354 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)355   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
356       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
357       throws java.io.IOException {
358     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
359         PARSER, input, extensionRegistry);
360   }
361 
parseDelimitedFrom( java.io.InputStream input)362   public static com.google.cloud.channel.v1.ProvisionedService parseDelimitedFrom(
363       java.io.InputStream input) throws java.io.IOException {
364     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
365   }
366 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)367   public static com.google.cloud.channel.v1.ProvisionedService parseDelimitedFrom(
368       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369       throws java.io.IOException {
370     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
371         PARSER, input, extensionRegistry);
372   }
373 
parseFrom( com.google.protobuf.CodedInputStream input)374   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
375       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
376     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
377   }
378 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)379   public static com.google.cloud.channel.v1.ProvisionedService parseFrom(
380       com.google.protobuf.CodedInputStream input,
381       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
382       throws java.io.IOException {
383     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
384         PARSER, input, extensionRegistry);
385   }
386 
387   @java.lang.Override
newBuilderForType()388   public Builder newBuilderForType() {
389     return newBuilder();
390   }
391 
newBuilder()392   public static Builder newBuilder() {
393     return DEFAULT_INSTANCE.toBuilder();
394   }
395 
newBuilder(com.google.cloud.channel.v1.ProvisionedService prototype)396   public static Builder newBuilder(com.google.cloud.channel.v1.ProvisionedService prototype) {
397     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
398   }
399 
400   @java.lang.Override
toBuilder()401   public Builder toBuilder() {
402     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
403   }
404 
405   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)406   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
407     Builder builder = new Builder(parent);
408     return builder;
409   }
410   /**
411    *
412    *
413    * <pre>
414    * Service provisioned for an entitlement.
415    * </pre>
416    *
417    * Protobuf type {@code google.cloud.channel.v1.ProvisionedService}
418    */
419   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
420       implements
421       // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.ProvisionedService)
422       com.google.cloud.channel.v1.ProvisionedServiceOrBuilder {
getDescriptor()423     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
424       return com.google.cloud.channel.v1.EntitlementsProto
425           .internal_static_google_cloud_channel_v1_ProvisionedService_descriptor;
426     }
427 
428     @java.lang.Override
429     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()430         internalGetFieldAccessorTable() {
431       return com.google.cloud.channel.v1.EntitlementsProto
432           .internal_static_google_cloud_channel_v1_ProvisionedService_fieldAccessorTable
433           .ensureFieldAccessorsInitialized(
434               com.google.cloud.channel.v1.ProvisionedService.class,
435               com.google.cloud.channel.v1.ProvisionedService.Builder.class);
436     }
437 
438     // Construct using com.google.cloud.channel.v1.ProvisionedService.newBuilder()
Builder()439     private Builder() {}
440 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)441     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
442       super(parent);
443     }
444 
445     @java.lang.Override
clear()446     public Builder clear() {
447       super.clear();
448       bitField0_ = 0;
449       provisioningId_ = "";
450       productId_ = "";
451       skuId_ = "";
452       return this;
453     }
454 
455     @java.lang.Override
getDescriptorForType()456     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
457       return com.google.cloud.channel.v1.EntitlementsProto
458           .internal_static_google_cloud_channel_v1_ProvisionedService_descriptor;
459     }
460 
461     @java.lang.Override
getDefaultInstanceForType()462     public com.google.cloud.channel.v1.ProvisionedService getDefaultInstanceForType() {
463       return com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance();
464     }
465 
466     @java.lang.Override
build()467     public com.google.cloud.channel.v1.ProvisionedService build() {
468       com.google.cloud.channel.v1.ProvisionedService result = buildPartial();
469       if (!result.isInitialized()) {
470         throw newUninitializedMessageException(result);
471       }
472       return result;
473     }
474 
475     @java.lang.Override
buildPartial()476     public com.google.cloud.channel.v1.ProvisionedService buildPartial() {
477       com.google.cloud.channel.v1.ProvisionedService result =
478           new com.google.cloud.channel.v1.ProvisionedService(this);
479       if (bitField0_ != 0) {
480         buildPartial0(result);
481       }
482       onBuilt();
483       return result;
484     }
485 
buildPartial0(com.google.cloud.channel.v1.ProvisionedService result)486     private void buildPartial0(com.google.cloud.channel.v1.ProvisionedService result) {
487       int from_bitField0_ = bitField0_;
488       if (((from_bitField0_ & 0x00000001) != 0)) {
489         result.provisioningId_ = provisioningId_;
490       }
491       if (((from_bitField0_ & 0x00000002) != 0)) {
492         result.productId_ = productId_;
493       }
494       if (((from_bitField0_ & 0x00000004) != 0)) {
495         result.skuId_ = skuId_;
496       }
497     }
498 
499     @java.lang.Override
clone()500     public Builder clone() {
501       return super.clone();
502     }
503 
504     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)505     public Builder setField(
506         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
507       return super.setField(field, value);
508     }
509 
510     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)511     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
512       return super.clearField(field);
513     }
514 
515     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)516     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
517       return super.clearOneof(oneof);
518     }
519 
520     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)521     public Builder setRepeatedField(
522         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
523       return super.setRepeatedField(field, index, value);
524     }
525 
526     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)527     public Builder addRepeatedField(
528         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
529       return super.addRepeatedField(field, value);
530     }
531 
532     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)533     public Builder mergeFrom(com.google.protobuf.Message other) {
534       if (other instanceof com.google.cloud.channel.v1.ProvisionedService) {
535         return mergeFrom((com.google.cloud.channel.v1.ProvisionedService) other);
536       } else {
537         super.mergeFrom(other);
538         return this;
539       }
540     }
541 
mergeFrom(com.google.cloud.channel.v1.ProvisionedService other)542     public Builder mergeFrom(com.google.cloud.channel.v1.ProvisionedService other) {
543       if (other == com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance()) return this;
544       if (!other.getProvisioningId().isEmpty()) {
545         provisioningId_ = other.provisioningId_;
546         bitField0_ |= 0x00000001;
547         onChanged();
548       }
549       if (!other.getProductId().isEmpty()) {
550         productId_ = other.productId_;
551         bitField0_ |= 0x00000002;
552         onChanged();
553       }
554       if (!other.getSkuId().isEmpty()) {
555         skuId_ = other.skuId_;
556         bitField0_ |= 0x00000004;
557         onChanged();
558       }
559       this.mergeUnknownFields(other.getUnknownFields());
560       onChanged();
561       return this;
562     }
563 
564     @java.lang.Override
isInitialized()565     public final boolean isInitialized() {
566       return true;
567     }
568 
569     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)570     public Builder mergeFrom(
571         com.google.protobuf.CodedInputStream input,
572         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
573         throws java.io.IOException {
574       if (extensionRegistry == null) {
575         throw new java.lang.NullPointerException();
576       }
577       try {
578         boolean done = false;
579         while (!done) {
580           int tag = input.readTag();
581           switch (tag) {
582             case 0:
583               done = true;
584               break;
585             case 10:
586               {
587                 provisioningId_ = input.readStringRequireUtf8();
588                 bitField0_ |= 0x00000001;
589                 break;
590               } // case 10
591             case 18:
592               {
593                 productId_ = input.readStringRequireUtf8();
594                 bitField0_ |= 0x00000002;
595                 break;
596               } // case 18
597             case 26:
598               {
599                 skuId_ = input.readStringRequireUtf8();
600                 bitField0_ |= 0x00000004;
601                 break;
602               } // case 26
603             default:
604               {
605                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
606                   done = true; // was an endgroup tag
607                 }
608                 break;
609               } // default:
610           } // switch (tag)
611         } // while (!done)
612       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
613         throw e.unwrapIOException();
614       } finally {
615         onChanged();
616       } // finally
617       return this;
618     }
619 
620     private int bitField0_;
621 
622     private java.lang.Object provisioningId_ = "";
623     /**
624      *
625      *
626      * <pre>
627      * Output only. Provisioning ID of the entitlement. For Google Workspace, this
628      * is the underlying Subscription ID. For Google Cloud Platform, this is the
629      * Billing Account ID of the billing subaccount."
630      * </pre>
631      *
632      * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
633      *
634      * @return The provisioningId.
635      */
getProvisioningId()636     public java.lang.String getProvisioningId() {
637       java.lang.Object ref = provisioningId_;
638       if (!(ref instanceof java.lang.String)) {
639         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
640         java.lang.String s = bs.toStringUtf8();
641         provisioningId_ = s;
642         return s;
643       } else {
644         return (java.lang.String) ref;
645       }
646     }
647     /**
648      *
649      *
650      * <pre>
651      * Output only. Provisioning ID of the entitlement. For Google Workspace, this
652      * is the underlying Subscription ID. For Google Cloud Platform, this is the
653      * Billing Account ID of the billing subaccount."
654      * </pre>
655      *
656      * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
657      *
658      * @return The bytes for provisioningId.
659      */
getProvisioningIdBytes()660     public com.google.protobuf.ByteString getProvisioningIdBytes() {
661       java.lang.Object ref = provisioningId_;
662       if (ref instanceof String) {
663         com.google.protobuf.ByteString b =
664             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
665         provisioningId_ = b;
666         return b;
667       } else {
668         return (com.google.protobuf.ByteString) ref;
669       }
670     }
671     /**
672      *
673      *
674      * <pre>
675      * Output only. Provisioning ID of the entitlement. For Google Workspace, this
676      * is the underlying Subscription ID. For Google Cloud Platform, this is the
677      * Billing Account ID of the billing subaccount."
678      * </pre>
679      *
680      * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
681      *
682      * @param value The provisioningId to set.
683      * @return This builder for chaining.
684      */
setProvisioningId(java.lang.String value)685     public Builder setProvisioningId(java.lang.String value) {
686       if (value == null) {
687         throw new NullPointerException();
688       }
689       provisioningId_ = value;
690       bitField0_ |= 0x00000001;
691       onChanged();
692       return this;
693     }
694     /**
695      *
696      *
697      * <pre>
698      * Output only. Provisioning ID of the entitlement. For Google Workspace, this
699      * is the underlying Subscription ID. For Google Cloud Platform, this is the
700      * Billing Account ID of the billing subaccount."
701      * </pre>
702      *
703      * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
704      *
705      * @return This builder for chaining.
706      */
clearProvisioningId()707     public Builder clearProvisioningId() {
708       provisioningId_ = getDefaultInstance().getProvisioningId();
709       bitField0_ = (bitField0_ & ~0x00000001);
710       onChanged();
711       return this;
712     }
713     /**
714      *
715      *
716      * <pre>
717      * Output only. Provisioning ID of the entitlement. For Google Workspace, this
718      * is the underlying Subscription ID. For Google Cloud Platform, this is the
719      * Billing Account ID of the billing subaccount."
720      * </pre>
721      *
722      * <code>string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
723      *
724      * @param value The bytes for provisioningId to set.
725      * @return This builder for chaining.
726      */
setProvisioningIdBytes(com.google.protobuf.ByteString value)727     public Builder setProvisioningIdBytes(com.google.protobuf.ByteString value) {
728       if (value == null) {
729         throw new NullPointerException();
730       }
731       checkByteStringIsUtf8(value);
732       provisioningId_ = value;
733       bitField0_ |= 0x00000001;
734       onChanged();
735       return this;
736     }
737 
738     private java.lang.Object productId_ = "";
739     /**
740      *
741      *
742      * <pre>
743      * Output only. The product pertaining to the provisioning resource as
744      * specified in the Offer.
745      * </pre>
746      *
747      * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
748      *
749      * @return The productId.
750      */
getProductId()751     public java.lang.String getProductId() {
752       java.lang.Object ref = productId_;
753       if (!(ref instanceof java.lang.String)) {
754         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
755         java.lang.String s = bs.toStringUtf8();
756         productId_ = s;
757         return s;
758       } else {
759         return (java.lang.String) ref;
760       }
761     }
762     /**
763      *
764      *
765      * <pre>
766      * Output only. The product pertaining to the provisioning resource as
767      * specified in the Offer.
768      * </pre>
769      *
770      * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
771      *
772      * @return The bytes for productId.
773      */
getProductIdBytes()774     public com.google.protobuf.ByteString getProductIdBytes() {
775       java.lang.Object ref = productId_;
776       if (ref instanceof String) {
777         com.google.protobuf.ByteString b =
778             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
779         productId_ = b;
780         return b;
781       } else {
782         return (com.google.protobuf.ByteString) ref;
783       }
784     }
785     /**
786      *
787      *
788      * <pre>
789      * Output only. The product pertaining to the provisioning resource as
790      * specified in the Offer.
791      * </pre>
792      *
793      * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
794      *
795      * @param value The productId to set.
796      * @return This builder for chaining.
797      */
setProductId(java.lang.String value)798     public Builder setProductId(java.lang.String value) {
799       if (value == null) {
800         throw new NullPointerException();
801       }
802       productId_ = value;
803       bitField0_ |= 0x00000002;
804       onChanged();
805       return this;
806     }
807     /**
808      *
809      *
810      * <pre>
811      * Output only. The product pertaining to the provisioning resource as
812      * specified in the Offer.
813      * </pre>
814      *
815      * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
816      *
817      * @return This builder for chaining.
818      */
clearProductId()819     public Builder clearProductId() {
820       productId_ = getDefaultInstance().getProductId();
821       bitField0_ = (bitField0_ & ~0x00000002);
822       onChanged();
823       return this;
824     }
825     /**
826      *
827      *
828      * <pre>
829      * Output only. The product pertaining to the provisioning resource as
830      * specified in the Offer.
831      * </pre>
832      *
833      * <code>string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
834      *
835      * @param value The bytes for productId to set.
836      * @return This builder for chaining.
837      */
setProductIdBytes(com.google.protobuf.ByteString value)838     public Builder setProductIdBytes(com.google.protobuf.ByteString value) {
839       if (value == null) {
840         throw new NullPointerException();
841       }
842       checkByteStringIsUtf8(value);
843       productId_ = value;
844       bitField0_ |= 0x00000002;
845       onChanged();
846       return this;
847     }
848 
849     private java.lang.Object skuId_ = "";
850     /**
851      *
852      *
853      * <pre>
854      * Output only. The SKU pertaining to the provisioning resource as specified
855      * in the Offer.
856      * </pre>
857      *
858      * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
859      *
860      * @return The skuId.
861      */
getSkuId()862     public java.lang.String getSkuId() {
863       java.lang.Object ref = skuId_;
864       if (!(ref instanceof java.lang.String)) {
865         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
866         java.lang.String s = bs.toStringUtf8();
867         skuId_ = s;
868         return s;
869       } else {
870         return (java.lang.String) ref;
871       }
872     }
873     /**
874      *
875      *
876      * <pre>
877      * Output only. The SKU pertaining to the provisioning resource as specified
878      * in the Offer.
879      * </pre>
880      *
881      * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
882      *
883      * @return The bytes for skuId.
884      */
getSkuIdBytes()885     public com.google.protobuf.ByteString getSkuIdBytes() {
886       java.lang.Object ref = skuId_;
887       if (ref instanceof String) {
888         com.google.protobuf.ByteString b =
889             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
890         skuId_ = b;
891         return b;
892       } else {
893         return (com.google.protobuf.ByteString) ref;
894       }
895     }
896     /**
897      *
898      *
899      * <pre>
900      * Output only. The SKU pertaining to the provisioning resource as specified
901      * in the Offer.
902      * </pre>
903      *
904      * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
905      *
906      * @param value The skuId to set.
907      * @return This builder for chaining.
908      */
setSkuId(java.lang.String value)909     public Builder setSkuId(java.lang.String value) {
910       if (value == null) {
911         throw new NullPointerException();
912       }
913       skuId_ = value;
914       bitField0_ |= 0x00000004;
915       onChanged();
916       return this;
917     }
918     /**
919      *
920      *
921      * <pre>
922      * Output only. The SKU pertaining to the provisioning resource as specified
923      * in the Offer.
924      * </pre>
925      *
926      * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
927      *
928      * @return This builder for chaining.
929      */
clearSkuId()930     public Builder clearSkuId() {
931       skuId_ = getDefaultInstance().getSkuId();
932       bitField0_ = (bitField0_ & ~0x00000004);
933       onChanged();
934       return this;
935     }
936     /**
937      *
938      *
939      * <pre>
940      * Output only. The SKU pertaining to the provisioning resource as specified
941      * in the Offer.
942      * </pre>
943      *
944      * <code>string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
945      *
946      * @param value The bytes for skuId to set.
947      * @return This builder for chaining.
948      */
setSkuIdBytes(com.google.protobuf.ByteString value)949     public Builder setSkuIdBytes(com.google.protobuf.ByteString value) {
950       if (value == null) {
951         throw new NullPointerException();
952       }
953       checkByteStringIsUtf8(value);
954       skuId_ = value;
955       bitField0_ |= 0x00000004;
956       onChanged();
957       return this;
958     }
959 
960     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)961     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
962       return super.setUnknownFields(unknownFields);
963     }
964 
965     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)966     public final Builder mergeUnknownFields(
967         final com.google.protobuf.UnknownFieldSet unknownFields) {
968       return super.mergeUnknownFields(unknownFields);
969     }
970 
971     // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.ProvisionedService)
972   }
973 
974   // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.ProvisionedService)
975   private static final com.google.cloud.channel.v1.ProvisionedService DEFAULT_INSTANCE;
976 
977   static {
978     DEFAULT_INSTANCE = new com.google.cloud.channel.v1.ProvisionedService();
979   }
980 
getDefaultInstance()981   public static com.google.cloud.channel.v1.ProvisionedService getDefaultInstance() {
982     return DEFAULT_INSTANCE;
983   }
984 
985   private static final com.google.protobuf.Parser<ProvisionedService> PARSER =
986       new com.google.protobuf.AbstractParser<ProvisionedService>() {
987         @java.lang.Override
988         public ProvisionedService parsePartialFrom(
989             com.google.protobuf.CodedInputStream input,
990             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
991             throws com.google.protobuf.InvalidProtocolBufferException {
992           Builder builder = newBuilder();
993           try {
994             builder.mergeFrom(input, extensionRegistry);
995           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
996             throw e.setUnfinishedMessage(builder.buildPartial());
997           } catch (com.google.protobuf.UninitializedMessageException e) {
998             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
999           } catch (java.io.IOException e) {
1000             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1001                 .setUnfinishedMessage(builder.buildPartial());
1002           }
1003           return builder.buildPartial();
1004         }
1005       };
1006 
parser()1007   public static com.google.protobuf.Parser<ProvisionedService> parser() {
1008     return PARSER;
1009   }
1010 
1011   @java.lang.Override
getParserForType()1012   public com.google.protobuf.Parser<ProvisionedService> getParserForType() {
1013     return PARSER;
1014   }
1015 
1016   @java.lang.Override
getDefaultInstanceForType()1017   public com.google.cloud.channel.v1.ProvisionedService getDefaultInstanceForType() {
1018     return DEFAULT_INSTANCE;
1019   }
1020 }
1021