• 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/apps/script/type/script_manifest.proto
18 
19 package com.google.apps.script.type;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Add-on configuration that is shared across all add-on host applications.
26  * </pre>
27  *
28  * Protobuf type {@code google.apps.script.type.CommonAddOnManifest}
29  */
30 public final class CommonAddOnManifest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.apps.script.type.CommonAddOnManifest)
33     CommonAddOnManifestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use CommonAddOnManifest.newBuilder() to construct.
CommonAddOnManifest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private CommonAddOnManifest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
CommonAddOnManifest()40   private CommonAddOnManifest() {
41     name_ = "";
42     logoUrl_ = "";
43     universalActions_ = java.util.Collections.emptyList();
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new CommonAddOnManifest();
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.apps.script.type.ScriptManifest
59         .internal_static_google_apps_script_type_CommonAddOnManifest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.apps.script.type.ScriptManifest
66         .internal_static_google_apps_script_type_CommonAddOnManifest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.apps.script.type.CommonAddOnManifest.class,
69             com.google.apps.script.type.CommonAddOnManifest.Builder.class);
70   }
71 
72   public static final int NAME_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object name_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * Required. The display name of the add-on.
81    * </pre>
82    *
83    * <code>string name = 1;</code>
84    *
85    * @return The name.
86    */
87   @java.lang.Override
getName()88   public java.lang.String getName() {
89     java.lang.Object ref = name_;
90     if (ref instanceof java.lang.String) {
91       return (java.lang.String) ref;
92     } else {
93       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
94       java.lang.String s = bs.toStringUtf8();
95       name_ = s;
96       return s;
97     }
98   }
99   /**
100    *
101    *
102    * <pre>
103    * Required. The display name of the add-on.
104    * </pre>
105    *
106    * <code>string name = 1;</code>
107    *
108    * @return The bytes for name.
109    */
110   @java.lang.Override
getNameBytes()111   public com.google.protobuf.ByteString getNameBytes() {
112     java.lang.Object ref = name_;
113     if (ref instanceof java.lang.String) {
114       com.google.protobuf.ByteString b =
115           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
116       name_ = b;
117       return b;
118     } else {
119       return (com.google.protobuf.ByteString) ref;
120     }
121   }
122 
123   public static final int LOGO_URL_FIELD_NUMBER = 2;
124 
125   @SuppressWarnings("serial")
126   private volatile java.lang.Object logoUrl_ = "";
127   /**
128    *
129    *
130    * <pre>
131    * Required. The URL for the logo image shown in the add-on toolbar.
132    * </pre>
133    *
134    * <code>string logo_url = 2;</code>
135    *
136    * @return The logoUrl.
137    */
138   @java.lang.Override
getLogoUrl()139   public java.lang.String getLogoUrl() {
140     java.lang.Object ref = logoUrl_;
141     if (ref instanceof java.lang.String) {
142       return (java.lang.String) ref;
143     } else {
144       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
145       java.lang.String s = bs.toStringUtf8();
146       logoUrl_ = s;
147       return s;
148     }
149   }
150   /**
151    *
152    *
153    * <pre>
154    * Required. The URL for the logo image shown in the add-on toolbar.
155    * </pre>
156    *
157    * <code>string logo_url = 2;</code>
158    *
159    * @return The bytes for logoUrl.
160    */
161   @java.lang.Override
getLogoUrlBytes()162   public com.google.protobuf.ByteString getLogoUrlBytes() {
163     java.lang.Object ref = logoUrl_;
164     if (ref instanceof java.lang.String) {
165       com.google.protobuf.ByteString b =
166           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
167       logoUrl_ = b;
168       return b;
169     } else {
170       return (com.google.protobuf.ByteString) ref;
171     }
172   }
173 
174   public static final int LAYOUT_PROPERTIES_FIELD_NUMBER = 3;
175   private com.google.apps.script.type.LayoutProperties layoutProperties_;
176   /**
177    *
178    *
179    * <pre>
180    * Common layout properties for the add-on cards.
181    * </pre>
182    *
183    * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
184    *
185    * @return Whether the layoutProperties field is set.
186    */
187   @java.lang.Override
hasLayoutProperties()188   public boolean hasLayoutProperties() {
189     return layoutProperties_ != null;
190   }
191   /**
192    *
193    *
194    * <pre>
195    * Common layout properties for the add-on cards.
196    * </pre>
197    *
198    * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
199    *
200    * @return The layoutProperties.
201    */
202   @java.lang.Override
getLayoutProperties()203   public com.google.apps.script.type.LayoutProperties getLayoutProperties() {
204     return layoutProperties_ == null
205         ? com.google.apps.script.type.LayoutProperties.getDefaultInstance()
206         : layoutProperties_;
207   }
208   /**
209    *
210    *
211    * <pre>
212    * Common layout properties for the add-on cards.
213    * </pre>
214    *
215    * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
216    */
217   @java.lang.Override
getLayoutPropertiesOrBuilder()218   public com.google.apps.script.type.LayoutPropertiesOrBuilder getLayoutPropertiesOrBuilder() {
219     return layoutProperties_ == null
220         ? com.google.apps.script.type.LayoutProperties.getDefaultInstance()
221         : layoutProperties_;
222   }
223 
224   public static final int ADD_ON_WIDGET_SET_FIELD_NUMBER = 4;
225   private com.google.apps.script.type.AddOnWidgetSet addOnWidgetSet_;
226   /**
227    *
228    *
229    * <pre>
230    * The widgets used in the add-on. If this field is not specified,
231    * it indicates that default set is used.
232    * </pre>
233    *
234    * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
235    *
236    * @return Whether the addOnWidgetSet field is set.
237    */
238   @java.lang.Override
hasAddOnWidgetSet()239   public boolean hasAddOnWidgetSet() {
240     return addOnWidgetSet_ != null;
241   }
242   /**
243    *
244    *
245    * <pre>
246    * The widgets used in the add-on. If this field is not specified,
247    * it indicates that default set is used.
248    * </pre>
249    *
250    * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
251    *
252    * @return The addOnWidgetSet.
253    */
254   @java.lang.Override
getAddOnWidgetSet()255   public com.google.apps.script.type.AddOnWidgetSet getAddOnWidgetSet() {
256     return addOnWidgetSet_ == null
257         ? com.google.apps.script.type.AddOnWidgetSet.getDefaultInstance()
258         : addOnWidgetSet_;
259   }
260   /**
261    *
262    *
263    * <pre>
264    * The widgets used in the add-on. If this field is not specified,
265    * it indicates that default set is used.
266    * </pre>
267    *
268    * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
269    */
270   @java.lang.Override
getAddOnWidgetSetOrBuilder()271   public com.google.apps.script.type.AddOnWidgetSetOrBuilder getAddOnWidgetSetOrBuilder() {
272     return addOnWidgetSet_ == null
273         ? com.google.apps.script.type.AddOnWidgetSet.getDefaultInstance()
274         : addOnWidgetSet_;
275   }
276 
277   public static final int USE_LOCALE_FROM_APP_FIELD_NUMBER = 5;
278   private boolean useLocaleFromApp_ = false;
279   /**
280    *
281    *
282    * <pre>
283    * Whether to pass locale information from host app.
284    * </pre>
285    *
286    * <code>bool use_locale_from_app = 5;</code>
287    *
288    * @return The useLocaleFromApp.
289    */
290   @java.lang.Override
getUseLocaleFromApp()291   public boolean getUseLocaleFromApp() {
292     return useLocaleFromApp_;
293   }
294 
295   public static final int HOMEPAGE_TRIGGER_FIELD_NUMBER = 6;
296   private com.google.apps.script.type.HomepageExtensionPoint homepageTrigger_;
297   /**
298    *
299    *
300    * <pre>
301    * Defines an endpoint that will be executed in any context, in
302    * any host. Any cards generated by this function will always be available to
303    * the user, but may be eclipsed by contextual content when this add-on
304    * declares more targeted triggers.
305    * </pre>
306    *
307    * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
308    *
309    * @return Whether the homepageTrigger field is set.
310    */
311   @java.lang.Override
hasHomepageTrigger()312   public boolean hasHomepageTrigger() {
313     return homepageTrigger_ != null;
314   }
315   /**
316    *
317    *
318    * <pre>
319    * Defines an endpoint that will be executed in any context, in
320    * any host. Any cards generated by this function will always be available to
321    * the user, but may be eclipsed by contextual content when this add-on
322    * declares more targeted triggers.
323    * </pre>
324    *
325    * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
326    *
327    * @return The homepageTrigger.
328    */
329   @java.lang.Override
getHomepageTrigger()330   public com.google.apps.script.type.HomepageExtensionPoint getHomepageTrigger() {
331     return homepageTrigger_ == null
332         ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance()
333         : homepageTrigger_;
334   }
335   /**
336    *
337    *
338    * <pre>
339    * Defines an endpoint that will be executed in any context, in
340    * any host. Any cards generated by this function will always be available to
341    * the user, but may be eclipsed by contextual content when this add-on
342    * declares more targeted triggers.
343    * </pre>
344    *
345    * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
346    */
347   @java.lang.Override
getHomepageTriggerOrBuilder()348   public com.google.apps.script.type.HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder() {
349     return homepageTrigger_ == null
350         ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance()
351         : homepageTrigger_;
352   }
353 
354   public static final int UNIVERSAL_ACTIONS_FIELD_NUMBER = 7;
355 
356   @SuppressWarnings("serial")
357   private java.util.List<com.google.apps.script.type.UniversalActionExtensionPoint>
358       universalActions_;
359   /**
360    *
361    *
362    * <pre>
363    * Defines a list of extension points in the universal action menu which
364    * serves as a setting menu for the add-on. The extension point can be
365    * link URL to open or an endpoint to execute as a form
366    * submission.
367    * </pre>
368    *
369    * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
370    * </code>
371    */
372   @java.lang.Override
373   public java.util.List<com.google.apps.script.type.UniversalActionExtensionPoint>
getUniversalActionsList()374       getUniversalActionsList() {
375     return universalActions_;
376   }
377   /**
378    *
379    *
380    * <pre>
381    * Defines a list of extension points in the universal action menu which
382    * serves as a setting menu for the add-on. The extension point can be
383    * link URL to open or an endpoint to execute as a form
384    * submission.
385    * </pre>
386    *
387    * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
388    * </code>
389    */
390   @java.lang.Override
391   public java.util.List<
392           ? extends com.google.apps.script.type.UniversalActionExtensionPointOrBuilder>
getUniversalActionsOrBuilderList()393       getUniversalActionsOrBuilderList() {
394     return universalActions_;
395   }
396   /**
397    *
398    *
399    * <pre>
400    * Defines a list of extension points in the universal action menu which
401    * serves as a setting menu for the add-on. The extension point can be
402    * link URL to open or an endpoint to execute as a form
403    * submission.
404    * </pre>
405    *
406    * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
407    * </code>
408    */
409   @java.lang.Override
getUniversalActionsCount()410   public int getUniversalActionsCount() {
411     return universalActions_.size();
412   }
413   /**
414    *
415    *
416    * <pre>
417    * Defines a list of extension points in the universal action menu which
418    * serves as a setting menu for the add-on. The extension point can be
419    * link URL to open or an endpoint to execute as a form
420    * submission.
421    * </pre>
422    *
423    * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
424    * </code>
425    */
426   @java.lang.Override
getUniversalActions(int index)427   public com.google.apps.script.type.UniversalActionExtensionPoint getUniversalActions(int index) {
428     return universalActions_.get(index);
429   }
430   /**
431    *
432    *
433    * <pre>
434    * Defines a list of extension points in the universal action menu which
435    * serves as a setting menu for the add-on. The extension point can be
436    * link URL to open or an endpoint to execute as a form
437    * submission.
438    * </pre>
439    *
440    * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
441    * </code>
442    */
443   @java.lang.Override
444   public com.google.apps.script.type.UniversalActionExtensionPointOrBuilder
getUniversalActionsOrBuilder(int index)445       getUniversalActionsOrBuilder(int index) {
446     return universalActions_.get(index);
447   }
448 
449   public static final int OPEN_LINK_URL_PREFIXES_FIELD_NUMBER = 8;
450   private com.google.protobuf.ListValue openLinkUrlPrefixes_;
451   /**
452    *
453    *
454    * <pre>
455    * An OpenLink action
456    * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
457    * the URL must also
458    * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
459    * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
460    * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
461    * links.
462    * </pre>
463    *
464    * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
465    *
466    * @return Whether the openLinkUrlPrefixes field is set.
467    */
468   @java.lang.Override
hasOpenLinkUrlPrefixes()469   public boolean hasOpenLinkUrlPrefixes() {
470     return openLinkUrlPrefixes_ != null;
471   }
472   /**
473    *
474    *
475    * <pre>
476    * An OpenLink action
477    * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
478    * the URL must also
479    * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
480    * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
481    * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
482    * links.
483    * </pre>
484    *
485    * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
486    *
487    * @return The openLinkUrlPrefixes.
488    */
489   @java.lang.Override
getOpenLinkUrlPrefixes()490   public com.google.protobuf.ListValue getOpenLinkUrlPrefixes() {
491     return openLinkUrlPrefixes_ == null
492         ? com.google.protobuf.ListValue.getDefaultInstance()
493         : openLinkUrlPrefixes_;
494   }
495   /**
496    *
497    *
498    * <pre>
499    * An OpenLink action
500    * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
501    * the URL must also
502    * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
503    * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
504    * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
505    * links.
506    * </pre>
507    *
508    * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
509    */
510   @java.lang.Override
getOpenLinkUrlPrefixesOrBuilder()511   public com.google.protobuf.ListValueOrBuilder getOpenLinkUrlPrefixesOrBuilder() {
512     return openLinkUrlPrefixes_ == null
513         ? com.google.protobuf.ListValue.getDefaultInstance()
514         : openLinkUrlPrefixes_;
515   }
516 
517   private byte memoizedIsInitialized = -1;
518 
519   @java.lang.Override
isInitialized()520   public final boolean isInitialized() {
521     byte isInitialized = memoizedIsInitialized;
522     if (isInitialized == 1) return true;
523     if (isInitialized == 0) return false;
524 
525     memoizedIsInitialized = 1;
526     return true;
527   }
528 
529   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)530   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
531     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
532       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
533     }
534     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logoUrl_)) {
535       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logoUrl_);
536     }
537     if (layoutProperties_ != null) {
538       output.writeMessage(3, getLayoutProperties());
539     }
540     if (addOnWidgetSet_ != null) {
541       output.writeMessage(4, getAddOnWidgetSet());
542     }
543     if (useLocaleFromApp_ != false) {
544       output.writeBool(5, useLocaleFromApp_);
545     }
546     if (homepageTrigger_ != null) {
547       output.writeMessage(6, getHomepageTrigger());
548     }
549     for (int i = 0; i < universalActions_.size(); i++) {
550       output.writeMessage(7, universalActions_.get(i));
551     }
552     if (openLinkUrlPrefixes_ != null) {
553       output.writeMessage(8, getOpenLinkUrlPrefixes());
554     }
555     getUnknownFields().writeTo(output);
556   }
557 
558   @java.lang.Override
getSerializedSize()559   public int getSerializedSize() {
560     int size = memoizedSize;
561     if (size != -1) return size;
562 
563     size = 0;
564     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
565       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
566     }
567     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logoUrl_)) {
568       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logoUrl_);
569     }
570     if (layoutProperties_ != null) {
571       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLayoutProperties());
572     }
573     if (addOnWidgetSet_ != null) {
574       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAddOnWidgetSet());
575     }
576     if (useLocaleFromApp_ != false) {
577       size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, useLocaleFromApp_);
578     }
579     if (homepageTrigger_ != null) {
580       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getHomepageTrigger());
581     }
582     for (int i = 0; i < universalActions_.size(); i++) {
583       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, universalActions_.get(i));
584     }
585     if (openLinkUrlPrefixes_ != null) {
586       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getOpenLinkUrlPrefixes());
587     }
588     size += getUnknownFields().getSerializedSize();
589     memoizedSize = size;
590     return size;
591   }
592 
593   @java.lang.Override
equals(final java.lang.Object obj)594   public boolean equals(final java.lang.Object obj) {
595     if (obj == this) {
596       return true;
597     }
598     if (!(obj instanceof com.google.apps.script.type.CommonAddOnManifest)) {
599       return super.equals(obj);
600     }
601     com.google.apps.script.type.CommonAddOnManifest other =
602         (com.google.apps.script.type.CommonAddOnManifest) obj;
603 
604     if (!getName().equals(other.getName())) return false;
605     if (!getLogoUrl().equals(other.getLogoUrl())) return false;
606     if (hasLayoutProperties() != other.hasLayoutProperties()) return false;
607     if (hasLayoutProperties()) {
608       if (!getLayoutProperties().equals(other.getLayoutProperties())) return false;
609     }
610     if (hasAddOnWidgetSet() != other.hasAddOnWidgetSet()) return false;
611     if (hasAddOnWidgetSet()) {
612       if (!getAddOnWidgetSet().equals(other.getAddOnWidgetSet())) return false;
613     }
614     if (getUseLocaleFromApp() != other.getUseLocaleFromApp()) return false;
615     if (hasHomepageTrigger() != other.hasHomepageTrigger()) return false;
616     if (hasHomepageTrigger()) {
617       if (!getHomepageTrigger().equals(other.getHomepageTrigger())) return false;
618     }
619     if (!getUniversalActionsList().equals(other.getUniversalActionsList())) return false;
620     if (hasOpenLinkUrlPrefixes() != other.hasOpenLinkUrlPrefixes()) return false;
621     if (hasOpenLinkUrlPrefixes()) {
622       if (!getOpenLinkUrlPrefixes().equals(other.getOpenLinkUrlPrefixes())) return false;
623     }
624     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
625     return true;
626   }
627 
628   @java.lang.Override
hashCode()629   public int hashCode() {
630     if (memoizedHashCode != 0) {
631       return memoizedHashCode;
632     }
633     int hash = 41;
634     hash = (19 * hash) + getDescriptor().hashCode();
635     hash = (37 * hash) + NAME_FIELD_NUMBER;
636     hash = (53 * hash) + getName().hashCode();
637     hash = (37 * hash) + LOGO_URL_FIELD_NUMBER;
638     hash = (53 * hash) + getLogoUrl().hashCode();
639     if (hasLayoutProperties()) {
640       hash = (37 * hash) + LAYOUT_PROPERTIES_FIELD_NUMBER;
641       hash = (53 * hash) + getLayoutProperties().hashCode();
642     }
643     if (hasAddOnWidgetSet()) {
644       hash = (37 * hash) + ADD_ON_WIDGET_SET_FIELD_NUMBER;
645       hash = (53 * hash) + getAddOnWidgetSet().hashCode();
646     }
647     hash = (37 * hash) + USE_LOCALE_FROM_APP_FIELD_NUMBER;
648     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseLocaleFromApp());
649     if (hasHomepageTrigger()) {
650       hash = (37 * hash) + HOMEPAGE_TRIGGER_FIELD_NUMBER;
651       hash = (53 * hash) + getHomepageTrigger().hashCode();
652     }
653     if (getUniversalActionsCount() > 0) {
654       hash = (37 * hash) + UNIVERSAL_ACTIONS_FIELD_NUMBER;
655       hash = (53 * hash) + getUniversalActionsList().hashCode();
656     }
657     if (hasOpenLinkUrlPrefixes()) {
658       hash = (37 * hash) + OPEN_LINK_URL_PREFIXES_FIELD_NUMBER;
659       hash = (53 * hash) + getOpenLinkUrlPrefixes().hashCode();
660     }
661     hash = (29 * hash) + getUnknownFields().hashCode();
662     memoizedHashCode = hash;
663     return hash;
664   }
665 
parseFrom(java.nio.ByteBuffer data)666   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(java.nio.ByteBuffer data)
667       throws com.google.protobuf.InvalidProtocolBufferException {
668     return PARSER.parseFrom(data);
669   }
670 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)671   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
672       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
673       throws com.google.protobuf.InvalidProtocolBufferException {
674     return PARSER.parseFrom(data, extensionRegistry);
675   }
676 
parseFrom( com.google.protobuf.ByteString data)677   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
678       com.google.protobuf.ByteString data)
679       throws com.google.protobuf.InvalidProtocolBufferException {
680     return PARSER.parseFrom(data);
681   }
682 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)683   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
684       com.google.protobuf.ByteString data,
685       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
686       throws com.google.protobuf.InvalidProtocolBufferException {
687     return PARSER.parseFrom(data, extensionRegistry);
688   }
689 
parseFrom(byte[] data)690   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(byte[] data)
691       throws com.google.protobuf.InvalidProtocolBufferException {
692     return PARSER.parseFrom(data);
693   }
694 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)695   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
696       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
697       throws com.google.protobuf.InvalidProtocolBufferException {
698     return PARSER.parseFrom(data, extensionRegistry);
699   }
700 
parseFrom(java.io.InputStream input)701   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(java.io.InputStream input)
702       throws java.io.IOException {
703     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
704   }
705 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)706   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
707       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
708       throws java.io.IOException {
709     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
710         PARSER, input, extensionRegistry);
711   }
712 
parseDelimitedFrom( java.io.InputStream input)713   public static com.google.apps.script.type.CommonAddOnManifest parseDelimitedFrom(
714       java.io.InputStream input) throws java.io.IOException {
715     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
716   }
717 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)718   public static com.google.apps.script.type.CommonAddOnManifest parseDelimitedFrom(
719       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
720       throws java.io.IOException {
721     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
722         PARSER, input, extensionRegistry);
723   }
724 
parseFrom( com.google.protobuf.CodedInputStream input)725   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
726       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
727     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
728   }
729 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)730   public static com.google.apps.script.type.CommonAddOnManifest parseFrom(
731       com.google.protobuf.CodedInputStream input,
732       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
733       throws java.io.IOException {
734     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
735         PARSER, input, extensionRegistry);
736   }
737 
738   @java.lang.Override
newBuilderForType()739   public Builder newBuilderForType() {
740     return newBuilder();
741   }
742 
newBuilder()743   public static Builder newBuilder() {
744     return DEFAULT_INSTANCE.toBuilder();
745   }
746 
newBuilder(com.google.apps.script.type.CommonAddOnManifest prototype)747   public static Builder newBuilder(com.google.apps.script.type.CommonAddOnManifest prototype) {
748     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
749   }
750 
751   @java.lang.Override
toBuilder()752   public Builder toBuilder() {
753     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
754   }
755 
756   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)757   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
758     Builder builder = new Builder(parent);
759     return builder;
760   }
761   /**
762    *
763    *
764    * <pre>
765    * Add-on configuration that is shared across all add-on host applications.
766    * </pre>
767    *
768    * Protobuf type {@code google.apps.script.type.CommonAddOnManifest}
769    */
770   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
771       implements
772       // @@protoc_insertion_point(builder_implements:google.apps.script.type.CommonAddOnManifest)
773       com.google.apps.script.type.CommonAddOnManifestOrBuilder {
getDescriptor()774     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
775       return com.google.apps.script.type.ScriptManifest
776           .internal_static_google_apps_script_type_CommonAddOnManifest_descriptor;
777     }
778 
779     @java.lang.Override
780     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()781         internalGetFieldAccessorTable() {
782       return com.google.apps.script.type.ScriptManifest
783           .internal_static_google_apps_script_type_CommonAddOnManifest_fieldAccessorTable
784           .ensureFieldAccessorsInitialized(
785               com.google.apps.script.type.CommonAddOnManifest.class,
786               com.google.apps.script.type.CommonAddOnManifest.Builder.class);
787     }
788 
789     // Construct using com.google.apps.script.type.CommonAddOnManifest.newBuilder()
Builder()790     private Builder() {}
791 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)792     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
793       super(parent);
794     }
795 
796     @java.lang.Override
clear()797     public Builder clear() {
798       super.clear();
799       bitField0_ = 0;
800       name_ = "";
801       logoUrl_ = "";
802       layoutProperties_ = null;
803       if (layoutPropertiesBuilder_ != null) {
804         layoutPropertiesBuilder_.dispose();
805         layoutPropertiesBuilder_ = null;
806       }
807       addOnWidgetSet_ = null;
808       if (addOnWidgetSetBuilder_ != null) {
809         addOnWidgetSetBuilder_.dispose();
810         addOnWidgetSetBuilder_ = null;
811       }
812       useLocaleFromApp_ = false;
813       homepageTrigger_ = null;
814       if (homepageTriggerBuilder_ != null) {
815         homepageTriggerBuilder_.dispose();
816         homepageTriggerBuilder_ = null;
817       }
818       if (universalActionsBuilder_ == null) {
819         universalActions_ = java.util.Collections.emptyList();
820       } else {
821         universalActions_ = null;
822         universalActionsBuilder_.clear();
823       }
824       bitField0_ = (bitField0_ & ~0x00000040);
825       openLinkUrlPrefixes_ = null;
826       if (openLinkUrlPrefixesBuilder_ != null) {
827         openLinkUrlPrefixesBuilder_.dispose();
828         openLinkUrlPrefixesBuilder_ = null;
829       }
830       return this;
831     }
832 
833     @java.lang.Override
getDescriptorForType()834     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
835       return com.google.apps.script.type.ScriptManifest
836           .internal_static_google_apps_script_type_CommonAddOnManifest_descriptor;
837     }
838 
839     @java.lang.Override
getDefaultInstanceForType()840     public com.google.apps.script.type.CommonAddOnManifest getDefaultInstanceForType() {
841       return com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance();
842     }
843 
844     @java.lang.Override
build()845     public com.google.apps.script.type.CommonAddOnManifest build() {
846       com.google.apps.script.type.CommonAddOnManifest result = buildPartial();
847       if (!result.isInitialized()) {
848         throw newUninitializedMessageException(result);
849       }
850       return result;
851     }
852 
853     @java.lang.Override
buildPartial()854     public com.google.apps.script.type.CommonAddOnManifest buildPartial() {
855       com.google.apps.script.type.CommonAddOnManifest result =
856           new com.google.apps.script.type.CommonAddOnManifest(this);
857       buildPartialRepeatedFields(result);
858       if (bitField0_ != 0) {
859         buildPartial0(result);
860       }
861       onBuilt();
862       return result;
863     }
864 
buildPartialRepeatedFields( com.google.apps.script.type.CommonAddOnManifest result)865     private void buildPartialRepeatedFields(
866         com.google.apps.script.type.CommonAddOnManifest result) {
867       if (universalActionsBuilder_ == null) {
868         if (((bitField0_ & 0x00000040) != 0)) {
869           universalActions_ = java.util.Collections.unmodifiableList(universalActions_);
870           bitField0_ = (bitField0_ & ~0x00000040);
871         }
872         result.universalActions_ = universalActions_;
873       } else {
874         result.universalActions_ = universalActionsBuilder_.build();
875       }
876     }
877 
buildPartial0(com.google.apps.script.type.CommonAddOnManifest result)878     private void buildPartial0(com.google.apps.script.type.CommonAddOnManifest result) {
879       int from_bitField0_ = bitField0_;
880       if (((from_bitField0_ & 0x00000001) != 0)) {
881         result.name_ = name_;
882       }
883       if (((from_bitField0_ & 0x00000002) != 0)) {
884         result.logoUrl_ = logoUrl_;
885       }
886       if (((from_bitField0_ & 0x00000004) != 0)) {
887         result.layoutProperties_ =
888             layoutPropertiesBuilder_ == null ? layoutProperties_ : layoutPropertiesBuilder_.build();
889       }
890       if (((from_bitField0_ & 0x00000008) != 0)) {
891         result.addOnWidgetSet_ =
892             addOnWidgetSetBuilder_ == null ? addOnWidgetSet_ : addOnWidgetSetBuilder_.build();
893       }
894       if (((from_bitField0_ & 0x00000010) != 0)) {
895         result.useLocaleFromApp_ = useLocaleFromApp_;
896       }
897       if (((from_bitField0_ & 0x00000020) != 0)) {
898         result.homepageTrigger_ =
899             homepageTriggerBuilder_ == null ? homepageTrigger_ : homepageTriggerBuilder_.build();
900       }
901       if (((from_bitField0_ & 0x00000080) != 0)) {
902         result.openLinkUrlPrefixes_ =
903             openLinkUrlPrefixesBuilder_ == null
904                 ? openLinkUrlPrefixes_
905                 : openLinkUrlPrefixesBuilder_.build();
906       }
907     }
908 
909     @java.lang.Override
clone()910     public Builder clone() {
911       return super.clone();
912     }
913 
914     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)915     public Builder setField(
916         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
917       return super.setField(field, value);
918     }
919 
920     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)921     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
922       return super.clearField(field);
923     }
924 
925     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)926     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
927       return super.clearOneof(oneof);
928     }
929 
930     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)931     public Builder setRepeatedField(
932         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
933       return super.setRepeatedField(field, index, value);
934     }
935 
936     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)937     public Builder addRepeatedField(
938         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
939       return super.addRepeatedField(field, value);
940     }
941 
942     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)943     public Builder mergeFrom(com.google.protobuf.Message other) {
944       if (other instanceof com.google.apps.script.type.CommonAddOnManifest) {
945         return mergeFrom((com.google.apps.script.type.CommonAddOnManifest) other);
946       } else {
947         super.mergeFrom(other);
948         return this;
949       }
950     }
951 
mergeFrom(com.google.apps.script.type.CommonAddOnManifest other)952     public Builder mergeFrom(com.google.apps.script.type.CommonAddOnManifest other) {
953       if (other == com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance())
954         return this;
955       if (!other.getName().isEmpty()) {
956         name_ = other.name_;
957         bitField0_ |= 0x00000001;
958         onChanged();
959       }
960       if (!other.getLogoUrl().isEmpty()) {
961         logoUrl_ = other.logoUrl_;
962         bitField0_ |= 0x00000002;
963         onChanged();
964       }
965       if (other.hasLayoutProperties()) {
966         mergeLayoutProperties(other.getLayoutProperties());
967       }
968       if (other.hasAddOnWidgetSet()) {
969         mergeAddOnWidgetSet(other.getAddOnWidgetSet());
970       }
971       if (other.getUseLocaleFromApp() != false) {
972         setUseLocaleFromApp(other.getUseLocaleFromApp());
973       }
974       if (other.hasHomepageTrigger()) {
975         mergeHomepageTrigger(other.getHomepageTrigger());
976       }
977       if (universalActionsBuilder_ == null) {
978         if (!other.universalActions_.isEmpty()) {
979           if (universalActions_.isEmpty()) {
980             universalActions_ = other.universalActions_;
981             bitField0_ = (bitField0_ & ~0x00000040);
982           } else {
983             ensureUniversalActionsIsMutable();
984             universalActions_.addAll(other.universalActions_);
985           }
986           onChanged();
987         }
988       } else {
989         if (!other.universalActions_.isEmpty()) {
990           if (universalActionsBuilder_.isEmpty()) {
991             universalActionsBuilder_.dispose();
992             universalActionsBuilder_ = null;
993             universalActions_ = other.universalActions_;
994             bitField0_ = (bitField0_ & ~0x00000040);
995             universalActionsBuilder_ =
996                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
997                     ? getUniversalActionsFieldBuilder()
998                     : null;
999           } else {
1000             universalActionsBuilder_.addAllMessages(other.universalActions_);
1001           }
1002         }
1003       }
1004       if (other.hasOpenLinkUrlPrefixes()) {
1005         mergeOpenLinkUrlPrefixes(other.getOpenLinkUrlPrefixes());
1006       }
1007       this.mergeUnknownFields(other.getUnknownFields());
1008       onChanged();
1009       return this;
1010     }
1011 
1012     @java.lang.Override
isInitialized()1013     public final boolean isInitialized() {
1014       return true;
1015     }
1016 
1017     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1018     public Builder mergeFrom(
1019         com.google.protobuf.CodedInputStream input,
1020         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1021         throws java.io.IOException {
1022       if (extensionRegistry == null) {
1023         throw new java.lang.NullPointerException();
1024       }
1025       try {
1026         boolean done = false;
1027         while (!done) {
1028           int tag = input.readTag();
1029           switch (tag) {
1030             case 0:
1031               done = true;
1032               break;
1033             case 10:
1034               {
1035                 name_ = input.readStringRequireUtf8();
1036                 bitField0_ |= 0x00000001;
1037                 break;
1038               } // case 10
1039             case 18:
1040               {
1041                 logoUrl_ = input.readStringRequireUtf8();
1042                 bitField0_ |= 0x00000002;
1043                 break;
1044               } // case 18
1045             case 26:
1046               {
1047                 input.readMessage(
1048                     getLayoutPropertiesFieldBuilder().getBuilder(), extensionRegistry);
1049                 bitField0_ |= 0x00000004;
1050                 break;
1051               } // case 26
1052             case 34:
1053               {
1054                 input.readMessage(getAddOnWidgetSetFieldBuilder().getBuilder(), extensionRegistry);
1055                 bitField0_ |= 0x00000008;
1056                 break;
1057               } // case 34
1058             case 40:
1059               {
1060                 useLocaleFromApp_ = input.readBool();
1061                 bitField0_ |= 0x00000010;
1062                 break;
1063               } // case 40
1064             case 50:
1065               {
1066                 input.readMessage(getHomepageTriggerFieldBuilder().getBuilder(), extensionRegistry);
1067                 bitField0_ |= 0x00000020;
1068                 break;
1069               } // case 50
1070             case 58:
1071               {
1072                 com.google.apps.script.type.UniversalActionExtensionPoint m =
1073                     input.readMessage(
1074                         com.google.apps.script.type.UniversalActionExtensionPoint.parser(),
1075                         extensionRegistry);
1076                 if (universalActionsBuilder_ == null) {
1077                   ensureUniversalActionsIsMutable();
1078                   universalActions_.add(m);
1079                 } else {
1080                   universalActionsBuilder_.addMessage(m);
1081                 }
1082                 break;
1083               } // case 58
1084             case 66:
1085               {
1086                 input.readMessage(
1087                     getOpenLinkUrlPrefixesFieldBuilder().getBuilder(), extensionRegistry);
1088                 bitField0_ |= 0x00000080;
1089                 break;
1090               } // case 66
1091             default:
1092               {
1093                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1094                   done = true; // was an endgroup tag
1095                 }
1096                 break;
1097               } // default:
1098           } // switch (tag)
1099         } // while (!done)
1100       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1101         throw e.unwrapIOException();
1102       } finally {
1103         onChanged();
1104       } // finally
1105       return this;
1106     }
1107 
1108     private int bitField0_;
1109 
1110     private java.lang.Object name_ = "";
1111     /**
1112      *
1113      *
1114      * <pre>
1115      * Required. The display name of the add-on.
1116      * </pre>
1117      *
1118      * <code>string name = 1;</code>
1119      *
1120      * @return The name.
1121      */
getName()1122     public java.lang.String getName() {
1123       java.lang.Object ref = name_;
1124       if (!(ref instanceof java.lang.String)) {
1125         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1126         java.lang.String s = bs.toStringUtf8();
1127         name_ = s;
1128         return s;
1129       } else {
1130         return (java.lang.String) ref;
1131       }
1132     }
1133     /**
1134      *
1135      *
1136      * <pre>
1137      * Required. The display name of the add-on.
1138      * </pre>
1139      *
1140      * <code>string name = 1;</code>
1141      *
1142      * @return The bytes for name.
1143      */
getNameBytes()1144     public com.google.protobuf.ByteString getNameBytes() {
1145       java.lang.Object ref = name_;
1146       if (ref instanceof String) {
1147         com.google.protobuf.ByteString b =
1148             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1149         name_ = b;
1150         return b;
1151       } else {
1152         return (com.google.protobuf.ByteString) ref;
1153       }
1154     }
1155     /**
1156      *
1157      *
1158      * <pre>
1159      * Required. The display name of the add-on.
1160      * </pre>
1161      *
1162      * <code>string name = 1;</code>
1163      *
1164      * @param value The name to set.
1165      * @return This builder for chaining.
1166      */
setName(java.lang.String value)1167     public Builder setName(java.lang.String value) {
1168       if (value == null) {
1169         throw new NullPointerException();
1170       }
1171       name_ = value;
1172       bitField0_ |= 0x00000001;
1173       onChanged();
1174       return this;
1175     }
1176     /**
1177      *
1178      *
1179      * <pre>
1180      * Required. The display name of the add-on.
1181      * </pre>
1182      *
1183      * <code>string name = 1;</code>
1184      *
1185      * @return This builder for chaining.
1186      */
clearName()1187     public Builder clearName() {
1188       name_ = getDefaultInstance().getName();
1189       bitField0_ = (bitField0_ & ~0x00000001);
1190       onChanged();
1191       return this;
1192     }
1193     /**
1194      *
1195      *
1196      * <pre>
1197      * Required. The display name of the add-on.
1198      * </pre>
1199      *
1200      * <code>string name = 1;</code>
1201      *
1202      * @param value The bytes for name to set.
1203      * @return This builder for chaining.
1204      */
setNameBytes(com.google.protobuf.ByteString value)1205     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1206       if (value == null) {
1207         throw new NullPointerException();
1208       }
1209       checkByteStringIsUtf8(value);
1210       name_ = value;
1211       bitField0_ |= 0x00000001;
1212       onChanged();
1213       return this;
1214     }
1215 
1216     private java.lang.Object logoUrl_ = "";
1217     /**
1218      *
1219      *
1220      * <pre>
1221      * Required. The URL for the logo image shown in the add-on toolbar.
1222      * </pre>
1223      *
1224      * <code>string logo_url = 2;</code>
1225      *
1226      * @return The logoUrl.
1227      */
getLogoUrl()1228     public java.lang.String getLogoUrl() {
1229       java.lang.Object ref = logoUrl_;
1230       if (!(ref instanceof java.lang.String)) {
1231         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1232         java.lang.String s = bs.toStringUtf8();
1233         logoUrl_ = s;
1234         return s;
1235       } else {
1236         return (java.lang.String) ref;
1237       }
1238     }
1239     /**
1240      *
1241      *
1242      * <pre>
1243      * Required. The URL for the logo image shown in the add-on toolbar.
1244      * </pre>
1245      *
1246      * <code>string logo_url = 2;</code>
1247      *
1248      * @return The bytes for logoUrl.
1249      */
getLogoUrlBytes()1250     public com.google.protobuf.ByteString getLogoUrlBytes() {
1251       java.lang.Object ref = logoUrl_;
1252       if (ref instanceof String) {
1253         com.google.protobuf.ByteString b =
1254             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1255         logoUrl_ = b;
1256         return b;
1257       } else {
1258         return (com.google.protobuf.ByteString) ref;
1259       }
1260     }
1261     /**
1262      *
1263      *
1264      * <pre>
1265      * Required. The URL for the logo image shown in the add-on toolbar.
1266      * </pre>
1267      *
1268      * <code>string logo_url = 2;</code>
1269      *
1270      * @param value The logoUrl to set.
1271      * @return This builder for chaining.
1272      */
setLogoUrl(java.lang.String value)1273     public Builder setLogoUrl(java.lang.String value) {
1274       if (value == null) {
1275         throw new NullPointerException();
1276       }
1277       logoUrl_ = value;
1278       bitField0_ |= 0x00000002;
1279       onChanged();
1280       return this;
1281     }
1282     /**
1283      *
1284      *
1285      * <pre>
1286      * Required. The URL for the logo image shown in the add-on toolbar.
1287      * </pre>
1288      *
1289      * <code>string logo_url = 2;</code>
1290      *
1291      * @return This builder for chaining.
1292      */
clearLogoUrl()1293     public Builder clearLogoUrl() {
1294       logoUrl_ = getDefaultInstance().getLogoUrl();
1295       bitField0_ = (bitField0_ & ~0x00000002);
1296       onChanged();
1297       return this;
1298     }
1299     /**
1300      *
1301      *
1302      * <pre>
1303      * Required. The URL for the logo image shown in the add-on toolbar.
1304      * </pre>
1305      *
1306      * <code>string logo_url = 2;</code>
1307      *
1308      * @param value The bytes for logoUrl to set.
1309      * @return This builder for chaining.
1310      */
setLogoUrlBytes(com.google.protobuf.ByteString value)1311     public Builder setLogoUrlBytes(com.google.protobuf.ByteString value) {
1312       if (value == null) {
1313         throw new NullPointerException();
1314       }
1315       checkByteStringIsUtf8(value);
1316       logoUrl_ = value;
1317       bitField0_ |= 0x00000002;
1318       onChanged();
1319       return this;
1320     }
1321 
1322     private com.google.apps.script.type.LayoutProperties layoutProperties_;
1323     private com.google.protobuf.SingleFieldBuilderV3<
1324             com.google.apps.script.type.LayoutProperties,
1325             com.google.apps.script.type.LayoutProperties.Builder,
1326             com.google.apps.script.type.LayoutPropertiesOrBuilder>
1327         layoutPropertiesBuilder_;
1328     /**
1329      *
1330      *
1331      * <pre>
1332      * Common layout properties for the add-on cards.
1333      * </pre>
1334      *
1335      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1336      *
1337      * @return Whether the layoutProperties field is set.
1338      */
hasLayoutProperties()1339     public boolean hasLayoutProperties() {
1340       return ((bitField0_ & 0x00000004) != 0);
1341     }
1342     /**
1343      *
1344      *
1345      * <pre>
1346      * Common layout properties for the add-on cards.
1347      * </pre>
1348      *
1349      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1350      *
1351      * @return The layoutProperties.
1352      */
getLayoutProperties()1353     public com.google.apps.script.type.LayoutProperties getLayoutProperties() {
1354       if (layoutPropertiesBuilder_ == null) {
1355         return layoutProperties_ == null
1356             ? com.google.apps.script.type.LayoutProperties.getDefaultInstance()
1357             : layoutProperties_;
1358       } else {
1359         return layoutPropertiesBuilder_.getMessage();
1360       }
1361     }
1362     /**
1363      *
1364      *
1365      * <pre>
1366      * Common layout properties for the add-on cards.
1367      * </pre>
1368      *
1369      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1370      */
setLayoutProperties(com.google.apps.script.type.LayoutProperties value)1371     public Builder setLayoutProperties(com.google.apps.script.type.LayoutProperties value) {
1372       if (layoutPropertiesBuilder_ == null) {
1373         if (value == null) {
1374           throw new NullPointerException();
1375         }
1376         layoutProperties_ = value;
1377       } else {
1378         layoutPropertiesBuilder_.setMessage(value);
1379       }
1380       bitField0_ |= 0x00000004;
1381       onChanged();
1382       return this;
1383     }
1384     /**
1385      *
1386      *
1387      * <pre>
1388      * Common layout properties for the add-on cards.
1389      * </pre>
1390      *
1391      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1392      */
setLayoutProperties( com.google.apps.script.type.LayoutProperties.Builder builderForValue)1393     public Builder setLayoutProperties(
1394         com.google.apps.script.type.LayoutProperties.Builder builderForValue) {
1395       if (layoutPropertiesBuilder_ == null) {
1396         layoutProperties_ = builderForValue.build();
1397       } else {
1398         layoutPropertiesBuilder_.setMessage(builderForValue.build());
1399       }
1400       bitField0_ |= 0x00000004;
1401       onChanged();
1402       return this;
1403     }
1404     /**
1405      *
1406      *
1407      * <pre>
1408      * Common layout properties for the add-on cards.
1409      * </pre>
1410      *
1411      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1412      */
mergeLayoutProperties(com.google.apps.script.type.LayoutProperties value)1413     public Builder mergeLayoutProperties(com.google.apps.script.type.LayoutProperties value) {
1414       if (layoutPropertiesBuilder_ == null) {
1415         if (((bitField0_ & 0x00000004) != 0)
1416             && layoutProperties_ != null
1417             && layoutProperties_
1418                 != com.google.apps.script.type.LayoutProperties.getDefaultInstance()) {
1419           getLayoutPropertiesBuilder().mergeFrom(value);
1420         } else {
1421           layoutProperties_ = value;
1422         }
1423       } else {
1424         layoutPropertiesBuilder_.mergeFrom(value);
1425       }
1426       bitField0_ |= 0x00000004;
1427       onChanged();
1428       return this;
1429     }
1430     /**
1431      *
1432      *
1433      * <pre>
1434      * Common layout properties for the add-on cards.
1435      * </pre>
1436      *
1437      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1438      */
clearLayoutProperties()1439     public Builder clearLayoutProperties() {
1440       bitField0_ = (bitField0_ & ~0x00000004);
1441       layoutProperties_ = null;
1442       if (layoutPropertiesBuilder_ != null) {
1443         layoutPropertiesBuilder_.dispose();
1444         layoutPropertiesBuilder_ = null;
1445       }
1446       onChanged();
1447       return this;
1448     }
1449     /**
1450      *
1451      *
1452      * <pre>
1453      * Common layout properties for the add-on cards.
1454      * </pre>
1455      *
1456      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1457      */
getLayoutPropertiesBuilder()1458     public com.google.apps.script.type.LayoutProperties.Builder getLayoutPropertiesBuilder() {
1459       bitField0_ |= 0x00000004;
1460       onChanged();
1461       return getLayoutPropertiesFieldBuilder().getBuilder();
1462     }
1463     /**
1464      *
1465      *
1466      * <pre>
1467      * Common layout properties for the add-on cards.
1468      * </pre>
1469      *
1470      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1471      */
getLayoutPropertiesOrBuilder()1472     public com.google.apps.script.type.LayoutPropertiesOrBuilder getLayoutPropertiesOrBuilder() {
1473       if (layoutPropertiesBuilder_ != null) {
1474         return layoutPropertiesBuilder_.getMessageOrBuilder();
1475       } else {
1476         return layoutProperties_ == null
1477             ? com.google.apps.script.type.LayoutProperties.getDefaultInstance()
1478             : layoutProperties_;
1479       }
1480     }
1481     /**
1482      *
1483      *
1484      * <pre>
1485      * Common layout properties for the add-on cards.
1486      * </pre>
1487      *
1488      * <code>.google.apps.script.type.LayoutProperties layout_properties = 3;</code>
1489      */
1490     private com.google.protobuf.SingleFieldBuilderV3<
1491             com.google.apps.script.type.LayoutProperties,
1492             com.google.apps.script.type.LayoutProperties.Builder,
1493             com.google.apps.script.type.LayoutPropertiesOrBuilder>
getLayoutPropertiesFieldBuilder()1494         getLayoutPropertiesFieldBuilder() {
1495       if (layoutPropertiesBuilder_ == null) {
1496         layoutPropertiesBuilder_ =
1497             new com.google.protobuf.SingleFieldBuilderV3<
1498                 com.google.apps.script.type.LayoutProperties,
1499                 com.google.apps.script.type.LayoutProperties.Builder,
1500                 com.google.apps.script.type.LayoutPropertiesOrBuilder>(
1501                 getLayoutProperties(), getParentForChildren(), isClean());
1502         layoutProperties_ = null;
1503       }
1504       return layoutPropertiesBuilder_;
1505     }
1506 
1507     private com.google.apps.script.type.AddOnWidgetSet addOnWidgetSet_;
1508     private com.google.protobuf.SingleFieldBuilderV3<
1509             com.google.apps.script.type.AddOnWidgetSet,
1510             com.google.apps.script.type.AddOnWidgetSet.Builder,
1511             com.google.apps.script.type.AddOnWidgetSetOrBuilder>
1512         addOnWidgetSetBuilder_;
1513     /**
1514      *
1515      *
1516      * <pre>
1517      * The widgets used in the add-on. If this field is not specified,
1518      * it indicates that default set is used.
1519      * </pre>
1520      *
1521      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1522      *
1523      * @return Whether the addOnWidgetSet field is set.
1524      */
hasAddOnWidgetSet()1525     public boolean hasAddOnWidgetSet() {
1526       return ((bitField0_ & 0x00000008) != 0);
1527     }
1528     /**
1529      *
1530      *
1531      * <pre>
1532      * The widgets used in the add-on. If this field is not specified,
1533      * it indicates that default set is used.
1534      * </pre>
1535      *
1536      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1537      *
1538      * @return The addOnWidgetSet.
1539      */
getAddOnWidgetSet()1540     public com.google.apps.script.type.AddOnWidgetSet getAddOnWidgetSet() {
1541       if (addOnWidgetSetBuilder_ == null) {
1542         return addOnWidgetSet_ == null
1543             ? com.google.apps.script.type.AddOnWidgetSet.getDefaultInstance()
1544             : addOnWidgetSet_;
1545       } else {
1546         return addOnWidgetSetBuilder_.getMessage();
1547       }
1548     }
1549     /**
1550      *
1551      *
1552      * <pre>
1553      * The widgets used in the add-on. If this field is not specified,
1554      * it indicates that default set is used.
1555      * </pre>
1556      *
1557      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1558      */
setAddOnWidgetSet(com.google.apps.script.type.AddOnWidgetSet value)1559     public Builder setAddOnWidgetSet(com.google.apps.script.type.AddOnWidgetSet value) {
1560       if (addOnWidgetSetBuilder_ == null) {
1561         if (value == null) {
1562           throw new NullPointerException();
1563         }
1564         addOnWidgetSet_ = value;
1565       } else {
1566         addOnWidgetSetBuilder_.setMessage(value);
1567       }
1568       bitField0_ |= 0x00000008;
1569       onChanged();
1570       return this;
1571     }
1572     /**
1573      *
1574      *
1575      * <pre>
1576      * The widgets used in the add-on. If this field is not specified,
1577      * it indicates that default set is used.
1578      * </pre>
1579      *
1580      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1581      */
setAddOnWidgetSet( com.google.apps.script.type.AddOnWidgetSet.Builder builderForValue)1582     public Builder setAddOnWidgetSet(
1583         com.google.apps.script.type.AddOnWidgetSet.Builder builderForValue) {
1584       if (addOnWidgetSetBuilder_ == null) {
1585         addOnWidgetSet_ = builderForValue.build();
1586       } else {
1587         addOnWidgetSetBuilder_.setMessage(builderForValue.build());
1588       }
1589       bitField0_ |= 0x00000008;
1590       onChanged();
1591       return this;
1592     }
1593     /**
1594      *
1595      *
1596      * <pre>
1597      * The widgets used in the add-on. If this field is not specified,
1598      * it indicates that default set is used.
1599      * </pre>
1600      *
1601      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1602      */
mergeAddOnWidgetSet(com.google.apps.script.type.AddOnWidgetSet value)1603     public Builder mergeAddOnWidgetSet(com.google.apps.script.type.AddOnWidgetSet value) {
1604       if (addOnWidgetSetBuilder_ == null) {
1605         if (((bitField0_ & 0x00000008) != 0)
1606             && addOnWidgetSet_ != null
1607             && addOnWidgetSet_ != com.google.apps.script.type.AddOnWidgetSet.getDefaultInstance()) {
1608           getAddOnWidgetSetBuilder().mergeFrom(value);
1609         } else {
1610           addOnWidgetSet_ = value;
1611         }
1612       } else {
1613         addOnWidgetSetBuilder_.mergeFrom(value);
1614       }
1615       bitField0_ |= 0x00000008;
1616       onChanged();
1617       return this;
1618     }
1619     /**
1620      *
1621      *
1622      * <pre>
1623      * The widgets used in the add-on. If this field is not specified,
1624      * it indicates that default set is used.
1625      * </pre>
1626      *
1627      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1628      */
clearAddOnWidgetSet()1629     public Builder clearAddOnWidgetSet() {
1630       bitField0_ = (bitField0_ & ~0x00000008);
1631       addOnWidgetSet_ = null;
1632       if (addOnWidgetSetBuilder_ != null) {
1633         addOnWidgetSetBuilder_.dispose();
1634         addOnWidgetSetBuilder_ = null;
1635       }
1636       onChanged();
1637       return this;
1638     }
1639     /**
1640      *
1641      *
1642      * <pre>
1643      * The widgets used in the add-on. If this field is not specified,
1644      * it indicates that default set is used.
1645      * </pre>
1646      *
1647      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1648      */
getAddOnWidgetSetBuilder()1649     public com.google.apps.script.type.AddOnWidgetSet.Builder getAddOnWidgetSetBuilder() {
1650       bitField0_ |= 0x00000008;
1651       onChanged();
1652       return getAddOnWidgetSetFieldBuilder().getBuilder();
1653     }
1654     /**
1655      *
1656      *
1657      * <pre>
1658      * The widgets used in the add-on. If this field is not specified,
1659      * it indicates that default set is used.
1660      * </pre>
1661      *
1662      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1663      */
getAddOnWidgetSetOrBuilder()1664     public com.google.apps.script.type.AddOnWidgetSetOrBuilder getAddOnWidgetSetOrBuilder() {
1665       if (addOnWidgetSetBuilder_ != null) {
1666         return addOnWidgetSetBuilder_.getMessageOrBuilder();
1667       } else {
1668         return addOnWidgetSet_ == null
1669             ? com.google.apps.script.type.AddOnWidgetSet.getDefaultInstance()
1670             : addOnWidgetSet_;
1671       }
1672     }
1673     /**
1674      *
1675      *
1676      * <pre>
1677      * The widgets used in the add-on. If this field is not specified,
1678      * it indicates that default set is used.
1679      * </pre>
1680      *
1681      * <code>.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;</code>
1682      */
1683     private com.google.protobuf.SingleFieldBuilderV3<
1684             com.google.apps.script.type.AddOnWidgetSet,
1685             com.google.apps.script.type.AddOnWidgetSet.Builder,
1686             com.google.apps.script.type.AddOnWidgetSetOrBuilder>
getAddOnWidgetSetFieldBuilder()1687         getAddOnWidgetSetFieldBuilder() {
1688       if (addOnWidgetSetBuilder_ == null) {
1689         addOnWidgetSetBuilder_ =
1690             new com.google.protobuf.SingleFieldBuilderV3<
1691                 com.google.apps.script.type.AddOnWidgetSet,
1692                 com.google.apps.script.type.AddOnWidgetSet.Builder,
1693                 com.google.apps.script.type.AddOnWidgetSetOrBuilder>(
1694                 getAddOnWidgetSet(), getParentForChildren(), isClean());
1695         addOnWidgetSet_ = null;
1696       }
1697       return addOnWidgetSetBuilder_;
1698     }
1699 
1700     private boolean useLocaleFromApp_;
1701     /**
1702      *
1703      *
1704      * <pre>
1705      * Whether to pass locale information from host app.
1706      * </pre>
1707      *
1708      * <code>bool use_locale_from_app = 5;</code>
1709      *
1710      * @return The useLocaleFromApp.
1711      */
1712     @java.lang.Override
getUseLocaleFromApp()1713     public boolean getUseLocaleFromApp() {
1714       return useLocaleFromApp_;
1715     }
1716     /**
1717      *
1718      *
1719      * <pre>
1720      * Whether to pass locale information from host app.
1721      * </pre>
1722      *
1723      * <code>bool use_locale_from_app = 5;</code>
1724      *
1725      * @param value The useLocaleFromApp to set.
1726      * @return This builder for chaining.
1727      */
setUseLocaleFromApp(boolean value)1728     public Builder setUseLocaleFromApp(boolean value) {
1729 
1730       useLocaleFromApp_ = value;
1731       bitField0_ |= 0x00000010;
1732       onChanged();
1733       return this;
1734     }
1735     /**
1736      *
1737      *
1738      * <pre>
1739      * Whether to pass locale information from host app.
1740      * </pre>
1741      *
1742      * <code>bool use_locale_from_app = 5;</code>
1743      *
1744      * @return This builder for chaining.
1745      */
clearUseLocaleFromApp()1746     public Builder clearUseLocaleFromApp() {
1747       bitField0_ = (bitField0_ & ~0x00000010);
1748       useLocaleFromApp_ = false;
1749       onChanged();
1750       return this;
1751     }
1752 
1753     private com.google.apps.script.type.HomepageExtensionPoint homepageTrigger_;
1754     private com.google.protobuf.SingleFieldBuilderV3<
1755             com.google.apps.script.type.HomepageExtensionPoint,
1756             com.google.apps.script.type.HomepageExtensionPoint.Builder,
1757             com.google.apps.script.type.HomepageExtensionPointOrBuilder>
1758         homepageTriggerBuilder_;
1759     /**
1760      *
1761      *
1762      * <pre>
1763      * Defines an endpoint that will be executed in any context, in
1764      * any host. Any cards generated by this function will always be available to
1765      * the user, but may be eclipsed by contextual content when this add-on
1766      * declares more targeted triggers.
1767      * </pre>
1768      *
1769      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1770      *
1771      * @return Whether the homepageTrigger field is set.
1772      */
hasHomepageTrigger()1773     public boolean hasHomepageTrigger() {
1774       return ((bitField0_ & 0x00000020) != 0);
1775     }
1776     /**
1777      *
1778      *
1779      * <pre>
1780      * Defines an endpoint that will be executed in any context, in
1781      * any host. Any cards generated by this function will always be available to
1782      * the user, but may be eclipsed by contextual content when this add-on
1783      * declares more targeted triggers.
1784      * </pre>
1785      *
1786      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1787      *
1788      * @return The homepageTrigger.
1789      */
getHomepageTrigger()1790     public com.google.apps.script.type.HomepageExtensionPoint getHomepageTrigger() {
1791       if (homepageTriggerBuilder_ == null) {
1792         return homepageTrigger_ == null
1793             ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance()
1794             : homepageTrigger_;
1795       } else {
1796         return homepageTriggerBuilder_.getMessage();
1797       }
1798     }
1799     /**
1800      *
1801      *
1802      * <pre>
1803      * Defines an endpoint that will be executed in any context, in
1804      * any host. Any cards generated by this function will always be available to
1805      * the user, but may be eclipsed by contextual content when this add-on
1806      * declares more targeted triggers.
1807      * </pre>
1808      *
1809      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1810      */
setHomepageTrigger(com.google.apps.script.type.HomepageExtensionPoint value)1811     public Builder setHomepageTrigger(com.google.apps.script.type.HomepageExtensionPoint value) {
1812       if (homepageTriggerBuilder_ == null) {
1813         if (value == null) {
1814           throw new NullPointerException();
1815         }
1816         homepageTrigger_ = value;
1817       } else {
1818         homepageTriggerBuilder_.setMessage(value);
1819       }
1820       bitField0_ |= 0x00000020;
1821       onChanged();
1822       return this;
1823     }
1824     /**
1825      *
1826      *
1827      * <pre>
1828      * Defines an endpoint that will be executed in any context, in
1829      * any host. Any cards generated by this function will always be available to
1830      * the user, but may be eclipsed by contextual content when this add-on
1831      * declares more targeted triggers.
1832      * </pre>
1833      *
1834      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1835      */
setHomepageTrigger( com.google.apps.script.type.HomepageExtensionPoint.Builder builderForValue)1836     public Builder setHomepageTrigger(
1837         com.google.apps.script.type.HomepageExtensionPoint.Builder builderForValue) {
1838       if (homepageTriggerBuilder_ == null) {
1839         homepageTrigger_ = builderForValue.build();
1840       } else {
1841         homepageTriggerBuilder_.setMessage(builderForValue.build());
1842       }
1843       bitField0_ |= 0x00000020;
1844       onChanged();
1845       return this;
1846     }
1847     /**
1848      *
1849      *
1850      * <pre>
1851      * Defines an endpoint that will be executed in any context, in
1852      * any host. Any cards generated by this function will always be available to
1853      * the user, but may be eclipsed by contextual content when this add-on
1854      * declares more targeted triggers.
1855      * </pre>
1856      *
1857      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1858      */
mergeHomepageTrigger(com.google.apps.script.type.HomepageExtensionPoint value)1859     public Builder mergeHomepageTrigger(com.google.apps.script.type.HomepageExtensionPoint value) {
1860       if (homepageTriggerBuilder_ == null) {
1861         if (((bitField0_ & 0x00000020) != 0)
1862             && homepageTrigger_ != null
1863             && homepageTrigger_
1864                 != com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance()) {
1865           getHomepageTriggerBuilder().mergeFrom(value);
1866         } else {
1867           homepageTrigger_ = value;
1868         }
1869       } else {
1870         homepageTriggerBuilder_.mergeFrom(value);
1871       }
1872       bitField0_ |= 0x00000020;
1873       onChanged();
1874       return this;
1875     }
1876     /**
1877      *
1878      *
1879      * <pre>
1880      * Defines an endpoint that will be executed in any context, in
1881      * any host. Any cards generated by this function will always be available to
1882      * the user, but may be eclipsed by contextual content when this add-on
1883      * declares more targeted triggers.
1884      * </pre>
1885      *
1886      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1887      */
clearHomepageTrigger()1888     public Builder clearHomepageTrigger() {
1889       bitField0_ = (bitField0_ & ~0x00000020);
1890       homepageTrigger_ = null;
1891       if (homepageTriggerBuilder_ != null) {
1892         homepageTriggerBuilder_.dispose();
1893         homepageTriggerBuilder_ = null;
1894       }
1895       onChanged();
1896       return this;
1897     }
1898     /**
1899      *
1900      *
1901      * <pre>
1902      * Defines an endpoint that will be executed in any context, in
1903      * any host. Any cards generated by this function will always be available to
1904      * the user, but may be eclipsed by contextual content when this add-on
1905      * declares more targeted triggers.
1906      * </pre>
1907      *
1908      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1909      */
getHomepageTriggerBuilder()1910     public com.google.apps.script.type.HomepageExtensionPoint.Builder getHomepageTriggerBuilder() {
1911       bitField0_ |= 0x00000020;
1912       onChanged();
1913       return getHomepageTriggerFieldBuilder().getBuilder();
1914     }
1915     /**
1916      *
1917      *
1918      * <pre>
1919      * Defines an endpoint that will be executed in any context, in
1920      * any host. Any cards generated by this function will always be available to
1921      * the user, but may be eclipsed by contextual content when this add-on
1922      * declares more targeted triggers.
1923      * </pre>
1924      *
1925      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1926      */
1927     public com.google.apps.script.type.HomepageExtensionPointOrBuilder
getHomepageTriggerOrBuilder()1928         getHomepageTriggerOrBuilder() {
1929       if (homepageTriggerBuilder_ != null) {
1930         return homepageTriggerBuilder_.getMessageOrBuilder();
1931       } else {
1932         return homepageTrigger_ == null
1933             ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance()
1934             : homepageTrigger_;
1935       }
1936     }
1937     /**
1938      *
1939      *
1940      * <pre>
1941      * Defines an endpoint that will be executed in any context, in
1942      * any host. Any cards generated by this function will always be available to
1943      * the user, but may be eclipsed by contextual content when this add-on
1944      * declares more targeted triggers.
1945      * </pre>
1946      *
1947      * <code>.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;</code>
1948      */
1949     private com.google.protobuf.SingleFieldBuilderV3<
1950             com.google.apps.script.type.HomepageExtensionPoint,
1951             com.google.apps.script.type.HomepageExtensionPoint.Builder,
1952             com.google.apps.script.type.HomepageExtensionPointOrBuilder>
getHomepageTriggerFieldBuilder()1953         getHomepageTriggerFieldBuilder() {
1954       if (homepageTriggerBuilder_ == null) {
1955         homepageTriggerBuilder_ =
1956             new com.google.protobuf.SingleFieldBuilderV3<
1957                 com.google.apps.script.type.HomepageExtensionPoint,
1958                 com.google.apps.script.type.HomepageExtensionPoint.Builder,
1959                 com.google.apps.script.type.HomepageExtensionPointOrBuilder>(
1960                 getHomepageTrigger(), getParentForChildren(), isClean());
1961         homepageTrigger_ = null;
1962       }
1963       return homepageTriggerBuilder_;
1964     }
1965 
1966     private java.util.List<com.google.apps.script.type.UniversalActionExtensionPoint>
1967         universalActions_ = java.util.Collections.emptyList();
1968 
ensureUniversalActionsIsMutable()1969     private void ensureUniversalActionsIsMutable() {
1970       if (!((bitField0_ & 0x00000040) != 0)) {
1971         universalActions_ =
1972             new java.util.ArrayList<com.google.apps.script.type.UniversalActionExtensionPoint>(
1973                 universalActions_);
1974         bitField0_ |= 0x00000040;
1975       }
1976     }
1977 
1978     private com.google.protobuf.RepeatedFieldBuilderV3<
1979             com.google.apps.script.type.UniversalActionExtensionPoint,
1980             com.google.apps.script.type.UniversalActionExtensionPoint.Builder,
1981             com.google.apps.script.type.UniversalActionExtensionPointOrBuilder>
1982         universalActionsBuilder_;
1983 
1984     /**
1985      *
1986      *
1987      * <pre>
1988      * Defines a list of extension points in the universal action menu which
1989      * serves as a setting menu for the add-on. The extension point can be
1990      * link URL to open or an endpoint to execute as a form
1991      * submission.
1992      * </pre>
1993      *
1994      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
1995      * </code>
1996      */
1997     public java.util.List<com.google.apps.script.type.UniversalActionExtensionPoint>
getUniversalActionsList()1998         getUniversalActionsList() {
1999       if (universalActionsBuilder_ == null) {
2000         return java.util.Collections.unmodifiableList(universalActions_);
2001       } else {
2002         return universalActionsBuilder_.getMessageList();
2003       }
2004     }
2005     /**
2006      *
2007      *
2008      * <pre>
2009      * Defines a list of extension points in the universal action menu which
2010      * serves as a setting menu for the add-on. The extension point can be
2011      * link URL to open or an endpoint to execute as a form
2012      * submission.
2013      * </pre>
2014      *
2015      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2016      * </code>
2017      */
getUniversalActionsCount()2018     public int getUniversalActionsCount() {
2019       if (universalActionsBuilder_ == null) {
2020         return universalActions_.size();
2021       } else {
2022         return universalActionsBuilder_.getCount();
2023       }
2024     }
2025     /**
2026      *
2027      *
2028      * <pre>
2029      * Defines a list of extension points in the universal action menu which
2030      * serves as a setting menu for the add-on. The extension point can be
2031      * link URL to open or an endpoint to execute as a form
2032      * submission.
2033      * </pre>
2034      *
2035      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2036      * </code>
2037      */
getUniversalActions( int index)2038     public com.google.apps.script.type.UniversalActionExtensionPoint getUniversalActions(
2039         int index) {
2040       if (universalActionsBuilder_ == null) {
2041         return universalActions_.get(index);
2042       } else {
2043         return universalActionsBuilder_.getMessage(index);
2044       }
2045     }
2046     /**
2047      *
2048      *
2049      * <pre>
2050      * Defines a list of extension points in the universal action menu which
2051      * serves as a setting menu for the add-on. The extension point can be
2052      * link URL to open or an endpoint to execute as a form
2053      * submission.
2054      * </pre>
2055      *
2056      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2057      * </code>
2058      */
setUniversalActions( int index, com.google.apps.script.type.UniversalActionExtensionPoint value)2059     public Builder setUniversalActions(
2060         int index, com.google.apps.script.type.UniversalActionExtensionPoint value) {
2061       if (universalActionsBuilder_ == null) {
2062         if (value == null) {
2063           throw new NullPointerException();
2064         }
2065         ensureUniversalActionsIsMutable();
2066         universalActions_.set(index, value);
2067         onChanged();
2068       } else {
2069         universalActionsBuilder_.setMessage(index, value);
2070       }
2071       return this;
2072     }
2073     /**
2074      *
2075      *
2076      * <pre>
2077      * Defines a list of extension points in the universal action menu which
2078      * serves as a setting menu for the add-on. The extension point can be
2079      * link URL to open or an endpoint to execute as a form
2080      * submission.
2081      * </pre>
2082      *
2083      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2084      * </code>
2085      */
setUniversalActions( int index, com.google.apps.script.type.UniversalActionExtensionPoint.Builder builderForValue)2086     public Builder setUniversalActions(
2087         int index,
2088         com.google.apps.script.type.UniversalActionExtensionPoint.Builder builderForValue) {
2089       if (universalActionsBuilder_ == null) {
2090         ensureUniversalActionsIsMutable();
2091         universalActions_.set(index, builderForValue.build());
2092         onChanged();
2093       } else {
2094         universalActionsBuilder_.setMessage(index, builderForValue.build());
2095       }
2096       return this;
2097     }
2098     /**
2099      *
2100      *
2101      * <pre>
2102      * Defines a list of extension points in the universal action menu which
2103      * serves as a setting menu for the add-on. The extension point can be
2104      * link URL to open or an endpoint to execute as a form
2105      * submission.
2106      * </pre>
2107      *
2108      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2109      * </code>
2110      */
addUniversalActions( com.google.apps.script.type.UniversalActionExtensionPoint value)2111     public Builder addUniversalActions(
2112         com.google.apps.script.type.UniversalActionExtensionPoint value) {
2113       if (universalActionsBuilder_ == null) {
2114         if (value == null) {
2115           throw new NullPointerException();
2116         }
2117         ensureUniversalActionsIsMutable();
2118         universalActions_.add(value);
2119         onChanged();
2120       } else {
2121         universalActionsBuilder_.addMessage(value);
2122       }
2123       return this;
2124     }
2125     /**
2126      *
2127      *
2128      * <pre>
2129      * Defines a list of extension points in the universal action menu which
2130      * serves as a setting menu for the add-on. The extension point can be
2131      * link URL to open or an endpoint to execute as a form
2132      * submission.
2133      * </pre>
2134      *
2135      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2136      * </code>
2137      */
addUniversalActions( int index, com.google.apps.script.type.UniversalActionExtensionPoint value)2138     public Builder addUniversalActions(
2139         int index, com.google.apps.script.type.UniversalActionExtensionPoint value) {
2140       if (universalActionsBuilder_ == null) {
2141         if (value == null) {
2142           throw new NullPointerException();
2143         }
2144         ensureUniversalActionsIsMutable();
2145         universalActions_.add(index, value);
2146         onChanged();
2147       } else {
2148         universalActionsBuilder_.addMessage(index, value);
2149       }
2150       return this;
2151     }
2152     /**
2153      *
2154      *
2155      * <pre>
2156      * Defines a list of extension points in the universal action menu which
2157      * serves as a setting menu for the add-on. The extension point can be
2158      * link URL to open or an endpoint to execute as a form
2159      * submission.
2160      * </pre>
2161      *
2162      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2163      * </code>
2164      */
addUniversalActions( com.google.apps.script.type.UniversalActionExtensionPoint.Builder builderForValue)2165     public Builder addUniversalActions(
2166         com.google.apps.script.type.UniversalActionExtensionPoint.Builder builderForValue) {
2167       if (universalActionsBuilder_ == null) {
2168         ensureUniversalActionsIsMutable();
2169         universalActions_.add(builderForValue.build());
2170         onChanged();
2171       } else {
2172         universalActionsBuilder_.addMessage(builderForValue.build());
2173       }
2174       return this;
2175     }
2176     /**
2177      *
2178      *
2179      * <pre>
2180      * Defines a list of extension points in the universal action menu which
2181      * serves as a setting menu for the add-on. The extension point can be
2182      * link URL to open or an endpoint to execute as a form
2183      * submission.
2184      * </pre>
2185      *
2186      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2187      * </code>
2188      */
addUniversalActions( int index, com.google.apps.script.type.UniversalActionExtensionPoint.Builder builderForValue)2189     public Builder addUniversalActions(
2190         int index,
2191         com.google.apps.script.type.UniversalActionExtensionPoint.Builder builderForValue) {
2192       if (universalActionsBuilder_ == null) {
2193         ensureUniversalActionsIsMutable();
2194         universalActions_.add(index, builderForValue.build());
2195         onChanged();
2196       } else {
2197         universalActionsBuilder_.addMessage(index, builderForValue.build());
2198       }
2199       return this;
2200     }
2201     /**
2202      *
2203      *
2204      * <pre>
2205      * Defines a list of extension points in the universal action menu which
2206      * serves as a setting menu for the add-on. The extension point can be
2207      * link URL to open or an endpoint to execute as a form
2208      * submission.
2209      * </pre>
2210      *
2211      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2212      * </code>
2213      */
addAllUniversalActions( java.lang.Iterable<? extends com.google.apps.script.type.UniversalActionExtensionPoint> values)2214     public Builder addAllUniversalActions(
2215         java.lang.Iterable<? extends com.google.apps.script.type.UniversalActionExtensionPoint>
2216             values) {
2217       if (universalActionsBuilder_ == null) {
2218         ensureUniversalActionsIsMutable();
2219         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, universalActions_);
2220         onChanged();
2221       } else {
2222         universalActionsBuilder_.addAllMessages(values);
2223       }
2224       return this;
2225     }
2226     /**
2227      *
2228      *
2229      * <pre>
2230      * Defines a list of extension points in the universal action menu which
2231      * serves as a setting menu for the add-on. The extension point can be
2232      * link URL to open or an endpoint to execute as a form
2233      * submission.
2234      * </pre>
2235      *
2236      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2237      * </code>
2238      */
clearUniversalActions()2239     public Builder clearUniversalActions() {
2240       if (universalActionsBuilder_ == null) {
2241         universalActions_ = java.util.Collections.emptyList();
2242         bitField0_ = (bitField0_ & ~0x00000040);
2243         onChanged();
2244       } else {
2245         universalActionsBuilder_.clear();
2246       }
2247       return this;
2248     }
2249     /**
2250      *
2251      *
2252      * <pre>
2253      * Defines a list of extension points in the universal action menu which
2254      * serves as a setting menu for the add-on. The extension point can be
2255      * link URL to open or an endpoint to execute as a form
2256      * submission.
2257      * </pre>
2258      *
2259      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2260      * </code>
2261      */
removeUniversalActions(int index)2262     public Builder removeUniversalActions(int index) {
2263       if (universalActionsBuilder_ == null) {
2264         ensureUniversalActionsIsMutable();
2265         universalActions_.remove(index);
2266         onChanged();
2267       } else {
2268         universalActionsBuilder_.remove(index);
2269       }
2270       return this;
2271     }
2272     /**
2273      *
2274      *
2275      * <pre>
2276      * Defines a list of extension points in the universal action menu which
2277      * serves as a setting menu for the add-on. The extension point can be
2278      * link URL to open or an endpoint to execute as a form
2279      * submission.
2280      * </pre>
2281      *
2282      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2283      * </code>
2284      */
2285     public com.google.apps.script.type.UniversalActionExtensionPoint.Builder
getUniversalActionsBuilder(int index)2286         getUniversalActionsBuilder(int index) {
2287       return getUniversalActionsFieldBuilder().getBuilder(index);
2288     }
2289     /**
2290      *
2291      *
2292      * <pre>
2293      * Defines a list of extension points in the universal action menu which
2294      * serves as a setting menu for the add-on. The extension point can be
2295      * link URL to open or an endpoint to execute as a form
2296      * submission.
2297      * </pre>
2298      *
2299      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2300      * </code>
2301      */
2302     public com.google.apps.script.type.UniversalActionExtensionPointOrBuilder
getUniversalActionsOrBuilder(int index)2303         getUniversalActionsOrBuilder(int index) {
2304       if (universalActionsBuilder_ == null) {
2305         return universalActions_.get(index);
2306       } else {
2307         return universalActionsBuilder_.getMessageOrBuilder(index);
2308       }
2309     }
2310     /**
2311      *
2312      *
2313      * <pre>
2314      * Defines a list of extension points in the universal action menu which
2315      * serves as a setting menu for the add-on. The extension point can be
2316      * link URL to open or an endpoint to execute as a form
2317      * submission.
2318      * </pre>
2319      *
2320      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2321      * </code>
2322      */
2323     public java.util.List<
2324             ? extends com.google.apps.script.type.UniversalActionExtensionPointOrBuilder>
getUniversalActionsOrBuilderList()2325         getUniversalActionsOrBuilderList() {
2326       if (universalActionsBuilder_ != null) {
2327         return universalActionsBuilder_.getMessageOrBuilderList();
2328       } else {
2329         return java.util.Collections.unmodifiableList(universalActions_);
2330       }
2331     }
2332     /**
2333      *
2334      *
2335      * <pre>
2336      * Defines a list of extension points in the universal action menu which
2337      * serves as a setting menu for the add-on. The extension point can be
2338      * link URL to open or an endpoint to execute as a form
2339      * submission.
2340      * </pre>
2341      *
2342      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2343      * </code>
2344      */
2345     public com.google.apps.script.type.UniversalActionExtensionPoint.Builder
addUniversalActionsBuilder()2346         addUniversalActionsBuilder() {
2347       return getUniversalActionsFieldBuilder()
2348           .addBuilder(
2349               com.google.apps.script.type.UniversalActionExtensionPoint.getDefaultInstance());
2350     }
2351     /**
2352      *
2353      *
2354      * <pre>
2355      * Defines a list of extension points in the universal action menu which
2356      * serves as a setting menu for the add-on. The extension point can be
2357      * link URL to open or an endpoint to execute as a form
2358      * submission.
2359      * </pre>
2360      *
2361      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2362      * </code>
2363      */
2364     public com.google.apps.script.type.UniversalActionExtensionPoint.Builder
addUniversalActionsBuilder(int index)2365         addUniversalActionsBuilder(int index) {
2366       return getUniversalActionsFieldBuilder()
2367           .addBuilder(
2368               index,
2369               com.google.apps.script.type.UniversalActionExtensionPoint.getDefaultInstance());
2370     }
2371     /**
2372      *
2373      *
2374      * <pre>
2375      * Defines a list of extension points in the universal action menu which
2376      * serves as a setting menu for the add-on. The extension point can be
2377      * link URL to open or an endpoint to execute as a form
2378      * submission.
2379      * </pre>
2380      *
2381      * <code>repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
2382      * </code>
2383      */
2384     public java.util.List<com.google.apps.script.type.UniversalActionExtensionPoint.Builder>
getUniversalActionsBuilderList()2385         getUniversalActionsBuilderList() {
2386       return getUniversalActionsFieldBuilder().getBuilderList();
2387     }
2388 
2389     private com.google.protobuf.RepeatedFieldBuilderV3<
2390             com.google.apps.script.type.UniversalActionExtensionPoint,
2391             com.google.apps.script.type.UniversalActionExtensionPoint.Builder,
2392             com.google.apps.script.type.UniversalActionExtensionPointOrBuilder>
getUniversalActionsFieldBuilder()2393         getUniversalActionsFieldBuilder() {
2394       if (universalActionsBuilder_ == null) {
2395         universalActionsBuilder_ =
2396             new com.google.protobuf.RepeatedFieldBuilderV3<
2397                 com.google.apps.script.type.UniversalActionExtensionPoint,
2398                 com.google.apps.script.type.UniversalActionExtensionPoint.Builder,
2399                 com.google.apps.script.type.UniversalActionExtensionPointOrBuilder>(
2400                 universalActions_,
2401                 ((bitField0_ & 0x00000040) != 0),
2402                 getParentForChildren(),
2403                 isClean());
2404         universalActions_ = null;
2405       }
2406       return universalActionsBuilder_;
2407     }
2408 
2409     private com.google.protobuf.ListValue openLinkUrlPrefixes_;
2410     private com.google.protobuf.SingleFieldBuilderV3<
2411             com.google.protobuf.ListValue,
2412             com.google.protobuf.ListValue.Builder,
2413             com.google.protobuf.ListValueOrBuilder>
2414         openLinkUrlPrefixesBuilder_;
2415     /**
2416      *
2417      *
2418      * <pre>
2419      * An OpenLink action
2420      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2421      * the URL must also
2422      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2423      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2424      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2425      * links.
2426      * </pre>
2427      *
2428      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2429      *
2430      * @return Whether the openLinkUrlPrefixes field is set.
2431      */
hasOpenLinkUrlPrefixes()2432     public boolean hasOpenLinkUrlPrefixes() {
2433       return ((bitField0_ & 0x00000080) != 0);
2434     }
2435     /**
2436      *
2437      *
2438      * <pre>
2439      * An OpenLink action
2440      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2441      * the URL must also
2442      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2443      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2444      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2445      * links.
2446      * </pre>
2447      *
2448      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2449      *
2450      * @return The openLinkUrlPrefixes.
2451      */
getOpenLinkUrlPrefixes()2452     public com.google.protobuf.ListValue getOpenLinkUrlPrefixes() {
2453       if (openLinkUrlPrefixesBuilder_ == null) {
2454         return openLinkUrlPrefixes_ == null
2455             ? com.google.protobuf.ListValue.getDefaultInstance()
2456             : openLinkUrlPrefixes_;
2457       } else {
2458         return openLinkUrlPrefixesBuilder_.getMessage();
2459       }
2460     }
2461     /**
2462      *
2463      *
2464      * <pre>
2465      * An OpenLink action
2466      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2467      * the URL must also
2468      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2469      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2470      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2471      * links.
2472      * </pre>
2473      *
2474      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2475      */
setOpenLinkUrlPrefixes(com.google.protobuf.ListValue value)2476     public Builder setOpenLinkUrlPrefixes(com.google.protobuf.ListValue value) {
2477       if (openLinkUrlPrefixesBuilder_ == null) {
2478         if (value == null) {
2479           throw new NullPointerException();
2480         }
2481         openLinkUrlPrefixes_ = value;
2482       } else {
2483         openLinkUrlPrefixesBuilder_.setMessage(value);
2484       }
2485       bitField0_ |= 0x00000080;
2486       onChanged();
2487       return this;
2488     }
2489     /**
2490      *
2491      *
2492      * <pre>
2493      * An OpenLink action
2494      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2495      * the URL must also
2496      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2497      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2498      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2499      * links.
2500      * </pre>
2501      *
2502      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2503      */
setOpenLinkUrlPrefixes(com.google.protobuf.ListValue.Builder builderForValue)2504     public Builder setOpenLinkUrlPrefixes(com.google.protobuf.ListValue.Builder builderForValue) {
2505       if (openLinkUrlPrefixesBuilder_ == null) {
2506         openLinkUrlPrefixes_ = builderForValue.build();
2507       } else {
2508         openLinkUrlPrefixesBuilder_.setMessage(builderForValue.build());
2509       }
2510       bitField0_ |= 0x00000080;
2511       onChanged();
2512       return this;
2513     }
2514     /**
2515      *
2516      *
2517      * <pre>
2518      * An OpenLink action
2519      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2520      * the URL must also
2521      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2522      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2523      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2524      * links.
2525      * </pre>
2526      *
2527      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2528      */
mergeOpenLinkUrlPrefixes(com.google.protobuf.ListValue value)2529     public Builder mergeOpenLinkUrlPrefixes(com.google.protobuf.ListValue value) {
2530       if (openLinkUrlPrefixesBuilder_ == null) {
2531         if (((bitField0_ & 0x00000080) != 0)
2532             && openLinkUrlPrefixes_ != null
2533             && openLinkUrlPrefixes_ != com.google.protobuf.ListValue.getDefaultInstance()) {
2534           getOpenLinkUrlPrefixesBuilder().mergeFrom(value);
2535         } else {
2536           openLinkUrlPrefixes_ = value;
2537         }
2538       } else {
2539         openLinkUrlPrefixesBuilder_.mergeFrom(value);
2540       }
2541       bitField0_ |= 0x00000080;
2542       onChanged();
2543       return this;
2544     }
2545     /**
2546      *
2547      *
2548      * <pre>
2549      * An OpenLink action
2550      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2551      * the URL must also
2552      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2553      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2554      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2555      * links.
2556      * </pre>
2557      *
2558      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2559      */
clearOpenLinkUrlPrefixes()2560     public Builder clearOpenLinkUrlPrefixes() {
2561       bitField0_ = (bitField0_ & ~0x00000080);
2562       openLinkUrlPrefixes_ = null;
2563       if (openLinkUrlPrefixesBuilder_ != null) {
2564         openLinkUrlPrefixesBuilder_.dispose();
2565         openLinkUrlPrefixesBuilder_ = null;
2566       }
2567       onChanged();
2568       return this;
2569     }
2570     /**
2571      *
2572      *
2573      * <pre>
2574      * An OpenLink action
2575      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2576      * the URL must also
2577      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2578      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2579      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2580      * links.
2581      * </pre>
2582      *
2583      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2584      */
getOpenLinkUrlPrefixesBuilder()2585     public com.google.protobuf.ListValue.Builder getOpenLinkUrlPrefixesBuilder() {
2586       bitField0_ |= 0x00000080;
2587       onChanged();
2588       return getOpenLinkUrlPrefixesFieldBuilder().getBuilder();
2589     }
2590     /**
2591      *
2592      *
2593      * <pre>
2594      * An OpenLink action
2595      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2596      * the URL must also
2597      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2598      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2599      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2600      * links.
2601      * </pre>
2602      *
2603      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2604      */
getOpenLinkUrlPrefixesOrBuilder()2605     public com.google.protobuf.ListValueOrBuilder getOpenLinkUrlPrefixesOrBuilder() {
2606       if (openLinkUrlPrefixesBuilder_ != null) {
2607         return openLinkUrlPrefixesBuilder_.getMessageOrBuilder();
2608       } else {
2609         return openLinkUrlPrefixes_ == null
2610             ? com.google.protobuf.ListValue.getDefaultInstance()
2611             : openLinkUrlPrefixes_;
2612       }
2613     }
2614     /**
2615      *
2616      *
2617      * <pre>
2618      * An OpenLink action
2619      * can only use a URL with an HTTPS, MAILTO or TEL scheme.  For HTTPS links,
2620      * the URL must also
2621      * [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
2622      * prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
2623      * is assumed.  Notice that HTTP links are automatically rewritten to HTTPS
2624      * links.
2625      * </pre>
2626      *
2627      * <code>.google.protobuf.ListValue open_link_url_prefixes = 8;</code>
2628      */
2629     private com.google.protobuf.SingleFieldBuilderV3<
2630             com.google.protobuf.ListValue,
2631             com.google.protobuf.ListValue.Builder,
2632             com.google.protobuf.ListValueOrBuilder>
getOpenLinkUrlPrefixesFieldBuilder()2633         getOpenLinkUrlPrefixesFieldBuilder() {
2634       if (openLinkUrlPrefixesBuilder_ == null) {
2635         openLinkUrlPrefixesBuilder_ =
2636             new com.google.protobuf.SingleFieldBuilderV3<
2637                 com.google.protobuf.ListValue,
2638                 com.google.protobuf.ListValue.Builder,
2639                 com.google.protobuf.ListValueOrBuilder>(
2640                 getOpenLinkUrlPrefixes(), getParentForChildren(), isClean());
2641         openLinkUrlPrefixes_ = null;
2642       }
2643       return openLinkUrlPrefixesBuilder_;
2644     }
2645 
2646     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2647     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2648       return super.setUnknownFields(unknownFields);
2649     }
2650 
2651     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2652     public final Builder mergeUnknownFields(
2653         final com.google.protobuf.UnknownFieldSet unknownFields) {
2654       return super.mergeUnknownFields(unknownFields);
2655     }
2656 
2657     // @@protoc_insertion_point(builder_scope:google.apps.script.type.CommonAddOnManifest)
2658   }
2659 
2660   // @@protoc_insertion_point(class_scope:google.apps.script.type.CommonAddOnManifest)
2661   private static final com.google.apps.script.type.CommonAddOnManifest DEFAULT_INSTANCE;
2662 
2663   static {
2664     DEFAULT_INSTANCE = new com.google.apps.script.type.CommonAddOnManifest();
2665   }
2666 
getDefaultInstance()2667   public static com.google.apps.script.type.CommonAddOnManifest getDefaultInstance() {
2668     return DEFAULT_INSTANCE;
2669   }
2670 
2671   private static final com.google.protobuf.Parser<CommonAddOnManifest> PARSER =
2672       new com.google.protobuf.AbstractParser<CommonAddOnManifest>() {
2673         @java.lang.Override
2674         public CommonAddOnManifest parsePartialFrom(
2675             com.google.protobuf.CodedInputStream input,
2676             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2677             throws com.google.protobuf.InvalidProtocolBufferException {
2678           Builder builder = newBuilder();
2679           try {
2680             builder.mergeFrom(input, extensionRegistry);
2681           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2682             throw e.setUnfinishedMessage(builder.buildPartial());
2683           } catch (com.google.protobuf.UninitializedMessageException e) {
2684             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2685           } catch (java.io.IOException e) {
2686             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2687                 .setUnfinishedMessage(builder.buildPartial());
2688           }
2689           return builder.buildPartial();
2690         }
2691       };
2692 
parser()2693   public static com.google.protobuf.Parser<CommonAddOnManifest> parser() {
2694     return PARSER;
2695   }
2696 
2697   @java.lang.Override
getParserForType()2698   public com.google.protobuf.Parser<CommonAddOnManifest> getParserForType() {
2699     return PARSER;
2700   }
2701 
2702   @java.lang.Override
getDefaultInstanceForType()2703   public com.google.apps.script.type.CommonAddOnManifest getDefaultInstanceForType() {
2704     return DEFAULT_INSTANCE;
2705   }
2706 }
2707