• 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/ids/v1/ids.proto
18 
19 package com.google.cloud.ids.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Endpoint describes a single IDS endpoint. It defines a forwarding rule to
26  * which packets can be sent for IDS inspection.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.ids.v1.Endpoint}
30  */
31 public final class Endpoint extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.ids.v1.Endpoint)
34     EndpointOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use Endpoint.newBuilder() to construct.
Endpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
Endpoint()41   private Endpoint() {
42     name_ = "";
43     network_ = "";
44     endpointForwardingRule_ = "";
45     endpointIp_ = "";
46     description_ = "";
47     severity_ = 0;
48     state_ = 0;
49   }
50 
51   @java.lang.Override
52   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)53   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
54     return new Endpoint();
55   }
56 
57   @java.lang.Override
getUnknownFields()58   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
59     return this.unknownFields;
60   }
61 
getDescriptor()62   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
63     return com.google.cloud.ids.v1.IdsProto.internal_static_google_cloud_ids_v1_Endpoint_descriptor;
64   }
65 
66   @SuppressWarnings({"rawtypes"})
67   @java.lang.Override
internalGetMapField(int number)68   protected com.google.protobuf.MapField internalGetMapField(int number) {
69     switch (number) {
70       case 4:
71         return internalGetLabels();
72       default:
73         throw new RuntimeException("Invalid map field number: " + number);
74     }
75   }
76 
77   @java.lang.Override
78   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()79       internalGetFieldAccessorTable() {
80     return com.google.cloud.ids.v1.IdsProto
81         .internal_static_google_cloud_ids_v1_Endpoint_fieldAccessorTable
82         .ensureFieldAccessorsInitialized(
83             com.google.cloud.ids.v1.Endpoint.class, com.google.cloud.ids.v1.Endpoint.Builder.class);
84   }
85 
86   /**
87    *
88    *
89    * <pre>
90    * Threat severity levels.
91    * </pre>
92    *
93    * Protobuf enum {@code google.cloud.ids.v1.Endpoint.Severity}
94    */
95   public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
96     /**
97      *
98      *
99      * <pre>
100      * Not set.
101      * </pre>
102      *
103      * <code>SEVERITY_UNSPECIFIED = 0;</code>
104      */
105     SEVERITY_UNSPECIFIED(0),
106     /**
107      *
108      *
109      * <pre>
110      * Informational alerts.
111      * </pre>
112      *
113      * <code>INFORMATIONAL = 1;</code>
114      */
115     INFORMATIONAL(1),
116     /**
117      *
118      *
119      * <pre>
120      * Low severity alerts.
121      * </pre>
122      *
123      * <code>LOW = 2;</code>
124      */
125     LOW(2),
126     /**
127      *
128      *
129      * <pre>
130      * Medium severity alerts.
131      * </pre>
132      *
133      * <code>MEDIUM = 3;</code>
134      */
135     MEDIUM(3),
136     /**
137      *
138      *
139      * <pre>
140      * High severity alerts.
141      * </pre>
142      *
143      * <code>HIGH = 4;</code>
144      */
145     HIGH(4),
146     /**
147      *
148      *
149      * <pre>
150      * Critical severity alerts.
151      * </pre>
152      *
153      * <code>CRITICAL = 5;</code>
154      */
155     CRITICAL(5),
156     UNRECOGNIZED(-1),
157     ;
158 
159     /**
160      *
161      *
162      * <pre>
163      * Not set.
164      * </pre>
165      *
166      * <code>SEVERITY_UNSPECIFIED = 0;</code>
167      */
168     public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
169     /**
170      *
171      *
172      * <pre>
173      * Informational alerts.
174      * </pre>
175      *
176      * <code>INFORMATIONAL = 1;</code>
177      */
178     public static final int INFORMATIONAL_VALUE = 1;
179     /**
180      *
181      *
182      * <pre>
183      * Low severity alerts.
184      * </pre>
185      *
186      * <code>LOW = 2;</code>
187      */
188     public static final int LOW_VALUE = 2;
189     /**
190      *
191      *
192      * <pre>
193      * Medium severity alerts.
194      * </pre>
195      *
196      * <code>MEDIUM = 3;</code>
197      */
198     public static final int MEDIUM_VALUE = 3;
199     /**
200      *
201      *
202      * <pre>
203      * High severity alerts.
204      * </pre>
205      *
206      * <code>HIGH = 4;</code>
207      */
208     public static final int HIGH_VALUE = 4;
209     /**
210      *
211      *
212      * <pre>
213      * Critical severity alerts.
214      * </pre>
215      *
216      * <code>CRITICAL = 5;</code>
217      */
218     public static final int CRITICAL_VALUE = 5;
219 
getNumber()220     public final int getNumber() {
221       if (this == UNRECOGNIZED) {
222         throw new java.lang.IllegalArgumentException(
223             "Can't get the number of an unknown enum value.");
224       }
225       return value;
226     }
227 
228     /**
229      * @param value The numeric wire value of the corresponding enum entry.
230      * @return The enum associated with the given numeric wire value.
231      * @deprecated Use {@link #forNumber(int)} instead.
232      */
233     @java.lang.Deprecated
valueOf(int value)234     public static Severity valueOf(int value) {
235       return forNumber(value);
236     }
237 
238     /**
239      * @param value The numeric wire value of the corresponding enum entry.
240      * @return The enum associated with the given numeric wire value.
241      */
forNumber(int value)242     public static Severity forNumber(int value) {
243       switch (value) {
244         case 0:
245           return SEVERITY_UNSPECIFIED;
246         case 1:
247           return INFORMATIONAL;
248         case 2:
249           return LOW;
250         case 3:
251           return MEDIUM;
252         case 4:
253           return HIGH;
254         case 5:
255           return CRITICAL;
256         default:
257           return null;
258       }
259     }
260 
internalGetValueMap()261     public static com.google.protobuf.Internal.EnumLiteMap<Severity> internalGetValueMap() {
262       return internalValueMap;
263     }
264 
265     private static final com.google.protobuf.Internal.EnumLiteMap<Severity> internalValueMap =
266         new com.google.protobuf.Internal.EnumLiteMap<Severity>() {
267           public Severity findValueByNumber(int number) {
268             return Severity.forNumber(number);
269           }
270         };
271 
getValueDescriptor()272     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
273       if (this == UNRECOGNIZED) {
274         throw new java.lang.IllegalStateException(
275             "Can't get the descriptor of an unrecognized enum value.");
276       }
277       return getDescriptor().getValues().get(ordinal());
278     }
279 
getDescriptorForType()280     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
281       return getDescriptor();
282     }
283 
getDescriptor()284     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
285       return com.google.cloud.ids.v1.Endpoint.getDescriptor().getEnumTypes().get(0);
286     }
287 
288     private static final Severity[] VALUES = values();
289 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)290     public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
291       if (desc.getType() != getDescriptor()) {
292         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
293       }
294       if (desc.getIndex() == -1) {
295         return UNRECOGNIZED;
296       }
297       return VALUES[desc.getIndex()];
298     }
299 
300     private final int value;
301 
Severity(int value)302     private Severity(int value) {
303       this.value = value;
304     }
305 
306     // @@protoc_insertion_point(enum_scope:google.cloud.ids.v1.Endpoint.Severity)
307   }
308 
309   /**
310    *
311    *
312    * <pre>
313    * Endpoint state
314    * </pre>
315    *
316    * Protobuf enum {@code google.cloud.ids.v1.Endpoint.State}
317    */
318   public enum State implements com.google.protobuf.ProtocolMessageEnum {
319     /**
320      *
321      *
322      * <pre>
323      * Not set.
324      * </pre>
325      *
326      * <code>STATE_UNSPECIFIED = 0;</code>
327      */
328     STATE_UNSPECIFIED(0),
329     /**
330      *
331      *
332      * <pre>
333      * Being created.
334      * </pre>
335      *
336      * <code>CREATING = 1;</code>
337      */
338     CREATING(1),
339     /**
340      *
341      *
342      * <pre>
343      * Active and ready for traffic.
344      * </pre>
345      *
346      * <code>READY = 2;</code>
347      */
348     READY(2),
349     /**
350      *
351      *
352      * <pre>
353      * Being deleted.
354      * </pre>
355      *
356      * <code>DELETING = 3;</code>
357      */
358     DELETING(3),
359     UNRECOGNIZED(-1),
360     ;
361 
362     /**
363      *
364      *
365      * <pre>
366      * Not set.
367      * </pre>
368      *
369      * <code>STATE_UNSPECIFIED = 0;</code>
370      */
371     public static final int STATE_UNSPECIFIED_VALUE = 0;
372     /**
373      *
374      *
375      * <pre>
376      * Being created.
377      * </pre>
378      *
379      * <code>CREATING = 1;</code>
380      */
381     public static final int CREATING_VALUE = 1;
382     /**
383      *
384      *
385      * <pre>
386      * Active and ready for traffic.
387      * </pre>
388      *
389      * <code>READY = 2;</code>
390      */
391     public static final int READY_VALUE = 2;
392     /**
393      *
394      *
395      * <pre>
396      * Being deleted.
397      * </pre>
398      *
399      * <code>DELETING = 3;</code>
400      */
401     public static final int DELETING_VALUE = 3;
402 
getNumber()403     public final int getNumber() {
404       if (this == UNRECOGNIZED) {
405         throw new java.lang.IllegalArgumentException(
406             "Can't get the number of an unknown enum value.");
407       }
408       return value;
409     }
410 
411     /**
412      * @param value The numeric wire value of the corresponding enum entry.
413      * @return The enum associated with the given numeric wire value.
414      * @deprecated Use {@link #forNumber(int)} instead.
415      */
416     @java.lang.Deprecated
valueOf(int value)417     public static State valueOf(int value) {
418       return forNumber(value);
419     }
420 
421     /**
422      * @param value The numeric wire value of the corresponding enum entry.
423      * @return The enum associated with the given numeric wire value.
424      */
forNumber(int value)425     public static State forNumber(int value) {
426       switch (value) {
427         case 0:
428           return STATE_UNSPECIFIED;
429         case 1:
430           return CREATING;
431         case 2:
432           return READY;
433         case 3:
434           return DELETING;
435         default:
436           return null;
437       }
438     }
439 
internalGetValueMap()440     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
441       return internalValueMap;
442     }
443 
444     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
445         new com.google.protobuf.Internal.EnumLiteMap<State>() {
446           public State findValueByNumber(int number) {
447             return State.forNumber(number);
448           }
449         };
450 
getValueDescriptor()451     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
452       if (this == UNRECOGNIZED) {
453         throw new java.lang.IllegalStateException(
454             "Can't get the descriptor of an unrecognized enum value.");
455       }
456       return getDescriptor().getValues().get(ordinal());
457     }
458 
getDescriptorForType()459     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
460       return getDescriptor();
461     }
462 
getDescriptor()463     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
464       return com.google.cloud.ids.v1.Endpoint.getDescriptor().getEnumTypes().get(1);
465     }
466 
467     private static final State[] VALUES = values();
468 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)469     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
470       if (desc.getType() != getDescriptor()) {
471         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
472       }
473       if (desc.getIndex() == -1) {
474         return UNRECOGNIZED;
475       }
476       return VALUES[desc.getIndex()];
477     }
478 
479     private final int value;
480 
State(int value)481     private State(int value) {
482       this.value = value;
483     }
484 
485     // @@protoc_insertion_point(enum_scope:google.cloud.ids.v1.Endpoint.State)
486   }
487 
488   public static final int NAME_FIELD_NUMBER = 1;
489 
490   @SuppressWarnings("serial")
491   private volatile java.lang.Object name_ = "";
492   /**
493    *
494    *
495    * <pre>
496    * Output only. The name of the endpoint.
497    * </pre>
498    *
499    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
500    *
501    * @return The name.
502    */
503   @java.lang.Override
getName()504   public java.lang.String getName() {
505     java.lang.Object ref = name_;
506     if (ref instanceof java.lang.String) {
507       return (java.lang.String) ref;
508     } else {
509       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
510       java.lang.String s = bs.toStringUtf8();
511       name_ = s;
512       return s;
513     }
514   }
515   /**
516    *
517    *
518    * <pre>
519    * Output only. The name of the endpoint.
520    * </pre>
521    *
522    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
523    *
524    * @return The bytes for name.
525    */
526   @java.lang.Override
getNameBytes()527   public com.google.protobuf.ByteString getNameBytes() {
528     java.lang.Object ref = name_;
529     if (ref instanceof java.lang.String) {
530       com.google.protobuf.ByteString b =
531           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
532       name_ = b;
533       return b;
534     } else {
535       return (com.google.protobuf.ByteString) ref;
536     }
537   }
538 
539   public static final int CREATE_TIME_FIELD_NUMBER = 2;
540   private com.google.protobuf.Timestamp createTime_;
541   /**
542    *
543    *
544    * <pre>
545    * Output only. The create time timestamp.
546    * </pre>
547    *
548    * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
549    * </code>
550    *
551    * @return Whether the createTime field is set.
552    */
553   @java.lang.Override
hasCreateTime()554   public boolean hasCreateTime() {
555     return createTime_ != null;
556   }
557   /**
558    *
559    *
560    * <pre>
561    * Output only. The create time timestamp.
562    * </pre>
563    *
564    * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
565    * </code>
566    *
567    * @return The createTime.
568    */
569   @java.lang.Override
getCreateTime()570   public com.google.protobuf.Timestamp getCreateTime() {
571     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
572   }
573   /**
574    *
575    *
576    * <pre>
577    * Output only. The create time timestamp.
578    * </pre>
579    *
580    * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
581    * </code>
582    */
583   @java.lang.Override
getCreateTimeOrBuilder()584   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
585     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
586   }
587 
588   public static final int UPDATE_TIME_FIELD_NUMBER = 3;
589   private com.google.protobuf.Timestamp updateTime_;
590   /**
591    *
592    *
593    * <pre>
594    * Output only. The update time timestamp.
595    * </pre>
596    *
597    * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
598    * </code>
599    *
600    * @return Whether the updateTime field is set.
601    */
602   @java.lang.Override
hasUpdateTime()603   public boolean hasUpdateTime() {
604     return updateTime_ != null;
605   }
606   /**
607    *
608    *
609    * <pre>
610    * Output only. The update time timestamp.
611    * </pre>
612    *
613    * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
614    * </code>
615    *
616    * @return The updateTime.
617    */
618   @java.lang.Override
getUpdateTime()619   public com.google.protobuf.Timestamp getUpdateTime() {
620     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
621   }
622   /**
623    *
624    *
625    * <pre>
626    * Output only. The update time timestamp.
627    * </pre>
628    *
629    * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
630    * </code>
631    */
632   @java.lang.Override
getUpdateTimeOrBuilder()633   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
634     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
635   }
636 
637   public static final int LABELS_FIELD_NUMBER = 4;
638 
639   private static final class LabelsDefaultEntryHolder {
640     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
641         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
642             com.google.cloud.ids.v1.IdsProto
643                 .internal_static_google_cloud_ids_v1_Endpoint_LabelsEntry_descriptor,
644             com.google.protobuf.WireFormat.FieldType.STRING,
645             "",
646             com.google.protobuf.WireFormat.FieldType.STRING,
647             "");
648   }
649 
650   @SuppressWarnings("serial")
651   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
652 
internalGetLabels()653   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
654     if (labels_ == null) {
655       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
656     }
657     return labels_;
658   }
659 
getLabelsCount()660   public int getLabelsCount() {
661     return internalGetLabels().getMap().size();
662   }
663   /**
664    *
665    *
666    * <pre>
667    * The labels of the endpoint.
668    * </pre>
669    *
670    * <code>map&lt;string, string&gt; labels = 4;</code>
671    */
672   @java.lang.Override
containsLabels(java.lang.String key)673   public boolean containsLabels(java.lang.String key) {
674     if (key == null) {
675       throw new NullPointerException("map key");
676     }
677     return internalGetLabels().getMap().containsKey(key);
678   }
679   /** Use {@link #getLabelsMap()} instead. */
680   @java.lang.Override
681   @java.lang.Deprecated
getLabels()682   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
683     return getLabelsMap();
684   }
685   /**
686    *
687    *
688    * <pre>
689    * The labels of the endpoint.
690    * </pre>
691    *
692    * <code>map&lt;string, string&gt; labels = 4;</code>
693    */
694   @java.lang.Override
getLabelsMap()695   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
696     return internalGetLabels().getMap();
697   }
698   /**
699    *
700    *
701    * <pre>
702    * The labels of the endpoint.
703    * </pre>
704    *
705    * <code>map&lt;string, string&gt; labels = 4;</code>
706    */
707   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)708   public /* nullable */ java.lang.String getLabelsOrDefault(
709       java.lang.String key,
710       /* nullable */
711       java.lang.String defaultValue) {
712     if (key == null) {
713       throw new NullPointerException("map key");
714     }
715     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
716     return map.containsKey(key) ? map.get(key) : defaultValue;
717   }
718   /**
719    *
720    *
721    * <pre>
722    * The labels of the endpoint.
723    * </pre>
724    *
725    * <code>map&lt;string, string&gt; labels = 4;</code>
726    */
727   @java.lang.Override
getLabelsOrThrow(java.lang.String key)728   public java.lang.String getLabelsOrThrow(java.lang.String key) {
729     if (key == null) {
730       throw new NullPointerException("map key");
731     }
732     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
733     if (!map.containsKey(key)) {
734       throw new java.lang.IllegalArgumentException();
735     }
736     return map.get(key);
737   }
738 
739   public static final int NETWORK_FIELD_NUMBER = 5;
740 
741   @SuppressWarnings("serial")
742   private volatile java.lang.Object network_ = "";
743   /**
744    *
745    *
746    * <pre>
747    * Required. The fully qualified URL of the network to which the IDS Endpoint is
748    * attached.
749    * </pre>
750    *
751    * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
752    *
753    * @return The network.
754    */
755   @java.lang.Override
getNetwork()756   public java.lang.String getNetwork() {
757     java.lang.Object ref = network_;
758     if (ref instanceof java.lang.String) {
759       return (java.lang.String) ref;
760     } else {
761       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
762       java.lang.String s = bs.toStringUtf8();
763       network_ = s;
764       return s;
765     }
766   }
767   /**
768    *
769    *
770    * <pre>
771    * Required. The fully qualified URL of the network to which the IDS Endpoint is
772    * attached.
773    * </pre>
774    *
775    * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
776    *
777    * @return The bytes for network.
778    */
779   @java.lang.Override
getNetworkBytes()780   public com.google.protobuf.ByteString getNetworkBytes() {
781     java.lang.Object ref = network_;
782     if (ref instanceof java.lang.String) {
783       com.google.protobuf.ByteString b =
784           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
785       network_ = b;
786       return b;
787     } else {
788       return (com.google.protobuf.ByteString) ref;
789     }
790   }
791 
792   public static final int ENDPOINT_FORWARDING_RULE_FIELD_NUMBER = 6;
793 
794   @SuppressWarnings("serial")
795   private volatile java.lang.Object endpointForwardingRule_ = "";
796   /**
797    *
798    *
799    * <pre>
800    * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
801    * </pre>
802    *
803    * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
804    *
805    * @return The endpointForwardingRule.
806    */
807   @java.lang.Override
getEndpointForwardingRule()808   public java.lang.String getEndpointForwardingRule() {
809     java.lang.Object ref = endpointForwardingRule_;
810     if (ref instanceof java.lang.String) {
811       return (java.lang.String) ref;
812     } else {
813       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
814       java.lang.String s = bs.toStringUtf8();
815       endpointForwardingRule_ = s;
816       return s;
817     }
818   }
819   /**
820    *
821    *
822    * <pre>
823    * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
824    * </pre>
825    *
826    * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
827    *
828    * @return The bytes for endpointForwardingRule.
829    */
830   @java.lang.Override
getEndpointForwardingRuleBytes()831   public com.google.protobuf.ByteString getEndpointForwardingRuleBytes() {
832     java.lang.Object ref = endpointForwardingRule_;
833     if (ref instanceof java.lang.String) {
834       com.google.protobuf.ByteString b =
835           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
836       endpointForwardingRule_ = b;
837       return b;
838     } else {
839       return (com.google.protobuf.ByteString) ref;
840     }
841   }
842 
843   public static final int ENDPOINT_IP_FIELD_NUMBER = 7;
844 
845   @SuppressWarnings("serial")
846   private volatile java.lang.Object endpointIp_ = "";
847   /**
848    *
849    *
850    * <pre>
851    * Output only. The IP address of the IDS Endpoint's ILB.
852    * </pre>
853    *
854    * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
855    *
856    * @return The endpointIp.
857    */
858   @java.lang.Override
getEndpointIp()859   public java.lang.String getEndpointIp() {
860     java.lang.Object ref = endpointIp_;
861     if (ref instanceof java.lang.String) {
862       return (java.lang.String) ref;
863     } else {
864       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
865       java.lang.String s = bs.toStringUtf8();
866       endpointIp_ = s;
867       return s;
868     }
869   }
870   /**
871    *
872    *
873    * <pre>
874    * Output only. The IP address of the IDS Endpoint's ILB.
875    * </pre>
876    *
877    * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
878    *
879    * @return The bytes for endpointIp.
880    */
881   @java.lang.Override
getEndpointIpBytes()882   public com.google.protobuf.ByteString getEndpointIpBytes() {
883     java.lang.Object ref = endpointIp_;
884     if (ref instanceof java.lang.String) {
885       com.google.protobuf.ByteString b =
886           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
887       endpointIp_ = b;
888       return b;
889     } else {
890       return (com.google.protobuf.ByteString) ref;
891     }
892   }
893 
894   public static final int DESCRIPTION_FIELD_NUMBER = 8;
895 
896   @SuppressWarnings("serial")
897   private volatile java.lang.Object description_ = "";
898   /**
899    *
900    *
901    * <pre>
902    * User-provided description of the endpoint
903    * </pre>
904    *
905    * <code>string description = 8;</code>
906    *
907    * @return The description.
908    */
909   @java.lang.Override
getDescription()910   public java.lang.String getDescription() {
911     java.lang.Object ref = description_;
912     if (ref instanceof java.lang.String) {
913       return (java.lang.String) ref;
914     } else {
915       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
916       java.lang.String s = bs.toStringUtf8();
917       description_ = s;
918       return s;
919     }
920   }
921   /**
922    *
923    *
924    * <pre>
925    * User-provided description of the endpoint
926    * </pre>
927    *
928    * <code>string description = 8;</code>
929    *
930    * @return The bytes for description.
931    */
932   @java.lang.Override
getDescriptionBytes()933   public com.google.protobuf.ByteString getDescriptionBytes() {
934     java.lang.Object ref = description_;
935     if (ref instanceof java.lang.String) {
936       com.google.protobuf.ByteString b =
937           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
938       description_ = b;
939       return b;
940     } else {
941       return (com.google.protobuf.ByteString) ref;
942     }
943   }
944 
945   public static final int SEVERITY_FIELD_NUMBER = 9;
946   private int severity_ = 0;
947   /**
948    *
949    *
950    * <pre>
951    * Required. Lowest threat severity that this endpoint will alert on.
952    * </pre>
953    *
954    * <code>
955    * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
956    * </code>
957    *
958    * @return The enum numeric value on the wire for severity.
959    */
960   @java.lang.Override
getSeverityValue()961   public int getSeverityValue() {
962     return severity_;
963   }
964   /**
965    *
966    *
967    * <pre>
968    * Required. Lowest threat severity that this endpoint will alert on.
969    * </pre>
970    *
971    * <code>
972    * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
973    * </code>
974    *
975    * @return The severity.
976    */
977   @java.lang.Override
getSeverity()978   public com.google.cloud.ids.v1.Endpoint.Severity getSeverity() {
979     com.google.cloud.ids.v1.Endpoint.Severity result =
980         com.google.cloud.ids.v1.Endpoint.Severity.forNumber(severity_);
981     return result == null ? com.google.cloud.ids.v1.Endpoint.Severity.UNRECOGNIZED : result;
982   }
983 
984   public static final int STATE_FIELD_NUMBER = 12;
985   private int state_ = 0;
986   /**
987    *
988    *
989    * <pre>
990    * Output only. Current state of the endpoint.
991    * </pre>
992    *
993    * <code>
994    * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
995    * </code>
996    *
997    * @return The enum numeric value on the wire for state.
998    */
999   @java.lang.Override
getStateValue()1000   public int getStateValue() {
1001     return state_;
1002   }
1003   /**
1004    *
1005    *
1006    * <pre>
1007    * Output only. Current state of the endpoint.
1008    * </pre>
1009    *
1010    * <code>
1011    * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
1012    * </code>
1013    *
1014    * @return The state.
1015    */
1016   @java.lang.Override
getState()1017   public com.google.cloud.ids.v1.Endpoint.State getState() {
1018     com.google.cloud.ids.v1.Endpoint.State result =
1019         com.google.cloud.ids.v1.Endpoint.State.forNumber(state_);
1020     return result == null ? com.google.cloud.ids.v1.Endpoint.State.UNRECOGNIZED : result;
1021   }
1022 
1023   public static final int TRAFFIC_LOGS_FIELD_NUMBER = 13;
1024   private boolean trafficLogs_ = false;
1025   /**
1026    *
1027    *
1028    * <pre>
1029    * Whether the endpoint should report traffic logs in addition to threat logs.
1030    * </pre>
1031    *
1032    * <code>bool traffic_logs = 13;</code>
1033    *
1034    * @return The trafficLogs.
1035    */
1036   @java.lang.Override
getTrafficLogs()1037   public boolean getTrafficLogs() {
1038     return trafficLogs_;
1039   }
1040 
1041   private byte memoizedIsInitialized = -1;
1042 
1043   @java.lang.Override
isInitialized()1044   public final boolean isInitialized() {
1045     byte isInitialized = memoizedIsInitialized;
1046     if (isInitialized == 1) return true;
1047     if (isInitialized == 0) return false;
1048 
1049     memoizedIsInitialized = 1;
1050     return true;
1051   }
1052 
1053   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1054   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1055     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1056       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1057     }
1058     if (createTime_ != null) {
1059       output.writeMessage(2, getCreateTime());
1060     }
1061     if (updateTime_ != null) {
1062       output.writeMessage(3, getUpdateTime());
1063     }
1064     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1065         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
1066     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
1067       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_);
1068     }
1069     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointForwardingRule_)) {
1070       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, endpointForwardingRule_);
1071     }
1072     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointIp_)) {
1073       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, endpointIp_);
1074     }
1075     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1076       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_);
1077     }
1078     if (severity_ != com.google.cloud.ids.v1.Endpoint.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
1079       output.writeEnum(9, severity_);
1080     }
1081     if (state_ != com.google.cloud.ids.v1.Endpoint.State.STATE_UNSPECIFIED.getNumber()) {
1082       output.writeEnum(12, state_);
1083     }
1084     if (trafficLogs_ != false) {
1085       output.writeBool(13, trafficLogs_);
1086     }
1087     getUnknownFields().writeTo(output);
1088   }
1089 
1090   @java.lang.Override
getSerializedSize()1091   public int getSerializedSize() {
1092     int size = memoizedSize;
1093     if (size != -1) return size;
1094 
1095     size = 0;
1096     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1097       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1098     }
1099     if (createTime_ != null) {
1100       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
1101     }
1102     if (updateTime_ != null) {
1103       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
1104     }
1105     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1106         internalGetLabels().getMap().entrySet()) {
1107       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1108           LabelsDefaultEntryHolder.defaultEntry
1109               .newBuilderForType()
1110               .setKey(entry.getKey())
1111               .setValue(entry.getValue())
1112               .build();
1113       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
1114     }
1115     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
1116       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_);
1117     }
1118     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointForwardingRule_)) {
1119       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, endpointForwardingRule_);
1120     }
1121     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointIp_)) {
1122       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, endpointIp_);
1123     }
1124     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1125       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_);
1126     }
1127     if (severity_ != com.google.cloud.ids.v1.Endpoint.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
1128       size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, severity_);
1129     }
1130     if (state_ != com.google.cloud.ids.v1.Endpoint.State.STATE_UNSPECIFIED.getNumber()) {
1131       size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, state_);
1132     }
1133     if (trafficLogs_ != false) {
1134       size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, trafficLogs_);
1135     }
1136     size += getUnknownFields().getSerializedSize();
1137     memoizedSize = size;
1138     return size;
1139   }
1140 
1141   @java.lang.Override
equals(final java.lang.Object obj)1142   public boolean equals(final java.lang.Object obj) {
1143     if (obj == this) {
1144       return true;
1145     }
1146     if (!(obj instanceof com.google.cloud.ids.v1.Endpoint)) {
1147       return super.equals(obj);
1148     }
1149     com.google.cloud.ids.v1.Endpoint other = (com.google.cloud.ids.v1.Endpoint) obj;
1150 
1151     if (!getName().equals(other.getName())) return false;
1152     if (hasCreateTime() != other.hasCreateTime()) return false;
1153     if (hasCreateTime()) {
1154       if (!getCreateTime().equals(other.getCreateTime())) return false;
1155     }
1156     if (hasUpdateTime() != other.hasUpdateTime()) return false;
1157     if (hasUpdateTime()) {
1158       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
1159     }
1160     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
1161     if (!getNetwork().equals(other.getNetwork())) return false;
1162     if (!getEndpointForwardingRule().equals(other.getEndpointForwardingRule())) return false;
1163     if (!getEndpointIp().equals(other.getEndpointIp())) return false;
1164     if (!getDescription().equals(other.getDescription())) return false;
1165     if (severity_ != other.severity_) return false;
1166     if (state_ != other.state_) return false;
1167     if (getTrafficLogs() != other.getTrafficLogs()) return false;
1168     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1169     return true;
1170   }
1171 
1172   @java.lang.Override
hashCode()1173   public int hashCode() {
1174     if (memoizedHashCode != 0) {
1175       return memoizedHashCode;
1176     }
1177     int hash = 41;
1178     hash = (19 * hash) + getDescriptor().hashCode();
1179     hash = (37 * hash) + NAME_FIELD_NUMBER;
1180     hash = (53 * hash) + getName().hashCode();
1181     if (hasCreateTime()) {
1182       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1183       hash = (53 * hash) + getCreateTime().hashCode();
1184     }
1185     if (hasUpdateTime()) {
1186       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1187       hash = (53 * hash) + getUpdateTime().hashCode();
1188     }
1189     if (!internalGetLabels().getMap().isEmpty()) {
1190       hash = (37 * hash) + LABELS_FIELD_NUMBER;
1191       hash = (53 * hash) + internalGetLabels().hashCode();
1192     }
1193     hash = (37 * hash) + NETWORK_FIELD_NUMBER;
1194     hash = (53 * hash) + getNetwork().hashCode();
1195     hash = (37 * hash) + ENDPOINT_FORWARDING_RULE_FIELD_NUMBER;
1196     hash = (53 * hash) + getEndpointForwardingRule().hashCode();
1197     hash = (37 * hash) + ENDPOINT_IP_FIELD_NUMBER;
1198     hash = (53 * hash) + getEndpointIp().hashCode();
1199     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1200     hash = (53 * hash) + getDescription().hashCode();
1201     hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
1202     hash = (53 * hash) + severity_;
1203     hash = (37 * hash) + STATE_FIELD_NUMBER;
1204     hash = (53 * hash) + state_;
1205     hash = (37 * hash) + TRAFFIC_LOGS_FIELD_NUMBER;
1206     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrafficLogs());
1207     hash = (29 * hash) + getUnknownFields().hashCode();
1208     memoizedHashCode = hash;
1209     return hash;
1210   }
1211 
parseFrom(java.nio.ByteBuffer data)1212   public static com.google.cloud.ids.v1.Endpoint parseFrom(java.nio.ByteBuffer data)
1213       throws com.google.protobuf.InvalidProtocolBufferException {
1214     return PARSER.parseFrom(data);
1215   }
1216 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1217   public static com.google.cloud.ids.v1.Endpoint parseFrom(
1218       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1219       throws com.google.protobuf.InvalidProtocolBufferException {
1220     return PARSER.parseFrom(data, extensionRegistry);
1221   }
1222 
parseFrom(com.google.protobuf.ByteString data)1223   public static com.google.cloud.ids.v1.Endpoint parseFrom(com.google.protobuf.ByteString data)
1224       throws com.google.protobuf.InvalidProtocolBufferException {
1225     return PARSER.parseFrom(data);
1226   }
1227 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1228   public static com.google.cloud.ids.v1.Endpoint parseFrom(
1229       com.google.protobuf.ByteString data,
1230       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1231       throws com.google.protobuf.InvalidProtocolBufferException {
1232     return PARSER.parseFrom(data, extensionRegistry);
1233   }
1234 
parseFrom(byte[] data)1235   public static com.google.cloud.ids.v1.Endpoint parseFrom(byte[] data)
1236       throws com.google.protobuf.InvalidProtocolBufferException {
1237     return PARSER.parseFrom(data);
1238   }
1239 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1240   public static com.google.cloud.ids.v1.Endpoint parseFrom(
1241       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1242       throws com.google.protobuf.InvalidProtocolBufferException {
1243     return PARSER.parseFrom(data, extensionRegistry);
1244   }
1245 
parseFrom(java.io.InputStream input)1246   public static com.google.cloud.ids.v1.Endpoint parseFrom(java.io.InputStream input)
1247       throws java.io.IOException {
1248     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1249   }
1250 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1251   public static com.google.cloud.ids.v1.Endpoint parseFrom(
1252       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1253       throws java.io.IOException {
1254     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1255         PARSER, input, extensionRegistry);
1256   }
1257 
parseDelimitedFrom(java.io.InputStream input)1258   public static com.google.cloud.ids.v1.Endpoint parseDelimitedFrom(java.io.InputStream input)
1259       throws java.io.IOException {
1260     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1261   }
1262 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1263   public static com.google.cloud.ids.v1.Endpoint parseDelimitedFrom(
1264       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1265       throws java.io.IOException {
1266     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1267         PARSER, input, extensionRegistry);
1268   }
1269 
parseFrom( com.google.protobuf.CodedInputStream input)1270   public static com.google.cloud.ids.v1.Endpoint parseFrom(
1271       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1272     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1273   }
1274 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1275   public static com.google.cloud.ids.v1.Endpoint parseFrom(
1276       com.google.protobuf.CodedInputStream input,
1277       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1278       throws java.io.IOException {
1279     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1280         PARSER, input, extensionRegistry);
1281   }
1282 
1283   @java.lang.Override
newBuilderForType()1284   public Builder newBuilderForType() {
1285     return newBuilder();
1286   }
1287 
newBuilder()1288   public static Builder newBuilder() {
1289     return DEFAULT_INSTANCE.toBuilder();
1290   }
1291 
newBuilder(com.google.cloud.ids.v1.Endpoint prototype)1292   public static Builder newBuilder(com.google.cloud.ids.v1.Endpoint prototype) {
1293     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1294   }
1295 
1296   @java.lang.Override
toBuilder()1297   public Builder toBuilder() {
1298     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1299   }
1300 
1301   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1302   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1303     Builder builder = new Builder(parent);
1304     return builder;
1305   }
1306   /**
1307    *
1308    *
1309    * <pre>
1310    * Endpoint describes a single IDS endpoint. It defines a forwarding rule to
1311    * which packets can be sent for IDS inspection.
1312    * </pre>
1313    *
1314    * Protobuf type {@code google.cloud.ids.v1.Endpoint}
1315    */
1316   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1317       implements
1318       // @@protoc_insertion_point(builder_implements:google.cloud.ids.v1.Endpoint)
1319       com.google.cloud.ids.v1.EndpointOrBuilder {
getDescriptor()1320     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1321       return com.google.cloud.ids.v1.IdsProto
1322           .internal_static_google_cloud_ids_v1_Endpoint_descriptor;
1323     }
1324 
1325     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)1326     protected com.google.protobuf.MapField internalGetMapField(int number) {
1327       switch (number) {
1328         case 4:
1329           return internalGetLabels();
1330         default:
1331           throw new RuntimeException("Invalid map field number: " + number);
1332       }
1333     }
1334 
1335     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)1336     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
1337       switch (number) {
1338         case 4:
1339           return internalGetMutableLabels();
1340         default:
1341           throw new RuntimeException("Invalid map field number: " + number);
1342       }
1343     }
1344 
1345     @java.lang.Override
1346     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1347         internalGetFieldAccessorTable() {
1348       return com.google.cloud.ids.v1.IdsProto
1349           .internal_static_google_cloud_ids_v1_Endpoint_fieldAccessorTable
1350           .ensureFieldAccessorsInitialized(
1351               com.google.cloud.ids.v1.Endpoint.class,
1352               com.google.cloud.ids.v1.Endpoint.Builder.class);
1353     }
1354 
1355     // Construct using com.google.cloud.ids.v1.Endpoint.newBuilder()
Builder()1356     private Builder() {}
1357 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1358     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1359       super(parent);
1360     }
1361 
1362     @java.lang.Override
clear()1363     public Builder clear() {
1364       super.clear();
1365       bitField0_ = 0;
1366       name_ = "";
1367       createTime_ = null;
1368       if (createTimeBuilder_ != null) {
1369         createTimeBuilder_.dispose();
1370         createTimeBuilder_ = null;
1371       }
1372       updateTime_ = null;
1373       if (updateTimeBuilder_ != null) {
1374         updateTimeBuilder_.dispose();
1375         updateTimeBuilder_ = null;
1376       }
1377       internalGetMutableLabels().clear();
1378       network_ = "";
1379       endpointForwardingRule_ = "";
1380       endpointIp_ = "";
1381       description_ = "";
1382       severity_ = 0;
1383       state_ = 0;
1384       trafficLogs_ = false;
1385       return this;
1386     }
1387 
1388     @java.lang.Override
getDescriptorForType()1389     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1390       return com.google.cloud.ids.v1.IdsProto
1391           .internal_static_google_cloud_ids_v1_Endpoint_descriptor;
1392     }
1393 
1394     @java.lang.Override
getDefaultInstanceForType()1395     public com.google.cloud.ids.v1.Endpoint getDefaultInstanceForType() {
1396       return com.google.cloud.ids.v1.Endpoint.getDefaultInstance();
1397     }
1398 
1399     @java.lang.Override
build()1400     public com.google.cloud.ids.v1.Endpoint build() {
1401       com.google.cloud.ids.v1.Endpoint result = buildPartial();
1402       if (!result.isInitialized()) {
1403         throw newUninitializedMessageException(result);
1404       }
1405       return result;
1406     }
1407 
1408     @java.lang.Override
buildPartial()1409     public com.google.cloud.ids.v1.Endpoint buildPartial() {
1410       com.google.cloud.ids.v1.Endpoint result = new com.google.cloud.ids.v1.Endpoint(this);
1411       if (bitField0_ != 0) {
1412         buildPartial0(result);
1413       }
1414       onBuilt();
1415       return result;
1416     }
1417 
buildPartial0(com.google.cloud.ids.v1.Endpoint result)1418     private void buildPartial0(com.google.cloud.ids.v1.Endpoint result) {
1419       int from_bitField0_ = bitField0_;
1420       if (((from_bitField0_ & 0x00000001) != 0)) {
1421         result.name_ = name_;
1422       }
1423       if (((from_bitField0_ & 0x00000002) != 0)) {
1424         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1425       }
1426       if (((from_bitField0_ & 0x00000004) != 0)) {
1427         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
1428       }
1429       if (((from_bitField0_ & 0x00000008) != 0)) {
1430         result.labels_ = internalGetLabels();
1431         result.labels_.makeImmutable();
1432       }
1433       if (((from_bitField0_ & 0x00000010) != 0)) {
1434         result.network_ = network_;
1435       }
1436       if (((from_bitField0_ & 0x00000020) != 0)) {
1437         result.endpointForwardingRule_ = endpointForwardingRule_;
1438       }
1439       if (((from_bitField0_ & 0x00000040) != 0)) {
1440         result.endpointIp_ = endpointIp_;
1441       }
1442       if (((from_bitField0_ & 0x00000080) != 0)) {
1443         result.description_ = description_;
1444       }
1445       if (((from_bitField0_ & 0x00000100) != 0)) {
1446         result.severity_ = severity_;
1447       }
1448       if (((from_bitField0_ & 0x00000200) != 0)) {
1449         result.state_ = state_;
1450       }
1451       if (((from_bitField0_ & 0x00000400) != 0)) {
1452         result.trafficLogs_ = trafficLogs_;
1453       }
1454     }
1455 
1456     @java.lang.Override
clone()1457     public Builder clone() {
1458       return super.clone();
1459     }
1460 
1461     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1462     public Builder setField(
1463         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1464       return super.setField(field, value);
1465     }
1466 
1467     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1468     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1469       return super.clearField(field);
1470     }
1471 
1472     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1473     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1474       return super.clearOneof(oneof);
1475     }
1476 
1477     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1478     public Builder setRepeatedField(
1479         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1480       return super.setRepeatedField(field, index, value);
1481     }
1482 
1483     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1484     public Builder addRepeatedField(
1485         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1486       return super.addRepeatedField(field, value);
1487     }
1488 
1489     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1490     public Builder mergeFrom(com.google.protobuf.Message other) {
1491       if (other instanceof com.google.cloud.ids.v1.Endpoint) {
1492         return mergeFrom((com.google.cloud.ids.v1.Endpoint) other);
1493       } else {
1494         super.mergeFrom(other);
1495         return this;
1496       }
1497     }
1498 
mergeFrom(com.google.cloud.ids.v1.Endpoint other)1499     public Builder mergeFrom(com.google.cloud.ids.v1.Endpoint other) {
1500       if (other == com.google.cloud.ids.v1.Endpoint.getDefaultInstance()) return this;
1501       if (!other.getName().isEmpty()) {
1502         name_ = other.name_;
1503         bitField0_ |= 0x00000001;
1504         onChanged();
1505       }
1506       if (other.hasCreateTime()) {
1507         mergeCreateTime(other.getCreateTime());
1508       }
1509       if (other.hasUpdateTime()) {
1510         mergeUpdateTime(other.getUpdateTime());
1511       }
1512       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
1513       bitField0_ |= 0x00000008;
1514       if (!other.getNetwork().isEmpty()) {
1515         network_ = other.network_;
1516         bitField0_ |= 0x00000010;
1517         onChanged();
1518       }
1519       if (!other.getEndpointForwardingRule().isEmpty()) {
1520         endpointForwardingRule_ = other.endpointForwardingRule_;
1521         bitField0_ |= 0x00000020;
1522         onChanged();
1523       }
1524       if (!other.getEndpointIp().isEmpty()) {
1525         endpointIp_ = other.endpointIp_;
1526         bitField0_ |= 0x00000040;
1527         onChanged();
1528       }
1529       if (!other.getDescription().isEmpty()) {
1530         description_ = other.description_;
1531         bitField0_ |= 0x00000080;
1532         onChanged();
1533       }
1534       if (other.severity_ != 0) {
1535         setSeverityValue(other.getSeverityValue());
1536       }
1537       if (other.state_ != 0) {
1538         setStateValue(other.getStateValue());
1539       }
1540       if (other.getTrafficLogs() != false) {
1541         setTrafficLogs(other.getTrafficLogs());
1542       }
1543       this.mergeUnknownFields(other.getUnknownFields());
1544       onChanged();
1545       return this;
1546     }
1547 
1548     @java.lang.Override
isInitialized()1549     public final boolean isInitialized() {
1550       return true;
1551     }
1552 
1553     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1554     public Builder mergeFrom(
1555         com.google.protobuf.CodedInputStream input,
1556         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1557         throws java.io.IOException {
1558       if (extensionRegistry == null) {
1559         throw new java.lang.NullPointerException();
1560       }
1561       try {
1562         boolean done = false;
1563         while (!done) {
1564           int tag = input.readTag();
1565           switch (tag) {
1566             case 0:
1567               done = true;
1568               break;
1569             case 10:
1570               {
1571                 name_ = input.readStringRequireUtf8();
1572                 bitField0_ |= 0x00000001;
1573                 break;
1574               } // case 10
1575             case 18:
1576               {
1577                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1578                 bitField0_ |= 0x00000002;
1579                 break;
1580               } // case 18
1581             case 26:
1582               {
1583                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1584                 bitField0_ |= 0x00000004;
1585                 break;
1586               } // case 26
1587             case 34:
1588               {
1589                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1590                     input.readMessage(
1591                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
1592                         extensionRegistry);
1593                 internalGetMutableLabels()
1594                     .getMutableMap()
1595                     .put(labels__.getKey(), labels__.getValue());
1596                 bitField0_ |= 0x00000008;
1597                 break;
1598               } // case 34
1599             case 42:
1600               {
1601                 network_ = input.readStringRequireUtf8();
1602                 bitField0_ |= 0x00000010;
1603                 break;
1604               } // case 42
1605             case 50:
1606               {
1607                 endpointForwardingRule_ = input.readStringRequireUtf8();
1608                 bitField0_ |= 0x00000020;
1609                 break;
1610               } // case 50
1611             case 58:
1612               {
1613                 endpointIp_ = input.readStringRequireUtf8();
1614                 bitField0_ |= 0x00000040;
1615                 break;
1616               } // case 58
1617             case 66:
1618               {
1619                 description_ = input.readStringRequireUtf8();
1620                 bitField0_ |= 0x00000080;
1621                 break;
1622               } // case 66
1623             case 72:
1624               {
1625                 severity_ = input.readEnum();
1626                 bitField0_ |= 0x00000100;
1627                 break;
1628               } // case 72
1629             case 96:
1630               {
1631                 state_ = input.readEnum();
1632                 bitField0_ |= 0x00000200;
1633                 break;
1634               } // case 96
1635             case 104:
1636               {
1637                 trafficLogs_ = input.readBool();
1638                 bitField0_ |= 0x00000400;
1639                 break;
1640               } // case 104
1641             default:
1642               {
1643                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1644                   done = true; // was an endgroup tag
1645                 }
1646                 break;
1647               } // default:
1648           } // switch (tag)
1649         } // while (!done)
1650       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1651         throw e.unwrapIOException();
1652       } finally {
1653         onChanged();
1654       } // finally
1655       return this;
1656     }
1657 
1658     private int bitField0_;
1659 
1660     private java.lang.Object name_ = "";
1661     /**
1662      *
1663      *
1664      * <pre>
1665      * Output only. The name of the endpoint.
1666      * </pre>
1667      *
1668      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1669      *
1670      * @return The name.
1671      */
getName()1672     public java.lang.String getName() {
1673       java.lang.Object ref = name_;
1674       if (!(ref instanceof java.lang.String)) {
1675         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1676         java.lang.String s = bs.toStringUtf8();
1677         name_ = s;
1678         return s;
1679       } else {
1680         return (java.lang.String) ref;
1681       }
1682     }
1683     /**
1684      *
1685      *
1686      * <pre>
1687      * Output only. The name of the endpoint.
1688      * </pre>
1689      *
1690      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1691      *
1692      * @return The bytes for name.
1693      */
getNameBytes()1694     public com.google.protobuf.ByteString getNameBytes() {
1695       java.lang.Object ref = name_;
1696       if (ref instanceof String) {
1697         com.google.protobuf.ByteString b =
1698             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1699         name_ = b;
1700         return b;
1701       } else {
1702         return (com.google.protobuf.ByteString) ref;
1703       }
1704     }
1705     /**
1706      *
1707      *
1708      * <pre>
1709      * Output only. The name of the endpoint.
1710      * </pre>
1711      *
1712      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1713      *
1714      * @param value The name to set.
1715      * @return This builder for chaining.
1716      */
setName(java.lang.String value)1717     public Builder setName(java.lang.String value) {
1718       if (value == null) {
1719         throw new NullPointerException();
1720       }
1721       name_ = value;
1722       bitField0_ |= 0x00000001;
1723       onChanged();
1724       return this;
1725     }
1726     /**
1727      *
1728      *
1729      * <pre>
1730      * Output only. The name of the endpoint.
1731      * </pre>
1732      *
1733      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1734      *
1735      * @return This builder for chaining.
1736      */
clearName()1737     public Builder clearName() {
1738       name_ = getDefaultInstance().getName();
1739       bitField0_ = (bitField0_ & ~0x00000001);
1740       onChanged();
1741       return this;
1742     }
1743     /**
1744      *
1745      *
1746      * <pre>
1747      * Output only. The name of the endpoint.
1748      * </pre>
1749      *
1750      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1751      *
1752      * @param value The bytes for name to set.
1753      * @return This builder for chaining.
1754      */
setNameBytes(com.google.protobuf.ByteString value)1755     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1756       if (value == null) {
1757         throw new NullPointerException();
1758       }
1759       checkByteStringIsUtf8(value);
1760       name_ = value;
1761       bitField0_ |= 0x00000001;
1762       onChanged();
1763       return this;
1764     }
1765 
1766     private com.google.protobuf.Timestamp createTime_;
1767     private com.google.protobuf.SingleFieldBuilderV3<
1768             com.google.protobuf.Timestamp,
1769             com.google.protobuf.Timestamp.Builder,
1770             com.google.protobuf.TimestampOrBuilder>
1771         createTimeBuilder_;
1772     /**
1773      *
1774      *
1775      * <pre>
1776      * Output only. The create time timestamp.
1777      * </pre>
1778      *
1779      * <code>
1780      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1781      * </code>
1782      *
1783      * @return Whether the createTime field is set.
1784      */
hasCreateTime()1785     public boolean hasCreateTime() {
1786       return ((bitField0_ & 0x00000002) != 0);
1787     }
1788     /**
1789      *
1790      *
1791      * <pre>
1792      * Output only. The create time timestamp.
1793      * </pre>
1794      *
1795      * <code>
1796      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1797      * </code>
1798      *
1799      * @return The createTime.
1800      */
getCreateTime()1801     public com.google.protobuf.Timestamp getCreateTime() {
1802       if (createTimeBuilder_ == null) {
1803         return createTime_ == null
1804             ? com.google.protobuf.Timestamp.getDefaultInstance()
1805             : createTime_;
1806       } else {
1807         return createTimeBuilder_.getMessage();
1808       }
1809     }
1810     /**
1811      *
1812      *
1813      * <pre>
1814      * Output only. The create time timestamp.
1815      * </pre>
1816      *
1817      * <code>
1818      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1819      * </code>
1820      */
setCreateTime(com.google.protobuf.Timestamp value)1821     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
1822       if (createTimeBuilder_ == null) {
1823         if (value == null) {
1824           throw new NullPointerException();
1825         }
1826         createTime_ = value;
1827       } else {
1828         createTimeBuilder_.setMessage(value);
1829       }
1830       bitField0_ |= 0x00000002;
1831       onChanged();
1832       return this;
1833     }
1834     /**
1835      *
1836      *
1837      * <pre>
1838      * Output only. The create time timestamp.
1839      * </pre>
1840      *
1841      * <code>
1842      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1843      * </code>
1844      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1845     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1846       if (createTimeBuilder_ == null) {
1847         createTime_ = builderForValue.build();
1848       } else {
1849         createTimeBuilder_.setMessage(builderForValue.build());
1850       }
1851       bitField0_ |= 0x00000002;
1852       onChanged();
1853       return this;
1854     }
1855     /**
1856      *
1857      *
1858      * <pre>
1859      * Output only. The create time timestamp.
1860      * </pre>
1861      *
1862      * <code>
1863      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1864      * </code>
1865      */
mergeCreateTime(com.google.protobuf.Timestamp value)1866     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
1867       if (createTimeBuilder_ == null) {
1868         if (((bitField0_ & 0x00000002) != 0)
1869             && createTime_ != null
1870             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1871           getCreateTimeBuilder().mergeFrom(value);
1872         } else {
1873           createTime_ = value;
1874         }
1875       } else {
1876         createTimeBuilder_.mergeFrom(value);
1877       }
1878       bitField0_ |= 0x00000002;
1879       onChanged();
1880       return this;
1881     }
1882     /**
1883      *
1884      *
1885      * <pre>
1886      * Output only. The create time timestamp.
1887      * </pre>
1888      *
1889      * <code>
1890      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1891      * </code>
1892      */
clearCreateTime()1893     public Builder clearCreateTime() {
1894       bitField0_ = (bitField0_ & ~0x00000002);
1895       createTime_ = null;
1896       if (createTimeBuilder_ != null) {
1897         createTimeBuilder_.dispose();
1898         createTimeBuilder_ = null;
1899       }
1900       onChanged();
1901       return this;
1902     }
1903     /**
1904      *
1905      *
1906      * <pre>
1907      * Output only. The create time timestamp.
1908      * </pre>
1909      *
1910      * <code>
1911      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1912      * </code>
1913      */
getCreateTimeBuilder()1914     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
1915       bitField0_ |= 0x00000002;
1916       onChanged();
1917       return getCreateTimeFieldBuilder().getBuilder();
1918     }
1919     /**
1920      *
1921      *
1922      * <pre>
1923      * Output only. The create time timestamp.
1924      * </pre>
1925      *
1926      * <code>
1927      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1928      * </code>
1929      */
getCreateTimeOrBuilder()1930     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
1931       if (createTimeBuilder_ != null) {
1932         return createTimeBuilder_.getMessageOrBuilder();
1933       } else {
1934         return createTime_ == null
1935             ? com.google.protobuf.Timestamp.getDefaultInstance()
1936             : createTime_;
1937       }
1938     }
1939     /**
1940      *
1941      *
1942      * <pre>
1943      * Output only. The create time timestamp.
1944      * </pre>
1945      *
1946      * <code>
1947      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1948      * </code>
1949      */
1950     private com.google.protobuf.SingleFieldBuilderV3<
1951             com.google.protobuf.Timestamp,
1952             com.google.protobuf.Timestamp.Builder,
1953             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()1954         getCreateTimeFieldBuilder() {
1955       if (createTimeBuilder_ == null) {
1956         createTimeBuilder_ =
1957             new com.google.protobuf.SingleFieldBuilderV3<
1958                 com.google.protobuf.Timestamp,
1959                 com.google.protobuf.Timestamp.Builder,
1960                 com.google.protobuf.TimestampOrBuilder>(
1961                 getCreateTime(), getParentForChildren(), isClean());
1962         createTime_ = null;
1963       }
1964       return createTimeBuilder_;
1965     }
1966 
1967     private com.google.protobuf.Timestamp updateTime_;
1968     private com.google.protobuf.SingleFieldBuilderV3<
1969             com.google.protobuf.Timestamp,
1970             com.google.protobuf.Timestamp.Builder,
1971             com.google.protobuf.TimestampOrBuilder>
1972         updateTimeBuilder_;
1973     /**
1974      *
1975      *
1976      * <pre>
1977      * Output only. The update time timestamp.
1978      * </pre>
1979      *
1980      * <code>
1981      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1982      * </code>
1983      *
1984      * @return Whether the updateTime field is set.
1985      */
hasUpdateTime()1986     public boolean hasUpdateTime() {
1987       return ((bitField0_ & 0x00000004) != 0);
1988     }
1989     /**
1990      *
1991      *
1992      * <pre>
1993      * Output only. The update time timestamp.
1994      * </pre>
1995      *
1996      * <code>
1997      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1998      * </code>
1999      *
2000      * @return The updateTime.
2001      */
getUpdateTime()2002     public com.google.protobuf.Timestamp getUpdateTime() {
2003       if (updateTimeBuilder_ == null) {
2004         return updateTime_ == null
2005             ? com.google.protobuf.Timestamp.getDefaultInstance()
2006             : updateTime_;
2007       } else {
2008         return updateTimeBuilder_.getMessage();
2009       }
2010     }
2011     /**
2012      *
2013      *
2014      * <pre>
2015      * Output only. The update time timestamp.
2016      * </pre>
2017      *
2018      * <code>
2019      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2020      * </code>
2021      */
setUpdateTime(com.google.protobuf.Timestamp value)2022     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
2023       if (updateTimeBuilder_ == null) {
2024         if (value == null) {
2025           throw new NullPointerException();
2026         }
2027         updateTime_ = value;
2028       } else {
2029         updateTimeBuilder_.setMessage(value);
2030       }
2031       bitField0_ |= 0x00000004;
2032       onChanged();
2033       return this;
2034     }
2035     /**
2036      *
2037      *
2038      * <pre>
2039      * Output only. The update time timestamp.
2040      * </pre>
2041      *
2042      * <code>
2043      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2044      * </code>
2045      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)2046     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2047       if (updateTimeBuilder_ == null) {
2048         updateTime_ = builderForValue.build();
2049       } else {
2050         updateTimeBuilder_.setMessage(builderForValue.build());
2051       }
2052       bitField0_ |= 0x00000004;
2053       onChanged();
2054       return this;
2055     }
2056     /**
2057      *
2058      *
2059      * <pre>
2060      * Output only. The update time timestamp.
2061      * </pre>
2062      *
2063      * <code>
2064      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2065      * </code>
2066      */
mergeUpdateTime(com.google.protobuf.Timestamp value)2067     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
2068       if (updateTimeBuilder_ == null) {
2069         if (((bitField0_ & 0x00000004) != 0)
2070             && updateTime_ != null
2071             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2072           getUpdateTimeBuilder().mergeFrom(value);
2073         } else {
2074           updateTime_ = value;
2075         }
2076       } else {
2077         updateTimeBuilder_.mergeFrom(value);
2078       }
2079       bitField0_ |= 0x00000004;
2080       onChanged();
2081       return this;
2082     }
2083     /**
2084      *
2085      *
2086      * <pre>
2087      * Output only. The update time timestamp.
2088      * </pre>
2089      *
2090      * <code>
2091      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2092      * </code>
2093      */
clearUpdateTime()2094     public Builder clearUpdateTime() {
2095       bitField0_ = (bitField0_ & ~0x00000004);
2096       updateTime_ = null;
2097       if (updateTimeBuilder_ != null) {
2098         updateTimeBuilder_.dispose();
2099         updateTimeBuilder_ = null;
2100       }
2101       onChanged();
2102       return this;
2103     }
2104     /**
2105      *
2106      *
2107      * <pre>
2108      * Output only. The update time timestamp.
2109      * </pre>
2110      *
2111      * <code>
2112      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2113      * </code>
2114      */
getUpdateTimeBuilder()2115     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
2116       bitField0_ |= 0x00000004;
2117       onChanged();
2118       return getUpdateTimeFieldBuilder().getBuilder();
2119     }
2120     /**
2121      *
2122      *
2123      * <pre>
2124      * Output only. The update time timestamp.
2125      * </pre>
2126      *
2127      * <code>
2128      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2129      * </code>
2130      */
getUpdateTimeOrBuilder()2131     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
2132       if (updateTimeBuilder_ != null) {
2133         return updateTimeBuilder_.getMessageOrBuilder();
2134       } else {
2135         return updateTime_ == null
2136             ? com.google.protobuf.Timestamp.getDefaultInstance()
2137             : updateTime_;
2138       }
2139     }
2140     /**
2141      *
2142      *
2143      * <pre>
2144      * Output only. The update time timestamp.
2145      * </pre>
2146      *
2147      * <code>
2148      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2149      * </code>
2150      */
2151     private com.google.protobuf.SingleFieldBuilderV3<
2152             com.google.protobuf.Timestamp,
2153             com.google.protobuf.Timestamp.Builder,
2154             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()2155         getUpdateTimeFieldBuilder() {
2156       if (updateTimeBuilder_ == null) {
2157         updateTimeBuilder_ =
2158             new com.google.protobuf.SingleFieldBuilderV3<
2159                 com.google.protobuf.Timestamp,
2160                 com.google.protobuf.Timestamp.Builder,
2161                 com.google.protobuf.TimestampOrBuilder>(
2162                 getUpdateTime(), getParentForChildren(), isClean());
2163         updateTime_ = null;
2164       }
2165       return updateTimeBuilder_;
2166     }
2167 
2168     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
2169 
internalGetLabels()2170     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
2171       if (labels_ == null) {
2172         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
2173       }
2174       return labels_;
2175     }
2176 
2177     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()2178         internalGetMutableLabels() {
2179       if (labels_ == null) {
2180         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
2181       }
2182       if (!labels_.isMutable()) {
2183         labels_ = labels_.copy();
2184       }
2185       bitField0_ |= 0x00000008;
2186       onChanged();
2187       return labels_;
2188     }
2189 
getLabelsCount()2190     public int getLabelsCount() {
2191       return internalGetLabels().getMap().size();
2192     }
2193     /**
2194      *
2195      *
2196      * <pre>
2197      * The labels of the endpoint.
2198      * </pre>
2199      *
2200      * <code>map&lt;string, string&gt; labels = 4;</code>
2201      */
2202     @java.lang.Override
containsLabels(java.lang.String key)2203     public boolean containsLabels(java.lang.String key) {
2204       if (key == null) {
2205         throw new NullPointerException("map key");
2206       }
2207       return internalGetLabels().getMap().containsKey(key);
2208     }
2209     /** Use {@link #getLabelsMap()} instead. */
2210     @java.lang.Override
2211     @java.lang.Deprecated
getLabels()2212     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
2213       return getLabelsMap();
2214     }
2215     /**
2216      *
2217      *
2218      * <pre>
2219      * The labels of the endpoint.
2220      * </pre>
2221      *
2222      * <code>map&lt;string, string&gt; labels = 4;</code>
2223      */
2224     @java.lang.Override
getLabelsMap()2225     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
2226       return internalGetLabels().getMap();
2227     }
2228     /**
2229      *
2230      *
2231      * <pre>
2232      * The labels of the endpoint.
2233      * </pre>
2234      *
2235      * <code>map&lt;string, string&gt; labels = 4;</code>
2236      */
2237     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)2238     public /* nullable */ java.lang.String getLabelsOrDefault(
2239         java.lang.String key,
2240         /* nullable */
2241         java.lang.String defaultValue) {
2242       if (key == null) {
2243         throw new NullPointerException("map key");
2244       }
2245       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
2246       return map.containsKey(key) ? map.get(key) : defaultValue;
2247     }
2248     /**
2249      *
2250      *
2251      * <pre>
2252      * The labels of the endpoint.
2253      * </pre>
2254      *
2255      * <code>map&lt;string, string&gt; labels = 4;</code>
2256      */
2257     @java.lang.Override
getLabelsOrThrow(java.lang.String key)2258     public java.lang.String getLabelsOrThrow(java.lang.String key) {
2259       if (key == null) {
2260         throw new NullPointerException("map key");
2261       }
2262       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
2263       if (!map.containsKey(key)) {
2264         throw new java.lang.IllegalArgumentException();
2265       }
2266       return map.get(key);
2267     }
2268 
clearLabels()2269     public Builder clearLabels() {
2270       bitField0_ = (bitField0_ & ~0x00000008);
2271       internalGetMutableLabels().getMutableMap().clear();
2272       return this;
2273     }
2274     /**
2275      *
2276      *
2277      * <pre>
2278      * The labels of the endpoint.
2279      * </pre>
2280      *
2281      * <code>map&lt;string, string&gt; labels = 4;</code>
2282      */
removeLabels(java.lang.String key)2283     public Builder removeLabels(java.lang.String key) {
2284       if (key == null) {
2285         throw new NullPointerException("map key");
2286       }
2287       internalGetMutableLabels().getMutableMap().remove(key);
2288       return this;
2289     }
2290     /** Use alternate mutation accessors instead. */
2291     @java.lang.Deprecated
getMutableLabels()2292     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
2293       bitField0_ |= 0x00000008;
2294       return internalGetMutableLabels().getMutableMap();
2295     }
2296     /**
2297      *
2298      *
2299      * <pre>
2300      * The labels of the endpoint.
2301      * </pre>
2302      *
2303      * <code>map&lt;string, string&gt; labels = 4;</code>
2304      */
putLabels(java.lang.String key, java.lang.String value)2305     public Builder putLabels(java.lang.String key, java.lang.String value) {
2306       if (key == null) {
2307         throw new NullPointerException("map key");
2308       }
2309       if (value == null) {
2310         throw new NullPointerException("map value");
2311       }
2312       internalGetMutableLabels().getMutableMap().put(key, value);
2313       bitField0_ |= 0x00000008;
2314       return this;
2315     }
2316     /**
2317      *
2318      *
2319      * <pre>
2320      * The labels of the endpoint.
2321      * </pre>
2322      *
2323      * <code>map&lt;string, string&gt; labels = 4;</code>
2324      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)2325     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
2326       internalGetMutableLabels().getMutableMap().putAll(values);
2327       bitField0_ |= 0x00000008;
2328       return this;
2329     }
2330 
2331     private java.lang.Object network_ = "";
2332     /**
2333      *
2334      *
2335      * <pre>
2336      * Required. The fully qualified URL of the network to which the IDS Endpoint is
2337      * attached.
2338      * </pre>
2339      *
2340      * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2341      *
2342      * @return The network.
2343      */
getNetwork()2344     public java.lang.String getNetwork() {
2345       java.lang.Object ref = network_;
2346       if (!(ref instanceof java.lang.String)) {
2347         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2348         java.lang.String s = bs.toStringUtf8();
2349         network_ = s;
2350         return s;
2351       } else {
2352         return (java.lang.String) ref;
2353       }
2354     }
2355     /**
2356      *
2357      *
2358      * <pre>
2359      * Required. The fully qualified URL of the network to which the IDS Endpoint is
2360      * attached.
2361      * </pre>
2362      *
2363      * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2364      *
2365      * @return The bytes for network.
2366      */
getNetworkBytes()2367     public com.google.protobuf.ByteString getNetworkBytes() {
2368       java.lang.Object ref = network_;
2369       if (ref instanceof String) {
2370         com.google.protobuf.ByteString b =
2371             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2372         network_ = b;
2373         return b;
2374       } else {
2375         return (com.google.protobuf.ByteString) ref;
2376       }
2377     }
2378     /**
2379      *
2380      *
2381      * <pre>
2382      * Required. The fully qualified URL of the network to which the IDS Endpoint is
2383      * attached.
2384      * </pre>
2385      *
2386      * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2387      *
2388      * @param value The network to set.
2389      * @return This builder for chaining.
2390      */
setNetwork(java.lang.String value)2391     public Builder setNetwork(java.lang.String value) {
2392       if (value == null) {
2393         throw new NullPointerException();
2394       }
2395       network_ = value;
2396       bitField0_ |= 0x00000010;
2397       onChanged();
2398       return this;
2399     }
2400     /**
2401      *
2402      *
2403      * <pre>
2404      * Required. The fully qualified URL of the network to which the IDS Endpoint is
2405      * attached.
2406      * </pre>
2407      *
2408      * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2409      *
2410      * @return This builder for chaining.
2411      */
clearNetwork()2412     public Builder clearNetwork() {
2413       network_ = getDefaultInstance().getNetwork();
2414       bitField0_ = (bitField0_ & ~0x00000010);
2415       onChanged();
2416       return this;
2417     }
2418     /**
2419      *
2420      *
2421      * <pre>
2422      * Required. The fully qualified URL of the network to which the IDS Endpoint is
2423      * attached.
2424      * </pre>
2425      *
2426      * <code>string network = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2427      *
2428      * @param value The bytes for network to set.
2429      * @return This builder for chaining.
2430      */
setNetworkBytes(com.google.protobuf.ByteString value)2431     public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
2432       if (value == null) {
2433         throw new NullPointerException();
2434       }
2435       checkByteStringIsUtf8(value);
2436       network_ = value;
2437       bitField0_ |= 0x00000010;
2438       onChanged();
2439       return this;
2440     }
2441 
2442     private java.lang.Object endpointForwardingRule_ = "";
2443     /**
2444      *
2445      *
2446      * <pre>
2447      * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
2448      * </pre>
2449      *
2450      * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2451      * </code>
2452      *
2453      * @return The endpointForwardingRule.
2454      */
getEndpointForwardingRule()2455     public java.lang.String getEndpointForwardingRule() {
2456       java.lang.Object ref = endpointForwardingRule_;
2457       if (!(ref instanceof java.lang.String)) {
2458         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2459         java.lang.String s = bs.toStringUtf8();
2460         endpointForwardingRule_ = s;
2461         return s;
2462       } else {
2463         return (java.lang.String) ref;
2464       }
2465     }
2466     /**
2467      *
2468      *
2469      * <pre>
2470      * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
2471      * </pre>
2472      *
2473      * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2474      * </code>
2475      *
2476      * @return The bytes for endpointForwardingRule.
2477      */
getEndpointForwardingRuleBytes()2478     public com.google.protobuf.ByteString getEndpointForwardingRuleBytes() {
2479       java.lang.Object ref = endpointForwardingRule_;
2480       if (ref instanceof String) {
2481         com.google.protobuf.ByteString b =
2482             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2483         endpointForwardingRule_ = b;
2484         return b;
2485       } else {
2486         return (com.google.protobuf.ByteString) ref;
2487       }
2488     }
2489     /**
2490      *
2491      *
2492      * <pre>
2493      * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
2494      * </pre>
2495      *
2496      * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2497      * </code>
2498      *
2499      * @param value The endpointForwardingRule to set.
2500      * @return This builder for chaining.
2501      */
setEndpointForwardingRule(java.lang.String value)2502     public Builder setEndpointForwardingRule(java.lang.String value) {
2503       if (value == null) {
2504         throw new NullPointerException();
2505       }
2506       endpointForwardingRule_ = value;
2507       bitField0_ |= 0x00000020;
2508       onChanged();
2509       return this;
2510     }
2511     /**
2512      *
2513      *
2514      * <pre>
2515      * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
2516      * </pre>
2517      *
2518      * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2519      * </code>
2520      *
2521      * @return This builder for chaining.
2522      */
clearEndpointForwardingRule()2523     public Builder clearEndpointForwardingRule() {
2524       endpointForwardingRule_ = getDefaultInstance().getEndpointForwardingRule();
2525       bitField0_ = (bitField0_ & ~0x00000020);
2526       onChanged();
2527       return this;
2528     }
2529     /**
2530      *
2531      *
2532      * <pre>
2533      * Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
2534      * </pre>
2535      *
2536      * <code>string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2537      * </code>
2538      *
2539      * @param value The bytes for endpointForwardingRule to set.
2540      * @return This builder for chaining.
2541      */
setEndpointForwardingRuleBytes(com.google.protobuf.ByteString value)2542     public Builder setEndpointForwardingRuleBytes(com.google.protobuf.ByteString value) {
2543       if (value == null) {
2544         throw new NullPointerException();
2545       }
2546       checkByteStringIsUtf8(value);
2547       endpointForwardingRule_ = value;
2548       bitField0_ |= 0x00000020;
2549       onChanged();
2550       return this;
2551     }
2552 
2553     private java.lang.Object endpointIp_ = "";
2554     /**
2555      *
2556      *
2557      * <pre>
2558      * Output only. The IP address of the IDS Endpoint's ILB.
2559      * </pre>
2560      *
2561      * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2562      *
2563      * @return The endpointIp.
2564      */
getEndpointIp()2565     public java.lang.String getEndpointIp() {
2566       java.lang.Object ref = endpointIp_;
2567       if (!(ref instanceof java.lang.String)) {
2568         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2569         java.lang.String s = bs.toStringUtf8();
2570         endpointIp_ = s;
2571         return s;
2572       } else {
2573         return (java.lang.String) ref;
2574       }
2575     }
2576     /**
2577      *
2578      *
2579      * <pre>
2580      * Output only. The IP address of the IDS Endpoint's ILB.
2581      * </pre>
2582      *
2583      * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2584      *
2585      * @return The bytes for endpointIp.
2586      */
getEndpointIpBytes()2587     public com.google.protobuf.ByteString getEndpointIpBytes() {
2588       java.lang.Object ref = endpointIp_;
2589       if (ref instanceof String) {
2590         com.google.protobuf.ByteString b =
2591             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2592         endpointIp_ = b;
2593         return b;
2594       } else {
2595         return (com.google.protobuf.ByteString) ref;
2596       }
2597     }
2598     /**
2599      *
2600      *
2601      * <pre>
2602      * Output only. The IP address of the IDS Endpoint's ILB.
2603      * </pre>
2604      *
2605      * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2606      *
2607      * @param value The endpointIp to set.
2608      * @return This builder for chaining.
2609      */
setEndpointIp(java.lang.String value)2610     public Builder setEndpointIp(java.lang.String value) {
2611       if (value == null) {
2612         throw new NullPointerException();
2613       }
2614       endpointIp_ = value;
2615       bitField0_ |= 0x00000040;
2616       onChanged();
2617       return this;
2618     }
2619     /**
2620      *
2621      *
2622      * <pre>
2623      * Output only. The IP address of the IDS Endpoint's ILB.
2624      * </pre>
2625      *
2626      * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2627      *
2628      * @return This builder for chaining.
2629      */
clearEndpointIp()2630     public Builder clearEndpointIp() {
2631       endpointIp_ = getDefaultInstance().getEndpointIp();
2632       bitField0_ = (bitField0_ & ~0x00000040);
2633       onChanged();
2634       return this;
2635     }
2636     /**
2637      *
2638      *
2639      * <pre>
2640      * Output only. The IP address of the IDS Endpoint's ILB.
2641      * </pre>
2642      *
2643      * <code>string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2644      *
2645      * @param value The bytes for endpointIp to set.
2646      * @return This builder for chaining.
2647      */
setEndpointIpBytes(com.google.protobuf.ByteString value)2648     public Builder setEndpointIpBytes(com.google.protobuf.ByteString value) {
2649       if (value == null) {
2650         throw new NullPointerException();
2651       }
2652       checkByteStringIsUtf8(value);
2653       endpointIp_ = value;
2654       bitField0_ |= 0x00000040;
2655       onChanged();
2656       return this;
2657     }
2658 
2659     private java.lang.Object description_ = "";
2660     /**
2661      *
2662      *
2663      * <pre>
2664      * User-provided description of the endpoint
2665      * </pre>
2666      *
2667      * <code>string description = 8;</code>
2668      *
2669      * @return The description.
2670      */
getDescription()2671     public java.lang.String getDescription() {
2672       java.lang.Object ref = description_;
2673       if (!(ref instanceof java.lang.String)) {
2674         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2675         java.lang.String s = bs.toStringUtf8();
2676         description_ = s;
2677         return s;
2678       } else {
2679         return (java.lang.String) ref;
2680       }
2681     }
2682     /**
2683      *
2684      *
2685      * <pre>
2686      * User-provided description of the endpoint
2687      * </pre>
2688      *
2689      * <code>string description = 8;</code>
2690      *
2691      * @return The bytes for description.
2692      */
getDescriptionBytes()2693     public com.google.protobuf.ByteString getDescriptionBytes() {
2694       java.lang.Object ref = description_;
2695       if (ref instanceof String) {
2696         com.google.protobuf.ByteString b =
2697             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2698         description_ = b;
2699         return b;
2700       } else {
2701         return (com.google.protobuf.ByteString) ref;
2702       }
2703     }
2704     /**
2705      *
2706      *
2707      * <pre>
2708      * User-provided description of the endpoint
2709      * </pre>
2710      *
2711      * <code>string description = 8;</code>
2712      *
2713      * @param value The description to set.
2714      * @return This builder for chaining.
2715      */
setDescription(java.lang.String value)2716     public Builder setDescription(java.lang.String value) {
2717       if (value == null) {
2718         throw new NullPointerException();
2719       }
2720       description_ = value;
2721       bitField0_ |= 0x00000080;
2722       onChanged();
2723       return this;
2724     }
2725     /**
2726      *
2727      *
2728      * <pre>
2729      * User-provided description of the endpoint
2730      * </pre>
2731      *
2732      * <code>string description = 8;</code>
2733      *
2734      * @return This builder for chaining.
2735      */
clearDescription()2736     public Builder clearDescription() {
2737       description_ = getDefaultInstance().getDescription();
2738       bitField0_ = (bitField0_ & ~0x00000080);
2739       onChanged();
2740       return this;
2741     }
2742     /**
2743      *
2744      *
2745      * <pre>
2746      * User-provided description of the endpoint
2747      * </pre>
2748      *
2749      * <code>string description = 8;</code>
2750      *
2751      * @param value The bytes for description to set.
2752      * @return This builder for chaining.
2753      */
setDescriptionBytes(com.google.protobuf.ByteString value)2754     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2755       if (value == null) {
2756         throw new NullPointerException();
2757       }
2758       checkByteStringIsUtf8(value);
2759       description_ = value;
2760       bitField0_ |= 0x00000080;
2761       onChanged();
2762       return this;
2763     }
2764 
2765     private int severity_ = 0;
2766     /**
2767      *
2768      *
2769      * <pre>
2770      * Required. Lowest threat severity that this endpoint will alert on.
2771      * </pre>
2772      *
2773      * <code>
2774      * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
2775      * </code>
2776      *
2777      * @return The enum numeric value on the wire for severity.
2778      */
2779     @java.lang.Override
getSeverityValue()2780     public int getSeverityValue() {
2781       return severity_;
2782     }
2783     /**
2784      *
2785      *
2786      * <pre>
2787      * Required. Lowest threat severity that this endpoint will alert on.
2788      * </pre>
2789      *
2790      * <code>
2791      * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
2792      * </code>
2793      *
2794      * @param value The enum numeric value on the wire for severity to set.
2795      * @return This builder for chaining.
2796      */
setSeverityValue(int value)2797     public Builder setSeverityValue(int value) {
2798       severity_ = value;
2799       bitField0_ |= 0x00000100;
2800       onChanged();
2801       return this;
2802     }
2803     /**
2804      *
2805      *
2806      * <pre>
2807      * Required. Lowest threat severity that this endpoint will alert on.
2808      * </pre>
2809      *
2810      * <code>
2811      * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
2812      * </code>
2813      *
2814      * @return The severity.
2815      */
2816     @java.lang.Override
getSeverity()2817     public com.google.cloud.ids.v1.Endpoint.Severity getSeverity() {
2818       com.google.cloud.ids.v1.Endpoint.Severity result =
2819           com.google.cloud.ids.v1.Endpoint.Severity.forNumber(severity_);
2820       return result == null ? com.google.cloud.ids.v1.Endpoint.Severity.UNRECOGNIZED : result;
2821     }
2822     /**
2823      *
2824      *
2825      * <pre>
2826      * Required. Lowest threat severity that this endpoint will alert on.
2827      * </pre>
2828      *
2829      * <code>
2830      * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
2831      * </code>
2832      *
2833      * @param value The severity to set.
2834      * @return This builder for chaining.
2835      */
setSeverity(com.google.cloud.ids.v1.Endpoint.Severity value)2836     public Builder setSeverity(com.google.cloud.ids.v1.Endpoint.Severity value) {
2837       if (value == null) {
2838         throw new NullPointerException();
2839       }
2840       bitField0_ |= 0x00000100;
2841       severity_ = value.getNumber();
2842       onChanged();
2843       return this;
2844     }
2845     /**
2846      *
2847      *
2848      * <pre>
2849      * Required. Lowest threat severity that this endpoint will alert on.
2850      * </pre>
2851      *
2852      * <code>
2853      * .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
2854      * </code>
2855      *
2856      * @return This builder for chaining.
2857      */
clearSeverity()2858     public Builder clearSeverity() {
2859       bitField0_ = (bitField0_ & ~0x00000100);
2860       severity_ = 0;
2861       onChanged();
2862       return this;
2863     }
2864 
2865     private int state_ = 0;
2866     /**
2867      *
2868      *
2869      * <pre>
2870      * Output only. Current state of the endpoint.
2871      * </pre>
2872      *
2873      * <code>
2874      * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2875      * </code>
2876      *
2877      * @return The enum numeric value on the wire for state.
2878      */
2879     @java.lang.Override
getStateValue()2880     public int getStateValue() {
2881       return state_;
2882     }
2883     /**
2884      *
2885      *
2886      * <pre>
2887      * Output only. Current state of the endpoint.
2888      * </pre>
2889      *
2890      * <code>
2891      * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2892      * </code>
2893      *
2894      * @param value The enum numeric value on the wire for state to set.
2895      * @return This builder for chaining.
2896      */
setStateValue(int value)2897     public Builder setStateValue(int value) {
2898       state_ = value;
2899       bitField0_ |= 0x00000200;
2900       onChanged();
2901       return this;
2902     }
2903     /**
2904      *
2905      *
2906      * <pre>
2907      * Output only. Current state of the endpoint.
2908      * </pre>
2909      *
2910      * <code>
2911      * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2912      * </code>
2913      *
2914      * @return The state.
2915      */
2916     @java.lang.Override
getState()2917     public com.google.cloud.ids.v1.Endpoint.State getState() {
2918       com.google.cloud.ids.v1.Endpoint.State result =
2919           com.google.cloud.ids.v1.Endpoint.State.forNumber(state_);
2920       return result == null ? com.google.cloud.ids.v1.Endpoint.State.UNRECOGNIZED : result;
2921     }
2922     /**
2923      *
2924      *
2925      * <pre>
2926      * Output only. Current state of the endpoint.
2927      * </pre>
2928      *
2929      * <code>
2930      * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2931      * </code>
2932      *
2933      * @param value The state to set.
2934      * @return This builder for chaining.
2935      */
setState(com.google.cloud.ids.v1.Endpoint.State value)2936     public Builder setState(com.google.cloud.ids.v1.Endpoint.State value) {
2937       if (value == null) {
2938         throw new NullPointerException();
2939       }
2940       bitField0_ |= 0x00000200;
2941       state_ = value.getNumber();
2942       onChanged();
2943       return this;
2944     }
2945     /**
2946      *
2947      *
2948      * <pre>
2949      * Output only. Current state of the endpoint.
2950      * </pre>
2951      *
2952      * <code>
2953      * .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2954      * </code>
2955      *
2956      * @return This builder for chaining.
2957      */
clearState()2958     public Builder clearState() {
2959       bitField0_ = (bitField0_ & ~0x00000200);
2960       state_ = 0;
2961       onChanged();
2962       return this;
2963     }
2964 
2965     private boolean trafficLogs_;
2966     /**
2967      *
2968      *
2969      * <pre>
2970      * Whether the endpoint should report traffic logs in addition to threat logs.
2971      * </pre>
2972      *
2973      * <code>bool traffic_logs = 13;</code>
2974      *
2975      * @return The trafficLogs.
2976      */
2977     @java.lang.Override
getTrafficLogs()2978     public boolean getTrafficLogs() {
2979       return trafficLogs_;
2980     }
2981     /**
2982      *
2983      *
2984      * <pre>
2985      * Whether the endpoint should report traffic logs in addition to threat logs.
2986      * </pre>
2987      *
2988      * <code>bool traffic_logs = 13;</code>
2989      *
2990      * @param value The trafficLogs to set.
2991      * @return This builder for chaining.
2992      */
setTrafficLogs(boolean value)2993     public Builder setTrafficLogs(boolean value) {
2994 
2995       trafficLogs_ = value;
2996       bitField0_ |= 0x00000400;
2997       onChanged();
2998       return this;
2999     }
3000     /**
3001      *
3002      *
3003      * <pre>
3004      * Whether the endpoint should report traffic logs in addition to threat logs.
3005      * </pre>
3006      *
3007      * <code>bool traffic_logs = 13;</code>
3008      *
3009      * @return This builder for chaining.
3010      */
clearTrafficLogs()3011     public Builder clearTrafficLogs() {
3012       bitField0_ = (bitField0_ & ~0x00000400);
3013       trafficLogs_ = false;
3014       onChanged();
3015       return this;
3016     }
3017 
3018     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3019     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3020       return super.setUnknownFields(unknownFields);
3021     }
3022 
3023     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3024     public final Builder mergeUnknownFields(
3025         final com.google.protobuf.UnknownFieldSet unknownFields) {
3026       return super.mergeUnknownFields(unknownFields);
3027     }
3028 
3029     // @@protoc_insertion_point(builder_scope:google.cloud.ids.v1.Endpoint)
3030   }
3031 
3032   // @@protoc_insertion_point(class_scope:google.cloud.ids.v1.Endpoint)
3033   private static final com.google.cloud.ids.v1.Endpoint DEFAULT_INSTANCE;
3034 
3035   static {
3036     DEFAULT_INSTANCE = new com.google.cloud.ids.v1.Endpoint();
3037   }
3038 
getDefaultInstance()3039   public static com.google.cloud.ids.v1.Endpoint getDefaultInstance() {
3040     return DEFAULT_INSTANCE;
3041   }
3042 
3043   private static final com.google.protobuf.Parser<Endpoint> PARSER =
3044       new com.google.protobuf.AbstractParser<Endpoint>() {
3045         @java.lang.Override
3046         public Endpoint parsePartialFrom(
3047             com.google.protobuf.CodedInputStream input,
3048             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3049             throws com.google.protobuf.InvalidProtocolBufferException {
3050           Builder builder = newBuilder();
3051           try {
3052             builder.mergeFrom(input, extensionRegistry);
3053           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3054             throw e.setUnfinishedMessage(builder.buildPartial());
3055           } catch (com.google.protobuf.UninitializedMessageException e) {
3056             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3057           } catch (java.io.IOException e) {
3058             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3059                 .setUnfinishedMessage(builder.buildPartial());
3060           }
3061           return builder.buildPartial();
3062         }
3063       };
3064 
parser()3065   public static com.google.protobuf.Parser<Endpoint> parser() {
3066     return PARSER;
3067   }
3068 
3069   @java.lang.Override
getParserForType()3070   public com.google.protobuf.Parser<Endpoint> getParserForType() {
3071     return PARSER;
3072   }
3073 
3074   @java.lang.Override
getDefaultInstanceForType()3075   public com.google.cloud.ids.v1.Endpoint getDefaultInstanceForType() {
3076     return DEFAULT_INSTANCE;
3077   }
3078 }
3079