• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents a notification endpoint. A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. For more information, see Health checks overview.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.NotificationEndpoint}
29  */
30 public final class NotificationEndpoint extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NotificationEndpoint)
33     NotificationEndpointOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use NotificationEndpoint.newBuilder() to construct.
NotificationEndpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private NotificationEndpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
NotificationEndpoint()40   private NotificationEndpoint() {
41     creationTimestamp_ = "";
42     description_ = "";
43     kind_ = "";
44     name_ = "";
45     region_ = "";
46     selfLink_ = "";
47   }
48 
49   @java.lang.Override
50   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)51   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
52     return new NotificationEndpoint();
53   }
54 
55   @java.lang.Override
getUnknownFields()56   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
57     return this.unknownFields;
58   }
59 
getDescriptor()60   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
61     return com.google.cloud.compute.v1.Compute
62         .internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor;
63   }
64 
65   @java.lang.Override
66   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()67       internalGetFieldAccessorTable() {
68     return com.google.cloud.compute.v1.Compute
69         .internal_static_google_cloud_compute_v1_NotificationEndpoint_fieldAccessorTable
70         .ensureFieldAccessorsInitialized(
71             com.google.cloud.compute.v1.NotificationEndpoint.class,
72             com.google.cloud.compute.v1.NotificationEndpoint.Builder.class);
73   }
74 
75   private int bitField0_;
76   public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366;
77 
78   @SuppressWarnings("serial")
79   private volatile java.lang.Object creationTimestamp_ = "";
80   /**
81    *
82    *
83    * <pre>
84    * [Output Only] Creation timestamp in RFC3339 text format.
85    * </pre>
86    *
87    * <code>optional string creation_timestamp = 30525366;</code>
88    *
89    * @return Whether the creationTimestamp field is set.
90    */
91   @java.lang.Override
hasCreationTimestamp()92   public boolean hasCreationTimestamp() {
93     return ((bitField0_ & 0x00000001) != 0);
94   }
95   /**
96    *
97    *
98    * <pre>
99    * [Output Only] Creation timestamp in RFC3339 text format.
100    * </pre>
101    *
102    * <code>optional string creation_timestamp = 30525366;</code>
103    *
104    * @return The creationTimestamp.
105    */
106   @java.lang.Override
getCreationTimestamp()107   public java.lang.String getCreationTimestamp() {
108     java.lang.Object ref = creationTimestamp_;
109     if (ref instanceof java.lang.String) {
110       return (java.lang.String) ref;
111     } else {
112       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
113       java.lang.String s = bs.toStringUtf8();
114       creationTimestamp_ = s;
115       return s;
116     }
117   }
118   /**
119    *
120    *
121    * <pre>
122    * [Output Only] Creation timestamp in RFC3339 text format.
123    * </pre>
124    *
125    * <code>optional string creation_timestamp = 30525366;</code>
126    *
127    * @return The bytes for creationTimestamp.
128    */
129   @java.lang.Override
getCreationTimestampBytes()130   public com.google.protobuf.ByteString getCreationTimestampBytes() {
131     java.lang.Object ref = creationTimestamp_;
132     if (ref instanceof java.lang.String) {
133       com.google.protobuf.ByteString b =
134           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
135       creationTimestamp_ = b;
136       return b;
137     } else {
138       return (com.google.protobuf.ByteString) ref;
139     }
140   }
141 
142   public static final int DESCRIPTION_FIELD_NUMBER = 422937596;
143 
144   @SuppressWarnings("serial")
145   private volatile java.lang.Object description_ = "";
146   /**
147    *
148    *
149    * <pre>
150    * An optional description of this resource. Provide this property when you create the resource.
151    * </pre>
152    *
153    * <code>optional string description = 422937596;</code>
154    *
155    * @return Whether the description field is set.
156    */
157   @java.lang.Override
hasDescription()158   public boolean hasDescription() {
159     return ((bitField0_ & 0x00000002) != 0);
160   }
161   /**
162    *
163    *
164    * <pre>
165    * An optional description of this resource. Provide this property when you create the resource.
166    * </pre>
167    *
168    * <code>optional string description = 422937596;</code>
169    *
170    * @return The description.
171    */
172   @java.lang.Override
getDescription()173   public java.lang.String getDescription() {
174     java.lang.Object ref = description_;
175     if (ref instanceof java.lang.String) {
176       return (java.lang.String) ref;
177     } else {
178       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
179       java.lang.String s = bs.toStringUtf8();
180       description_ = s;
181       return s;
182     }
183   }
184   /**
185    *
186    *
187    * <pre>
188    * An optional description of this resource. Provide this property when you create the resource.
189    * </pre>
190    *
191    * <code>optional string description = 422937596;</code>
192    *
193    * @return The bytes for description.
194    */
195   @java.lang.Override
getDescriptionBytes()196   public com.google.protobuf.ByteString getDescriptionBytes() {
197     java.lang.Object ref = description_;
198     if (ref instanceof java.lang.String) {
199       com.google.protobuf.ByteString b =
200           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
201       description_ = b;
202       return b;
203     } else {
204       return (com.google.protobuf.ByteString) ref;
205     }
206   }
207 
208   public static final int GRPC_SETTINGS_FIELD_NUMBER = 456139556;
209   private com.google.cloud.compute.v1.NotificationEndpointGrpcSettings grpcSettings_;
210   /**
211    *
212    *
213    * <pre>
214    * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
215    * </pre>
216    *
217    * <code>
218    * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
219    * </code>
220    *
221    * @return Whether the grpcSettings field is set.
222    */
223   @java.lang.Override
hasGrpcSettings()224   public boolean hasGrpcSettings() {
225     return ((bitField0_ & 0x00000004) != 0);
226   }
227   /**
228    *
229    *
230    * <pre>
231    * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
232    * </pre>
233    *
234    * <code>
235    * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
236    * </code>
237    *
238    * @return The grpcSettings.
239    */
240   @java.lang.Override
getGrpcSettings()241   public com.google.cloud.compute.v1.NotificationEndpointGrpcSettings getGrpcSettings() {
242     return grpcSettings_ == null
243         ? com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.getDefaultInstance()
244         : grpcSettings_;
245   }
246   /**
247    *
248    *
249    * <pre>
250    * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
251    * </pre>
252    *
253    * <code>
254    * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
255    * </code>
256    */
257   @java.lang.Override
258   public com.google.cloud.compute.v1.NotificationEndpointGrpcSettingsOrBuilder
getGrpcSettingsOrBuilder()259       getGrpcSettingsOrBuilder() {
260     return grpcSettings_ == null
261         ? com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.getDefaultInstance()
262         : grpcSettings_;
263   }
264 
265   public static final int ID_FIELD_NUMBER = 3355;
266   private long id_ = 0L;
267   /**
268    *
269    *
270    * <pre>
271    * [Output Only] A unique identifier for this resource type. The server generates this identifier.
272    * </pre>
273    *
274    * <code>optional uint64 id = 3355;</code>
275    *
276    * @return Whether the id field is set.
277    */
278   @java.lang.Override
hasId()279   public boolean hasId() {
280     return ((bitField0_ & 0x00000008) != 0);
281   }
282   /**
283    *
284    *
285    * <pre>
286    * [Output Only] A unique identifier for this resource type. The server generates this identifier.
287    * </pre>
288    *
289    * <code>optional uint64 id = 3355;</code>
290    *
291    * @return The id.
292    */
293   @java.lang.Override
getId()294   public long getId() {
295     return id_;
296   }
297 
298   public static final int KIND_FIELD_NUMBER = 3292052;
299 
300   @SuppressWarnings("serial")
301   private volatile java.lang.Object kind_ = "";
302   /**
303    *
304    *
305    * <pre>
306    * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
307    * </pre>
308    *
309    * <code>optional string kind = 3292052;</code>
310    *
311    * @return Whether the kind field is set.
312    */
313   @java.lang.Override
hasKind()314   public boolean hasKind() {
315     return ((bitField0_ & 0x00000010) != 0);
316   }
317   /**
318    *
319    *
320    * <pre>
321    * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
322    * </pre>
323    *
324    * <code>optional string kind = 3292052;</code>
325    *
326    * @return The kind.
327    */
328   @java.lang.Override
getKind()329   public java.lang.String getKind() {
330     java.lang.Object ref = kind_;
331     if (ref instanceof java.lang.String) {
332       return (java.lang.String) ref;
333     } else {
334       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
335       java.lang.String s = bs.toStringUtf8();
336       kind_ = s;
337       return s;
338     }
339   }
340   /**
341    *
342    *
343    * <pre>
344    * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
345    * </pre>
346    *
347    * <code>optional string kind = 3292052;</code>
348    *
349    * @return The bytes for kind.
350    */
351   @java.lang.Override
getKindBytes()352   public com.google.protobuf.ByteString getKindBytes() {
353     java.lang.Object ref = kind_;
354     if (ref instanceof java.lang.String) {
355       com.google.protobuf.ByteString b =
356           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
357       kind_ = b;
358       return b;
359     } else {
360       return (com.google.protobuf.ByteString) ref;
361     }
362   }
363 
364   public static final int NAME_FIELD_NUMBER = 3373707;
365 
366   @SuppressWarnings("serial")
367   private volatile java.lang.Object name_ = "";
368   /**
369    *
370    *
371    * <pre>
372    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
373    * </pre>
374    *
375    * <code>optional string name = 3373707;</code>
376    *
377    * @return Whether the name field is set.
378    */
379   @java.lang.Override
hasName()380   public boolean hasName() {
381     return ((bitField0_ & 0x00000020) != 0);
382   }
383   /**
384    *
385    *
386    * <pre>
387    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
388    * </pre>
389    *
390    * <code>optional string name = 3373707;</code>
391    *
392    * @return The name.
393    */
394   @java.lang.Override
getName()395   public java.lang.String getName() {
396     java.lang.Object ref = name_;
397     if (ref instanceof java.lang.String) {
398       return (java.lang.String) ref;
399     } else {
400       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
401       java.lang.String s = bs.toStringUtf8();
402       name_ = s;
403       return s;
404     }
405   }
406   /**
407    *
408    *
409    * <pre>
410    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
411    * </pre>
412    *
413    * <code>optional string name = 3373707;</code>
414    *
415    * @return The bytes for name.
416    */
417   @java.lang.Override
getNameBytes()418   public com.google.protobuf.ByteString getNameBytes() {
419     java.lang.Object ref = name_;
420     if (ref instanceof java.lang.String) {
421       com.google.protobuf.ByteString b =
422           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
423       name_ = b;
424       return b;
425     } else {
426       return (com.google.protobuf.ByteString) ref;
427     }
428   }
429 
430   public static final int REGION_FIELD_NUMBER = 138946292;
431 
432   @SuppressWarnings("serial")
433   private volatile java.lang.Object region_ = "";
434   /**
435    *
436    *
437    * <pre>
438    * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
439    * </pre>
440    *
441    * <code>optional string region = 138946292;</code>
442    *
443    * @return Whether the region field is set.
444    */
445   @java.lang.Override
hasRegion()446   public boolean hasRegion() {
447     return ((bitField0_ & 0x00000040) != 0);
448   }
449   /**
450    *
451    *
452    * <pre>
453    * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
454    * </pre>
455    *
456    * <code>optional string region = 138946292;</code>
457    *
458    * @return The region.
459    */
460   @java.lang.Override
getRegion()461   public java.lang.String getRegion() {
462     java.lang.Object ref = region_;
463     if (ref instanceof java.lang.String) {
464       return (java.lang.String) ref;
465     } else {
466       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
467       java.lang.String s = bs.toStringUtf8();
468       region_ = s;
469       return s;
470     }
471   }
472   /**
473    *
474    *
475    * <pre>
476    * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
477    * </pre>
478    *
479    * <code>optional string region = 138946292;</code>
480    *
481    * @return The bytes for region.
482    */
483   @java.lang.Override
getRegionBytes()484   public com.google.protobuf.ByteString getRegionBytes() {
485     java.lang.Object ref = region_;
486     if (ref instanceof java.lang.String) {
487       com.google.protobuf.ByteString b =
488           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
489       region_ = b;
490       return b;
491     } else {
492       return (com.google.protobuf.ByteString) ref;
493     }
494   }
495 
496   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
497 
498   @SuppressWarnings("serial")
499   private volatile java.lang.Object selfLink_ = "";
500   /**
501    *
502    *
503    * <pre>
504    * [Output Only] Server-defined URL for the resource.
505    * </pre>
506    *
507    * <code>optional string self_link = 456214797;</code>
508    *
509    * @return Whether the selfLink field is set.
510    */
511   @java.lang.Override
hasSelfLink()512   public boolean hasSelfLink() {
513     return ((bitField0_ & 0x00000080) != 0);
514   }
515   /**
516    *
517    *
518    * <pre>
519    * [Output Only] Server-defined URL for the resource.
520    * </pre>
521    *
522    * <code>optional string self_link = 456214797;</code>
523    *
524    * @return The selfLink.
525    */
526   @java.lang.Override
getSelfLink()527   public java.lang.String getSelfLink() {
528     java.lang.Object ref = selfLink_;
529     if (ref instanceof java.lang.String) {
530       return (java.lang.String) ref;
531     } else {
532       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
533       java.lang.String s = bs.toStringUtf8();
534       selfLink_ = s;
535       return s;
536     }
537   }
538   /**
539    *
540    *
541    * <pre>
542    * [Output Only] Server-defined URL for the resource.
543    * </pre>
544    *
545    * <code>optional string self_link = 456214797;</code>
546    *
547    * @return The bytes for selfLink.
548    */
549   @java.lang.Override
getSelfLinkBytes()550   public com.google.protobuf.ByteString getSelfLinkBytes() {
551     java.lang.Object ref = selfLink_;
552     if (ref instanceof java.lang.String) {
553       com.google.protobuf.ByteString b =
554           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
555       selfLink_ = b;
556       return b;
557     } else {
558       return (com.google.protobuf.ByteString) ref;
559     }
560   }
561 
562   private byte memoizedIsInitialized = -1;
563 
564   @java.lang.Override
isInitialized()565   public final boolean isInitialized() {
566     byte isInitialized = memoizedIsInitialized;
567     if (isInitialized == 1) return true;
568     if (isInitialized == 0) return false;
569 
570     memoizedIsInitialized = 1;
571     return true;
572   }
573 
574   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)575   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
576     if (((bitField0_ & 0x00000008) != 0)) {
577       output.writeUInt64(3355, id_);
578     }
579     if (((bitField0_ & 0x00000010) != 0)) {
580       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
581     }
582     if (((bitField0_ & 0x00000020) != 0)) {
583       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
584     }
585     if (((bitField0_ & 0x00000001) != 0)) {
586       com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_);
587     }
588     if (((bitField0_ & 0x00000040) != 0)) {
589       com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_);
590     }
591     if (((bitField0_ & 0x00000002) != 0)) {
592       com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
593     }
594     if (((bitField0_ & 0x00000004) != 0)) {
595       output.writeMessage(456139556, getGrpcSettings());
596     }
597     if (((bitField0_ & 0x00000080) != 0)) {
598       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
599     }
600     getUnknownFields().writeTo(output);
601   }
602 
603   @java.lang.Override
getSerializedSize()604   public int getSerializedSize() {
605     int size = memoizedSize;
606     if (size != -1) return size;
607 
608     size = 0;
609     if (((bitField0_ & 0x00000008) != 0)) {
610       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
611     }
612     if (((bitField0_ & 0x00000010) != 0)) {
613       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
614     }
615     if (((bitField0_ & 0x00000020) != 0)) {
616       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
617     }
618     if (((bitField0_ & 0x00000001) != 0)) {
619       size +=
620           com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_);
621     }
622     if (((bitField0_ & 0x00000040) != 0)) {
623       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_);
624     }
625     if (((bitField0_ & 0x00000002) != 0)) {
626       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
627     }
628     if (((bitField0_ & 0x00000004) != 0)) {
629       size +=
630           com.google.protobuf.CodedOutputStream.computeMessageSize(456139556, getGrpcSettings());
631     }
632     if (((bitField0_ & 0x00000080) != 0)) {
633       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
634     }
635     size += getUnknownFields().getSerializedSize();
636     memoizedSize = size;
637     return size;
638   }
639 
640   @java.lang.Override
equals(final java.lang.Object obj)641   public boolean equals(final java.lang.Object obj) {
642     if (obj == this) {
643       return true;
644     }
645     if (!(obj instanceof com.google.cloud.compute.v1.NotificationEndpoint)) {
646       return super.equals(obj);
647     }
648     com.google.cloud.compute.v1.NotificationEndpoint other =
649         (com.google.cloud.compute.v1.NotificationEndpoint) obj;
650 
651     if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false;
652     if (hasCreationTimestamp()) {
653       if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false;
654     }
655     if (hasDescription() != other.hasDescription()) return false;
656     if (hasDescription()) {
657       if (!getDescription().equals(other.getDescription())) return false;
658     }
659     if (hasGrpcSettings() != other.hasGrpcSettings()) return false;
660     if (hasGrpcSettings()) {
661       if (!getGrpcSettings().equals(other.getGrpcSettings())) return false;
662     }
663     if (hasId() != other.hasId()) return false;
664     if (hasId()) {
665       if (getId() != other.getId()) return false;
666     }
667     if (hasKind() != other.hasKind()) return false;
668     if (hasKind()) {
669       if (!getKind().equals(other.getKind())) return false;
670     }
671     if (hasName() != other.hasName()) return false;
672     if (hasName()) {
673       if (!getName().equals(other.getName())) return false;
674     }
675     if (hasRegion() != other.hasRegion()) return false;
676     if (hasRegion()) {
677       if (!getRegion().equals(other.getRegion())) return false;
678     }
679     if (hasSelfLink() != other.hasSelfLink()) return false;
680     if (hasSelfLink()) {
681       if (!getSelfLink().equals(other.getSelfLink())) return false;
682     }
683     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
684     return true;
685   }
686 
687   @java.lang.Override
hashCode()688   public int hashCode() {
689     if (memoizedHashCode != 0) {
690       return memoizedHashCode;
691     }
692     int hash = 41;
693     hash = (19 * hash) + getDescriptor().hashCode();
694     if (hasCreationTimestamp()) {
695       hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
696       hash = (53 * hash) + getCreationTimestamp().hashCode();
697     }
698     if (hasDescription()) {
699       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
700       hash = (53 * hash) + getDescription().hashCode();
701     }
702     if (hasGrpcSettings()) {
703       hash = (37 * hash) + GRPC_SETTINGS_FIELD_NUMBER;
704       hash = (53 * hash) + getGrpcSettings().hashCode();
705     }
706     if (hasId()) {
707       hash = (37 * hash) + ID_FIELD_NUMBER;
708       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
709     }
710     if (hasKind()) {
711       hash = (37 * hash) + KIND_FIELD_NUMBER;
712       hash = (53 * hash) + getKind().hashCode();
713     }
714     if (hasName()) {
715       hash = (37 * hash) + NAME_FIELD_NUMBER;
716       hash = (53 * hash) + getName().hashCode();
717     }
718     if (hasRegion()) {
719       hash = (37 * hash) + REGION_FIELD_NUMBER;
720       hash = (53 * hash) + getRegion().hashCode();
721     }
722     if (hasSelfLink()) {
723       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
724       hash = (53 * hash) + getSelfLink().hashCode();
725     }
726     hash = (29 * hash) + getUnknownFields().hashCode();
727     memoizedHashCode = hash;
728     return hash;
729   }
730 
parseFrom(java.nio.ByteBuffer data)731   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(java.nio.ByteBuffer data)
732       throws com.google.protobuf.InvalidProtocolBufferException {
733     return PARSER.parseFrom(data);
734   }
735 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)736   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
737       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
738       throws com.google.protobuf.InvalidProtocolBufferException {
739     return PARSER.parseFrom(data, extensionRegistry);
740   }
741 
parseFrom( com.google.protobuf.ByteString data)742   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
743       com.google.protobuf.ByteString data)
744       throws com.google.protobuf.InvalidProtocolBufferException {
745     return PARSER.parseFrom(data);
746   }
747 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)748   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
749       com.google.protobuf.ByteString data,
750       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
751       throws com.google.protobuf.InvalidProtocolBufferException {
752     return PARSER.parseFrom(data, extensionRegistry);
753   }
754 
parseFrom(byte[] data)755   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(byte[] data)
756       throws com.google.protobuf.InvalidProtocolBufferException {
757     return PARSER.parseFrom(data);
758   }
759 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)760   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
761       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
762       throws com.google.protobuf.InvalidProtocolBufferException {
763     return PARSER.parseFrom(data, extensionRegistry);
764   }
765 
parseFrom( java.io.InputStream input)766   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
767       java.io.InputStream input) throws java.io.IOException {
768     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
769   }
770 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)771   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
772       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
773       throws java.io.IOException {
774     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
775         PARSER, input, extensionRegistry);
776   }
777 
parseDelimitedFrom( java.io.InputStream input)778   public static com.google.cloud.compute.v1.NotificationEndpoint parseDelimitedFrom(
779       java.io.InputStream input) throws java.io.IOException {
780     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
781   }
782 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)783   public static com.google.cloud.compute.v1.NotificationEndpoint parseDelimitedFrom(
784       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
785       throws java.io.IOException {
786     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
787         PARSER, input, extensionRegistry);
788   }
789 
parseFrom( com.google.protobuf.CodedInputStream input)790   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
791       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
792     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
793   }
794 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)795   public static com.google.cloud.compute.v1.NotificationEndpoint parseFrom(
796       com.google.protobuf.CodedInputStream input,
797       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
798       throws java.io.IOException {
799     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
800         PARSER, input, extensionRegistry);
801   }
802 
803   @java.lang.Override
newBuilderForType()804   public Builder newBuilderForType() {
805     return newBuilder();
806   }
807 
newBuilder()808   public static Builder newBuilder() {
809     return DEFAULT_INSTANCE.toBuilder();
810   }
811 
newBuilder(com.google.cloud.compute.v1.NotificationEndpoint prototype)812   public static Builder newBuilder(com.google.cloud.compute.v1.NotificationEndpoint prototype) {
813     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
814   }
815 
816   @java.lang.Override
toBuilder()817   public Builder toBuilder() {
818     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
819   }
820 
821   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)822   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
823     Builder builder = new Builder(parent);
824     return builder;
825   }
826   /**
827    *
828    *
829    * <pre>
830    * Represents a notification endpoint. A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. For more information, see Health checks overview.
831    * </pre>
832    *
833    * Protobuf type {@code google.cloud.compute.v1.NotificationEndpoint}
834    */
835   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
836       implements
837       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NotificationEndpoint)
838       com.google.cloud.compute.v1.NotificationEndpointOrBuilder {
getDescriptor()839     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
840       return com.google.cloud.compute.v1.Compute
841           .internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor;
842     }
843 
844     @java.lang.Override
845     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()846         internalGetFieldAccessorTable() {
847       return com.google.cloud.compute.v1.Compute
848           .internal_static_google_cloud_compute_v1_NotificationEndpoint_fieldAccessorTable
849           .ensureFieldAccessorsInitialized(
850               com.google.cloud.compute.v1.NotificationEndpoint.class,
851               com.google.cloud.compute.v1.NotificationEndpoint.Builder.class);
852     }
853 
854     // Construct using com.google.cloud.compute.v1.NotificationEndpoint.newBuilder()
Builder()855     private Builder() {
856       maybeForceBuilderInitialization();
857     }
858 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)859     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
860       super(parent);
861       maybeForceBuilderInitialization();
862     }
863 
maybeForceBuilderInitialization()864     private void maybeForceBuilderInitialization() {
865       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
866         getGrpcSettingsFieldBuilder();
867       }
868     }
869 
870     @java.lang.Override
clear()871     public Builder clear() {
872       super.clear();
873       bitField0_ = 0;
874       creationTimestamp_ = "";
875       description_ = "";
876       grpcSettings_ = null;
877       if (grpcSettingsBuilder_ != null) {
878         grpcSettingsBuilder_.dispose();
879         grpcSettingsBuilder_ = null;
880       }
881       id_ = 0L;
882       kind_ = "";
883       name_ = "";
884       region_ = "";
885       selfLink_ = "";
886       return this;
887     }
888 
889     @java.lang.Override
getDescriptorForType()890     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
891       return com.google.cloud.compute.v1.Compute
892           .internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor;
893     }
894 
895     @java.lang.Override
getDefaultInstanceForType()896     public com.google.cloud.compute.v1.NotificationEndpoint getDefaultInstanceForType() {
897       return com.google.cloud.compute.v1.NotificationEndpoint.getDefaultInstance();
898     }
899 
900     @java.lang.Override
build()901     public com.google.cloud.compute.v1.NotificationEndpoint build() {
902       com.google.cloud.compute.v1.NotificationEndpoint result = buildPartial();
903       if (!result.isInitialized()) {
904         throw newUninitializedMessageException(result);
905       }
906       return result;
907     }
908 
909     @java.lang.Override
buildPartial()910     public com.google.cloud.compute.v1.NotificationEndpoint buildPartial() {
911       com.google.cloud.compute.v1.NotificationEndpoint result =
912           new com.google.cloud.compute.v1.NotificationEndpoint(this);
913       if (bitField0_ != 0) {
914         buildPartial0(result);
915       }
916       onBuilt();
917       return result;
918     }
919 
buildPartial0(com.google.cloud.compute.v1.NotificationEndpoint result)920     private void buildPartial0(com.google.cloud.compute.v1.NotificationEndpoint result) {
921       int from_bitField0_ = bitField0_;
922       int to_bitField0_ = 0;
923       if (((from_bitField0_ & 0x00000001) != 0)) {
924         result.creationTimestamp_ = creationTimestamp_;
925         to_bitField0_ |= 0x00000001;
926       }
927       if (((from_bitField0_ & 0x00000002) != 0)) {
928         result.description_ = description_;
929         to_bitField0_ |= 0x00000002;
930       }
931       if (((from_bitField0_ & 0x00000004) != 0)) {
932         result.grpcSettings_ =
933             grpcSettingsBuilder_ == null ? grpcSettings_ : grpcSettingsBuilder_.build();
934         to_bitField0_ |= 0x00000004;
935       }
936       if (((from_bitField0_ & 0x00000008) != 0)) {
937         result.id_ = id_;
938         to_bitField0_ |= 0x00000008;
939       }
940       if (((from_bitField0_ & 0x00000010) != 0)) {
941         result.kind_ = kind_;
942         to_bitField0_ |= 0x00000010;
943       }
944       if (((from_bitField0_ & 0x00000020) != 0)) {
945         result.name_ = name_;
946         to_bitField0_ |= 0x00000020;
947       }
948       if (((from_bitField0_ & 0x00000040) != 0)) {
949         result.region_ = region_;
950         to_bitField0_ |= 0x00000040;
951       }
952       if (((from_bitField0_ & 0x00000080) != 0)) {
953         result.selfLink_ = selfLink_;
954         to_bitField0_ |= 0x00000080;
955       }
956       result.bitField0_ |= to_bitField0_;
957     }
958 
959     @java.lang.Override
clone()960     public Builder clone() {
961       return super.clone();
962     }
963 
964     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)965     public Builder setField(
966         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
967       return super.setField(field, value);
968     }
969 
970     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)971     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
972       return super.clearField(field);
973     }
974 
975     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)976     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
977       return super.clearOneof(oneof);
978     }
979 
980     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)981     public Builder setRepeatedField(
982         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
983       return super.setRepeatedField(field, index, value);
984     }
985 
986     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)987     public Builder addRepeatedField(
988         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
989       return super.addRepeatedField(field, value);
990     }
991 
992     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)993     public Builder mergeFrom(com.google.protobuf.Message other) {
994       if (other instanceof com.google.cloud.compute.v1.NotificationEndpoint) {
995         return mergeFrom((com.google.cloud.compute.v1.NotificationEndpoint) other);
996       } else {
997         super.mergeFrom(other);
998         return this;
999       }
1000     }
1001 
mergeFrom(com.google.cloud.compute.v1.NotificationEndpoint other)1002     public Builder mergeFrom(com.google.cloud.compute.v1.NotificationEndpoint other) {
1003       if (other == com.google.cloud.compute.v1.NotificationEndpoint.getDefaultInstance())
1004         return this;
1005       if (other.hasCreationTimestamp()) {
1006         creationTimestamp_ = other.creationTimestamp_;
1007         bitField0_ |= 0x00000001;
1008         onChanged();
1009       }
1010       if (other.hasDescription()) {
1011         description_ = other.description_;
1012         bitField0_ |= 0x00000002;
1013         onChanged();
1014       }
1015       if (other.hasGrpcSettings()) {
1016         mergeGrpcSettings(other.getGrpcSettings());
1017       }
1018       if (other.hasId()) {
1019         setId(other.getId());
1020       }
1021       if (other.hasKind()) {
1022         kind_ = other.kind_;
1023         bitField0_ |= 0x00000010;
1024         onChanged();
1025       }
1026       if (other.hasName()) {
1027         name_ = other.name_;
1028         bitField0_ |= 0x00000020;
1029         onChanged();
1030       }
1031       if (other.hasRegion()) {
1032         region_ = other.region_;
1033         bitField0_ |= 0x00000040;
1034         onChanged();
1035       }
1036       if (other.hasSelfLink()) {
1037         selfLink_ = other.selfLink_;
1038         bitField0_ |= 0x00000080;
1039         onChanged();
1040       }
1041       this.mergeUnknownFields(other.getUnknownFields());
1042       onChanged();
1043       return this;
1044     }
1045 
1046     @java.lang.Override
isInitialized()1047     public final boolean isInitialized() {
1048       return true;
1049     }
1050 
1051     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1052     public Builder mergeFrom(
1053         com.google.protobuf.CodedInputStream input,
1054         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1055         throws java.io.IOException {
1056       if (extensionRegistry == null) {
1057         throw new java.lang.NullPointerException();
1058       }
1059       try {
1060         boolean done = false;
1061         while (!done) {
1062           int tag = input.readTag();
1063           switch (tag) {
1064             case 0:
1065               done = true;
1066               break;
1067             case 26840:
1068               {
1069                 id_ = input.readUInt64();
1070                 bitField0_ |= 0x00000008;
1071                 break;
1072               } // case 26840
1073             case 26336418:
1074               {
1075                 kind_ = input.readStringRequireUtf8();
1076                 bitField0_ |= 0x00000010;
1077                 break;
1078               } // case 26336418
1079             case 26989658:
1080               {
1081                 name_ = input.readStringRequireUtf8();
1082                 bitField0_ |= 0x00000020;
1083                 break;
1084               } // case 26989658
1085             case 244202930:
1086               {
1087                 creationTimestamp_ = input.readStringRequireUtf8();
1088                 bitField0_ |= 0x00000001;
1089                 break;
1090               } // case 244202930
1091             case 1111570338:
1092               {
1093                 region_ = input.readStringRequireUtf8();
1094                 bitField0_ |= 0x00000040;
1095                 break;
1096               } // case 1111570338
1097             case -911466526:
1098               {
1099                 description_ = input.readStringRequireUtf8();
1100                 bitField0_ |= 0x00000002;
1101                 break;
1102               } // case -911466526
1103             case -645850846:
1104               {
1105                 input.readMessage(getGrpcSettingsFieldBuilder().getBuilder(), extensionRegistry);
1106                 bitField0_ |= 0x00000004;
1107                 break;
1108               } // case -645850846
1109             case -645248918:
1110               {
1111                 selfLink_ = input.readStringRequireUtf8();
1112                 bitField0_ |= 0x00000080;
1113                 break;
1114               } // case -645248918
1115             default:
1116               {
1117                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1118                   done = true; // was an endgroup tag
1119                 }
1120                 break;
1121               } // default:
1122           } // switch (tag)
1123         } // while (!done)
1124       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1125         throw e.unwrapIOException();
1126       } finally {
1127         onChanged();
1128       } // finally
1129       return this;
1130     }
1131 
1132     private int bitField0_;
1133 
1134     private java.lang.Object creationTimestamp_ = "";
1135     /**
1136      *
1137      *
1138      * <pre>
1139      * [Output Only] Creation timestamp in RFC3339 text format.
1140      * </pre>
1141      *
1142      * <code>optional string creation_timestamp = 30525366;</code>
1143      *
1144      * @return Whether the creationTimestamp field is set.
1145      */
hasCreationTimestamp()1146     public boolean hasCreationTimestamp() {
1147       return ((bitField0_ & 0x00000001) != 0);
1148     }
1149     /**
1150      *
1151      *
1152      * <pre>
1153      * [Output Only] Creation timestamp in RFC3339 text format.
1154      * </pre>
1155      *
1156      * <code>optional string creation_timestamp = 30525366;</code>
1157      *
1158      * @return The creationTimestamp.
1159      */
getCreationTimestamp()1160     public java.lang.String getCreationTimestamp() {
1161       java.lang.Object ref = creationTimestamp_;
1162       if (!(ref instanceof java.lang.String)) {
1163         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1164         java.lang.String s = bs.toStringUtf8();
1165         creationTimestamp_ = s;
1166         return s;
1167       } else {
1168         return (java.lang.String) ref;
1169       }
1170     }
1171     /**
1172      *
1173      *
1174      * <pre>
1175      * [Output Only] Creation timestamp in RFC3339 text format.
1176      * </pre>
1177      *
1178      * <code>optional string creation_timestamp = 30525366;</code>
1179      *
1180      * @return The bytes for creationTimestamp.
1181      */
getCreationTimestampBytes()1182     public com.google.protobuf.ByteString getCreationTimestampBytes() {
1183       java.lang.Object ref = creationTimestamp_;
1184       if (ref instanceof String) {
1185         com.google.protobuf.ByteString b =
1186             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1187         creationTimestamp_ = b;
1188         return b;
1189       } else {
1190         return (com.google.protobuf.ByteString) ref;
1191       }
1192     }
1193     /**
1194      *
1195      *
1196      * <pre>
1197      * [Output Only] Creation timestamp in RFC3339 text format.
1198      * </pre>
1199      *
1200      * <code>optional string creation_timestamp = 30525366;</code>
1201      *
1202      * @param value The creationTimestamp to set.
1203      * @return This builder for chaining.
1204      */
setCreationTimestamp(java.lang.String value)1205     public Builder setCreationTimestamp(java.lang.String value) {
1206       if (value == null) {
1207         throw new NullPointerException();
1208       }
1209       creationTimestamp_ = value;
1210       bitField0_ |= 0x00000001;
1211       onChanged();
1212       return this;
1213     }
1214     /**
1215      *
1216      *
1217      * <pre>
1218      * [Output Only] Creation timestamp in RFC3339 text format.
1219      * </pre>
1220      *
1221      * <code>optional string creation_timestamp = 30525366;</code>
1222      *
1223      * @return This builder for chaining.
1224      */
clearCreationTimestamp()1225     public Builder clearCreationTimestamp() {
1226       creationTimestamp_ = getDefaultInstance().getCreationTimestamp();
1227       bitField0_ = (bitField0_ & ~0x00000001);
1228       onChanged();
1229       return this;
1230     }
1231     /**
1232      *
1233      *
1234      * <pre>
1235      * [Output Only] Creation timestamp in RFC3339 text format.
1236      * </pre>
1237      *
1238      * <code>optional string creation_timestamp = 30525366;</code>
1239      *
1240      * @param value The bytes for creationTimestamp to set.
1241      * @return This builder for chaining.
1242      */
setCreationTimestampBytes(com.google.protobuf.ByteString value)1243     public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) {
1244       if (value == null) {
1245         throw new NullPointerException();
1246       }
1247       checkByteStringIsUtf8(value);
1248       creationTimestamp_ = value;
1249       bitField0_ |= 0x00000001;
1250       onChanged();
1251       return this;
1252     }
1253 
1254     private java.lang.Object description_ = "";
1255     /**
1256      *
1257      *
1258      * <pre>
1259      * An optional description of this resource. Provide this property when you create the resource.
1260      * </pre>
1261      *
1262      * <code>optional string description = 422937596;</code>
1263      *
1264      * @return Whether the description field is set.
1265      */
hasDescription()1266     public boolean hasDescription() {
1267       return ((bitField0_ & 0x00000002) != 0);
1268     }
1269     /**
1270      *
1271      *
1272      * <pre>
1273      * An optional description of this resource. Provide this property when you create the resource.
1274      * </pre>
1275      *
1276      * <code>optional string description = 422937596;</code>
1277      *
1278      * @return The description.
1279      */
getDescription()1280     public java.lang.String getDescription() {
1281       java.lang.Object ref = description_;
1282       if (!(ref instanceof java.lang.String)) {
1283         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1284         java.lang.String s = bs.toStringUtf8();
1285         description_ = s;
1286         return s;
1287       } else {
1288         return (java.lang.String) ref;
1289       }
1290     }
1291     /**
1292      *
1293      *
1294      * <pre>
1295      * An optional description of this resource. Provide this property when you create the resource.
1296      * </pre>
1297      *
1298      * <code>optional string description = 422937596;</code>
1299      *
1300      * @return The bytes for description.
1301      */
getDescriptionBytes()1302     public com.google.protobuf.ByteString getDescriptionBytes() {
1303       java.lang.Object ref = description_;
1304       if (ref instanceof String) {
1305         com.google.protobuf.ByteString b =
1306             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1307         description_ = b;
1308         return b;
1309       } else {
1310         return (com.google.protobuf.ByteString) ref;
1311       }
1312     }
1313     /**
1314      *
1315      *
1316      * <pre>
1317      * An optional description of this resource. Provide this property when you create the resource.
1318      * </pre>
1319      *
1320      * <code>optional string description = 422937596;</code>
1321      *
1322      * @param value The description to set.
1323      * @return This builder for chaining.
1324      */
setDescription(java.lang.String value)1325     public Builder setDescription(java.lang.String value) {
1326       if (value == null) {
1327         throw new NullPointerException();
1328       }
1329       description_ = value;
1330       bitField0_ |= 0x00000002;
1331       onChanged();
1332       return this;
1333     }
1334     /**
1335      *
1336      *
1337      * <pre>
1338      * An optional description of this resource. Provide this property when you create the resource.
1339      * </pre>
1340      *
1341      * <code>optional string description = 422937596;</code>
1342      *
1343      * @return This builder for chaining.
1344      */
clearDescription()1345     public Builder clearDescription() {
1346       description_ = getDefaultInstance().getDescription();
1347       bitField0_ = (bitField0_ & ~0x00000002);
1348       onChanged();
1349       return this;
1350     }
1351     /**
1352      *
1353      *
1354      * <pre>
1355      * An optional description of this resource. Provide this property when you create the resource.
1356      * </pre>
1357      *
1358      * <code>optional string description = 422937596;</code>
1359      *
1360      * @param value The bytes for description to set.
1361      * @return This builder for chaining.
1362      */
setDescriptionBytes(com.google.protobuf.ByteString value)1363     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1364       if (value == null) {
1365         throw new NullPointerException();
1366       }
1367       checkByteStringIsUtf8(value);
1368       description_ = value;
1369       bitField0_ |= 0x00000002;
1370       onChanged();
1371       return this;
1372     }
1373 
1374     private com.google.cloud.compute.v1.NotificationEndpointGrpcSettings grpcSettings_;
1375     private com.google.protobuf.SingleFieldBuilderV3<
1376             com.google.cloud.compute.v1.NotificationEndpointGrpcSettings,
1377             com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder,
1378             com.google.cloud.compute.v1.NotificationEndpointGrpcSettingsOrBuilder>
1379         grpcSettingsBuilder_;
1380     /**
1381      *
1382      *
1383      * <pre>
1384      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1385      * </pre>
1386      *
1387      * <code>
1388      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1389      * </code>
1390      *
1391      * @return Whether the grpcSettings field is set.
1392      */
hasGrpcSettings()1393     public boolean hasGrpcSettings() {
1394       return ((bitField0_ & 0x00000004) != 0);
1395     }
1396     /**
1397      *
1398      *
1399      * <pre>
1400      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1401      * </pre>
1402      *
1403      * <code>
1404      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1405      * </code>
1406      *
1407      * @return The grpcSettings.
1408      */
getGrpcSettings()1409     public com.google.cloud.compute.v1.NotificationEndpointGrpcSettings getGrpcSettings() {
1410       if (grpcSettingsBuilder_ == null) {
1411         return grpcSettings_ == null
1412             ? com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.getDefaultInstance()
1413             : grpcSettings_;
1414       } else {
1415         return grpcSettingsBuilder_.getMessage();
1416       }
1417     }
1418     /**
1419      *
1420      *
1421      * <pre>
1422      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1423      * </pre>
1424      *
1425      * <code>
1426      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1427      * </code>
1428      */
setGrpcSettings( com.google.cloud.compute.v1.NotificationEndpointGrpcSettings value)1429     public Builder setGrpcSettings(
1430         com.google.cloud.compute.v1.NotificationEndpointGrpcSettings value) {
1431       if (grpcSettingsBuilder_ == null) {
1432         if (value == null) {
1433           throw new NullPointerException();
1434         }
1435         grpcSettings_ = value;
1436       } else {
1437         grpcSettingsBuilder_.setMessage(value);
1438       }
1439       bitField0_ |= 0x00000004;
1440       onChanged();
1441       return this;
1442     }
1443     /**
1444      *
1445      *
1446      * <pre>
1447      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1448      * </pre>
1449      *
1450      * <code>
1451      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1452      * </code>
1453      */
setGrpcSettings( com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder builderForValue)1454     public Builder setGrpcSettings(
1455         com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder builderForValue) {
1456       if (grpcSettingsBuilder_ == null) {
1457         grpcSettings_ = builderForValue.build();
1458       } else {
1459         grpcSettingsBuilder_.setMessage(builderForValue.build());
1460       }
1461       bitField0_ |= 0x00000004;
1462       onChanged();
1463       return this;
1464     }
1465     /**
1466      *
1467      *
1468      * <pre>
1469      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1470      * </pre>
1471      *
1472      * <code>
1473      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1474      * </code>
1475      */
mergeGrpcSettings( com.google.cloud.compute.v1.NotificationEndpointGrpcSettings value)1476     public Builder mergeGrpcSettings(
1477         com.google.cloud.compute.v1.NotificationEndpointGrpcSettings value) {
1478       if (grpcSettingsBuilder_ == null) {
1479         if (((bitField0_ & 0x00000004) != 0)
1480             && grpcSettings_ != null
1481             && grpcSettings_
1482                 != com.google.cloud.compute.v1.NotificationEndpointGrpcSettings
1483                     .getDefaultInstance()) {
1484           getGrpcSettingsBuilder().mergeFrom(value);
1485         } else {
1486           grpcSettings_ = value;
1487         }
1488       } else {
1489         grpcSettingsBuilder_.mergeFrom(value);
1490       }
1491       bitField0_ |= 0x00000004;
1492       onChanged();
1493       return this;
1494     }
1495     /**
1496      *
1497      *
1498      * <pre>
1499      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1500      * </pre>
1501      *
1502      * <code>
1503      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1504      * </code>
1505      */
clearGrpcSettings()1506     public Builder clearGrpcSettings() {
1507       bitField0_ = (bitField0_ & ~0x00000004);
1508       grpcSettings_ = null;
1509       if (grpcSettingsBuilder_ != null) {
1510         grpcSettingsBuilder_.dispose();
1511         grpcSettingsBuilder_ = null;
1512       }
1513       onChanged();
1514       return this;
1515     }
1516     /**
1517      *
1518      *
1519      * <pre>
1520      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1521      * </pre>
1522      *
1523      * <code>
1524      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1525      * </code>
1526      */
1527     public com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder
getGrpcSettingsBuilder()1528         getGrpcSettingsBuilder() {
1529       bitField0_ |= 0x00000004;
1530       onChanged();
1531       return getGrpcSettingsFieldBuilder().getBuilder();
1532     }
1533     /**
1534      *
1535      *
1536      * <pre>
1537      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1538      * </pre>
1539      *
1540      * <code>
1541      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1542      * </code>
1543      */
1544     public com.google.cloud.compute.v1.NotificationEndpointGrpcSettingsOrBuilder
getGrpcSettingsOrBuilder()1545         getGrpcSettingsOrBuilder() {
1546       if (grpcSettingsBuilder_ != null) {
1547         return grpcSettingsBuilder_.getMessageOrBuilder();
1548       } else {
1549         return grpcSettings_ == null
1550             ? com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.getDefaultInstance()
1551             : grpcSettings_;
1552       }
1553     }
1554     /**
1555      *
1556      *
1557      * <pre>
1558      * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
1559      * </pre>
1560      *
1561      * <code>
1562      * optional .google.cloud.compute.v1.NotificationEndpointGrpcSettings grpc_settings = 456139556;
1563      * </code>
1564      */
1565     private com.google.protobuf.SingleFieldBuilderV3<
1566             com.google.cloud.compute.v1.NotificationEndpointGrpcSettings,
1567             com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder,
1568             com.google.cloud.compute.v1.NotificationEndpointGrpcSettingsOrBuilder>
getGrpcSettingsFieldBuilder()1569         getGrpcSettingsFieldBuilder() {
1570       if (grpcSettingsBuilder_ == null) {
1571         grpcSettingsBuilder_ =
1572             new com.google.protobuf.SingleFieldBuilderV3<
1573                 com.google.cloud.compute.v1.NotificationEndpointGrpcSettings,
1574                 com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder,
1575                 com.google.cloud.compute.v1.NotificationEndpointGrpcSettingsOrBuilder>(
1576                 getGrpcSettings(), getParentForChildren(), isClean());
1577         grpcSettings_ = null;
1578       }
1579       return grpcSettingsBuilder_;
1580     }
1581 
1582     private long id_;
1583     /**
1584      *
1585      *
1586      * <pre>
1587      * [Output Only] A unique identifier for this resource type. The server generates this identifier.
1588      * </pre>
1589      *
1590      * <code>optional uint64 id = 3355;</code>
1591      *
1592      * @return Whether the id field is set.
1593      */
1594     @java.lang.Override
hasId()1595     public boolean hasId() {
1596       return ((bitField0_ & 0x00000008) != 0);
1597     }
1598     /**
1599      *
1600      *
1601      * <pre>
1602      * [Output Only] A unique identifier for this resource type. The server generates this identifier.
1603      * </pre>
1604      *
1605      * <code>optional uint64 id = 3355;</code>
1606      *
1607      * @return The id.
1608      */
1609     @java.lang.Override
getId()1610     public long getId() {
1611       return id_;
1612     }
1613     /**
1614      *
1615      *
1616      * <pre>
1617      * [Output Only] A unique identifier for this resource type. The server generates this identifier.
1618      * </pre>
1619      *
1620      * <code>optional uint64 id = 3355;</code>
1621      *
1622      * @param value The id to set.
1623      * @return This builder for chaining.
1624      */
setId(long value)1625     public Builder setId(long value) {
1626 
1627       id_ = value;
1628       bitField0_ |= 0x00000008;
1629       onChanged();
1630       return this;
1631     }
1632     /**
1633      *
1634      *
1635      * <pre>
1636      * [Output Only] A unique identifier for this resource type. The server generates this identifier.
1637      * </pre>
1638      *
1639      * <code>optional uint64 id = 3355;</code>
1640      *
1641      * @return This builder for chaining.
1642      */
clearId()1643     public Builder clearId() {
1644       bitField0_ = (bitField0_ & ~0x00000008);
1645       id_ = 0L;
1646       onChanged();
1647       return this;
1648     }
1649 
1650     private java.lang.Object kind_ = "";
1651     /**
1652      *
1653      *
1654      * <pre>
1655      * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
1656      * </pre>
1657      *
1658      * <code>optional string kind = 3292052;</code>
1659      *
1660      * @return Whether the kind field is set.
1661      */
hasKind()1662     public boolean hasKind() {
1663       return ((bitField0_ & 0x00000010) != 0);
1664     }
1665     /**
1666      *
1667      *
1668      * <pre>
1669      * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
1670      * </pre>
1671      *
1672      * <code>optional string kind = 3292052;</code>
1673      *
1674      * @return The kind.
1675      */
getKind()1676     public java.lang.String getKind() {
1677       java.lang.Object ref = kind_;
1678       if (!(ref instanceof java.lang.String)) {
1679         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1680         java.lang.String s = bs.toStringUtf8();
1681         kind_ = s;
1682         return s;
1683       } else {
1684         return (java.lang.String) ref;
1685       }
1686     }
1687     /**
1688      *
1689      *
1690      * <pre>
1691      * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
1692      * </pre>
1693      *
1694      * <code>optional string kind = 3292052;</code>
1695      *
1696      * @return The bytes for kind.
1697      */
getKindBytes()1698     public com.google.protobuf.ByteString getKindBytes() {
1699       java.lang.Object ref = kind_;
1700       if (ref instanceof String) {
1701         com.google.protobuf.ByteString b =
1702             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1703         kind_ = b;
1704         return b;
1705       } else {
1706         return (com.google.protobuf.ByteString) ref;
1707       }
1708     }
1709     /**
1710      *
1711      *
1712      * <pre>
1713      * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
1714      * </pre>
1715      *
1716      * <code>optional string kind = 3292052;</code>
1717      *
1718      * @param value The kind to set.
1719      * @return This builder for chaining.
1720      */
setKind(java.lang.String value)1721     public Builder setKind(java.lang.String value) {
1722       if (value == null) {
1723         throw new NullPointerException();
1724       }
1725       kind_ = value;
1726       bitField0_ |= 0x00000010;
1727       onChanged();
1728       return this;
1729     }
1730     /**
1731      *
1732      *
1733      * <pre>
1734      * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
1735      * </pre>
1736      *
1737      * <code>optional string kind = 3292052;</code>
1738      *
1739      * @return This builder for chaining.
1740      */
clearKind()1741     public Builder clearKind() {
1742       kind_ = getDefaultInstance().getKind();
1743       bitField0_ = (bitField0_ & ~0x00000010);
1744       onChanged();
1745       return this;
1746     }
1747     /**
1748      *
1749      *
1750      * <pre>
1751      * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints.
1752      * </pre>
1753      *
1754      * <code>optional string kind = 3292052;</code>
1755      *
1756      * @param value The bytes for kind to set.
1757      * @return This builder for chaining.
1758      */
setKindBytes(com.google.protobuf.ByteString value)1759     public Builder setKindBytes(com.google.protobuf.ByteString value) {
1760       if (value == null) {
1761         throw new NullPointerException();
1762       }
1763       checkByteStringIsUtf8(value);
1764       kind_ = value;
1765       bitField0_ |= 0x00000010;
1766       onChanged();
1767       return this;
1768     }
1769 
1770     private java.lang.Object name_ = "";
1771     /**
1772      *
1773      *
1774      * <pre>
1775      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1776      * </pre>
1777      *
1778      * <code>optional string name = 3373707;</code>
1779      *
1780      * @return Whether the name field is set.
1781      */
hasName()1782     public boolean hasName() {
1783       return ((bitField0_ & 0x00000020) != 0);
1784     }
1785     /**
1786      *
1787      *
1788      * <pre>
1789      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1790      * </pre>
1791      *
1792      * <code>optional string name = 3373707;</code>
1793      *
1794      * @return The name.
1795      */
getName()1796     public java.lang.String getName() {
1797       java.lang.Object ref = name_;
1798       if (!(ref instanceof java.lang.String)) {
1799         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1800         java.lang.String s = bs.toStringUtf8();
1801         name_ = s;
1802         return s;
1803       } else {
1804         return (java.lang.String) ref;
1805       }
1806     }
1807     /**
1808      *
1809      *
1810      * <pre>
1811      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1812      * </pre>
1813      *
1814      * <code>optional string name = 3373707;</code>
1815      *
1816      * @return The bytes for name.
1817      */
getNameBytes()1818     public com.google.protobuf.ByteString getNameBytes() {
1819       java.lang.Object ref = name_;
1820       if (ref instanceof String) {
1821         com.google.protobuf.ByteString b =
1822             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1823         name_ = b;
1824         return b;
1825       } else {
1826         return (com.google.protobuf.ByteString) ref;
1827       }
1828     }
1829     /**
1830      *
1831      *
1832      * <pre>
1833      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1834      * </pre>
1835      *
1836      * <code>optional string name = 3373707;</code>
1837      *
1838      * @param value The name to set.
1839      * @return This builder for chaining.
1840      */
setName(java.lang.String value)1841     public Builder setName(java.lang.String value) {
1842       if (value == null) {
1843         throw new NullPointerException();
1844       }
1845       name_ = value;
1846       bitField0_ |= 0x00000020;
1847       onChanged();
1848       return this;
1849     }
1850     /**
1851      *
1852      *
1853      * <pre>
1854      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1855      * </pre>
1856      *
1857      * <code>optional string name = 3373707;</code>
1858      *
1859      * @return This builder for chaining.
1860      */
clearName()1861     public Builder clearName() {
1862       name_ = getDefaultInstance().getName();
1863       bitField0_ = (bitField0_ & ~0x00000020);
1864       onChanged();
1865       return this;
1866     }
1867     /**
1868      *
1869      *
1870      * <pre>
1871      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1872      * </pre>
1873      *
1874      * <code>optional string name = 3373707;</code>
1875      *
1876      * @param value The bytes for name to set.
1877      * @return This builder for chaining.
1878      */
setNameBytes(com.google.protobuf.ByteString value)1879     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1880       if (value == null) {
1881         throw new NullPointerException();
1882       }
1883       checkByteStringIsUtf8(value);
1884       name_ = value;
1885       bitField0_ |= 0x00000020;
1886       onChanged();
1887       return this;
1888     }
1889 
1890     private java.lang.Object region_ = "";
1891     /**
1892      *
1893      *
1894      * <pre>
1895      * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1896      * </pre>
1897      *
1898      * <code>optional string region = 138946292;</code>
1899      *
1900      * @return Whether the region field is set.
1901      */
hasRegion()1902     public boolean hasRegion() {
1903       return ((bitField0_ & 0x00000040) != 0);
1904     }
1905     /**
1906      *
1907      *
1908      * <pre>
1909      * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1910      * </pre>
1911      *
1912      * <code>optional string region = 138946292;</code>
1913      *
1914      * @return The region.
1915      */
getRegion()1916     public java.lang.String getRegion() {
1917       java.lang.Object ref = region_;
1918       if (!(ref instanceof java.lang.String)) {
1919         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1920         java.lang.String s = bs.toStringUtf8();
1921         region_ = s;
1922         return s;
1923       } else {
1924         return (java.lang.String) ref;
1925       }
1926     }
1927     /**
1928      *
1929      *
1930      * <pre>
1931      * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1932      * </pre>
1933      *
1934      * <code>optional string region = 138946292;</code>
1935      *
1936      * @return The bytes for region.
1937      */
getRegionBytes()1938     public com.google.protobuf.ByteString getRegionBytes() {
1939       java.lang.Object ref = region_;
1940       if (ref instanceof String) {
1941         com.google.protobuf.ByteString b =
1942             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1943         region_ = b;
1944         return b;
1945       } else {
1946         return (com.google.protobuf.ByteString) ref;
1947       }
1948     }
1949     /**
1950      *
1951      *
1952      * <pre>
1953      * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1954      * </pre>
1955      *
1956      * <code>optional string region = 138946292;</code>
1957      *
1958      * @param value The region to set.
1959      * @return This builder for chaining.
1960      */
setRegion(java.lang.String value)1961     public Builder setRegion(java.lang.String value) {
1962       if (value == null) {
1963         throw new NullPointerException();
1964       }
1965       region_ = value;
1966       bitField0_ |= 0x00000040;
1967       onChanged();
1968       return this;
1969     }
1970     /**
1971      *
1972      *
1973      * <pre>
1974      * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1975      * </pre>
1976      *
1977      * <code>optional string region = 138946292;</code>
1978      *
1979      * @return This builder for chaining.
1980      */
clearRegion()1981     public Builder clearRegion() {
1982       region_ = getDefaultInstance().getRegion();
1983       bitField0_ = (bitField0_ & ~0x00000040);
1984       onChanged();
1985       return this;
1986     }
1987     /**
1988      *
1989      *
1990      * <pre>
1991      * [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1992      * </pre>
1993      *
1994      * <code>optional string region = 138946292;</code>
1995      *
1996      * @param value The bytes for region to set.
1997      * @return This builder for chaining.
1998      */
setRegionBytes(com.google.protobuf.ByteString value)1999     public Builder setRegionBytes(com.google.protobuf.ByteString value) {
2000       if (value == null) {
2001         throw new NullPointerException();
2002       }
2003       checkByteStringIsUtf8(value);
2004       region_ = value;
2005       bitField0_ |= 0x00000040;
2006       onChanged();
2007       return this;
2008     }
2009 
2010     private java.lang.Object selfLink_ = "";
2011     /**
2012      *
2013      *
2014      * <pre>
2015      * [Output Only] Server-defined URL for the resource.
2016      * </pre>
2017      *
2018      * <code>optional string self_link = 456214797;</code>
2019      *
2020      * @return Whether the selfLink field is set.
2021      */
hasSelfLink()2022     public boolean hasSelfLink() {
2023       return ((bitField0_ & 0x00000080) != 0);
2024     }
2025     /**
2026      *
2027      *
2028      * <pre>
2029      * [Output Only] Server-defined URL for the resource.
2030      * </pre>
2031      *
2032      * <code>optional string self_link = 456214797;</code>
2033      *
2034      * @return The selfLink.
2035      */
getSelfLink()2036     public java.lang.String getSelfLink() {
2037       java.lang.Object ref = selfLink_;
2038       if (!(ref instanceof java.lang.String)) {
2039         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2040         java.lang.String s = bs.toStringUtf8();
2041         selfLink_ = s;
2042         return s;
2043       } else {
2044         return (java.lang.String) ref;
2045       }
2046     }
2047     /**
2048      *
2049      *
2050      * <pre>
2051      * [Output Only] Server-defined URL for the resource.
2052      * </pre>
2053      *
2054      * <code>optional string self_link = 456214797;</code>
2055      *
2056      * @return The bytes for selfLink.
2057      */
getSelfLinkBytes()2058     public com.google.protobuf.ByteString getSelfLinkBytes() {
2059       java.lang.Object ref = selfLink_;
2060       if (ref instanceof String) {
2061         com.google.protobuf.ByteString b =
2062             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2063         selfLink_ = b;
2064         return b;
2065       } else {
2066         return (com.google.protobuf.ByteString) ref;
2067       }
2068     }
2069     /**
2070      *
2071      *
2072      * <pre>
2073      * [Output Only] Server-defined URL for the resource.
2074      * </pre>
2075      *
2076      * <code>optional string self_link = 456214797;</code>
2077      *
2078      * @param value The selfLink to set.
2079      * @return This builder for chaining.
2080      */
setSelfLink(java.lang.String value)2081     public Builder setSelfLink(java.lang.String value) {
2082       if (value == null) {
2083         throw new NullPointerException();
2084       }
2085       selfLink_ = value;
2086       bitField0_ |= 0x00000080;
2087       onChanged();
2088       return this;
2089     }
2090     /**
2091      *
2092      *
2093      * <pre>
2094      * [Output Only] Server-defined URL for the resource.
2095      * </pre>
2096      *
2097      * <code>optional string self_link = 456214797;</code>
2098      *
2099      * @return This builder for chaining.
2100      */
clearSelfLink()2101     public Builder clearSelfLink() {
2102       selfLink_ = getDefaultInstance().getSelfLink();
2103       bitField0_ = (bitField0_ & ~0x00000080);
2104       onChanged();
2105       return this;
2106     }
2107     /**
2108      *
2109      *
2110      * <pre>
2111      * [Output Only] Server-defined URL for the resource.
2112      * </pre>
2113      *
2114      * <code>optional string self_link = 456214797;</code>
2115      *
2116      * @param value The bytes for selfLink to set.
2117      * @return This builder for chaining.
2118      */
setSelfLinkBytes(com.google.protobuf.ByteString value)2119     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
2120       if (value == null) {
2121         throw new NullPointerException();
2122       }
2123       checkByteStringIsUtf8(value);
2124       selfLink_ = value;
2125       bitField0_ |= 0x00000080;
2126       onChanged();
2127       return this;
2128     }
2129 
2130     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2131     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2132       return super.setUnknownFields(unknownFields);
2133     }
2134 
2135     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2136     public final Builder mergeUnknownFields(
2137         final com.google.protobuf.UnknownFieldSet unknownFields) {
2138       return super.mergeUnknownFields(unknownFields);
2139     }
2140 
2141     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.NotificationEndpoint)
2142   }
2143 
2144   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NotificationEndpoint)
2145   private static final com.google.cloud.compute.v1.NotificationEndpoint DEFAULT_INSTANCE;
2146 
2147   static {
2148     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NotificationEndpoint();
2149   }
2150 
getDefaultInstance()2151   public static com.google.cloud.compute.v1.NotificationEndpoint getDefaultInstance() {
2152     return DEFAULT_INSTANCE;
2153   }
2154 
2155   private static final com.google.protobuf.Parser<NotificationEndpoint> PARSER =
2156       new com.google.protobuf.AbstractParser<NotificationEndpoint>() {
2157         @java.lang.Override
2158         public NotificationEndpoint parsePartialFrom(
2159             com.google.protobuf.CodedInputStream input,
2160             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2161             throws com.google.protobuf.InvalidProtocolBufferException {
2162           Builder builder = newBuilder();
2163           try {
2164             builder.mergeFrom(input, extensionRegistry);
2165           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2166             throw e.setUnfinishedMessage(builder.buildPartial());
2167           } catch (com.google.protobuf.UninitializedMessageException e) {
2168             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2169           } catch (java.io.IOException e) {
2170             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2171                 .setUnfinishedMessage(builder.buildPartial());
2172           }
2173           return builder.buildPartial();
2174         }
2175       };
2176 
parser()2177   public static com.google.protobuf.Parser<NotificationEndpoint> parser() {
2178     return PARSER;
2179   }
2180 
2181   @java.lang.Override
getParserForType()2182   public com.google.protobuf.Parser<NotificationEndpoint> getParserForType() {
2183     return PARSER;
2184   }
2185 
2186   @java.lang.Override
getDefaultInstanceForType()2187   public com.google.cloud.compute.v1.NotificationEndpoint getDefaultInstanceForType() {
2188     return DEFAULT_INSTANCE;
2189   }
2190 }
2191