• 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/securitycenter/v1/external_system.proto
18 
19 package com.google.cloud.securitycenter.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Representation of third party SIEM/SOAR fields within SCC.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem}
29  */
30 public final class ExternalSystem extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ExternalSystem)
33     ExternalSystemOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ExternalSystem.newBuilder() to construct.
ExternalSystem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ExternalSystem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ExternalSystem()40   private ExternalSystem() {
41     name_ = "";
42     assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY;
43     externalUid_ = "";
44     status_ = "";
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new ExternalSystem();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.securitycenter.v1.ExternalSystemProto
60         .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.securitycenter.v1.ExternalSystemProto
67         .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.securitycenter.v1.ExternalSystem.class,
70             com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class);
71   }
72 
73   public static final int NAME_FIELD_NUMBER = 1;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object name_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Full resource name of the external system, for example:
82    * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
83    * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
84    * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
85    * </pre>
86    *
87    * <code>string name = 1;</code>
88    *
89    * @return The name.
90    */
91   @java.lang.Override
getName()92   public java.lang.String getName() {
93     java.lang.Object ref = name_;
94     if (ref instanceof java.lang.String) {
95       return (java.lang.String) ref;
96     } else {
97       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
98       java.lang.String s = bs.toStringUtf8();
99       name_ = s;
100       return s;
101     }
102   }
103   /**
104    *
105    *
106    * <pre>
107    * Full resource name of the external system, for example:
108    * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
109    * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
110    * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
111    * </pre>
112    *
113    * <code>string name = 1;</code>
114    *
115    * @return The bytes for name.
116    */
117   @java.lang.Override
getNameBytes()118   public com.google.protobuf.ByteString getNameBytes() {
119     java.lang.Object ref = name_;
120     if (ref instanceof java.lang.String) {
121       com.google.protobuf.ByteString b =
122           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
123       name_ = b;
124       return b;
125     } else {
126       return (com.google.protobuf.ByteString) ref;
127     }
128   }
129 
130   public static final int ASSIGNEES_FIELD_NUMBER = 2;
131 
132   @SuppressWarnings("serial")
133   private com.google.protobuf.LazyStringList assignees_;
134   /**
135    *
136    *
137    * <pre>
138    * References primary/secondary etc assignees in the external system.
139    * </pre>
140    *
141    * <code>repeated string assignees = 2;</code>
142    *
143    * @return A list containing the assignees.
144    */
getAssigneesList()145   public com.google.protobuf.ProtocolStringList getAssigneesList() {
146     return assignees_;
147   }
148   /**
149    *
150    *
151    * <pre>
152    * References primary/secondary etc assignees in the external system.
153    * </pre>
154    *
155    * <code>repeated string assignees = 2;</code>
156    *
157    * @return The count of assignees.
158    */
getAssigneesCount()159   public int getAssigneesCount() {
160     return assignees_.size();
161   }
162   /**
163    *
164    *
165    * <pre>
166    * References primary/secondary etc assignees in the external system.
167    * </pre>
168    *
169    * <code>repeated string assignees = 2;</code>
170    *
171    * @param index The index of the element to return.
172    * @return The assignees at the given index.
173    */
getAssignees(int index)174   public java.lang.String getAssignees(int index) {
175     return assignees_.get(index);
176   }
177   /**
178    *
179    *
180    * <pre>
181    * References primary/secondary etc assignees in the external system.
182    * </pre>
183    *
184    * <code>repeated string assignees = 2;</code>
185    *
186    * @param index The index of the value to return.
187    * @return The bytes of the assignees at the given index.
188    */
getAssigneesBytes(int index)189   public com.google.protobuf.ByteString getAssigneesBytes(int index) {
190     return assignees_.getByteString(index);
191   }
192 
193   public static final int EXTERNAL_UID_FIELD_NUMBER = 3;
194 
195   @SuppressWarnings("serial")
196   private volatile java.lang.Object externalUid_ = "";
197   /**
198    *
199    *
200    * <pre>
201    * Identifier that's used to track the given finding in the external system.
202    * </pre>
203    *
204    * <code>string external_uid = 3;</code>
205    *
206    * @return The externalUid.
207    */
208   @java.lang.Override
getExternalUid()209   public java.lang.String getExternalUid() {
210     java.lang.Object ref = externalUid_;
211     if (ref instanceof java.lang.String) {
212       return (java.lang.String) ref;
213     } else {
214       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
215       java.lang.String s = bs.toStringUtf8();
216       externalUid_ = s;
217       return s;
218     }
219   }
220   /**
221    *
222    *
223    * <pre>
224    * Identifier that's used to track the given finding in the external system.
225    * </pre>
226    *
227    * <code>string external_uid = 3;</code>
228    *
229    * @return The bytes for externalUid.
230    */
231   @java.lang.Override
getExternalUidBytes()232   public com.google.protobuf.ByteString getExternalUidBytes() {
233     java.lang.Object ref = externalUid_;
234     if (ref instanceof java.lang.String) {
235       com.google.protobuf.ByteString b =
236           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
237       externalUid_ = b;
238       return b;
239     } else {
240       return (com.google.protobuf.ByteString) ref;
241     }
242   }
243 
244   public static final int STATUS_FIELD_NUMBER = 4;
245 
246   @SuppressWarnings("serial")
247   private volatile java.lang.Object status_ = "";
248   /**
249    *
250    *
251    * <pre>
252    * Most recent status of the corresponding finding's ticket/tracker in the
253    * external system.
254    * </pre>
255    *
256    * <code>string status = 4;</code>
257    *
258    * @return The status.
259    */
260   @java.lang.Override
getStatus()261   public java.lang.String getStatus() {
262     java.lang.Object ref = status_;
263     if (ref instanceof java.lang.String) {
264       return (java.lang.String) ref;
265     } else {
266       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
267       java.lang.String s = bs.toStringUtf8();
268       status_ = s;
269       return s;
270     }
271   }
272   /**
273    *
274    *
275    * <pre>
276    * Most recent status of the corresponding finding's ticket/tracker in the
277    * external system.
278    * </pre>
279    *
280    * <code>string status = 4;</code>
281    *
282    * @return The bytes for status.
283    */
284   @java.lang.Override
getStatusBytes()285   public com.google.protobuf.ByteString getStatusBytes() {
286     java.lang.Object ref = status_;
287     if (ref instanceof java.lang.String) {
288       com.google.protobuf.ByteString b =
289           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
290       status_ = b;
291       return b;
292     } else {
293       return (com.google.protobuf.ByteString) ref;
294     }
295   }
296 
297   public static final int EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER = 5;
298   private com.google.protobuf.Timestamp externalSystemUpdateTime_;
299   /**
300    *
301    *
302    * <pre>
303    * The most recent time when the corresponding finding's ticket/tracker was
304    * updated in the external system.
305    * </pre>
306    *
307    * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
308    *
309    * @return Whether the externalSystemUpdateTime field is set.
310    */
311   @java.lang.Override
hasExternalSystemUpdateTime()312   public boolean hasExternalSystemUpdateTime() {
313     return externalSystemUpdateTime_ != null;
314   }
315   /**
316    *
317    *
318    * <pre>
319    * The most recent time when the corresponding finding's ticket/tracker was
320    * updated in the external system.
321    * </pre>
322    *
323    * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
324    *
325    * @return The externalSystemUpdateTime.
326    */
327   @java.lang.Override
getExternalSystemUpdateTime()328   public com.google.protobuf.Timestamp getExternalSystemUpdateTime() {
329     return externalSystemUpdateTime_ == null
330         ? com.google.protobuf.Timestamp.getDefaultInstance()
331         : externalSystemUpdateTime_;
332   }
333   /**
334    *
335    *
336    * <pre>
337    * The most recent time when the corresponding finding's ticket/tracker was
338    * updated in the external system.
339    * </pre>
340    *
341    * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
342    */
343   @java.lang.Override
getExternalSystemUpdateTimeOrBuilder()344   public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder() {
345     return externalSystemUpdateTime_ == null
346         ? com.google.protobuf.Timestamp.getDefaultInstance()
347         : externalSystemUpdateTime_;
348   }
349 
350   private byte memoizedIsInitialized = -1;
351 
352   @java.lang.Override
isInitialized()353   public final boolean isInitialized() {
354     byte isInitialized = memoizedIsInitialized;
355     if (isInitialized == 1) return true;
356     if (isInitialized == 0) return false;
357 
358     memoizedIsInitialized = 1;
359     return true;
360   }
361 
362   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)363   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
364     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
365       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
366     }
367     for (int i = 0; i < assignees_.size(); i++) {
368       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assignees_.getRaw(i));
369     }
370     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUid_)) {
371       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalUid_);
372     }
373     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
374       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_);
375     }
376     if (externalSystemUpdateTime_ != null) {
377       output.writeMessage(5, getExternalSystemUpdateTime());
378     }
379     getUnknownFields().writeTo(output);
380   }
381 
382   @java.lang.Override
getSerializedSize()383   public int getSerializedSize() {
384     int size = memoizedSize;
385     if (size != -1) return size;
386 
387     size = 0;
388     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
389       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
390     }
391     {
392       int dataSize = 0;
393       for (int i = 0; i < assignees_.size(); i++) {
394         dataSize += computeStringSizeNoTag(assignees_.getRaw(i));
395       }
396       size += dataSize;
397       size += 1 * getAssigneesList().size();
398     }
399     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUid_)) {
400       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalUid_);
401     }
402     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
403       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_);
404     }
405     if (externalSystemUpdateTime_ != null) {
406       size +=
407           com.google.protobuf.CodedOutputStream.computeMessageSize(
408               5, getExternalSystemUpdateTime());
409     }
410     size += getUnknownFields().getSerializedSize();
411     memoizedSize = size;
412     return size;
413   }
414 
415   @java.lang.Override
equals(final java.lang.Object obj)416   public boolean equals(final java.lang.Object obj) {
417     if (obj == this) {
418       return true;
419     }
420     if (!(obj instanceof com.google.cloud.securitycenter.v1.ExternalSystem)) {
421       return super.equals(obj);
422     }
423     com.google.cloud.securitycenter.v1.ExternalSystem other =
424         (com.google.cloud.securitycenter.v1.ExternalSystem) obj;
425 
426     if (!getName().equals(other.getName())) return false;
427     if (!getAssigneesList().equals(other.getAssigneesList())) return false;
428     if (!getExternalUid().equals(other.getExternalUid())) return false;
429     if (!getStatus().equals(other.getStatus())) return false;
430     if (hasExternalSystemUpdateTime() != other.hasExternalSystemUpdateTime()) return false;
431     if (hasExternalSystemUpdateTime()) {
432       if (!getExternalSystemUpdateTime().equals(other.getExternalSystemUpdateTime())) return false;
433     }
434     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
435     return true;
436   }
437 
438   @java.lang.Override
hashCode()439   public int hashCode() {
440     if (memoizedHashCode != 0) {
441       return memoizedHashCode;
442     }
443     int hash = 41;
444     hash = (19 * hash) + getDescriptor().hashCode();
445     hash = (37 * hash) + NAME_FIELD_NUMBER;
446     hash = (53 * hash) + getName().hashCode();
447     if (getAssigneesCount() > 0) {
448       hash = (37 * hash) + ASSIGNEES_FIELD_NUMBER;
449       hash = (53 * hash) + getAssigneesList().hashCode();
450     }
451     hash = (37 * hash) + EXTERNAL_UID_FIELD_NUMBER;
452     hash = (53 * hash) + getExternalUid().hashCode();
453     hash = (37 * hash) + STATUS_FIELD_NUMBER;
454     hash = (53 * hash) + getStatus().hashCode();
455     if (hasExternalSystemUpdateTime()) {
456       hash = (37 * hash) + EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER;
457       hash = (53 * hash) + getExternalSystemUpdateTime().hashCode();
458     }
459     hash = (29 * hash) + getUnknownFields().hashCode();
460     memoizedHashCode = hash;
461     return hash;
462   }
463 
parseFrom( java.nio.ByteBuffer data)464   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
465       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
466     return PARSER.parseFrom(data);
467   }
468 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)469   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
470       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
471       throws com.google.protobuf.InvalidProtocolBufferException {
472     return PARSER.parseFrom(data, extensionRegistry);
473   }
474 
parseFrom( com.google.protobuf.ByteString data)475   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
476       com.google.protobuf.ByteString data)
477       throws com.google.protobuf.InvalidProtocolBufferException {
478     return PARSER.parseFrom(data);
479   }
480 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)481   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
482       com.google.protobuf.ByteString data,
483       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
484       throws com.google.protobuf.InvalidProtocolBufferException {
485     return PARSER.parseFrom(data, extensionRegistry);
486   }
487 
parseFrom(byte[] data)488   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(byte[] data)
489       throws com.google.protobuf.InvalidProtocolBufferException {
490     return PARSER.parseFrom(data);
491   }
492 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)493   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
494       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
495       throws com.google.protobuf.InvalidProtocolBufferException {
496     return PARSER.parseFrom(data, extensionRegistry);
497   }
498 
parseFrom( java.io.InputStream input)499   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
500       java.io.InputStream input) throws java.io.IOException {
501     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
502   }
503 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)504   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
505       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
506       throws java.io.IOException {
507     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
508         PARSER, input, extensionRegistry);
509   }
510 
parseDelimitedFrom( java.io.InputStream input)511   public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(
512       java.io.InputStream input) throws java.io.IOException {
513     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
514   }
515 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)516   public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(
517       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
518       throws java.io.IOException {
519     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
520         PARSER, input, extensionRegistry);
521   }
522 
parseFrom( com.google.protobuf.CodedInputStream input)523   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
524       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
525     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
526   }
527 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)528   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
529       com.google.protobuf.CodedInputStream input,
530       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
531       throws java.io.IOException {
532     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
533         PARSER, input, extensionRegistry);
534   }
535 
536   @java.lang.Override
newBuilderForType()537   public Builder newBuilderForType() {
538     return newBuilder();
539   }
540 
newBuilder()541   public static Builder newBuilder() {
542     return DEFAULT_INSTANCE.toBuilder();
543   }
544 
newBuilder(com.google.cloud.securitycenter.v1.ExternalSystem prototype)545   public static Builder newBuilder(com.google.cloud.securitycenter.v1.ExternalSystem prototype) {
546     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
547   }
548 
549   @java.lang.Override
toBuilder()550   public Builder toBuilder() {
551     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
552   }
553 
554   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)555   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
556     Builder builder = new Builder(parent);
557     return builder;
558   }
559   /**
560    *
561    *
562    * <pre>
563    * Representation of third party SIEM/SOAR fields within SCC.
564    * </pre>
565    *
566    * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem}
567    */
568   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
569       implements
570       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExternalSystem)
571       com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder {
getDescriptor()572     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
573       return com.google.cloud.securitycenter.v1.ExternalSystemProto
574           .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor;
575     }
576 
577     @java.lang.Override
578     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()579         internalGetFieldAccessorTable() {
580       return com.google.cloud.securitycenter.v1.ExternalSystemProto
581           .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable
582           .ensureFieldAccessorsInitialized(
583               com.google.cloud.securitycenter.v1.ExternalSystem.class,
584               com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class);
585     }
586 
587     // Construct using com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder()
Builder()588     private Builder() {}
589 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)590     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
591       super(parent);
592     }
593 
594     @java.lang.Override
clear()595     public Builder clear() {
596       super.clear();
597       bitField0_ = 0;
598       name_ = "";
599       assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY;
600       bitField0_ = (bitField0_ & ~0x00000002);
601       externalUid_ = "";
602       status_ = "";
603       externalSystemUpdateTime_ = null;
604       if (externalSystemUpdateTimeBuilder_ != null) {
605         externalSystemUpdateTimeBuilder_.dispose();
606         externalSystemUpdateTimeBuilder_ = null;
607       }
608       return this;
609     }
610 
611     @java.lang.Override
getDescriptorForType()612     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
613       return com.google.cloud.securitycenter.v1.ExternalSystemProto
614           .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor;
615     }
616 
617     @java.lang.Override
getDefaultInstanceForType()618     public com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstanceForType() {
619       return com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance();
620     }
621 
622     @java.lang.Override
build()623     public com.google.cloud.securitycenter.v1.ExternalSystem build() {
624       com.google.cloud.securitycenter.v1.ExternalSystem result = buildPartial();
625       if (!result.isInitialized()) {
626         throw newUninitializedMessageException(result);
627       }
628       return result;
629     }
630 
631     @java.lang.Override
buildPartial()632     public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() {
633       com.google.cloud.securitycenter.v1.ExternalSystem result =
634           new com.google.cloud.securitycenter.v1.ExternalSystem(this);
635       buildPartialRepeatedFields(result);
636       if (bitField0_ != 0) {
637         buildPartial0(result);
638       }
639       onBuilt();
640       return result;
641     }
642 
buildPartialRepeatedFields( com.google.cloud.securitycenter.v1.ExternalSystem result)643     private void buildPartialRepeatedFields(
644         com.google.cloud.securitycenter.v1.ExternalSystem result) {
645       if (((bitField0_ & 0x00000002) != 0)) {
646         assignees_ = assignees_.getUnmodifiableView();
647         bitField0_ = (bitField0_ & ~0x00000002);
648       }
649       result.assignees_ = assignees_;
650     }
651 
buildPartial0(com.google.cloud.securitycenter.v1.ExternalSystem result)652     private void buildPartial0(com.google.cloud.securitycenter.v1.ExternalSystem result) {
653       int from_bitField0_ = bitField0_;
654       if (((from_bitField0_ & 0x00000001) != 0)) {
655         result.name_ = name_;
656       }
657       if (((from_bitField0_ & 0x00000004) != 0)) {
658         result.externalUid_ = externalUid_;
659       }
660       if (((from_bitField0_ & 0x00000008) != 0)) {
661         result.status_ = status_;
662       }
663       if (((from_bitField0_ & 0x00000010) != 0)) {
664         result.externalSystemUpdateTime_ =
665             externalSystemUpdateTimeBuilder_ == null
666                 ? externalSystemUpdateTime_
667                 : externalSystemUpdateTimeBuilder_.build();
668       }
669     }
670 
671     @java.lang.Override
clone()672     public Builder clone() {
673       return super.clone();
674     }
675 
676     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)677     public Builder setField(
678         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
679       return super.setField(field, value);
680     }
681 
682     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)683     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
684       return super.clearField(field);
685     }
686 
687     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)688     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
689       return super.clearOneof(oneof);
690     }
691 
692     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)693     public Builder setRepeatedField(
694         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
695       return super.setRepeatedField(field, index, value);
696     }
697 
698     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)699     public Builder addRepeatedField(
700         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
701       return super.addRepeatedField(field, value);
702     }
703 
704     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)705     public Builder mergeFrom(com.google.protobuf.Message other) {
706       if (other instanceof com.google.cloud.securitycenter.v1.ExternalSystem) {
707         return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem) other);
708       } else {
709         super.mergeFrom(other);
710         return this;
711       }
712     }
713 
mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem other)714     public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem other) {
715       if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance())
716         return this;
717       if (!other.getName().isEmpty()) {
718         name_ = other.name_;
719         bitField0_ |= 0x00000001;
720         onChanged();
721       }
722       if (!other.assignees_.isEmpty()) {
723         if (assignees_.isEmpty()) {
724           assignees_ = other.assignees_;
725           bitField0_ = (bitField0_ & ~0x00000002);
726         } else {
727           ensureAssigneesIsMutable();
728           assignees_.addAll(other.assignees_);
729         }
730         onChanged();
731       }
732       if (!other.getExternalUid().isEmpty()) {
733         externalUid_ = other.externalUid_;
734         bitField0_ |= 0x00000004;
735         onChanged();
736       }
737       if (!other.getStatus().isEmpty()) {
738         status_ = other.status_;
739         bitField0_ |= 0x00000008;
740         onChanged();
741       }
742       if (other.hasExternalSystemUpdateTime()) {
743         mergeExternalSystemUpdateTime(other.getExternalSystemUpdateTime());
744       }
745       this.mergeUnknownFields(other.getUnknownFields());
746       onChanged();
747       return this;
748     }
749 
750     @java.lang.Override
isInitialized()751     public final boolean isInitialized() {
752       return true;
753     }
754 
755     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)756     public Builder mergeFrom(
757         com.google.protobuf.CodedInputStream input,
758         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
759         throws java.io.IOException {
760       if (extensionRegistry == null) {
761         throw new java.lang.NullPointerException();
762       }
763       try {
764         boolean done = false;
765         while (!done) {
766           int tag = input.readTag();
767           switch (tag) {
768             case 0:
769               done = true;
770               break;
771             case 10:
772               {
773                 name_ = input.readStringRequireUtf8();
774                 bitField0_ |= 0x00000001;
775                 break;
776               } // case 10
777             case 18:
778               {
779                 java.lang.String s = input.readStringRequireUtf8();
780                 ensureAssigneesIsMutable();
781                 assignees_.add(s);
782                 break;
783               } // case 18
784             case 26:
785               {
786                 externalUid_ = input.readStringRequireUtf8();
787                 bitField0_ |= 0x00000004;
788                 break;
789               } // case 26
790             case 34:
791               {
792                 status_ = input.readStringRequireUtf8();
793                 bitField0_ |= 0x00000008;
794                 break;
795               } // case 34
796             case 42:
797               {
798                 input.readMessage(
799                     getExternalSystemUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
800                 bitField0_ |= 0x00000010;
801                 break;
802               } // case 42
803             default:
804               {
805                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
806                   done = true; // was an endgroup tag
807                 }
808                 break;
809               } // default:
810           } // switch (tag)
811         } // while (!done)
812       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
813         throw e.unwrapIOException();
814       } finally {
815         onChanged();
816       } // finally
817       return this;
818     }
819 
820     private int bitField0_;
821 
822     private java.lang.Object name_ = "";
823     /**
824      *
825      *
826      * <pre>
827      * Full resource name of the external system, for example:
828      * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
829      * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
830      * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
831      * </pre>
832      *
833      * <code>string name = 1;</code>
834      *
835      * @return The name.
836      */
getName()837     public java.lang.String getName() {
838       java.lang.Object ref = name_;
839       if (!(ref instanceof java.lang.String)) {
840         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
841         java.lang.String s = bs.toStringUtf8();
842         name_ = s;
843         return s;
844       } else {
845         return (java.lang.String) ref;
846       }
847     }
848     /**
849      *
850      *
851      * <pre>
852      * Full resource name of the external system, for example:
853      * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
854      * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
855      * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
856      * </pre>
857      *
858      * <code>string name = 1;</code>
859      *
860      * @return The bytes for name.
861      */
getNameBytes()862     public com.google.protobuf.ByteString getNameBytes() {
863       java.lang.Object ref = name_;
864       if (ref instanceof String) {
865         com.google.protobuf.ByteString b =
866             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
867         name_ = b;
868         return b;
869       } else {
870         return (com.google.protobuf.ByteString) ref;
871       }
872     }
873     /**
874      *
875      *
876      * <pre>
877      * Full resource name of the external system, for example:
878      * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
879      * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
880      * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
881      * </pre>
882      *
883      * <code>string name = 1;</code>
884      *
885      * @param value The name to set.
886      * @return This builder for chaining.
887      */
setName(java.lang.String value)888     public Builder setName(java.lang.String value) {
889       if (value == null) {
890         throw new NullPointerException();
891       }
892       name_ = value;
893       bitField0_ |= 0x00000001;
894       onChanged();
895       return this;
896     }
897     /**
898      *
899      *
900      * <pre>
901      * Full resource name of the external system, for example:
902      * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
903      * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
904      * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
905      * </pre>
906      *
907      * <code>string name = 1;</code>
908      *
909      * @return This builder for chaining.
910      */
clearName()911     public Builder clearName() {
912       name_ = getDefaultInstance().getName();
913       bitField0_ = (bitField0_ & ~0x00000001);
914       onChanged();
915       return this;
916     }
917     /**
918      *
919      *
920      * <pre>
921      * Full resource name of the external system, for example:
922      * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
923      * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
924      * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
925      * </pre>
926      *
927      * <code>string name = 1;</code>
928      *
929      * @param value The bytes for name to set.
930      * @return This builder for chaining.
931      */
setNameBytes(com.google.protobuf.ByteString value)932     public Builder setNameBytes(com.google.protobuf.ByteString value) {
933       if (value == null) {
934         throw new NullPointerException();
935       }
936       checkByteStringIsUtf8(value);
937       name_ = value;
938       bitField0_ |= 0x00000001;
939       onChanged();
940       return this;
941     }
942 
943     private com.google.protobuf.LazyStringList assignees_ =
944         com.google.protobuf.LazyStringArrayList.EMPTY;
945 
ensureAssigneesIsMutable()946     private void ensureAssigneesIsMutable() {
947       if (!((bitField0_ & 0x00000002) != 0)) {
948         assignees_ = new com.google.protobuf.LazyStringArrayList(assignees_);
949         bitField0_ |= 0x00000002;
950       }
951     }
952     /**
953      *
954      *
955      * <pre>
956      * References primary/secondary etc assignees in the external system.
957      * </pre>
958      *
959      * <code>repeated string assignees = 2;</code>
960      *
961      * @return A list containing the assignees.
962      */
getAssigneesList()963     public com.google.protobuf.ProtocolStringList getAssigneesList() {
964       return assignees_.getUnmodifiableView();
965     }
966     /**
967      *
968      *
969      * <pre>
970      * References primary/secondary etc assignees in the external system.
971      * </pre>
972      *
973      * <code>repeated string assignees = 2;</code>
974      *
975      * @return The count of assignees.
976      */
getAssigneesCount()977     public int getAssigneesCount() {
978       return assignees_.size();
979     }
980     /**
981      *
982      *
983      * <pre>
984      * References primary/secondary etc assignees in the external system.
985      * </pre>
986      *
987      * <code>repeated string assignees = 2;</code>
988      *
989      * @param index The index of the element to return.
990      * @return The assignees at the given index.
991      */
getAssignees(int index)992     public java.lang.String getAssignees(int index) {
993       return assignees_.get(index);
994     }
995     /**
996      *
997      *
998      * <pre>
999      * References primary/secondary etc assignees in the external system.
1000      * </pre>
1001      *
1002      * <code>repeated string assignees = 2;</code>
1003      *
1004      * @param index The index of the value to return.
1005      * @return The bytes of the assignees at the given index.
1006      */
getAssigneesBytes(int index)1007     public com.google.protobuf.ByteString getAssigneesBytes(int index) {
1008       return assignees_.getByteString(index);
1009     }
1010     /**
1011      *
1012      *
1013      * <pre>
1014      * References primary/secondary etc assignees in the external system.
1015      * </pre>
1016      *
1017      * <code>repeated string assignees = 2;</code>
1018      *
1019      * @param index The index to set the value at.
1020      * @param value The assignees to set.
1021      * @return This builder for chaining.
1022      */
setAssignees(int index, java.lang.String value)1023     public Builder setAssignees(int index, java.lang.String value) {
1024       if (value == null) {
1025         throw new NullPointerException();
1026       }
1027       ensureAssigneesIsMutable();
1028       assignees_.set(index, value);
1029       onChanged();
1030       return this;
1031     }
1032     /**
1033      *
1034      *
1035      * <pre>
1036      * References primary/secondary etc assignees in the external system.
1037      * </pre>
1038      *
1039      * <code>repeated string assignees = 2;</code>
1040      *
1041      * @param value The assignees to add.
1042      * @return This builder for chaining.
1043      */
addAssignees(java.lang.String value)1044     public Builder addAssignees(java.lang.String value) {
1045       if (value == null) {
1046         throw new NullPointerException();
1047       }
1048       ensureAssigneesIsMutable();
1049       assignees_.add(value);
1050       onChanged();
1051       return this;
1052     }
1053     /**
1054      *
1055      *
1056      * <pre>
1057      * References primary/secondary etc assignees in the external system.
1058      * </pre>
1059      *
1060      * <code>repeated string assignees = 2;</code>
1061      *
1062      * @param values The assignees to add.
1063      * @return This builder for chaining.
1064      */
addAllAssignees(java.lang.Iterable<java.lang.String> values)1065     public Builder addAllAssignees(java.lang.Iterable<java.lang.String> values) {
1066       ensureAssigneesIsMutable();
1067       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignees_);
1068       onChanged();
1069       return this;
1070     }
1071     /**
1072      *
1073      *
1074      * <pre>
1075      * References primary/secondary etc assignees in the external system.
1076      * </pre>
1077      *
1078      * <code>repeated string assignees = 2;</code>
1079      *
1080      * @return This builder for chaining.
1081      */
clearAssignees()1082     public Builder clearAssignees() {
1083       assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1084       bitField0_ = (bitField0_ & ~0x00000002);
1085       onChanged();
1086       return this;
1087     }
1088     /**
1089      *
1090      *
1091      * <pre>
1092      * References primary/secondary etc assignees in the external system.
1093      * </pre>
1094      *
1095      * <code>repeated string assignees = 2;</code>
1096      *
1097      * @param value The bytes of the assignees to add.
1098      * @return This builder for chaining.
1099      */
addAssigneesBytes(com.google.protobuf.ByteString value)1100     public Builder addAssigneesBytes(com.google.protobuf.ByteString value) {
1101       if (value == null) {
1102         throw new NullPointerException();
1103       }
1104       checkByteStringIsUtf8(value);
1105       ensureAssigneesIsMutable();
1106       assignees_.add(value);
1107       onChanged();
1108       return this;
1109     }
1110 
1111     private java.lang.Object externalUid_ = "";
1112     /**
1113      *
1114      *
1115      * <pre>
1116      * Identifier that's used to track the given finding in the external system.
1117      * </pre>
1118      *
1119      * <code>string external_uid = 3;</code>
1120      *
1121      * @return The externalUid.
1122      */
getExternalUid()1123     public java.lang.String getExternalUid() {
1124       java.lang.Object ref = externalUid_;
1125       if (!(ref instanceof java.lang.String)) {
1126         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1127         java.lang.String s = bs.toStringUtf8();
1128         externalUid_ = s;
1129         return s;
1130       } else {
1131         return (java.lang.String) ref;
1132       }
1133     }
1134     /**
1135      *
1136      *
1137      * <pre>
1138      * Identifier that's used to track the given finding in the external system.
1139      * </pre>
1140      *
1141      * <code>string external_uid = 3;</code>
1142      *
1143      * @return The bytes for externalUid.
1144      */
getExternalUidBytes()1145     public com.google.protobuf.ByteString getExternalUidBytes() {
1146       java.lang.Object ref = externalUid_;
1147       if (ref instanceof String) {
1148         com.google.protobuf.ByteString b =
1149             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1150         externalUid_ = b;
1151         return b;
1152       } else {
1153         return (com.google.protobuf.ByteString) ref;
1154       }
1155     }
1156     /**
1157      *
1158      *
1159      * <pre>
1160      * Identifier that's used to track the given finding in the external system.
1161      * </pre>
1162      *
1163      * <code>string external_uid = 3;</code>
1164      *
1165      * @param value The externalUid to set.
1166      * @return This builder for chaining.
1167      */
setExternalUid(java.lang.String value)1168     public Builder setExternalUid(java.lang.String value) {
1169       if (value == null) {
1170         throw new NullPointerException();
1171       }
1172       externalUid_ = value;
1173       bitField0_ |= 0x00000004;
1174       onChanged();
1175       return this;
1176     }
1177     /**
1178      *
1179      *
1180      * <pre>
1181      * Identifier that's used to track the given finding in the external system.
1182      * </pre>
1183      *
1184      * <code>string external_uid = 3;</code>
1185      *
1186      * @return This builder for chaining.
1187      */
clearExternalUid()1188     public Builder clearExternalUid() {
1189       externalUid_ = getDefaultInstance().getExternalUid();
1190       bitField0_ = (bitField0_ & ~0x00000004);
1191       onChanged();
1192       return this;
1193     }
1194     /**
1195      *
1196      *
1197      * <pre>
1198      * Identifier that's used to track the given finding in the external system.
1199      * </pre>
1200      *
1201      * <code>string external_uid = 3;</code>
1202      *
1203      * @param value The bytes for externalUid to set.
1204      * @return This builder for chaining.
1205      */
setExternalUidBytes(com.google.protobuf.ByteString value)1206     public Builder setExternalUidBytes(com.google.protobuf.ByteString value) {
1207       if (value == null) {
1208         throw new NullPointerException();
1209       }
1210       checkByteStringIsUtf8(value);
1211       externalUid_ = value;
1212       bitField0_ |= 0x00000004;
1213       onChanged();
1214       return this;
1215     }
1216 
1217     private java.lang.Object status_ = "";
1218     /**
1219      *
1220      *
1221      * <pre>
1222      * Most recent status of the corresponding finding's ticket/tracker in the
1223      * external system.
1224      * </pre>
1225      *
1226      * <code>string status = 4;</code>
1227      *
1228      * @return The status.
1229      */
getStatus()1230     public java.lang.String getStatus() {
1231       java.lang.Object ref = status_;
1232       if (!(ref instanceof java.lang.String)) {
1233         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1234         java.lang.String s = bs.toStringUtf8();
1235         status_ = s;
1236         return s;
1237       } else {
1238         return (java.lang.String) ref;
1239       }
1240     }
1241     /**
1242      *
1243      *
1244      * <pre>
1245      * Most recent status of the corresponding finding's ticket/tracker in the
1246      * external system.
1247      * </pre>
1248      *
1249      * <code>string status = 4;</code>
1250      *
1251      * @return The bytes for status.
1252      */
getStatusBytes()1253     public com.google.protobuf.ByteString getStatusBytes() {
1254       java.lang.Object ref = status_;
1255       if (ref instanceof String) {
1256         com.google.protobuf.ByteString b =
1257             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1258         status_ = b;
1259         return b;
1260       } else {
1261         return (com.google.protobuf.ByteString) ref;
1262       }
1263     }
1264     /**
1265      *
1266      *
1267      * <pre>
1268      * Most recent status of the corresponding finding's ticket/tracker in the
1269      * external system.
1270      * </pre>
1271      *
1272      * <code>string status = 4;</code>
1273      *
1274      * @param value The status to set.
1275      * @return This builder for chaining.
1276      */
setStatus(java.lang.String value)1277     public Builder setStatus(java.lang.String value) {
1278       if (value == null) {
1279         throw new NullPointerException();
1280       }
1281       status_ = value;
1282       bitField0_ |= 0x00000008;
1283       onChanged();
1284       return this;
1285     }
1286     /**
1287      *
1288      *
1289      * <pre>
1290      * Most recent status of the corresponding finding's ticket/tracker in the
1291      * external system.
1292      * </pre>
1293      *
1294      * <code>string status = 4;</code>
1295      *
1296      * @return This builder for chaining.
1297      */
clearStatus()1298     public Builder clearStatus() {
1299       status_ = getDefaultInstance().getStatus();
1300       bitField0_ = (bitField0_ & ~0x00000008);
1301       onChanged();
1302       return this;
1303     }
1304     /**
1305      *
1306      *
1307      * <pre>
1308      * Most recent status of the corresponding finding's ticket/tracker in the
1309      * external system.
1310      * </pre>
1311      *
1312      * <code>string status = 4;</code>
1313      *
1314      * @param value The bytes for status to set.
1315      * @return This builder for chaining.
1316      */
setStatusBytes(com.google.protobuf.ByteString value)1317     public Builder setStatusBytes(com.google.protobuf.ByteString value) {
1318       if (value == null) {
1319         throw new NullPointerException();
1320       }
1321       checkByteStringIsUtf8(value);
1322       status_ = value;
1323       bitField0_ |= 0x00000008;
1324       onChanged();
1325       return this;
1326     }
1327 
1328     private com.google.protobuf.Timestamp externalSystemUpdateTime_;
1329     private com.google.protobuf.SingleFieldBuilderV3<
1330             com.google.protobuf.Timestamp,
1331             com.google.protobuf.Timestamp.Builder,
1332             com.google.protobuf.TimestampOrBuilder>
1333         externalSystemUpdateTimeBuilder_;
1334     /**
1335      *
1336      *
1337      * <pre>
1338      * The most recent time when the corresponding finding's ticket/tracker was
1339      * updated in the external system.
1340      * </pre>
1341      *
1342      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1343      *
1344      * @return Whether the externalSystemUpdateTime field is set.
1345      */
hasExternalSystemUpdateTime()1346     public boolean hasExternalSystemUpdateTime() {
1347       return ((bitField0_ & 0x00000010) != 0);
1348     }
1349     /**
1350      *
1351      *
1352      * <pre>
1353      * The most recent time when the corresponding finding's ticket/tracker was
1354      * updated in the external system.
1355      * </pre>
1356      *
1357      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1358      *
1359      * @return The externalSystemUpdateTime.
1360      */
getExternalSystemUpdateTime()1361     public com.google.protobuf.Timestamp getExternalSystemUpdateTime() {
1362       if (externalSystemUpdateTimeBuilder_ == null) {
1363         return externalSystemUpdateTime_ == null
1364             ? com.google.protobuf.Timestamp.getDefaultInstance()
1365             : externalSystemUpdateTime_;
1366       } else {
1367         return externalSystemUpdateTimeBuilder_.getMessage();
1368       }
1369     }
1370     /**
1371      *
1372      *
1373      * <pre>
1374      * The most recent time when the corresponding finding's ticket/tracker was
1375      * updated in the external system.
1376      * </pre>
1377      *
1378      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1379      */
setExternalSystemUpdateTime(com.google.protobuf.Timestamp value)1380     public Builder setExternalSystemUpdateTime(com.google.protobuf.Timestamp value) {
1381       if (externalSystemUpdateTimeBuilder_ == null) {
1382         if (value == null) {
1383           throw new NullPointerException();
1384         }
1385         externalSystemUpdateTime_ = value;
1386       } else {
1387         externalSystemUpdateTimeBuilder_.setMessage(value);
1388       }
1389       bitField0_ |= 0x00000010;
1390       onChanged();
1391       return this;
1392     }
1393     /**
1394      *
1395      *
1396      * <pre>
1397      * The most recent time when the corresponding finding's ticket/tracker was
1398      * updated in the external system.
1399      * </pre>
1400      *
1401      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1402      */
setExternalSystemUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue)1403     public Builder setExternalSystemUpdateTime(
1404         com.google.protobuf.Timestamp.Builder builderForValue) {
1405       if (externalSystemUpdateTimeBuilder_ == null) {
1406         externalSystemUpdateTime_ = builderForValue.build();
1407       } else {
1408         externalSystemUpdateTimeBuilder_.setMessage(builderForValue.build());
1409       }
1410       bitField0_ |= 0x00000010;
1411       onChanged();
1412       return this;
1413     }
1414     /**
1415      *
1416      *
1417      * <pre>
1418      * The most recent time when the corresponding finding's ticket/tracker was
1419      * updated in the external system.
1420      * </pre>
1421      *
1422      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1423      */
mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value)1424     public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value) {
1425       if (externalSystemUpdateTimeBuilder_ == null) {
1426         if (((bitField0_ & 0x00000010) != 0)
1427             && externalSystemUpdateTime_ != null
1428             && externalSystemUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1429           getExternalSystemUpdateTimeBuilder().mergeFrom(value);
1430         } else {
1431           externalSystemUpdateTime_ = value;
1432         }
1433       } else {
1434         externalSystemUpdateTimeBuilder_.mergeFrom(value);
1435       }
1436       bitField0_ |= 0x00000010;
1437       onChanged();
1438       return this;
1439     }
1440     /**
1441      *
1442      *
1443      * <pre>
1444      * The most recent time when the corresponding finding's ticket/tracker was
1445      * updated in the external system.
1446      * </pre>
1447      *
1448      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1449      */
clearExternalSystemUpdateTime()1450     public Builder clearExternalSystemUpdateTime() {
1451       bitField0_ = (bitField0_ & ~0x00000010);
1452       externalSystemUpdateTime_ = null;
1453       if (externalSystemUpdateTimeBuilder_ != null) {
1454         externalSystemUpdateTimeBuilder_.dispose();
1455         externalSystemUpdateTimeBuilder_ = null;
1456       }
1457       onChanged();
1458       return this;
1459     }
1460     /**
1461      *
1462      *
1463      * <pre>
1464      * The most recent time when the corresponding finding's ticket/tracker was
1465      * updated in the external system.
1466      * </pre>
1467      *
1468      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1469      */
getExternalSystemUpdateTimeBuilder()1470     public com.google.protobuf.Timestamp.Builder getExternalSystemUpdateTimeBuilder() {
1471       bitField0_ |= 0x00000010;
1472       onChanged();
1473       return getExternalSystemUpdateTimeFieldBuilder().getBuilder();
1474     }
1475     /**
1476      *
1477      *
1478      * <pre>
1479      * The most recent time when the corresponding finding's ticket/tracker was
1480      * updated in the external system.
1481      * </pre>
1482      *
1483      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1484      */
getExternalSystemUpdateTimeOrBuilder()1485     public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder() {
1486       if (externalSystemUpdateTimeBuilder_ != null) {
1487         return externalSystemUpdateTimeBuilder_.getMessageOrBuilder();
1488       } else {
1489         return externalSystemUpdateTime_ == null
1490             ? com.google.protobuf.Timestamp.getDefaultInstance()
1491             : externalSystemUpdateTime_;
1492       }
1493     }
1494     /**
1495      *
1496      *
1497      * <pre>
1498      * The most recent time when the corresponding finding's ticket/tracker was
1499      * updated in the external system.
1500      * </pre>
1501      *
1502      * <code>.google.protobuf.Timestamp external_system_update_time = 5;</code>
1503      */
1504     private com.google.protobuf.SingleFieldBuilderV3<
1505             com.google.protobuf.Timestamp,
1506             com.google.protobuf.Timestamp.Builder,
1507             com.google.protobuf.TimestampOrBuilder>
getExternalSystemUpdateTimeFieldBuilder()1508         getExternalSystemUpdateTimeFieldBuilder() {
1509       if (externalSystemUpdateTimeBuilder_ == null) {
1510         externalSystemUpdateTimeBuilder_ =
1511             new com.google.protobuf.SingleFieldBuilderV3<
1512                 com.google.protobuf.Timestamp,
1513                 com.google.protobuf.Timestamp.Builder,
1514                 com.google.protobuf.TimestampOrBuilder>(
1515                 getExternalSystemUpdateTime(), getParentForChildren(), isClean());
1516         externalSystemUpdateTime_ = null;
1517       }
1518       return externalSystemUpdateTimeBuilder_;
1519     }
1520 
1521     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1522     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1523       return super.setUnknownFields(unknownFields);
1524     }
1525 
1526     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1527     public final Builder mergeUnknownFields(
1528         final com.google.protobuf.UnknownFieldSet unknownFields) {
1529       return super.mergeUnknownFields(unknownFields);
1530     }
1531 
1532     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ExternalSystem)
1533   }
1534 
1535   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ExternalSystem)
1536   private static final com.google.cloud.securitycenter.v1.ExternalSystem DEFAULT_INSTANCE;
1537 
1538   static {
1539     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ExternalSystem();
1540   }
1541 
getDefaultInstance()1542   public static com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstance() {
1543     return DEFAULT_INSTANCE;
1544   }
1545 
1546   private static final com.google.protobuf.Parser<ExternalSystem> PARSER =
1547       new com.google.protobuf.AbstractParser<ExternalSystem>() {
1548         @java.lang.Override
1549         public ExternalSystem parsePartialFrom(
1550             com.google.protobuf.CodedInputStream input,
1551             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1552             throws com.google.protobuf.InvalidProtocolBufferException {
1553           Builder builder = newBuilder();
1554           try {
1555             builder.mergeFrom(input, extensionRegistry);
1556           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1557             throw e.setUnfinishedMessage(builder.buildPartial());
1558           } catch (com.google.protobuf.UninitializedMessageException e) {
1559             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1560           } catch (java.io.IOException e) {
1561             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1562                 .setUnfinishedMessage(builder.buildPartial());
1563           }
1564           return builder.buildPartial();
1565         }
1566       };
1567 
parser()1568   public static com.google.protobuf.Parser<ExternalSystem> parser() {
1569     return PARSER;
1570   }
1571 
1572   @java.lang.Override
getParserForType()1573   public com.google.protobuf.Parser<ExternalSystem> getParserForType() {
1574     return PARSER;
1575   }
1576 
1577   @java.lang.Override
getDefaultInstanceForType()1578   public com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstanceForType() {
1579     return DEFAULT_INSTANCE;
1580   }
1581 }
1582