• 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/common.proto
18 
19 package com.google.cloud.channel.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Required Edu Attributes
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.channel.v1.EduData}
29  */
30 public final class EduData extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.EduData)
33     EduDataOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use EduData.newBuilder() to construct.
EduData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private EduData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
EduData()40   private EduData() {
41     instituteType_ = 0;
42     instituteSize_ = 0;
43     website_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new EduData();
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.CommonProto
59         .internal_static_google_cloud_channel_v1_EduData_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.channel.v1.CommonProto
66         .internal_static_google_cloud_channel_v1_EduData_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.channel.v1.EduData.class,
69             com.google.cloud.channel.v1.EduData.Builder.class);
70   }
71 
72   /**
73    *
74    *
75    * <pre>
76    * Enum to specify the institute type.
77    * </pre>
78    *
79    * Protobuf enum {@code google.cloud.channel.v1.EduData.InstituteType}
80    */
81   public enum InstituteType implements com.google.protobuf.ProtocolMessageEnum {
82     /**
83      *
84      *
85      * <pre>
86      * Not used.
87      * </pre>
88      *
89      * <code>INSTITUTE_TYPE_UNSPECIFIED = 0;</code>
90      */
91     INSTITUTE_TYPE_UNSPECIFIED(0),
92     /**
93      *
94      *
95      * <pre>
96      * Elementary/Secondary Schools &amp; Districts
97      * </pre>
98      *
99      * <code>K12 = 1;</code>
100      */
101     K12(1),
102     /**
103      *
104      *
105      * <pre>
106      * Higher Education Universities &amp; Colleges
107      * </pre>
108      *
109      * <code>UNIVERSITY = 2;</code>
110      */
111     UNIVERSITY(2),
112     UNRECOGNIZED(-1),
113     ;
114 
115     /**
116      *
117      *
118      * <pre>
119      * Not used.
120      * </pre>
121      *
122      * <code>INSTITUTE_TYPE_UNSPECIFIED = 0;</code>
123      */
124     public static final int INSTITUTE_TYPE_UNSPECIFIED_VALUE = 0;
125     /**
126      *
127      *
128      * <pre>
129      * Elementary/Secondary Schools &amp; Districts
130      * </pre>
131      *
132      * <code>K12 = 1;</code>
133      */
134     public static final int K12_VALUE = 1;
135     /**
136      *
137      *
138      * <pre>
139      * Higher Education Universities &amp; Colleges
140      * </pre>
141      *
142      * <code>UNIVERSITY = 2;</code>
143      */
144     public static final int UNIVERSITY_VALUE = 2;
145 
getNumber()146     public final int getNumber() {
147       if (this == UNRECOGNIZED) {
148         throw new java.lang.IllegalArgumentException(
149             "Can't get the number of an unknown enum value.");
150       }
151       return value;
152     }
153 
154     /**
155      * @param value The numeric wire value of the corresponding enum entry.
156      * @return The enum associated with the given numeric wire value.
157      * @deprecated Use {@link #forNumber(int)} instead.
158      */
159     @java.lang.Deprecated
valueOf(int value)160     public static InstituteType valueOf(int value) {
161       return forNumber(value);
162     }
163 
164     /**
165      * @param value The numeric wire value of the corresponding enum entry.
166      * @return The enum associated with the given numeric wire value.
167      */
forNumber(int value)168     public static InstituteType forNumber(int value) {
169       switch (value) {
170         case 0:
171           return INSTITUTE_TYPE_UNSPECIFIED;
172         case 1:
173           return K12;
174         case 2:
175           return UNIVERSITY;
176         default:
177           return null;
178       }
179     }
180 
internalGetValueMap()181     public static com.google.protobuf.Internal.EnumLiteMap<InstituteType> internalGetValueMap() {
182       return internalValueMap;
183     }
184 
185     private static final com.google.protobuf.Internal.EnumLiteMap<InstituteType> internalValueMap =
186         new com.google.protobuf.Internal.EnumLiteMap<InstituteType>() {
187           public InstituteType findValueByNumber(int number) {
188             return InstituteType.forNumber(number);
189           }
190         };
191 
getValueDescriptor()192     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
193       if (this == UNRECOGNIZED) {
194         throw new java.lang.IllegalStateException(
195             "Can't get the descriptor of an unrecognized enum value.");
196       }
197       return getDescriptor().getValues().get(ordinal());
198     }
199 
getDescriptorForType()200     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
201       return getDescriptor();
202     }
203 
getDescriptor()204     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
205       return com.google.cloud.channel.v1.EduData.getDescriptor().getEnumTypes().get(0);
206     }
207 
208     private static final InstituteType[] VALUES = values();
209 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)210     public static InstituteType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
211       if (desc.getType() != getDescriptor()) {
212         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
213       }
214       if (desc.getIndex() == -1) {
215         return UNRECOGNIZED;
216       }
217       return VALUES[desc.getIndex()];
218     }
219 
220     private final int value;
221 
InstituteType(int value)222     private InstituteType(int value) {
223       this.value = value;
224     }
225 
226     // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.EduData.InstituteType)
227   }
228 
229   /**
230    *
231    *
232    * <pre>
233    * Number of students and staff the institute has.
234    * </pre>
235    *
236    * Protobuf enum {@code google.cloud.channel.v1.EduData.InstituteSize}
237    */
238   public enum InstituteSize implements com.google.protobuf.ProtocolMessageEnum {
239     /**
240      *
241      *
242      * <pre>
243      * Not used.
244      * </pre>
245      *
246      * <code>INSTITUTE_SIZE_UNSPECIFIED = 0;</code>
247      */
248     INSTITUTE_SIZE_UNSPECIFIED(0),
249     /**
250      *
251      *
252      * <pre>
253      * 1 - 100
254      * </pre>
255      *
256      * <code>SIZE_1_100 = 1;</code>
257      */
258     SIZE_1_100(1),
259     /**
260      *
261      *
262      * <pre>
263      * 101 - 500
264      * </pre>
265      *
266      * <code>SIZE_101_500 = 2;</code>
267      */
268     SIZE_101_500(2),
269     /**
270      *
271      *
272      * <pre>
273      * 501 - 1,000
274      * </pre>
275      *
276      * <code>SIZE_501_1000 = 3;</code>
277      */
278     SIZE_501_1000(3),
279     /**
280      *
281      *
282      * <pre>
283      * 1,001 - 2,000
284      * </pre>
285      *
286      * <code>SIZE_1001_2000 = 4;</code>
287      */
288     SIZE_1001_2000(4),
289     /**
290      *
291      *
292      * <pre>
293      * 2,001 - 5,000
294      * </pre>
295      *
296      * <code>SIZE_2001_5000 = 5;</code>
297      */
298     SIZE_2001_5000(5),
299     /**
300      *
301      *
302      * <pre>
303      * 5,001 - 10,000
304      * </pre>
305      *
306      * <code>SIZE_5001_10000 = 6;</code>
307      */
308     SIZE_5001_10000(6),
309     /**
310      *
311      *
312      * <pre>
313      * 10,001 +
314      * </pre>
315      *
316      * <code>SIZE_10001_OR_MORE = 7;</code>
317      */
318     SIZE_10001_OR_MORE(7),
319     UNRECOGNIZED(-1),
320     ;
321 
322     /**
323      *
324      *
325      * <pre>
326      * Not used.
327      * </pre>
328      *
329      * <code>INSTITUTE_SIZE_UNSPECIFIED = 0;</code>
330      */
331     public static final int INSTITUTE_SIZE_UNSPECIFIED_VALUE = 0;
332     /**
333      *
334      *
335      * <pre>
336      * 1 - 100
337      * </pre>
338      *
339      * <code>SIZE_1_100 = 1;</code>
340      */
341     public static final int SIZE_1_100_VALUE = 1;
342     /**
343      *
344      *
345      * <pre>
346      * 101 - 500
347      * </pre>
348      *
349      * <code>SIZE_101_500 = 2;</code>
350      */
351     public static final int SIZE_101_500_VALUE = 2;
352     /**
353      *
354      *
355      * <pre>
356      * 501 - 1,000
357      * </pre>
358      *
359      * <code>SIZE_501_1000 = 3;</code>
360      */
361     public static final int SIZE_501_1000_VALUE = 3;
362     /**
363      *
364      *
365      * <pre>
366      * 1,001 - 2,000
367      * </pre>
368      *
369      * <code>SIZE_1001_2000 = 4;</code>
370      */
371     public static final int SIZE_1001_2000_VALUE = 4;
372     /**
373      *
374      *
375      * <pre>
376      * 2,001 - 5,000
377      * </pre>
378      *
379      * <code>SIZE_2001_5000 = 5;</code>
380      */
381     public static final int SIZE_2001_5000_VALUE = 5;
382     /**
383      *
384      *
385      * <pre>
386      * 5,001 - 10,000
387      * </pre>
388      *
389      * <code>SIZE_5001_10000 = 6;</code>
390      */
391     public static final int SIZE_5001_10000_VALUE = 6;
392     /**
393      *
394      *
395      * <pre>
396      * 10,001 +
397      * </pre>
398      *
399      * <code>SIZE_10001_OR_MORE = 7;</code>
400      */
401     public static final int SIZE_10001_OR_MORE_VALUE = 7;
402 
getNumber()403     public final int getNumber() {
404       if (this == UNRECOGNIZED) {
405         throw new java.lang.IllegalArgumentException(
406             "Can't get the number of an unknown enum value.");
407       }
408       return value;
409     }
410 
411     /**
412      * @param value The numeric wire value of the corresponding enum entry.
413      * @return The enum associated with the given numeric wire value.
414      * @deprecated Use {@link #forNumber(int)} instead.
415      */
416     @java.lang.Deprecated
valueOf(int value)417     public static InstituteSize valueOf(int value) {
418       return forNumber(value);
419     }
420 
421     /**
422      * @param value The numeric wire value of the corresponding enum entry.
423      * @return The enum associated with the given numeric wire value.
424      */
forNumber(int value)425     public static InstituteSize forNumber(int value) {
426       switch (value) {
427         case 0:
428           return INSTITUTE_SIZE_UNSPECIFIED;
429         case 1:
430           return SIZE_1_100;
431         case 2:
432           return SIZE_101_500;
433         case 3:
434           return SIZE_501_1000;
435         case 4:
436           return SIZE_1001_2000;
437         case 5:
438           return SIZE_2001_5000;
439         case 6:
440           return SIZE_5001_10000;
441         case 7:
442           return SIZE_10001_OR_MORE;
443         default:
444           return null;
445       }
446     }
447 
internalGetValueMap()448     public static com.google.protobuf.Internal.EnumLiteMap<InstituteSize> internalGetValueMap() {
449       return internalValueMap;
450     }
451 
452     private static final com.google.protobuf.Internal.EnumLiteMap<InstituteSize> internalValueMap =
453         new com.google.protobuf.Internal.EnumLiteMap<InstituteSize>() {
454           public InstituteSize findValueByNumber(int number) {
455             return InstituteSize.forNumber(number);
456           }
457         };
458 
getValueDescriptor()459     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
460       if (this == UNRECOGNIZED) {
461         throw new java.lang.IllegalStateException(
462             "Can't get the descriptor of an unrecognized enum value.");
463       }
464       return getDescriptor().getValues().get(ordinal());
465     }
466 
getDescriptorForType()467     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
468       return getDescriptor();
469     }
470 
getDescriptor()471     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
472       return com.google.cloud.channel.v1.EduData.getDescriptor().getEnumTypes().get(1);
473     }
474 
475     private static final InstituteSize[] VALUES = values();
476 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)477     public static InstituteSize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
478       if (desc.getType() != getDescriptor()) {
479         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
480       }
481       if (desc.getIndex() == -1) {
482         return UNRECOGNIZED;
483       }
484       return VALUES[desc.getIndex()];
485     }
486 
487     private final int value;
488 
InstituteSize(int value)489     private InstituteSize(int value) {
490       this.value = value;
491     }
492 
493     // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.EduData.InstituteSize)
494   }
495 
496   public static final int INSTITUTE_TYPE_FIELD_NUMBER = 1;
497   private int instituteType_ = 0;
498   /**
499    *
500    *
501    * <pre>
502    * Designated institute type of customer.
503    * </pre>
504    *
505    * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
506    *
507    * @return The enum numeric value on the wire for instituteType.
508    */
509   @java.lang.Override
getInstituteTypeValue()510   public int getInstituteTypeValue() {
511     return instituteType_;
512   }
513   /**
514    *
515    *
516    * <pre>
517    * Designated institute type of customer.
518    * </pre>
519    *
520    * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
521    *
522    * @return The instituteType.
523    */
524   @java.lang.Override
getInstituteType()525   public com.google.cloud.channel.v1.EduData.InstituteType getInstituteType() {
526     com.google.cloud.channel.v1.EduData.InstituteType result =
527         com.google.cloud.channel.v1.EduData.InstituteType.forNumber(instituteType_);
528     return result == null ? com.google.cloud.channel.v1.EduData.InstituteType.UNRECOGNIZED : result;
529   }
530 
531   public static final int INSTITUTE_SIZE_FIELD_NUMBER = 2;
532   private int instituteSize_ = 0;
533   /**
534    *
535    *
536    * <pre>
537    * Size of the institute.
538    * </pre>
539    *
540    * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
541    *
542    * @return The enum numeric value on the wire for instituteSize.
543    */
544   @java.lang.Override
getInstituteSizeValue()545   public int getInstituteSizeValue() {
546     return instituteSize_;
547   }
548   /**
549    *
550    *
551    * <pre>
552    * Size of the institute.
553    * </pre>
554    *
555    * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
556    *
557    * @return The instituteSize.
558    */
559   @java.lang.Override
getInstituteSize()560   public com.google.cloud.channel.v1.EduData.InstituteSize getInstituteSize() {
561     com.google.cloud.channel.v1.EduData.InstituteSize result =
562         com.google.cloud.channel.v1.EduData.InstituteSize.forNumber(instituteSize_);
563     return result == null ? com.google.cloud.channel.v1.EduData.InstituteSize.UNRECOGNIZED : result;
564   }
565 
566   public static final int WEBSITE_FIELD_NUMBER = 3;
567 
568   @SuppressWarnings("serial")
569   private volatile java.lang.Object website_ = "";
570   /**
571    *
572    *
573    * <pre>
574    * Web address for the edu customer's institution.
575    * </pre>
576    *
577    * <code>string website = 3;</code>
578    *
579    * @return The website.
580    */
581   @java.lang.Override
getWebsite()582   public java.lang.String getWebsite() {
583     java.lang.Object ref = website_;
584     if (ref instanceof java.lang.String) {
585       return (java.lang.String) ref;
586     } else {
587       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
588       java.lang.String s = bs.toStringUtf8();
589       website_ = s;
590       return s;
591     }
592   }
593   /**
594    *
595    *
596    * <pre>
597    * Web address for the edu customer's institution.
598    * </pre>
599    *
600    * <code>string website = 3;</code>
601    *
602    * @return The bytes for website.
603    */
604   @java.lang.Override
getWebsiteBytes()605   public com.google.protobuf.ByteString getWebsiteBytes() {
606     java.lang.Object ref = website_;
607     if (ref instanceof java.lang.String) {
608       com.google.protobuf.ByteString b =
609           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
610       website_ = b;
611       return b;
612     } else {
613       return (com.google.protobuf.ByteString) ref;
614     }
615   }
616 
617   private byte memoizedIsInitialized = -1;
618 
619   @java.lang.Override
isInitialized()620   public final boolean isInitialized() {
621     byte isInitialized = memoizedIsInitialized;
622     if (isInitialized == 1) return true;
623     if (isInitialized == 0) return false;
624 
625     memoizedIsInitialized = 1;
626     return true;
627   }
628 
629   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)630   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
631     if (instituteType_
632         != com.google.cloud.channel.v1.EduData.InstituteType.INSTITUTE_TYPE_UNSPECIFIED
633             .getNumber()) {
634       output.writeEnum(1, instituteType_);
635     }
636     if (instituteSize_
637         != com.google.cloud.channel.v1.EduData.InstituteSize.INSTITUTE_SIZE_UNSPECIFIED
638             .getNumber()) {
639       output.writeEnum(2, instituteSize_);
640     }
641     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(website_)) {
642       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, website_);
643     }
644     getUnknownFields().writeTo(output);
645   }
646 
647   @java.lang.Override
getSerializedSize()648   public int getSerializedSize() {
649     int size = memoizedSize;
650     if (size != -1) return size;
651 
652     size = 0;
653     if (instituteType_
654         != com.google.cloud.channel.v1.EduData.InstituteType.INSTITUTE_TYPE_UNSPECIFIED
655             .getNumber()) {
656       size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, instituteType_);
657     }
658     if (instituteSize_
659         != com.google.cloud.channel.v1.EduData.InstituteSize.INSTITUTE_SIZE_UNSPECIFIED
660             .getNumber()) {
661       size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, instituteSize_);
662     }
663     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(website_)) {
664       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, website_);
665     }
666     size += getUnknownFields().getSerializedSize();
667     memoizedSize = size;
668     return size;
669   }
670 
671   @java.lang.Override
equals(final java.lang.Object obj)672   public boolean equals(final java.lang.Object obj) {
673     if (obj == this) {
674       return true;
675     }
676     if (!(obj instanceof com.google.cloud.channel.v1.EduData)) {
677       return super.equals(obj);
678     }
679     com.google.cloud.channel.v1.EduData other = (com.google.cloud.channel.v1.EduData) obj;
680 
681     if (instituteType_ != other.instituteType_) return false;
682     if (instituteSize_ != other.instituteSize_) return false;
683     if (!getWebsite().equals(other.getWebsite())) return false;
684     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
685     return true;
686   }
687 
688   @java.lang.Override
hashCode()689   public int hashCode() {
690     if (memoizedHashCode != 0) {
691       return memoizedHashCode;
692     }
693     int hash = 41;
694     hash = (19 * hash) + getDescriptor().hashCode();
695     hash = (37 * hash) + INSTITUTE_TYPE_FIELD_NUMBER;
696     hash = (53 * hash) + instituteType_;
697     hash = (37 * hash) + INSTITUTE_SIZE_FIELD_NUMBER;
698     hash = (53 * hash) + instituteSize_;
699     hash = (37 * hash) + WEBSITE_FIELD_NUMBER;
700     hash = (53 * hash) + getWebsite().hashCode();
701     hash = (29 * hash) + getUnknownFields().hashCode();
702     memoizedHashCode = hash;
703     return hash;
704   }
705 
parseFrom(java.nio.ByteBuffer data)706   public static com.google.cloud.channel.v1.EduData parseFrom(java.nio.ByteBuffer data)
707       throws com.google.protobuf.InvalidProtocolBufferException {
708     return PARSER.parseFrom(data);
709   }
710 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)711   public static com.google.cloud.channel.v1.EduData parseFrom(
712       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
713       throws com.google.protobuf.InvalidProtocolBufferException {
714     return PARSER.parseFrom(data, extensionRegistry);
715   }
716 
parseFrom(com.google.protobuf.ByteString data)717   public static com.google.cloud.channel.v1.EduData parseFrom(com.google.protobuf.ByteString data)
718       throws com.google.protobuf.InvalidProtocolBufferException {
719     return PARSER.parseFrom(data);
720   }
721 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)722   public static com.google.cloud.channel.v1.EduData parseFrom(
723       com.google.protobuf.ByteString data,
724       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
725       throws com.google.protobuf.InvalidProtocolBufferException {
726     return PARSER.parseFrom(data, extensionRegistry);
727   }
728 
parseFrom(byte[] data)729   public static com.google.cloud.channel.v1.EduData parseFrom(byte[] data)
730       throws com.google.protobuf.InvalidProtocolBufferException {
731     return PARSER.parseFrom(data);
732   }
733 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)734   public static com.google.cloud.channel.v1.EduData parseFrom(
735       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
736       throws com.google.protobuf.InvalidProtocolBufferException {
737     return PARSER.parseFrom(data, extensionRegistry);
738   }
739 
parseFrom(java.io.InputStream input)740   public static com.google.cloud.channel.v1.EduData parseFrom(java.io.InputStream input)
741       throws java.io.IOException {
742     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
743   }
744 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)745   public static com.google.cloud.channel.v1.EduData parseFrom(
746       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
747       throws java.io.IOException {
748     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
749         PARSER, input, extensionRegistry);
750   }
751 
parseDelimitedFrom(java.io.InputStream input)752   public static com.google.cloud.channel.v1.EduData parseDelimitedFrom(java.io.InputStream input)
753       throws java.io.IOException {
754     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
755   }
756 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)757   public static com.google.cloud.channel.v1.EduData parseDelimitedFrom(
758       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
759       throws java.io.IOException {
760     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
761         PARSER, input, extensionRegistry);
762   }
763 
parseFrom( com.google.protobuf.CodedInputStream input)764   public static com.google.cloud.channel.v1.EduData parseFrom(
765       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
766     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
767   }
768 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)769   public static com.google.cloud.channel.v1.EduData parseFrom(
770       com.google.protobuf.CodedInputStream input,
771       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
772       throws java.io.IOException {
773     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
774         PARSER, input, extensionRegistry);
775   }
776 
777   @java.lang.Override
newBuilderForType()778   public Builder newBuilderForType() {
779     return newBuilder();
780   }
781 
newBuilder()782   public static Builder newBuilder() {
783     return DEFAULT_INSTANCE.toBuilder();
784   }
785 
newBuilder(com.google.cloud.channel.v1.EduData prototype)786   public static Builder newBuilder(com.google.cloud.channel.v1.EduData prototype) {
787     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
788   }
789 
790   @java.lang.Override
toBuilder()791   public Builder toBuilder() {
792     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
793   }
794 
795   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)796   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
797     Builder builder = new Builder(parent);
798     return builder;
799   }
800   /**
801    *
802    *
803    * <pre>
804    * Required Edu Attributes
805    * </pre>
806    *
807    * Protobuf type {@code google.cloud.channel.v1.EduData}
808    */
809   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
810       implements
811       // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.EduData)
812       com.google.cloud.channel.v1.EduDataOrBuilder {
getDescriptor()813     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
814       return com.google.cloud.channel.v1.CommonProto
815           .internal_static_google_cloud_channel_v1_EduData_descriptor;
816     }
817 
818     @java.lang.Override
819     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()820         internalGetFieldAccessorTable() {
821       return com.google.cloud.channel.v1.CommonProto
822           .internal_static_google_cloud_channel_v1_EduData_fieldAccessorTable
823           .ensureFieldAccessorsInitialized(
824               com.google.cloud.channel.v1.EduData.class,
825               com.google.cloud.channel.v1.EduData.Builder.class);
826     }
827 
828     // Construct using com.google.cloud.channel.v1.EduData.newBuilder()
Builder()829     private Builder() {}
830 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)831     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
832       super(parent);
833     }
834 
835     @java.lang.Override
clear()836     public Builder clear() {
837       super.clear();
838       bitField0_ = 0;
839       instituteType_ = 0;
840       instituteSize_ = 0;
841       website_ = "";
842       return this;
843     }
844 
845     @java.lang.Override
getDescriptorForType()846     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
847       return com.google.cloud.channel.v1.CommonProto
848           .internal_static_google_cloud_channel_v1_EduData_descriptor;
849     }
850 
851     @java.lang.Override
getDefaultInstanceForType()852     public com.google.cloud.channel.v1.EduData getDefaultInstanceForType() {
853       return com.google.cloud.channel.v1.EduData.getDefaultInstance();
854     }
855 
856     @java.lang.Override
build()857     public com.google.cloud.channel.v1.EduData build() {
858       com.google.cloud.channel.v1.EduData result = buildPartial();
859       if (!result.isInitialized()) {
860         throw newUninitializedMessageException(result);
861       }
862       return result;
863     }
864 
865     @java.lang.Override
buildPartial()866     public com.google.cloud.channel.v1.EduData buildPartial() {
867       com.google.cloud.channel.v1.EduData result = new com.google.cloud.channel.v1.EduData(this);
868       if (bitField0_ != 0) {
869         buildPartial0(result);
870       }
871       onBuilt();
872       return result;
873     }
874 
buildPartial0(com.google.cloud.channel.v1.EduData result)875     private void buildPartial0(com.google.cloud.channel.v1.EduData result) {
876       int from_bitField0_ = bitField0_;
877       if (((from_bitField0_ & 0x00000001) != 0)) {
878         result.instituteType_ = instituteType_;
879       }
880       if (((from_bitField0_ & 0x00000002) != 0)) {
881         result.instituteSize_ = instituteSize_;
882       }
883       if (((from_bitField0_ & 0x00000004) != 0)) {
884         result.website_ = website_;
885       }
886     }
887 
888     @java.lang.Override
clone()889     public Builder clone() {
890       return super.clone();
891     }
892 
893     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)894     public Builder setField(
895         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
896       return super.setField(field, value);
897     }
898 
899     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)900     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
901       return super.clearField(field);
902     }
903 
904     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)905     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
906       return super.clearOneof(oneof);
907     }
908 
909     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)910     public Builder setRepeatedField(
911         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
912       return super.setRepeatedField(field, index, value);
913     }
914 
915     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)916     public Builder addRepeatedField(
917         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
918       return super.addRepeatedField(field, value);
919     }
920 
921     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)922     public Builder mergeFrom(com.google.protobuf.Message other) {
923       if (other instanceof com.google.cloud.channel.v1.EduData) {
924         return mergeFrom((com.google.cloud.channel.v1.EduData) other);
925       } else {
926         super.mergeFrom(other);
927         return this;
928       }
929     }
930 
mergeFrom(com.google.cloud.channel.v1.EduData other)931     public Builder mergeFrom(com.google.cloud.channel.v1.EduData other) {
932       if (other == com.google.cloud.channel.v1.EduData.getDefaultInstance()) return this;
933       if (other.instituteType_ != 0) {
934         setInstituteTypeValue(other.getInstituteTypeValue());
935       }
936       if (other.instituteSize_ != 0) {
937         setInstituteSizeValue(other.getInstituteSizeValue());
938       }
939       if (!other.getWebsite().isEmpty()) {
940         website_ = other.website_;
941         bitField0_ |= 0x00000004;
942         onChanged();
943       }
944       this.mergeUnknownFields(other.getUnknownFields());
945       onChanged();
946       return this;
947     }
948 
949     @java.lang.Override
isInitialized()950     public final boolean isInitialized() {
951       return true;
952     }
953 
954     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)955     public Builder mergeFrom(
956         com.google.protobuf.CodedInputStream input,
957         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
958         throws java.io.IOException {
959       if (extensionRegistry == null) {
960         throw new java.lang.NullPointerException();
961       }
962       try {
963         boolean done = false;
964         while (!done) {
965           int tag = input.readTag();
966           switch (tag) {
967             case 0:
968               done = true;
969               break;
970             case 8:
971               {
972                 instituteType_ = input.readEnum();
973                 bitField0_ |= 0x00000001;
974                 break;
975               } // case 8
976             case 16:
977               {
978                 instituteSize_ = input.readEnum();
979                 bitField0_ |= 0x00000002;
980                 break;
981               } // case 16
982             case 26:
983               {
984                 website_ = input.readStringRequireUtf8();
985                 bitField0_ |= 0x00000004;
986                 break;
987               } // case 26
988             default:
989               {
990                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
991                   done = true; // was an endgroup tag
992                 }
993                 break;
994               } // default:
995           } // switch (tag)
996         } // while (!done)
997       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
998         throw e.unwrapIOException();
999       } finally {
1000         onChanged();
1001       } // finally
1002       return this;
1003     }
1004 
1005     private int bitField0_;
1006 
1007     private int instituteType_ = 0;
1008     /**
1009      *
1010      *
1011      * <pre>
1012      * Designated institute type of customer.
1013      * </pre>
1014      *
1015      * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
1016      *
1017      * @return The enum numeric value on the wire for instituteType.
1018      */
1019     @java.lang.Override
getInstituteTypeValue()1020     public int getInstituteTypeValue() {
1021       return instituteType_;
1022     }
1023     /**
1024      *
1025      *
1026      * <pre>
1027      * Designated institute type of customer.
1028      * </pre>
1029      *
1030      * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
1031      *
1032      * @param value The enum numeric value on the wire for instituteType to set.
1033      * @return This builder for chaining.
1034      */
setInstituteTypeValue(int value)1035     public Builder setInstituteTypeValue(int value) {
1036       instituteType_ = value;
1037       bitField0_ |= 0x00000001;
1038       onChanged();
1039       return this;
1040     }
1041     /**
1042      *
1043      *
1044      * <pre>
1045      * Designated institute type of customer.
1046      * </pre>
1047      *
1048      * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
1049      *
1050      * @return The instituteType.
1051      */
1052     @java.lang.Override
getInstituteType()1053     public com.google.cloud.channel.v1.EduData.InstituteType getInstituteType() {
1054       com.google.cloud.channel.v1.EduData.InstituteType result =
1055           com.google.cloud.channel.v1.EduData.InstituteType.forNumber(instituteType_);
1056       return result == null
1057           ? com.google.cloud.channel.v1.EduData.InstituteType.UNRECOGNIZED
1058           : result;
1059     }
1060     /**
1061      *
1062      *
1063      * <pre>
1064      * Designated institute type of customer.
1065      * </pre>
1066      *
1067      * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
1068      *
1069      * @param value The instituteType to set.
1070      * @return This builder for chaining.
1071      */
setInstituteType(com.google.cloud.channel.v1.EduData.InstituteType value)1072     public Builder setInstituteType(com.google.cloud.channel.v1.EduData.InstituteType value) {
1073       if (value == null) {
1074         throw new NullPointerException();
1075       }
1076       bitField0_ |= 0x00000001;
1077       instituteType_ = value.getNumber();
1078       onChanged();
1079       return this;
1080     }
1081     /**
1082      *
1083      *
1084      * <pre>
1085      * Designated institute type of customer.
1086      * </pre>
1087      *
1088      * <code>.google.cloud.channel.v1.EduData.InstituteType institute_type = 1;</code>
1089      *
1090      * @return This builder for chaining.
1091      */
clearInstituteType()1092     public Builder clearInstituteType() {
1093       bitField0_ = (bitField0_ & ~0x00000001);
1094       instituteType_ = 0;
1095       onChanged();
1096       return this;
1097     }
1098 
1099     private int instituteSize_ = 0;
1100     /**
1101      *
1102      *
1103      * <pre>
1104      * Size of the institute.
1105      * </pre>
1106      *
1107      * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
1108      *
1109      * @return The enum numeric value on the wire for instituteSize.
1110      */
1111     @java.lang.Override
getInstituteSizeValue()1112     public int getInstituteSizeValue() {
1113       return instituteSize_;
1114     }
1115     /**
1116      *
1117      *
1118      * <pre>
1119      * Size of the institute.
1120      * </pre>
1121      *
1122      * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
1123      *
1124      * @param value The enum numeric value on the wire for instituteSize to set.
1125      * @return This builder for chaining.
1126      */
setInstituteSizeValue(int value)1127     public Builder setInstituteSizeValue(int value) {
1128       instituteSize_ = value;
1129       bitField0_ |= 0x00000002;
1130       onChanged();
1131       return this;
1132     }
1133     /**
1134      *
1135      *
1136      * <pre>
1137      * Size of the institute.
1138      * </pre>
1139      *
1140      * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
1141      *
1142      * @return The instituteSize.
1143      */
1144     @java.lang.Override
getInstituteSize()1145     public com.google.cloud.channel.v1.EduData.InstituteSize getInstituteSize() {
1146       com.google.cloud.channel.v1.EduData.InstituteSize result =
1147           com.google.cloud.channel.v1.EduData.InstituteSize.forNumber(instituteSize_);
1148       return result == null
1149           ? com.google.cloud.channel.v1.EduData.InstituteSize.UNRECOGNIZED
1150           : result;
1151     }
1152     /**
1153      *
1154      *
1155      * <pre>
1156      * Size of the institute.
1157      * </pre>
1158      *
1159      * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
1160      *
1161      * @param value The instituteSize to set.
1162      * @return This builder for chaining.
1163      */
setInstituteSize(com.google.cloud.channel.v1.EduData.InstituteSize value)1164     public Builder setInstituteSize(com.google.cloud.channel.v1.EduData.InstituteSize value) {
1165       if (value == null) {
1166         throw new NullPointerException();
1167       }
1168       bitField0_ |= 0x00000002;
1169       instituteSize_ = value.getNumber();
1170       onChanged();
1171       return this;
1172     }
1173     /**
1174      *
1175      *
1176      * <pre>
1177      * Size of the institute.
1178      * </pre>
1179      *
1180      * <code>.google.cloud.channel.v1.EduData.InstituteSize institute_size = 2;</code>
1181      *
1182      * @return This builder for chaining.
1183      */
clearInstituteSize()1184     public Builder clearInstituteSize() {
1185       bitField0_ = (bitField0_ & ~0x00000002);
1186       instituteSize_ = 0;
1187       onChanged();
1188       return this;
1189     }
1190 
1191     private java.lang.Object website_ = "";
1192     /**
1193      *
1194      *
1195      * <pre>
1196      * Web address for the edu customer's institution.
1197      * </pre>
1198      *
1199      * <code>string website = 3;</code>
1200      *
1201      * @return The website.
1202      */
getWebsite()1203     public java.lang.String getWebsite() {
1204       java.lang.Object ref = website_;
1205       if (!(ref instanceof java.lang.String)) {
1206         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1207         java.lang.String s = bs.toStringUtf8();
1208         website_ = s;
1209         return s;
1210       } else {
1211         return (java.lang.String) ref;
1212       }
1213     }
1214     /**
1215      *
1216      *
1217      * <pre>
1218      * Web address for the edu customer's institution.
1219      * </pre>
1220      *
1221      * <code>string website = 3;</code>
1222      *
1223      * @return The bytes for website.
1224      */
getWebsiteBytes()1225     public com.google.protobuf.ByteString getWebsiteBytes() {
1226       java.lang.Object ref = website_;
1227       if (ref instanceof String) {
1228         com.google.protobuf.ByteString b =
1229             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1230         website_ = b;
1231         return b;
1232       } else {
1233         return (com.google.protobuf.ByteString) ref;
1234       }
1235     }
1236     /**
1237      *
1238      *
1239      * <pre>
1240      * Web address for the edu customer's institution.
1241      * </pre>
1242      *
1243      * <code>string website = 3;</code>
1244      *
1245      * @param value The website to set.
1246      * @return This builder for chaining.
1247      */
setWebsite(java.lang.String value)1248     public Builder setWebsite(java.lang.String value) {
1249       if (value == null) {
1250         throw new NullPointerException();
1251       }
1252       website_ = value;
1253       bitField0_ |= 0x00000004;
1254       onChanged();
1255       return this;
1256     }
1257     /**
1258      *
1259      *
1260      * <pre>
1261      * Web address for the edu customer's institution.
1262      * </pre>
1263      *
1264      * <code>string website = 3;</code>
1265      *
1266      * @return This builder for chaining.
1267      */
clearWebsite()1268     public Builder clearWebsite() {
1269       website_ = getDefaultInstance().getWebsite();
1270       bitField0_ = (bitField0_ & ~0x00000004);
1271       onChanged();
1272       return this;
1273     }
1274     /**
1275      *
1276      *
1277      * <pre>
1278      * Web address for the edu customer's institution.
1279      * </pre>
1280      *
1281      * <code>string website = 3;</code>
1282      *
1283      * @param value The bytes for website to set.
1284      * @return This builder for chaining.
1285      */
setWebsiteBytes(com.google.protobuf.ByteString value)1286     public Builder setWebsiteBytes(com.google.protobuf.ByteString value) {
1287       if (value == null) {
1288         throw new NullPointerException();
1289       }
1290       checkByteStringIsUtf8(value);
1291       website_ = value;
1292       bitField0_ |= 0x00000004;
1293       onChanged();
1294       return this;
1295     }
1296 
1297     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1298     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1299       return super.setUnknownFields(unknownFields);
1300     }
1301 
1302     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1303     public final Builder mergeUnknownFields(
1304         final com.google.protobuf.UnknownFieldSet unknownFields) {
1305       return super.mergeUnknownFields(unknownFields);
1306     }
1307 
1308     // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.EduData)
1309   }
1310 
1311   // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.EduData)
1312   private static final com.google.cloud.channel.v1.EduData DEFAULT_INSTANCE;
1313 
1314   static {
1315     DEFAULT_INSTANCE = new com.google.cloud.channel.v1.EduData();
1316   }
1317 
getDefaultInstance()1318   public static com.google.cloud.channel.v1.EduData getDefaultInstance() {
1319     return DEFAULT_INSTANCE;
1320   }
1321 
1322   private static final com.google.protobuf.Parser<EduData> PARSER =
1323       new com.google.protobuf.AbstractParser<EduData>() {
1324         @java.lang.Override
1325         public EduData parsePartialFrom(
1326             com.google.protobuf.CodedInputStream input,
1327             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1328             throws com.google.protobuf.InvalidProtocolBufferException {
1329           Builder builder = newBuilder();
1330           try {
1331             builder.mergeFrom(input, extensionRegistry);
1332           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1333             throw e.setUnfinishedMessage(builder.buildPartial());
1334           } catch (com.google.protobuf.UninitializedMessageException e) {
1335             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1336           } catch (java.io.IOException e) {
1337             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1338                 .setUnfinishedMessage(builder.buildPartial());
1339           }
1340           return builder.buildPartial();
1341         }
1342       };
1343 
parser()1344   public static com.google.protobuf.Parser<EduData> parser() {
1345     return PARSER;
1346   }
1347 
1348   @java.lang.Override
getParserForType()1349   public com.google.protobuf.Parser<EduData> getParserForType() {
1350     return PARSER;
1351   }
1352 
1353   @java.lang.Override
getDefaultInstanceForType()1354   public com.google.cloud.channel.v1.EduData getDefaultInstanceForType() {
1355     return DEFAULT_INSTANCE;
1356   }
1357 }
1358