• 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/asset/v1/assets.proto
18 
19 package com.google.cloud.asset.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * IAM Policy analysis result, consisting of one IAM policy binding and derived
26  * access control lists.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult}
30  */
31 public final class IamPolicyAnalysisResult extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult)
34     IamPolicyAnalysisResultOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use IamPolicyAnalysisResult.newBuilder() to construct.
IamPolicyAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private IamPolicyAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
IamPolicyAnalysisResult()41   private IamPolicyAnalysisResult() {
42     attachedResourceFullName_ = "";
43     accessControlLists_ = java.util.Collections.emptyList();
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new IamPolicyAnalysisResult();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.asset.v1.AssetProto
59         .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.asset.v1.AssetProto
66         .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.asset.v1.IamPolicyAnalysisResult.class,
69             com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
70   }
71 
72   public interface ResourceOrBuilder
73       extends
74       // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
75       com.google.protobuf.MessageOrBuilder {
76 
77     /**
78      *
79      *
80      * <pre>
81      * The [full resource
82      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
83      * </pre>
84      *
85      * <code>string full_resource_name = 1;</code>
86      *
87      * @return The fullResourceName.
88      */
getFullResourceName()89     java.lang.String getFullResourceName();
90     /**
91      *
92      *
93      * <pre>
94      * The [full resource
95      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
96      * </pre>
97      *
98      * <code>string full_resource_name = 1;</code>
99      *
100      * @return The bytes for fullResourceName.
101      */
getFullResourceNameBytes()102     com.google.protobuf.ByteString getFullResourceNameBytes();
103 
104     /**
105      *
106      *
107      * <pre>
108      * The analysis state of this resource.
109      * </pre>
110      *
111      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
112      *
113      * @return Whether the analysisState field is set.
114      */
hasAnalysisState()115     boolean hasAnalysisState();
116     /**
117      *
118      *
119      * <pre>
120      * The analysis state of this resource.
121      * </pre>
122      *
123      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
124      *
125      * @return The analysisState.
126      */
getAnalysisState()127     com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState();
128     /**
129      *
130      *
131      * <pre>
132      * The analysis state of this resource.
133      * </pre>
134      *
135      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
136      */
getAnalysisStateOrBuilder()137     com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder();
138   }
139   /**
140    *
141    *
142    * <pre>
143    * A Google Cloud resource under analysis.
144    * </pre>
145    *
146    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Resource}
147    */
148   public static final class Resource extends com.google.protobuf.GeneratedMessageV3
149       implements
150       // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
151       ResourceOrBuilder {
152     private static final long serialVersionUID = 0L;
153     // Use Resource.newBuilder() to construct.
Resource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)154     private Resource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
155       super(builder);
156     }
157 
Resource()158     private Resource() {
159       fullResourceName_ = "";
160     }
161 
162     @java.lang.Override
163     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)164     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
165       return new Resource();
166     }
167 
168     @java.lang.Override
getUnknownFields()169     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
170       return this.unknownFields;
171     }
172 
getDescriptor()173     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
174       return com.google.cloud.asset.v1.AssetProto
175           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor;
176     }
177 
178     @java.lang.Override
179     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()180         internalGetFieldAccessorTable() {
181       return com.google.cloud.asset.v1.AssetProto
182           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable
183           .ensureFieldAccessorsInitialized(
184               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class,
185               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class);
186     }
187 
188     public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1;
189 
190     @SuppressWarnings("serial")
191     private volatile java.lang.Object fullResourceName_ = "";
192     /**
193      *
194      *
195      * <pre>
196      * The [full resource
197      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
198      * </pre>
199      *
200      * <code>string full_resource_name = 1;</code>
201      *
202      * @return The fullResourceName.
203      */
204     @java.lang.Override
getFullResourceName()205     public java.lang.String getFullResourceName() {
206       java.lang.Object ref = fullResourceName_;
207       if (ref instanceof java.lang.String) {
208         return (java.lang.String) ref;
209       } else {
210         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
211         java.lang.String s = bs.toStringUtf8();
212         fullResourceName_ = s;
213         return s;
214       }
215     }
216     /**
217      *
218      *
219      * <pre>
220      * The [full resource
221      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
222      * </pre>
223      *
224      * <code>string full_resource_name = 1;</code>
225      *
226      * @return The bytes for fullResourceName.
227      */
228     @java.lang.Override
getFullResourceNameBytes()229     public com.google.protobuf.ByteString getFullResourceNameBytes() {
230       java.lang.Object ref = fullResourceName_;
231       if (ref instanceof java.lang.String) {
232         com.google.protobuf.ByteString b =
233             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
234         fullResourceName_ = b;
235         return b;
236       } else {
237         return (com.google.protobuf.ByteString) ref;
238       }
239     }
240 
241     public static final int ANALYSIS_STATE_FIELD_NUMBER = 2;
242     private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_;
243     /**
244      *
245      *
246      * <pre>
247      * The analysis state of this resource.
248      * </pre>
249      *
250      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
251      *
252      * @return Whether the analysisState field is set.
253      */
254     @java.lang.Override
hasAnalysisState()255     public boolean hasAnalysisState() {
256       return analysisState_ != null;
257     }
258     /**
259      *
260      *
261      * <pre>
262      * The analysis state of this resource.
263      * </pre>
264      *
265      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
266      *
267      * @return The analysisState.
268      */
269     @java.lang.Override
getAnalysisState()270     public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() {
271       return analysisState_ == null
272           ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
273           : analysisState_;
274     }
275     /**
276      *
277      *
278      * <pre>
279      * The analysis state of this resource.
280      * </pre>
281      *
282      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
283      */
284     @java.lang.Override
getAnalysisStateOrBuilder()285     public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder() {
286       return analysisState_ == null
287           ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
288           : analysisState_;
289     }
290 
291     private byte memoizedIsInitialized = -1;
292 
293     @java.lang.Override
isInitialized()294     public final boolean isInitialized() {
295       byte isInitialized = memoizedIsInitialized;
296       if (isInitialized == 1) return true;
297       if (isInitialized == 0) return false;
298 
299       memoizedIsInitialized = 1;
300       return true;
301     }
302 
303     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)304     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
305       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) {
306         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_);
307       }
308       if (analysisState_ != null) {
309         output.writeMessage(2, getAnalysisState());
310       }
311       getUnknownFields().writeTo(output);
312     }
313 
314     @java.lang.Override
getSerializedSize()315     public int getSerializedSize() {
316       int size = memoizedSize;
317       if (size != -1) return size;
318 
319       size = 0;
320       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) {
321         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_);
322       }
323       if (analysisState_ != null) {
324         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState());
325       }
326       size += getUnknownFields().getSerializedSize();
327       memoizedSize = size;
328       return size;
329     }
330 
331     @java.lang.Override
equals(final java.lang.Object obj)332     public boolean equals(final java.lang.Object obj) {
333       if (obj == this) {
334         return true;
335       }
336       if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)) {
337         return super.equals(obj);
338       }
339       com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other =
340           (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) obj;
341 
342       if (!getFullResourceName().equals(other.getFullResourceName())) return false;
343       if (hasAnalysisState() != other.hasAnalysisState()) return false;
344       if (hasAnalysisState()) {
345         if (!getAnalysisState().equals(other.getAnalysisState())) return false;
346       }
347       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
348       return true;
349     }
350 
351     @java.lang.Override
hashCode()352     public int hashCode() {
353       if (memoizedHashCode != 0) {
354         return memoizedHashCode;
355       }
356       int hash = 41;
357       hash = (19 * hash) + getDescriptor().hashCode();
358       hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER;
359       hash = (53 * hash) + getFullResourceName().hashCode();
360       if (hasAnalysisState()) {
361         hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER;
362         hash = (53 * hash) + getAnalysisState().hashCode();
363       }
364       hash = (29 * hash) + getUnknownFields().hashCode();
365       memoizedHashCode = hash;
366       return hash;
367     }
368 
parseFrom( java.nio.ByteBuffer data)369     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
370         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
371       return PARSER.parseFrom(data);
372     }
373 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)374     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
375         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
376         throws com.google.protobuf.InvalidProtocolBufferException {
377       return PARSER.parseFrom(data, extensionRegistry);
378     }
379 
parseFrom( com.google.protobuf.ByteString data)380     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
381         com.google.protobuf.ByteString data)
382         throws com.google.protobuf.InvalidProtocolBufferException {
383       return PARSER.parseFrom(data);
384     }
385 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)386     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
387         com.google.protobuf.ByteString data,
388         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
389         throws com.google.protobuf.InvalidProtocolBufferException {
390       return PARSER.parseFrom(data, extensionRegistry);
391     }
392 
parseFrom(byte[] data)393     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(byte[] data)
394         throws com.google.protobuf.InvalidProtocolBufferException {
395       return PARSER.parseFrom(data);
396     }
397 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)398     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
399         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
400         throws com.google.protobuf.InvalidProtocolBufferException {
401       return PARSER.parseFrom(data, extensionRegistry);
402     }
403 
parseFrom( java.io.InputStream input)404     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
405         java.io.InputStream input) throws java.io.IOException {
406       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
407     }
408 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)409     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
410         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
411         throws java.io.IOException {
412       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
413           PARSER, input, extensionRegistry);
414     }
415 
parseDelimitedFrom( java.io.InputStream input)416     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom(
417         java.io.InputStream input) throws java.io.IOException {
418       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
419     }
420 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)421     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom(
422         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
423         throws java.io.IOException {
424       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
425           PARSER, input, extensionRegistry);
426     }
427 
parseFrom( com.google.protobuf.CodedInputStream input)428     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
429         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
430       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
431     }
432 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)433     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(
434         com.google.protobuf.CodedInputStream input,
435         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
436         throws java.io.IOException {
437       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
438           PARSER, input, extensionRegistry);
439     }
440 
441     @java.lang.Override
newBuilderForType()442     public Builder newBuilderForType() {
443       return newBuilder();
444     }
445 
newBuilder()446     public static Builder newBuilder() {
447       return DEFAULT_INSTANCE.toBuilder();
448     }
449 
newBuilder( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource prototype)450     public static Builder newBuilder(
451         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource prototype) {
452       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
453     }
454 
455     @java.lang.Override
toBuilder()456     public Builder toBuilder() {
457       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
458     }
459 
460     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)461     protected Builder newBuilderForType(
462         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
463       Builder builder = new Builder(parent);
464       return builder;
465     }
466     /**
467      *
468      *
469      * <pre>
470      * A Google Cloud resource under analysis.
471      * </pre>
472      *
473      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Resource}
474      */
475     public static final class Builder
476         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
477         implements
478         // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
479         com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder {
getDescriptor()480       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
481         return com.google.cloud.asset.v1.AssetProto
482             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor;
483       }
484 
485       @java.lang.Override
486       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()487           internalGetFieldAccessorTable() {
488         return com.google.cloud.asset.v1.AssetProto
489             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable
490             .ensureFieldAccessorsInitialized(
491                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class,
492                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class);
493       }
494 
495       // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.newBuilder()
Builder()496       private Builder() {}
497 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)498       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
499         super(parent);
500       }
501 
502       @java.lang.Override
clear()503       public Builder clear() {
504         super.clear();
505         bitField0_ = 0;
506         fullResourceName_ = "";
507         analysisState_ = null;
508         if (analysisStateBuilder_ != null) {
509           analysisStateBuilder_.dispose();
510           analysisStateBuilder_ = null;
511         }
512         return this;
513       }
514 
515       @java.lang.Override
getDescriptorForType()516       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
517         return com.google.cloud.asset.v1.AssetProto
518             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor;
519       }
520 
521       @java.lang.Override
522       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource
getDefaultInstanceForType()523           getDefaultInstanceForType() {
524         return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance();
525       }
526 
527       @java.lang.Override
build()528       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource build() {
529         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result = buildPartial();
530         if (!result.isInitialized()) {
531           throw newUninitializedMessageException(result);
532         }
533         return result;
534       }
535 
536       @java.lang.Override
buildPartial()537       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource buildPartial() {
538         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result =
539             new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(this);
540         if (bitField0_ != 0) {
541           buildPartial0(result);
542         }
543         onBuilt();
544         return result;
545       }
546 
buildPartial0( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result)547       private void buildPartial0(
548           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result) {
549         int from_bitField0_ = bitField0_;
550         if (((from_bitField0_ & 0x00000001) != 0)) {
551           result.fullResourceName_ = fullResourceName_;
552         }
553         if (((from_bitField0_ & 0x00000002) != 0)) {
554           result.analysisState_ =
555               analysisStateBuilder_ == null ? analysisState_ : analysisStateBuilder_.build();
556         }
557       }
558 
559       @java.lang.Override
clone()560       public Builder clone() {
561         return super.clone();
562       }
563 
564       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)565       public Builder setField(
566           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
567         return super.setField(field, value);
568       }
569 
570       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)571       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
572         return super.clearField(field);
573       }
574 
575       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)576       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
577         return super.clearOneof(oneof);
578       }
579 
580       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)581       public Builder setRepeatedField(
582           com.google.protobuf.Descriptors.FieldDescriptor field,
583           int index,
584           java.lang.Object value) {
585         return super.setRepeatedField(field, index, value);
586       }
587 
588       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)589       public Builder addRepeatedField(
590           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
591         return super.addRepeatedField(field, value);
592       }
593 
594       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)595       public Builder mergeFrom(com.google.protobuf.Message other) {
596         if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) {
597           return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) other);
598         } else {
599           super.mergeFrom(other);
600           return this;
601         }
602       }
603 
mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other)604       public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other) {
605         if (other
606             == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance())
607           return this;
608         if (!other.getFullResourceName().isEmpty()) {
609           fullResourceName_ = other.fullResourceName_;
610           bitField0_ |= 0x00000001;
611           onChanged();
612         }
613         if (other.hasAnalysisState()) {
614           mergeAnalysisState(other.getAnalysisState());
615         }
616         this.mergeUnknownFields(other.getUnknownFields());
617         onChanged();
618         return this;
619       }
620 
621       @java.lang.Override
isInitialized()622       public final boolean isInitialized() {
623         return true;
624       }
625 
626       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)627       public Builder mergeFrom(
628           com.google.protobuf.CodedInputStream input,
629           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
630           throws java.io.IOException {
631         if (extensionRegistry == null) {
632           throw new java.lang.NullPointerException();
633         }
634         try {
635           boolean done = false;
636           while (!done) {
637             int tag = input.readTag();
638             switch (tag) {
639               case 0:
640                 done = true;
641                 break;
642               case 10:
643                 {
644                   fullResourceName_ = input.readStringRequireUtf8();
645                   bitField0_ |= 0x00000001;
646                   break;
647                 } // case 10
648               case 18:
649                 {
650                   input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry);
651                   bitField0_ |= 0x00000002;
652                   break;
653                 } // case 18
654               default:
655                 {
656                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
657                     done = true; // was an endgroup tag
658                   }
659                   break;
660                 } // default:
661             } // switch (tag)
662           } // while (!done)
663         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
664           throw e.unwrapIOException();
665         } finally {
666           onChanged();
667         } // finally
668         return this;
669       }
670 
671       private int bitField0_;
672 
673       private java.lang.Object fullResourceName_ = "";
674       /**
675        *
676        *
677        * <pre>
678        * The [full resource
679        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
680        * </pre>
681        *
682        * <code>string full_resource_name = 1;</code>
683        *
684        * @return The fullResourceName.
685        */
getFullResourceName()686       public java.lang.String getFullResourceName() {
687         java.lang.Object ref = fullResourceName_;
688         if (!(ref instanceof java.lang.String)) {
689           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
690           java.lang.String s = bs.toStringUtf8();
691           fullResourceName_ = s;
692           return s;
693         } else {
694           return (java.lang.String) ref;
695         }
696       }
697       /**
698        *
699        *
700        * <pre>
701        * The [full resource
702        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
703        * </pre>
704        *
705        * <code>string full_resource_name = 1;</code>
706        *
707        * @return The bytes for fullResourceName.
708        */
getFullResourceNameBytes()709       public com.google.protobuf.ByteString getFullResourceNameBytes() {
710         java.lang.Object ref = fullResourceName_;
711         if (ref instanceof String) {
712           com.google.protobuf.ByteString b =
713               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
714           fullResourceName_ = b;
715           return b;
716         } else {
717           return (com.google.protobuf.ByteString) ref;
718         }
719       }
720       /**
721        *
722        *
723        * <pre>
724        * The [full resource
725        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
726        * </pre>
727        *
728        * <code>string full_resource_name = 1;</code>
729        *
730        * @param value The fullResourceName to set.
731        * @return This builder for chaining.
732        */
setFullResourceName(java.lang.String value)733       public Builder setFullResourceName(java.lang.String value) {
734         if (value == null) {
735           throw new NullPointerException();
736         }
737         fullResourceName_ = value;
738         bitField0_ |= 0x00000001;
739         onChanged();
740         return this;
741       }
742       /**
743        *
744        *
745        * <pre>
746        * The [full resource
747        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
748        * </pre>
749        *
750        * <code>string full_resource_name = 1;</code>
751        *
752        * @return This builder for chaining.
753        */
clearFullResourceName()754       public Builder clearFullResourceName() {
755         fullResourceName_ = getDefaultInstance().getFullResourceName();
756         bitField0_ = (bitField0_ & ~0x00000001);
757         onChanged();
758         return this;
759       }
760       /**
761        *
762        *
763        * <pre>
764        * The [full resource
765        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
766        * </pre>
767        *
768        * <code>string full_resource_name = 1;</code>
769        *
770        * @param value The bytes for fullResourceName to set.
771        * @return This builder for chaining.
772        */
setFullResourceNameBytes(com.google.protobuf.ByteString value)773       public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) {
774         if (value == null) {
775           throw new NullPointerException();
776         }
777         checkByteStringIsUtf8(value);
778         fullResourceName_ = value;
779         bitField0_ |= 0x00000001;
780         onChanged();
781         return this;
782       }
783 
784       private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_;
785       private com.google.protobuf.SingleFieldBuilderV3<
786               com.google.cloud.asset.v1.IamPolicyAnalysisState,
787               com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
788               com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
789           analysisStateBuilder_;
790       /**
791        *
792        *
793        * <pre>
794        * The analysis state of this resource.
795        * </pre>
796        *
797        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
798        *
799        * @return Whether the analysisState field is set.
800        */
hasAnalysisState()801       public boolean hasAnalysisState() {
802         return ((bitField0_ & 0x00000002) != 0);
803       }
804       /**
805        *
806        *
807        * <pre>
808        * The analysis state of this resource.
809        * </pre>
810        *
811        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
812        *
813        * @return The analysisState.
814        */
getAnalysisState()815       public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() {
816         if (analysisStateBuilder_ == null) {
817           return analysisState_ == null
818               ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
819               : analysisState_;
820         } else {
821           return analysisStateBuilder_.getMessage();
822         }
823       }
824       /**
825        *
826        *
827        * <pre>
828        * The analysis state of this resource.
829        * </pre>
830        *
831        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
832        */
setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value)833       public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
834         if (analysisStateBuilder_ == null) {
835           if (value == null) {
836             throw new NullPointerException();
837           }
838           analysisState_ = value;
839         } else {
840           analysisStateBuilder_.setMessage(value);
841         }
842         bitField0_ |= 0x00000002;
843         onChanged();
844         return this;
845       }
846       /**
847        *
848        *
849        * <pre>
850        * The analysis state of this resource.
851        * </pre>
852        *
853        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
854        */
setAnalysisState( com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue)855       public Builder setAnalysisState(
856           com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) {
857         if (analysisStateBuilder_ == null) {
858           analysisState_ = builderForValue.build();
859         } else {
860           analysisStateBuilder_.setMessage(builderForValue.build());
861         }
862         bitField0_ |= 0x00000002;
863         onChanged();
864         return this;
865       }
866       /**
867        *
868        *
869        * <pre>
870        * The analysis state of this resource.
871        * </pre>
872        *
873        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
874        */
mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value)875       public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
876         if (analysisStateBuilder_ == null) {
877           if (((bitField0_ & 0x00000002) != 0)
878               && analysisState_ != null
879               && analysisState_
880                   != com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()) {
881             getAnalysisStateBuilder().mergeFrom(value);
882           } else {
883             analysisState_ = value;
884           }
885         } else {
886           analysisStateBuilder_.mergeFrom(value);
887         }
888         bitField0_ |= 0x00000002;
889         onChanged();
890         return this;
891       }
892       /**
893        *
894        *
895        * <pre>
896        * The analysis state of this resource.
897        * </pre>
898        *
899        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
900        */
clearAnalysisState()901       public Builder clearAnalysisState() {
902         bitField0_ = (bitField0_ & ~0x00000002);
903         analysisState_ = null;
904         if (analysisStateBuilder_ != null) {
905           analysisStateBuilder_.dispose();
906           analysisStateBuilder_ = null;
907         }
908         onChanged();
909         return this;
910       }
911       /**
912        *
913        *
914        * <pre>
915        * The analysis state of this resource.
916        * </pre>
917        *
918        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
919        */
getAnalysisStateBuilder()920       public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() {
921         bitField0_ |= 0x00000002;
922         onChanged();
923         return getAnalysisStateFieldBuilder().getBuilder();
924       }
925       /**
926        *
927        *
928        * <pre>
929        * The analysis state of this resource.
930        * </pre>
931        *
932        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
933        */
getAnalysisStateOrBuilder()934       public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder() {
935         if (analysisStateBuilder_ != null) {
936           return analysisStateBuilder_.getMessageOrBuilder();
937         } else {
938           return analysisState_ == null
939               ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
940               : analysisState_;
941         }
942       }
943       /**
944        *
945        *
946        * <pre>
947        * The analysis state of this resource.
948        * </pre>
949        *
950        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
951        */
952       private com.google.protobuf.SingleFieldBuilderV3<
953               com.google.cloud.asset.v1.IamPolicyAnalysisState,
954               com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
955               com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
getAnalysisStateFieldBuilder()956           getAnalysisStateFieldBuilder() {
957         if (analysisStateBuilder_ == null) {
958           analysisStateBuilder_ =
959               new com.google.protobuf.SingleFieldBuilderV3<
960                   com.google.cloud.asset.v1.IamPolicyAnalysisState,
961                   com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
962                   com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>(
963                   getAnalysisState(), getParentForChildren(), isClean());
964           analysisState_ = null;
965         }
966         return analysisStateBuilder_;
967       }
968 
969       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)970       public final Builder setUnknownFields(
971           final com.google.protobuf.UnknownFieldSet unknownFields) {
972         return super.setUnknownFields(unknownFields);
973       }
974 
975       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)976       public final Builder mergeUnknownFields(
977           final com.google.protobuf.UnknownFieldSet unknownFields) {
978         return super.mergeUnknownFields(unknownFields);
979       }
980 
981       // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
982     }
983 
984     // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
985     private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource
986         DEFAULT_INSTANCE;
987 
988     static {
989       DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource();
990     }
991 
getDefaultInstance()992     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefaultInstance() {
993       return DEFAULT_INSTANCE;
994     }
995 
996     private static final com.google.protobuf.Parser<Resource> PARSER =
997         new com.google.protobuf.AbstractParser<Resource>() {
998           @java.lang.Override
999           public Resource parsePartialFrom(
1000               com.google.protobuf.CodedInputStream input,
1001               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1002               throws com.google.protobuf.InvalidProtocolBufferException {
1003             Builder builder = newBuilder();
1004             try {
1005               builder.mergeFrom(input, extensionRegistry);
1006             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1007               throw e.setUnfinishedMessage(builder.buildPartial());
1008             } catch (com.google.protobuf.UninitializedMessageException e) {
1009               throw e.asInvalidProtocolBufferException()
1010                   .setUnfinishedMessage(builder.buildPartial());
1011             } catch (java.io.IOException e) {
1012               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1013                   .setUnfinishedMessage(builder.buildPartial());
1014             }
1015             return builder.buildPartial();
1016           }
1017         };
1018 
parser()1019     public static com.google.protobuf.Parser<Resource> parser() {
1020       return PARSER;
1021     }
1022 
1023     @java.lang.Override
getParserForType()1024     public com.google.protobuf.Parser<Resource> getParserForType() {
1025       return PARSER;
1026     }
1027 
1028     @java.lang.Override
getDefaultInstanceForType()1029     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefaultInstanceForType() {
1030       return DEFAULT_INSTANCE;
1031     }
1032   }
1033 
1034   public interface AccessOrBuilder
1035       extends
1036       // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Access)
1037       com.google.protobuf.MessageOrBuilder {
1038 
1039     /**
1040      *
1041      *
1042      * <pre>
1043      * The role.
1044      * </pre>
1045      *
1046      * <code>string role = 1;</code>
1047      *
1048      * @return Whether the role field is set.
1049      */
hasRole()1050     boolean hasRole();
1051     /**
1052      *
1053      *
1054      * <pre>
1055      * The role.
1056      * </pre>
1057      *
1058      * <code>string role = 1;</code>
1059      *
1060      * @return The role.
1061      */
getRole()1062     java.lang.String getRole();
1063     /**
1064      *
1065      *
1066      * <pre>
1067      * The role.
1068      * </pre>
1069      *
1070      * <code>string role = 1;</code>
1071      *
1072      * @return The bytes for role.
1073      */
getRoleBytes()1074     com.google.protobuf.ByteString getRoleBytes();
1075 
1076     /**
1077      *
1078      *
1079      * <pre>
1080      * The permission.
1081      * </pre>
1082      *
1083      * <code>string permission = 2;</code>
1084      *
1085      * @return Whether the permission field is set.
1086      */
hasPermission()1087     boolean hasPermission();
1088     /**
1089      *
1090      *
1091      * <pre>
1092      * The permission.
1093      * </pre>
1094      *
1095      * <code>string permission = 2;</code>
1096      *
1097      * @return The permission.
1098      */
getPermission()1099     java.lang.String getPermission();
1100     /**
1101      *
1102      *
1103      * <pre>
1104      * The permission.
1105      * </pre>
1106      *
1107      * <code>string permission = 2;</code>
1108      *
1109      * @return The bytes for permission.
1110      */
getPermissionBytes()1111     com.google.protobuf.ByteString getPermissionBytes();
1112 
1113     /**
1114      *
1115      *
1116      * <pre>
1117      * The analysis state of this access.
1118      * </pre>
1119      *
1120      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
1121      *
1122      * @return Whether the analysisState field is set.
1123      */
hasAnalysisState()1124     boolean hasAnalysisState();
1125     /**
1126      *
1127      *
1128      * <pre>
1129      * The analysis state of this access.
1130      * </pre>
1131      *
1132      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
1133      *
1134      * @return The analysisState.
1135      */
getAnalysisState()1136     com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState();
1137     /**
1138      *
1139      *
1140      * <pre>
1141      * The analysis state of this access.
1142      * </pre>
1143      *
1144      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
1145      */
getAnalysisStateOrBuilder()1146     com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder();
1147 
1148     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.OneofAccessCase
getOneofAccessCase()1149         getOneofAccessCase();
1150   }
1151   /**
1152    *
1153    *
1154    * <pre>
1155    * An IAM role or permission under analysis.
1156    * </pre>
1157    *
1158    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Access}
1159    */
1160   public static final class Access extends com.google.protobuf.GeneratedMessageV3
1161       implements
1162       // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Access)
1163       AccessOrBuilder {
1164     private static final long serialVersionUID = 0L;
1165     // Use Access.newBuilder() to construct.
Access(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1166     private Access(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1167       super(builder);
1168     }
1169 
Access()1170     private Access() {}
1171 
1172     @java.lang.Override
1173     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)1174     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
1175       return new Access();
1176     }
1177 
1178     @java.lang.Override
getUnknownFields()1179     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
1180       return this.unknownFields;
1181     }
1182 
getDescriptor()1183     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1184       return com.google.cloud.asset.v1.AssetProto
1185           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor;
1186     }
1187 
1188     @java.lang.Override
1189     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1190         internalGetFieldAccessorTable() {
1191       return com.google.cloud.asset.v1.AssetProto
1192           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable
1193           .ensureFieldAccessorsInitialized(
1194               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class,
1195               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class);
1196     }
1197 
1198     private int oneofAccessCase_ = 0;
1199     private java.lang.Object oneofAccess_;
1200 
1201     public enum OneofAccessCase
1202         implements
1203             com.google.protobuf.Internal.EnumLite,
1204             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
1205       ROLE(1),
1206       PERMISSION(2),
1207       ONEOFACCESS_NOT_SET(0);
1208       private final int value;
1209 
OneofAccessCase(int value)1210       private OneofAccessCase(int value) {
1211         this.value = value;
1212       }
1213       /**
1214        * @param value The number of the enum to look for.
1215        * @return The enum associated with the given number.
1216        * @deprecated Use {@link #forNumber(int)} instead.
1217        */
1218       @java.lang.Deprecated
valueOf(int value)1219       public static OneofAccessCase valueOf(int value) {
1220         return forNumber(value);
1221       }
1222 
forNumber(int value)1223       public static OneofAccessCase forNumber(int value) {
1224         switch (value) {
1225           case 1:
1226             return ROLE;
1227           case 2:
1228             return PERMISSION;
1229           case 0:
1230             return ONEOFACCESS_NOT_SET;
1231           default:
1232             return null;
1233         }
1234       }
1235 
getNumber()1236       public int getNumber() {
1237         return this.value;
1238       }
1239     };
1240 
getOneofAccessCase()1241     public OneofAccessCase getOneofAccessCase() {
1242       return OneofAccessCase.forNumber(oneofAccessCase_);
1243     }
1244 
1245     public static final int ROLE_FIELD_NUMBER = 1;
1246     /**
1247      *
1248      *
1249      * <pre>
1250      * The role.
1251      * </pre>
1252      *
1253      * <code>string role = 1;</code>
1254      *
1255      * @return Whether the role field is set.
1256      */
hasRole()1257     public boolean hasRole() {
1258       return oneofAccessCase_ == 1;
1259     }
1260     /**
1261      *
1262      *
1263      * <pre>
1264      * The role.
1265      * </pre>
1266      *
1267      * <code>string role = 1;</code>
1268      *
1269      * @return The role.
1270      */
getRole()1271     public java.lang.String getRole() {
1272       java.lang.Object ref = "";
1273       if (oneofAccessCase_ == 1) {
1274         ref = oneofAccess_;
1275       }
1276       if (ref instanceof java.lang.String) {
1277         return (java.lang.String) ref;
1278       } else {
1279         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1280         java.lang.String s = bs.toStringUtf8();
1281         if (oneofAccessCase_ == 1) {
1282           oneofAccess_ = s;
1283         }
1284         return s;
1285       }
1286     }
1287     /**
1288      *
1289      *
1290      * <pre>
1291      * The role.
1292      * </pre>
1293      *
1294      * <code>string role = 1;</code>
1295      *
1296      * @return The bytes for role.
1297      */
getRoleBytes()1298     public com.google.protobuf.ByteString getRoleBytes() {
1299       java.lang.Object ref = "";
1300       if (oneofAccessCase_ == 1) {
1301         ref = oneofAccess_;
1302       }
1303       if (ref instanceof java.lang.String) {
1304         com.google.protobuf.ByteString b =
1305             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1306         if (oneofAccessCase_ == 1) {
1307           oneofAccess_ = b;
1308         }
1309         return b;
1310       } else {
1311         return (com.google.protobuf.ByteString) ref;
1312       }
1313     }
1314 
1315     public static final int PERMISSION_FIELD_NUMBER = 2;
1316     /**
1317      *
1318      *
1319      * <pre>
1320      * The permission.
1321      * </pre>
1322      *
1323      * <code>string permission = 2;</code>
1324      *
1325      * @return Whether the permission field is set.
1326      */
hasPermission()1327     public boolean hasPermission() {
1328       return oneofAccessCase_ == 2;
1329     }
1330     /**
1331      *
1332      *
1333      * <pre>
1334      * The permission.
1335      * </pre>
1336      *
1337      * <code>string permission = 2;</code>
1338      *
1339      * @return The permission.
1340      */
getPermission()1341     public java.lang.String getPermission() {
1342       java.lang.Object ref = "";
1343       if (oneofAccessCase_ == 2) {
1344         ref = oneofAccess_;
1345       }
1346       if (ref instanceof java.lang.String) {
1347         return (java.lang.String) ref;
1348       } else {
1349         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1350         java.lang.String s = bs.toStringUtf8();
1351         if (oneofAccessCase_ == 2) {
1352           oneofAccess_ = s;
1353         }
1354         return s;
1355       }
1356     }
1357     /**
1358      *
1359      *
1360      * <pre>
1361      * The permission.
1362      * </pre>
1363      *
1364      * <code>string permission = 2;</code>
1365      *
1366      * @return The bytes for permission.
1367      */
getPermissionBytes()1368     public com.google.protobuf.ByteString getPermissionBytes() {
1369       java.lang.Object ref = "";
1370       if (oneofAccessCase_ == 2) {
1371         ref = oneofAccess_;
1372       }
1373       if (ref instanceof java.lang.String) {
1374         com.google.protobuf.ByteString b =
1375             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1376         if (oneofAccessCase_ == 2) {
1377           oneofAccess_ = b;
1378         }
1379         return b;
1380       } else {
1381         return (com.google.protobuf.ByteString) ref;
1382       }
1383     }
1384 
1385     public static final int ANALYSIS_STATE_FIELD_NUMBER = 3;
1386     private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_;
1387     /**
1388      *
1389      *
1390      * <pre>
1391      * The analysis state of this access.
1392      * </pre>
1393      *
1394      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
1395      *
1396      * @return Whether the analysisState field is set.
1397      */
1398     @java.lang.Override
hasAnalysisState()1399     public boolean hasAnalysisState() {
1400       return analysisState_ != null;
1401     }
1402     /**
1403      *
1404      *
1405      * <pre>
1406      * The analysis state of this access.
1407      * </pre>
1408      *
1409      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
1410      *
1411      * @return The analysisState.
1412      */
1413     @java.lang.Override
getAnalysisState()1414     public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() {
1415       return analysisState_ == null
1416           ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
1417           : analysisState_;
1418     }
1419     /**
1420      *
1421      *
1422      * <pre>
1423      * The analysis state of this access.
1424      * </pre>
1425      *
1426      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
1427      */
1428     @java.lang.Override
getAnalysisStateOrBuilder()1429     public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder() {
1430       return analysisState_ == null
1431           ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
1432           : analysisState_;
1433     }
1434 
1435     private byte memoizedIsInitialized = -1;
1436 
1437     @java.lang.Override
isInitialized()1438     public final boolean isInitialized() {
1439       byte isInitialized = memoizedIsInitialized;
1440       if (isInitialized == 1) return true;
1441       if (isInitialized == 0) return false;
1442 
1443       memoizedIsInitialized = 1;
1444       return true;
1445     }
1446 
1447     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1448     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1449       if (oneofAccessCase_ == 1) {
1450         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneofAccess_);
1451       }
1452       if (oneofAccessCase_ == 2) {
1453         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneofAccess_);
1454       }
1455       if (analysisState_ != null) {
1456         output.writeMessage(3, getAnalysisState());
1457       }
1458       getUnknownFields().writeTo(output);
1459     }
1460 
1461     @java.lang.Override
getSerializedSize()1462     public int getSerializedSize() {
1463       int size = memoizedSize;
1464       if (size != -1) return size;
1465 
1466       size = 0;
1467       if (oneofAccessCase_ == 1) {
1468         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneofAccess_);
1469       }
1470       if (oneofAccessCase_ == 2) {
1471         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneofAccess_);
1472       }
1473       if (analysisState_ != null) {
1474         size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnalysisState());
1475       }
1476       size += getUnknownFields().getSerializedSize();
1477       memoizedSize = size;
1478       return size;
1479     }
1480 
1481     @java.lang.Override
equals(final java.lang.Object obj)1482     public boolean equals(final java.lang.Object obj) {
1483       if (obj == this) {
1484         return true;
1485       }
1486       if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access)) {
1487         return super.equals(obj);
1488       }
1489       com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other =
1490           (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) obj;
1491 
1492       if (hasAnalysisState() != other.hasAnalysisState()) return false;
1493       if (hasAnalysisState()) {
1494         if (!getAnalysisState().equals(other.getAnalysisState())) return false;
1495       }
1496       if (!getOneofAccessCase().equals(other.getOneofAccessCase())) return false;
1497       switch (oneofAccessCase_) {
1498         case 1:
1499           if (!getRole().equals(other.getRole())) return false;
1500           break;
1501         case 2:
1502           if (!getPermission().equals(other.getPermission())) return false;
1503           break;
1504         case 0:
1505         default:
1506       }
1507       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1508       return true;
1509     }
1510 
1511     @java.lang.Override
hashCode()1512     public int hashCode() {
1513       if (memoizedHashCode != 0) {
1514         return memoizedHashCode;
1515       }
1516       int hash = 41;
1517       hash = (19 * hash) + getDescriptor().hashCode();
1518       if (hasAnalysisState()) {
1519         hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER;
1520         hash = (53 * hash) + getAnalysisState().hashCode();
1521       }
1522       switch (oneofAccessCase_) {
1523         case 1:
1524           hash = (37 * hash) + ROLE_FIELD_NUMBER;
1525           hash = (53 * hash) + getRole().hashCode();
1526           break;
1527         case 2:
1528           hash = (37 * hash) + PERMISSION_FIELD_NUMBER;
1529           hash = (53 * hash) + getPermission().hashCode();
1530           break;
1531         case 0:
1532         default:
1533       }
1534       hash = (29 * hash) + getUnknownFields().hashCode();
1535       memoizedHashCode = hash;
1536       return hash;
1537     }
1538 
parseFrom( java.nio.ByteBuffer data)1539     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1540         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1541       return PARSER.parseFrom(data);
1542     }
1543 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1544     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1545         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1546         throws com.google.protobuf.InvalidProtocolBufferException {
1547       return PARSER.parseFrom(data, extensionRegistry);
1548     }
1549 
parseFrom( com.google.protobuf.ByteString data)1550     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1551         com.google.protobuf.ByteString data)
1552         throws com.google.protobuf.InvalidProtocolBufferException {
1553       return PARSER.parseFrom(data);
1554     }
1555 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1556     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1557         com.google.protobuf.ByteString data,
1558         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1559         throws com.google.protobuf.InvalidProtocolBufferException {
1560       return PARSER.parseFrom(data, extensionRegistry);
1561     }
1562 
parseFrom(byte[] data)1563     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(byte[] data)
1564         throws com.google.protobuf.InvalidProtocolBufferException {
1565       return PARSER.parseFrom(data);
1566     }
1567 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1568     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1569         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1570         throws com.google.protobuf.InvalidProtocolBufferException {
1571       return PARSER.parseFrom(data, extensionRegistry);
1572     }
1573 
parseFrom( java.io.InputStream input)1574     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1575         java.io.InputStream input) throws java.io.IOException {
1576       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1577     }
1578 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1579     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1580         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1581         throws java.io.IOException {
1582       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1583           PARSER, input, extensionRegistry);
1584     }
1585 
parseDelimitedFrom( java.io.InputStream input)1586     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom(
1587         java.io.InputStream input) throws java.io.IOException {
1588       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1589     }
1590 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1591     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom(
1592         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1593         throws java.io.IOException {
1594       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1595           PARSER, input, extensionRegistry);
1596     }
1597 
parseFrom( com.google.protobuf.CodedInputStream input)1598     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1599         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1600       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1601     }
1602 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1603     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(
1604         com.google.protobuf.CodedInputStream input,
1605         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1606         throws java.io.IOException {
1607       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1608           PARSER, input, extensionRegistry);
1609     }
1610 
1611     @java.lang.Override
newBuilderForType()1612     public Builder newBuilderForType() {
1613       return newBuilder();
1614     }
1615 
newBuilder()1616     public static Builder newBuilder() {
1617       return DEFAULT_INSTANCE.toBuilder();
1618     }
1619 
newBuilder( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access prototype)1620     public static Builder newBuilder(
1621         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access prototype) {
1622       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1623     }
1624 
1625     @java.lang.Override
toBuilder()1626     public Builder toBuilder() {
1627       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1628     }
1629 
1630     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1631     protected Builder newBuilderForType(
1632         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1633       Builder builder = new Builder(parent);
1634       return builder;
1635     }
1636     /**
1637      *
1638      *
1639      * <pre>
1640      * An IAM role or permission under analysis.
1641      * </pre>
1642      *
1643      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Access}
1644      */
1645     public static final class Builder
1646         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1647         implements
1648         // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Access)
1649         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder {
getDescriptor()1650       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1651         return com.google.cloud.asset.v1.AssetProto
1652             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor;
1653       }
1654 
1655       @java.lang.Override
1656       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1657           internalGetFieldAccessorTable() {
1658         return com.google.cloud.asset.v1.AssetProto
1659             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable
1660             .ensureFieldAccessorsInitialized(
1661                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class,
1662                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class);
1663       }
1664 
1665       // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.newBuilder()
Builder()1666       private Builder() {}
1667 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1668       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1669         super(parent);
1670       }
1671 
1672       @java.lang.Override
clear()1673       public Builder clear() {
1674         super.clear();
1675         bitField0_ = 0;
1676         analysisState_ = null;
1677         if (analysisStateBuilder_ != null) {
1678           analysisStateBuilder_.dispose();
1679           analysisStateBuilder_ = null;
1680         }
1681         oneofAccessCase_ = 0;
1682         oneofAccess_ = null;
1683         return this;
1684       }
1685 
1686       @java.lang.Override
getDescriptorForType()1687       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1688         return com.google.cloud.asset.v1.AssetProto
1689             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor;
1690       }
1691 
1692       @java.lang.Override
getDefaultInstanceForType()1693       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaultInstanceForType() {
1694         return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance();
1695       }
1696 
1697       @java.lang.Override
build()1698       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access build() {
1699         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result = buildPartial();
1700         if (!result.isInitialized()) {
1701           throw newUninitializedMessageException(result);
1702         }
1703         return result;
1704       }
1705 
1706       @java.lang.Override
buildPartial()1707       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access buildPartial() {
1708         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result =
1709             new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(this);
1710         if (bitField0_ != 0) {
1711           buildPartial0(result);
1712         }
1713         buildPartialOneofs(result);
1714         onBuilt();
1715         return result;
1716       }
1717 
buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result)1718       private void buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result) {
1719         int from_bitField0_ = bitField0_;
1720         if (((from_bitField0_ & 0x00000004) != 0)) {
1721           result.analysisState_ =
1722               analysisStateBuilder_ == null ? analysisState_ : analysisStateBuilder_.build();
1723         }
1724       }
1725 
buildPartialOneofs( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result)1726       private void buildPartialOneofs(
1727           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result) {
1728         result.oneofAccessCase_ = oneofAccessCase_;
1729         result.oneofAccess_ = this.oneofAccess_;
1730       }
1731 
1732       @java.lang.Override
clone()1733       public Builder clone() {
1734         return super.clone();
1735       }
1736 
1737       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1738       public Builder setField(
1739           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1740         return super.setField(field, value);
1741       }
1742 
1743       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1744       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1745         return super.clearField(field);
1746       }
1747 
1748       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1749       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1750         return super.clearOneof(oneof);
1751       }
1752 
1753       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1754       public Builder setRepeatedField(
1755           com.google.protobuf.Descriptors.FieldDescriptor field,
1756           int index,
1757           java.lang.Object value) {
1758         return super.setRepeatedField(field, index, value);
1759       }
1760 
1761       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1762       public Builder addRepeatedField(
1763           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1764         return super.addRepeatedField(field, value);
1765       }
1766 
1767       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1768       public Builder mergeFrom(com.google.protobuf.Message other) {
1769         if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) {
1770           return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) other);
1771         } else {
1772           super.mergeFrom(other);
1773           return this;
1774         }
1775       }
1776 
mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other)1777       public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other) {
1778         if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance())
1779           return this;
1780         if (other.hasAnalysisState()) {
1781           mergeAnalysisState(other.getAnalysisState());
1782         }
1783         switch (other.getOneofAccessCase()) {
1784           case ROLE:
1785             {
1786               oneofAccessCase_ = 1;
1787               oneofAccess_ = other.oneofAccess_;
1788               onChanged();
1789               break;
1790             }
1791           case PERMISSION:
1792             {
1793               oneofAccessCase_ = 2;
1794               oneofAccess_ = other.oneofAccess_;
1795               onChanged();
1796               break;
1797             }
1798           case ONEOFACCESS_NOT_SET:
1799             {
1800               break;
1801             }
1802         }
1803         this.mergeUnknownFields(other.getUnknownFields());
1804         onChanged();
1805         return this;
1806       }
1807 
1808       @java.lang.Override
isInitialized()1809       public final boolean isInitialized() {
1810         return true;
1811       }
1812 
1813       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1814       public Builder mergeFrom(
1815           com.google.protobuf.CodedInputStream input,
1816           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1817           throws java.io.IOException {
1818         if (extensionRegistry == null) {
1819           throw new java.lang.NullPointerException();
1820         }
1821         try {
1822           boolean done = false;
1823           while (!done) {
1824             int tag = input.readTag();
1825             switch (tag) {
1826               case 0:
1827                 done = true;
1828                 break;
1829               case 10:
1830                 {
1831                   java.lang.String s = input.readStringRequireUtf8();
1832                   oneofAccessCase_ = 1;
1833                   oneofAccess_ = s;
1834                   break;
1835                 } // case 10
1836               case 18:
1837                 {
1838                   java.lang.String s = input.readStringRequireUtf8();
1839                   oneofAccessCase_ = 2;
1840                   oneofAccess_ = s;
1841                   break;
1842                 } // case 18
1843               case 26:
1844                 {
1845                   input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry);
1846                   bitField0_ |= 0x00000004;
1847                   break;
1848                 } // case 26
1849               default:
1850                 {
1851                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1852                     done = true; // was an endgroup tag
1853                   }
1854                   break;
1855                 } // default:
1856             } // switch (tag)
1857           } // while (!done)
1858         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1859           throw e.unwrapIOException();
1860         } finally {
1861           onChanged();
1862         } // finally
1863         return this;
1864       }
1865 
1866       private int oneofAccessCase_ = 0;
1867       private java.lang.Object oneofAccess_;
1868 
getOneofAccessCase()1869       public OneofAccessCase getOneofAccessCase() {
1870         return OneofAccessCase.forNumber(oneofAccessCase_);
1871       }
1872 
clearOneofAccess()1873       public Builder clearOneofAccess() {
1874         oneofAccessCase_ = 0;
1875         oneofAccess_ = null;
1876         onChanged();
1877         return this;
1878       }
1879 
1880       private int bitField0_;
1881 
1882       /**
1883        *
1884        *
1885        * <pre>
1886        * The role.
1887        * </pre>
1888        *
1889        * <code>string role = 1;</code>
1890        *
1891        * @return Whether the role field is set.
1892        */
1893       @java.lang.Override
hasRole()1894       public boolean hasRole() {
1895         return oneofAccessCase_ == 1;
1896       }
1897       /**
1898        *
1899        *
1900        * <pre>
1901        * The role.
1902        * </pre>
1903        *
1904        * <code>string role = 1;</code>
1905        *
1906        * @return The role.
1907        */
1908       @java.lang.Override
getRole()1909       public java.lang.String getRole() {
1910         java.lang.Object ref = "";
1911         if (oneofAccessCase_ == 1) {
1912           ref = oneofAccess_;
1913         }
1914         if (!(ref instanceof java.lang.String)) {
1915           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1916           java.lang.String s = bs.toStringUtf8();
1917           if (oneofAccessCase_ == 1) {
1918             oneofAccess_ = s;
1919           }
1920           return s;
1921         } else {
1922           return (java.lang.String) ref;
1923         }
1924       }
1925       /**
1926        *
1927        *
1928        * <pre>
1929        * The role.
1930        * </pre>
1931        *
1932        * <code>string role = 1;</code>
1933        *
1934        * @return The bytes for role.
1935        */
1936       @java.lang.Override
getRoleBytes()1937       public com.google.protobuf.ByteString getRoleBytes() {
1938         java.lang.Object ref = "";
1939         if (oneofAccessCase_ == 1) {
1940           ref = oneofAccess_;
1941         }
1942         if (ref instanceof String) {
1943           com.google.protobuf.ByteString b =
1944               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1945           if (oneofAccessCase_ == 1) {
1946             oneofAccess_ = b;
1947           }
1948           return b;
1949         } else {
1950           return (com.google.protobuf.ByteString) ref;
1951         }
1952       }
1953       /**
1954        *
1955        *
1956        * <pre>
1957        * The role.
1958        * </pre>
1959        *
1960        * <code>string role = 1;</code>
1961        *
1962        * @param value The role to set.
1963        * @return This builder for chaining.
1964        */
setRole(java.lang.String value)1965       public Builder setRole(java.lang.String value) {
1966         if (value == null) {
1967           throw new NullPointerException();
1968         }
1969         oneofAccessCase_ = 1;
1970         oneofAccess_ = value;
1971         onChanged();
1972         return this;
1973       }
1974       /**
1975        *
1976        *
1977        * <pre>
1978        * The role.
1979        * </pre>
1980        *
1981        * <code>string role = 1;</code>
1982        *
1983        * @return This builder for chaining.
1984        */
clearRole()1985       public Builder clearRole() {
1986         if (oneofAccessCase_ == 1) {
1987           oneofAccessCase_ = 0;
1988           oneofAccess_ = null;
1989           onChanged();
1990         }
1991         return this;
1992       }
1993       /**
1994        *
1995        *
1996        * <pre>
1997        * The role.
1998        * </pre>
1999        *
2000        * <code>string role = 1;</code>
2001        *
2002        * @param value The bytes for role to set.
2003        * @return This builder for chaining.
2004        */
setRoleBytes(com.google.protobuf.ByteString value)2005       public Builder setRoleBytes(com.google.protobuf.ByteString value) {
2006         if (value == null) {
2007           throw new NullPointerException();
2008         }
2009         checkByteStringIsUtf8(value);
2010         oneofAccessCase_ = 1;
2011         oneofAccess_ = value;
2012         onChanged();
2013         return this;
2014       }
2015 
2016       /**
2017        *
2018        *
2019        * <pre>
2020        * The permission.
2021        * </pre>
2022        *
2023        * <code>string permission = 2;</code>
2024        *
2025        * @return Whether the permission field is set.
2026        */
2027       @java.lang.Override
hasPermission()2028       public boolean hasPermission() {
2029         return oneofAccessCase_ == 2;
2030       }
2031       /**
2032        *
2033        *
2034        * <pre>
2035        * The permission.
2036        * </pre>
2037        *
2038        * <code>string permission = 2;</code>
2039        *
2040        * @return The permission.
2041        */
2042       @java.lang.Override
getPermission()2043       public java.lang.String getPermission() {
2044         java.lang.Object ref = "";
2045         if (oneofAccessCase_ == 2) {
2046           ref = oneofAccess_;
2047         }
2048         if (!(ref instanceof java.lang.String)) {
2049           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2050           java.lang.String s = bs.toStringUtf8();
2051           if (oneofAccessCase_ == 2) {
2052             oneofAccess_ = s;
2053           }
2054           return s;
2055         } else {
2056           return (java.lang.String) ref;
2057         }
2058       }
2059       /**
2060        *
2061        *
2062        * <pre>
2063        * The permission.
2064        * </pre>
2065        *
2066        * <code>string permission = 2;</code>
2067        *
2068        * @return The bytes for permission.
2069        */
2070       @java.lang.Override
getPermissionBytes()2071       public com.google.protobuf.ByteString getPermissionBytes() {
2072         java.lang.Object ref = "";
2073         if (oneofAccessCase_ == 2) {
2074           ref = oneofAccess_;
2075         }
2076         if (ref instanceof String) {
2077           com.google.protobuf.ByteString b =
2078               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2079           if (oneofAccessCase_ == 2) {
2080             oneofAccess_ = b;
2081           }
2082           return b;
2083         } else {
2084           return (com.google.protobuf.ByteString) ref;
2085         }
2086       }
2087       /**
2088        *
2089        *
2090        * <pre>
2091        * The permission.
2092        * </pre>
2093        *
2094        * <code>string permission = 2;</code>
2095        *
2096        * @param value The permission to set.
2097        * @return This builder for chaining.
2098        */
setPermission(java.lang.String value)2099       public Builder setPermission(java.lang.String value) {
2100         if (value == null) {
2101           throw new NullPointerException();
2102         }
2103         oneofAccessCase_ = 2;
2104         oneofAccess_ = value;
2105         onChanged();
2106         return this;
2107       }
2108       /**
2109        *
2110        *
2111        * <pre>
2112        * The permission.
2113        * </pre>
2114        *
2115        * <code>string permission = 2;</code>
2116        *
2117        * @return This builder for chaining.
2118        */
clearPermission()2119       public Builder clearPermission() {
2120         if (oneofAccessCase_ == 2) {
2121           oneofAccessCase_ = 0;
2122           oneofAccess_ = null;
2123           onChanged();
2124         }
2125         return this;
2126       }
2127       /**
2128        *
2129        *
2130        * <pre>
2131        * The permission.
2132        * </pre>
2133        *
2134        * <code>string permission = 2;</code>
2135        *
2136        * @param value The bytes for permission to set.
2137        * @return This builder for chaining.
2138        */
setPermissionBytes(com.google.protobuf.ByteString value)2139       public Builder setPermissionBytes(com.google.protobuf.ByteString value) {
2140         if (value == null) {
2141           throw new NullPointerException();
2142         }
2143         checkByteStringIsUtf8(value);
2144         oneofAccessCase_ = 2;
2145         oneofAccess_ = value;
2146         onChanged();
2147         return this;
2148       }
2149 
2150       private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_;
2151       private com.google.protobuf.SingleFieldBuilderV3<
2152               com.google.cloud.asset.v1.IamPolicyAnalysisState,
2153               com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
2154               com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
2155           analysisStateBuilder_;
2156       /**
2157        *
2158        *
2159        * <pre>
2160        * The analysis state of this access.
2161        * </pre>
2162        *
2163        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2164        *
2165        * @return Whether the analysisState field is set.
2166        */
hasAnalysisState()2167       public boolean hasAnalysisState() {
2168         return ((bitField0_ & 0x00000004) != 0);
2169       }
2170       /**
2171        *
2172        *
2173        * <pre>
2174        * The analysis state of this access.
2175        * </pre>
2176        *
2177        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2178        *
2179        * @return The analysisState.
2180        */
getAnalysisState()2181       public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() {
2182         if (analysisStateBuilder_ == null) {
2183           return analysisState_ == null
2184               ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
2185               : analysisState_;
2186         } else {
2187           return analysisStateBuilder_.getMessage();
2188         }
2189       }
2190       /**
2191        *
2192        *
2193        * <pre>
2194        * The analysis state of this access.
2195        * </pre>
2196        *
2197        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2198        */
setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value)2199       public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
2200         if (analysisStateBuilder_ == null) {
2201           if (value == null) {
2202             throw new NullPointerException();
2203           }
2204           analysisState_ = value;
2205         } else {
2206           analysisStateBuilder_.setMessage(value);
2207         }
2208         bitField0_ |= 0x00000004;
2209         onChanged();
2210         return this;
2211       }
2212       /**
2213        *
2214        *
2215        * <pre>
2216        * The analysis state of this access.
2217        * </pre>
2218        *
2219        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2220        */
setAnalysisState( com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue)2221       public Builder setAnalysisState(
2222           com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) {
2223         if (analysisStateBuilder_ == null) {
2224           analysisState_ = builderForValue.build();
2225         } else {
2226           analysisStateBuilder_.setMessage(builderForValue.build());
2227         }
2228         bitField0_ |= 0x00000004;
2229         onChanged();
2230         return this;
2231       }
2232       /**
2233        *
2234        *
2235        * <pre>
2236        * The analysis state of this access.
2237        * </pre>
2238        *
2239        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2240        */
mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value)2241       public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
2242         if (analysisStateBuilder_ == null) {
2243           if (((bitField0_ & 0x00000004) != 0)
2244               && analysisState_ != null
2245               && analysisState_
2246                   != com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()) {
2247             getAnalysisStateBuilder().mergeFrom(value);
2248           } else {
2249             analysisState_ = value;
2250           }
2251         } else {
2252           analysisStateBuilder_.mergeFrom(value);
2253         }
2254         bitField0_ |= 0x00000004;
2255         onChanged();
2256         return this;
2257       }
2258       /**
2259        *
2260        *
2261        * <pre>
2262        * The analysis state of this access.
2263        * </pre>
2264        *
2265        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2266        */
clearAnalysisState()2267       public Builder clearAnalysisState() {
2268         bitField0_ = (bitField0_ & ~0x00000004);
2269         analysisState_ = null;
2270         if (analysisStateBuilder_ != null) {
2271           analysisStateBuilder_.dispose();
2272           analysisStateBuilder_ = null;
2273         }
2274         onChanged();
2275         return this;
2276       }
2277       /**
2278        *
2279        *
2280        * <pre>
2281        * The analysis state of this access.
2282        * </pre>
2283        *
2284        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2285        */
getAnalysisStateBuilder()2286       public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() {
2287         bitField0_ |= 0x00000004;
2288         onChanged();
2289         return getAnalysisStateFieldBuilder().getBuilder();
2290       }
2291       /**
2292        *
2293        *
2294        * <pre>
2295        * The analysis state of this access.
2296        * </pre>
2297        *
2298        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2299        */
getAnalysisStateOrBuilder()2300       public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder() {
2301         if (analysisStateBuilder_ != null) {
2302           return analysisStateBuilder_.getMessageOrBuilder();
2303         } else {
2304           return analysisState_ == null
2305               ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
2306               : analysisState_;
2307         }
2308       }
2309       /**
2310        *
2311        *
2312        * <pre>
2313        * The analysis state of this access.
2314        * </pre>
2315        *
2316        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;</code>
2317        */
2318       private com.google.protobuf.SingleFieldBuilderV3<
2319               com.google.cloud.asset.v1.IamPolicyAnalysisState,
2320               com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
2321               com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
getAnalysisStateFieldBuilder()2322           getAnalysisStateFieldBuilder() {
2323         if (analysisStateBuilder_ == null) {
2324           analysisStateBuilder_ =
2325               new com.google.protobuf.SingleFieldBuilderV3<
2326                   com.google.cloud.asset.v1.IamPolicyAnalysisState,
2327                   com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
2328                   com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>(
2329                   getAnalysisState(), getParentForChildren(), isClean());
2330           analysisState_ = null;
2331         }
2332         return analysisStateBuilder_;
2333       }
2334 
2335       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2336       public final Builder setUnknownFields(
2337           final com.google.protobuf.UnknownFieldSet unknownFields) {
2338         return super.setUnknownFields(unknownFields);
2339       }
2340 
2341       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2342       public final Builder mergeUnknownFields(
2343           final com.google.protobuf.UnknownFieldSet unknownFields) {
2344         return super.mergeUnknownFields(unknownFields);
2345       }
2346 
2347       // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Access)
2348     }
2349 
2350     // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Access)
2351     private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access DEFAULT_INSTANCE;
2352 
2353     static {
2354       DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access();
2355     }
2356 
getDefaultInstance()2357     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaultInstance() {
2358       return DEFAULT_INSTANCE;
2359     }
2360 
2361     private static final com.google.protobuf.Parser<Access> PARSER =
2362         new com.google.protobuf.AbstractParser<Access>() {
2363           @java.lang.Override
2364           public Access parsePartialFrom(
2365               com.google.protobuf.CodedInputStream input,
2366               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2367               throws com.google.protobuf.InvalidProtocolBufferException {
2368             Builder builder = newBuilder();
2369             try {
2370               builder.mergeFrom(input, extensionRegistry);
2371             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2372               throw e.setUnfinishedMessage(builder.buildPartial());
2373             } catch (com.google.protobuf.UninitializedMessageException e) {
2374               throw e.asInvalidProtocolBufferException()
2375                   .setUnfinishedMessage(builder.buildPartial());
2376             } catch (java.io.IOException e) {
2377               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2378                   .setUnfinishedMessage(builder.buildPartial());
2379             }
2380             return builder.buildPartial();
2381           }
2382         };
2383 
parser()2384     public static com.google.protobuf.Parser<Access> parser() {
2385       return PARSER;
2386     }
2387 
2388     @java.lang.Override
getParserForType()2389     public com.google.protobuf.Parser<Access> getParserForType() {
2390       return PARSER;
2391     }
2392 
2393     @java.lang.Override
getDefaultInstanceForType()2394     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaultInstanceForType() {
2395       return DEFAULT_INSTANCE;
2396     }
2397   }
2398 
2399   public interface IdentityOrBuilder
2400       extends
2401       // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)
2402       com.google.protobuf.MessageOrBuilder {
2403 
2404     /**
2405      *
2406      *
2407      * <pre>
2408      * The identity name in any form of members appear in
2409      * [IAM policy
2410      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
2411      * as:
2412      * - user:foo&#64;google.com
2413      * - group:group1&#64;google.com
2414      * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
2415      * - projectOwner:some_project_id
2416      * - domain:google.com
2417      * - allUsers
2418      * - etc.
2419      * </pre>
2420      *
2421      * <code>string name = 1;</code>
2422      *
2423      * @return The name.
2424      */
getName()2425     java.lang.String getName();
2426     /**
2427      *
2428      *
2429      * <pre>
2430      * The identity name in any form of members appear in
2431      * [IAM policy
2432      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
2433      * as:
2434      * - user:foo&#64;google.com
2435      * - group:group1&#64;google.com
2436      * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
2437      * - projectOwner:some_project_id
2438      * - domain:google.com
2439      * - allUsers
2440      * - etc.
2441      * </pre>
2442      *
2443      * <code>string name = 1;</code>
2444      *
2445      * @return The bytes for name.
2446      */
getNameBytes()2447     com.google.protobuf.ByteString getNameBytes();
2448 
2449     /**
2450      *
2451      *
2452      * <pre>
2453      * The analysis state of this identity.
2454      * </pre>
2455      *
2456      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
2457      *
2458      * @return Whether the analysisState field is set.
2459      */
hasAnalysisState()2460     boolean hasAnalysisState();
2461     /**
2462      *
2463      *
2464      * <pre>
2465      * The analysis state of this identity.
2466      * </pre>
2467      *
2468      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
2469      *
2470      * @return The analysisState.
2471      */
getAnalysisState()2472     com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState();
2473     /**
2474      *
2475      *
2476      * <pre>
2477      * The analysis state of this identity.
2478      * </pre>
2479      *
2480      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
2481      */
getAnalysisStateOrBuilder()2482     com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder();
2483   }
2484   /**
2485    *
2486    *
2487    * <pre>
2488    * An identity under analysis.
2489    * </pre>
2490    *
2491    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Identity}
2492    */
2493   public static final class Identity extends com.google.protobuf.GeneratedMessageV3
2494       implements
2495       // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)
2496       IdentityOrBuilder {
2497     private static final long serialVersionUID = 0L;
2498     // Use Identity.newBuilder() to construct.
Identity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)2499     private Identity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
2500       super(builder);
2501     }
2502 
Identity()2503     private Identity() {
2504       name_ = "";
2505     }
2506 
2507     @java.lang.Override
2508     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)2509     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
2510       return new Identity();
2511     }
2512 
2513     @java.lang.Override
getUnknownFields()2514     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
2515       return this.unknownFields;
2516     }
2517 
getDescriptor()2518     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2519       return com.google.cloud.asset.v1.AssetProto
2520           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor;
2521     }
2522 
2523     @java.lang.Override
2524     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2525         internalGetFieldAccessorTable() {
2526       return com.google.cloud.asset.v1.AssetProto
2527           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable
2528           .ensureFieldAccessorsInitialized(
2529               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class,
2530               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class);
2531     }
2532 
2533     public static final int NAME_FIELD_NUMBER = 1;
2534 
2535     @SuppressWarnings("serial")
2536     private volatile java.lang.Object name_ = "";
2537     /**
2538      *
2539      *
2540      * <pre>
2541      * The identity name in any form of members appear in
2542      * [IAM policy
2543      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
2544      * as:
2545      * - user:foo&#64;google.com
2546      * - group:group1&#64;google.com
2547      * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
2548      * - projectOwner:some_project_id
2549      * - domain:google.com
2550      * - allUsers
2551      * - etc.
2552      * </pre>
2553      *
2554      * <code>string name = 1;</code>
2555      *
2556      * @return The name.
2557      */
2558     @java.lang.Override
getName()2559     public java.lang.String getName() {
2560       java.lang.Object ref = name_;
2561       if (ref instanceof java.lang.String) {
2562         return (java.lang.String) ref;
2563       } else {
2564         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2565         java.lang.String s = bs.toStringUtf8();
2566         name_ = s;
2567         return s;
2568       }
2569     }
2570     /**
2571      *
2572      *
2573      * <pre>
2574      * The identity name in any form of members appear in
2575      * [IAM policy
2576      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
2577      * as:
2578      * - user:foo&#64;google.com
2579      * - group:group1&#64;google.com
2580      * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
2581      * - projectOwner:some_project_id
2582      * - domain:google.com
2583      * - allUsers
2584      * - etc.
2585      * </pre>
2586      *
2587      * <code>string name = 1;</code>
2588      *
2589      * @return The bytes for name.
2590      */
2591     @java.lang.Override
getNameBytes()2592     public com.google.protobuf.ByteString getNameBytes() {
2593       java.lang.Object ref = name_;
2594       if (ref instanceof java.lang.String) {
2595         com.google.protobuf.ByteString b =
2596             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2597         name_ = b;
2598         return b;
2599       } else {
2600         return (com.google.protobuf.ByteString) ref;
2601       }
2602     }
2603 
2604     public static final int ANALYSIS_STATE_FIELD_NUMBER = 2;
2605     private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_;
2606     /**
2607      *
2608      *
2609      * <pre>
2610      * The analysis state of this identity.
2611      * </pre>
2612      *
2613      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
2614      *
2615      * @return Whether the analysisState field is set.
2616      */
2617     @java.lang.Override
hasAnalysisState()2618     public boolean hasAnalysisState() {
2619       return analysisState_ != null;
2620     }
2621     /**
2622      *
2623      *
2624      * <pre>
2625      * The analysis state of this identity.
2626      * </pre>
2627      *
2628      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
2629      *
2630      * @return The analysisState.
2631      */
2632     @java.lang.Override
getAnalysisState()2633     public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() {
2634       return analysisState_ == null
2635           ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
2636           : analysisState_;
2637     }
2638     /**
2639      *
2640      *
2641      * <pre>
2642      * The analysis state of this identity.
2643      * </pre>
2644      *
2645      * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
2646      */
2647     @java.lang.Override
getAnalysisStateOrBuilder()2648     public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder() {
2649       return analysisState_ == null
2650           ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
2651           : analysisState_;
2652     }
2653 
2654     private byte memoizedIsInitialized = -1;
2655 
2656     @java.lang.Override
isInitialized()2657     public final boolean isInitialized() {
2658       byte isInitialized = memoizedIsInitialized;
2659       if (isInitialized == 1) return true;
2660       if (isInitialized == 0) return false;
2661 
2662       memoizedIsInitialized = 1;
2663       return true;
2664     }
2665 
2666     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)2667     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
2668       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
2669         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
2670       }
2671       if (analysisState_ != null) {
2672         output.writeMessage(2, getAnalysisState());
2673       }
2674       getUnknownFields().writeTo(output);
2675     }
2676 
2677     @java.lang.Override
getSerializedSize()2678     public int getSerializedSize() {
2679       int size = memoizedSize;
2680       if (size != -1) return size;
2681 
2682       size = 0;
2683       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
2684         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
2685       }
2686       if (analysisState_ != null) {
2687         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState());
2688       }
2689       size += getUnknownFields().getSerializedSize();
2690       memoizedSize = size;
2691       return size;
2692     }
2693 
2694     @java.lang.Override
equals(final java.lang.Object obj)2695     public boolean equals(final java.lang.Object obj) {
2696       if (obj == this) {
2697         return true;
2698       }
2699       if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)) {
2700         return super.equals(obj);
2701       }
2702       com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other =
2703           (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) obj;
2704 
2705       if (!getName().equals(other.getName())) return false;
2706       if (hasAnalysisState() != other.hasAnalysisState()) return false;
2707       if (hasAnalysisState()) {
2708         if (!getAnalysisState().equals(other.getAnalysisState())) return false;
2709       }
2710       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
2711       return true;
2712     }
2713 
2714     @java.lang.Override
hashCode()2715     public int hashCode() {
2716       if (memoizedHashCode != 0) {
2717         return memoizedHashCode;
2718       }
2719       int hash = 41;
2720       hash = (19 * hash) + getDescriptor().hashCode();
2721       hash = (37 * hash) + NAME_FIELD_NUMBER;
2722       hash = (53 * hash) + getName().hashCode();
2723       if (hasAnalysisState()) {
2724         hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER;
2725         hash = (53 * hash) + getAnalysisState().hashCode();
2726       }
2727       hash = (29 * hash) + getUnknownFields().hashCode();
2728       memoizedHashCode = hash;
2729       return hash;
2730     }
2731 
parseFrom( java.nio.ByteBuffer data)2732     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2733         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
2734       return PARSER.parseFrom(data);
2735     }
2736 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2737     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2738         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2739         throws com.google.protobuf.InvalidProtocolBufferException {
2740       return PARSER.parseFrom(data, extensionRegistry);
2741     }
2742 
parseFrom( com.google.protobuf.ByteString data)2743     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2744         com.google.protobuf.ByteString data)
2745         throws com.google.protobuf.InvalidProtocolBufferException {
2746       return PARSER.parseFrom(data);
2747     }
2748 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2749     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2750         com.google.protobuf.ByteString data,
2751         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2752         throws com.google.protobuf.InvalidProtocolBufferException {
2753       return PARSER.parseFrom(data, extensionRegistry);
2754     }
2755 
parseFrom(byte[] data)2756     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(byte[] data)
2757         throws com.google.protobuf.InvalidProtocolBufferException {
2758       return PARSER.parseFrom(data);
2759     }
2760 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2761     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2762         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2763         throws com.google.protobuf.InvalidProtocolBufferException {
2764       return PARSER.parseFrom(data, extensionRegistry);
2765     }
2766 
parseFrom( java.io.InputStream input)2767     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2768         java.io.InputStream input) throws java.io.IOException {
2769       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2770     }
2771 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2772     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2773         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2774         throws java.io.IOException {
2775       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2776           PARSER, input, extensionRegistry);
2777     }
2778 
parseDelimitedFrom( java.io.InputStream input)2779     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom(
2780         java.io.InputStream input) throws java.io.IOException {
2781       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2782     }
2783 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2784     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom(
2785         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2786         throws java.io.IOException {
2787       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2788           PARSER, input, extensionRegistry);
2789     }
2790 
parseFrom( com.google.protobuf.CodedInputStream input)2791     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2792         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2793       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2794     }
2795 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2796     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(
2797         com.google.protobuf.CodedInputStream input,
2798         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2799         throws java.io.IOException {
2800       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2801           PARSER, input, extensionRegistry);
2802     }
2803 
2804     @java.lang.Override
newBuilderForType()2805     public Builder newBuilderForType() {
2806       return newBuilder();
2807     }
2808 
newBuilder()2809     public static Builder newBuilder() {
2810       return DEFAULT_INSTANCE.toBuilder();
2811     }
2812 
newBuilder( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity prototype)2813     public static Builder newBuilder(
2814         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity prototype) {
2815       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2816     }
2817 
2818     @java.lang.Override
toBuilder()2819     public Builder toBuilder() {
2820       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2821     }
2822 
2823     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2824     protected Builder newBuilderForType(
2825         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2826       Builder builder = new Builder(parent);
2827       return builder;
2828     }
2829     /**
2830      *
2831      *
2832      * <pre>
2833      * An identity under analysis.
2834      * </pre>
2835      *
2836      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Identity}
2837      */
2838     public static final class Builder
2839         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2840         implements
2841         // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)
2842         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder {
getDescriptor()2843       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2844         return com.google.cloud.asset.v1.AssetProto
2845             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor;
2846       }
2847 
2848       @java.lang.Override
2849       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2850           internalGetFieldAccessorTable() {
2851         return com.google.cloud.asset.v1.AssetProto
2852             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable
2853             .ensureFieldAccessorsInitialized(
2854                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class,
2855                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class);
2856       }
2857 
2858       // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.newBuilder()
Builder()2859       private Builder() {}
2860 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2861       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2862         super(parent);
2863       }
2864 
2865       @java.lang.Override
clear()2866       public Builder clear() {
2867         super.clear();
2868         bitField0_ = 0;
2869         name_ = "";
2870         analysisState_ = null;
2871         if (analysisStateBuilder_ != null) {
2872           analysisStateBuilder_.dispose();
2873           analysisStateBuilder_ = null;
2874         }
2875         return this;
2876       }
2877 
2878       @java.lang.Override
getDescriptorForType()2879       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2880         return com.google.cloud.asset.v1.AssetProto
2881             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor;
2882       }
2883 
2884       @java.lang.Override
2885       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity
getDefaultInstanceForType()2886           getDefaultInstanceForType() {
2887         return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance();
2888       }
2889 
2890       @java.lang.Override
build()2891       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity build() {
2892         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result = buildPartial();
2893         if (!result.isInitialized()) {
2894           throw newUninitializedMessageException(result);
2895         }
2896         return result;
2897       }
2898 
2899       @java.lang.Override
buildPartial()2900       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity buildPartial() {
2901         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result =
2902             new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(this);
2903         if (bitField0_ != 0) {
2904           buildPartial0(result);
2905         }
2906         onBuilt();
2907         return result;
2908       }
2909 
buildPartial0( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result)2910       private void buildPartial0(
2911           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result) {
2912         int from_bitField0_ = bitField0_;
2913         if (((from_bitField0_ & 0x00000001) != 0)) {
2914           result.name_ = name_;
2915         }
2916         if (((from_bitField0_ & 0x00000002) != 0)) {
2917           result.analysisState_ =
2918               analysisStateBuilder_ == null ? analysisState_ : analysisStateBuilder_.build();
2919         }
2920       }
2921 
2922       @java.lang.Override
clone()2923       public Builder clone() {
2924         return super.clone();
2925       }
2926 
2927       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2928       public Builder setField(
2929           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2930         return super.setField(field, value);
2931       }
2932 
2933       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2934       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2935         return super.clearField(field);
2936       }
2937 
2938       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2939       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2940         return super.clearOneof(oneof);
2941       }
2942 
2943       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2944       public Builder setRepeatedField(
2945           com.google.protobuf.Descriptors.FieldDescriptor field,
2946           int index,
2947           java.lang.Object value) {
2948         return super.setRepeatedField(field, index, value);
2949       }
2950 
2951       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2952       public Builder addRepeatedField(
2953           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2954         return super.addRepeatedField(field, value);
2955       }
2956 
2957       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2958       public Builder mergeFrom(com.google.protobuf.Message other) {
2959         if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) {
2960           return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) other);
2961         } else {
2962           super.mergeFrom(other);
2963           return this;
2964         }
2965       }
2966 
mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other)2967       public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other) {
2968         if (other
2969             == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance())
2970           return this;
2971         if (!other.getName().isEmpty()) {
2972           name_ = other.name_;
2973           bitField0_ |= 0x00000001;
2974           onChanged();
2975         }
2976         if (other.hasAnalysisState()) {
2977           mergeAnalysisState(other.getAnalysisState());
2978         }
2979         this.mergeUnknownFields(other.getUnknownFields());
2980         onChanged();
2981         return this;
2982       }
2983 
2984       @java.lang.Override
isInitialized()2985       public final boolean isInitialized() {
2986         return true;
2987       }
2988 
2989       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2990       public Builder mergeFrom(
2991           com.google.protobuf.CodedInputStream input,
2992           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2993           throws java.io.IOException {
2994         if (extensionRegistry == null) {
2995           throw new java.lang.NullPointerException();
2996         }
2997         try {
2998           boolean done = false;
2999           while (!done) {
3000             int tag = input.readTag();
3001             switch (tag) {
3002               case 0:
3003                 done = true;
3004                 break;
3005               case 10:
3006                 {
3007                   name_ = input.readStringRequireUtf8();
3008                   bitField0_ |= 0x00000001;
3009                   break;
3010                 } // case 10
3011               case 18:
3012                 {
3013                   input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry);
3014                   bitField0_ |= 0x00000002;
3015                   break;
3016                 } // case 18
3017               default:
3018                 {
3019                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3020                     done = true; // was an endgroup tag
3021                   }
3022                   break;
3023                 } // default:
3024             } // switch (tag)
3025           } // while (!done)
3026         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3027           throw e.unwrapIOException();
3028         } finally {
3029           onChanged();
3030         } // finally
3031         return this;
3032       }
3033 
3034       private int bitField0_;
3035 
3036       private java.lang.Object name_ = "";
3037       /**
3038        *
3039        *
3040        * <pre>
3041        * The identity name in any form of members appear in
3042        * [IAM policy
3043        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
3044        * as:
3045        * - user:foo&#64;google.com
3046        * - group:group1&#64;google.com
3047        * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
3048        * - projectOwner:some_project_id
3049        * - domain:google.com
3050        * - allUsers
3051        * - etc.
3052        * </pre>
3053        *
3054        * <code>string name = 1;</code>
3055        *
3056        * @return The name.
3057        */
getName()3058       public java.lang.String getName() {
3059         java.lang.Object ref = name_;
3060         if (!(ref instanceof java.lang.String)) {
3061           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3062           java.lang.String s = bs.toStringUtf8();
3063           name_ = s;
3064           return s;
3065         } else {
3066           return (java.lang.String) ref;
3067         }
3068       }
3069       /**
3070        *
3071        *
3072        * <pre>
3073        * The identity name in any form of members appear in
3074        * [IAM policy
3075        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
3076        * as:
3077        * - user:foo&#64;google.com
3078        * - group:group1&#64;google.com
3079        * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
3080        * - projectOwner:some_project_id
3081        * - domain:google.com
3082        * - allUsers
3083        * - etc.
3084        * </pre>
3085        *
3086        * <code>string name = 1;</code>
3087        *
3088        * @return The bytes for name.
3089        */
getNameBytes()3090       public com.google.protobuf.ByteString getNameBytes() {
3091         java.lang.Object ref = name_;
3092         if (ref instanceof String) {
3093           com.google.protobuf.ByteString b =
3094               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3095           name_ = b;
3096           return b;
3097         } else {
3098           return (com.google.protobuf.ByteString) ref;
3099         }
3100       }
3101       /**
3102        *
3103        *
3104        * <pre>
3105        * The identity name in any form of members appear in
3106        * [IAM policy
3107        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
3108        * as:
3109        * - user:foo&#64;google.com
3110        * - group:group1&#64;google.com
3111        * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
3112        * - projectOwner:some_project_id
3113        * - domain:google.com
3114        * - allUsers
3115        * - etc.
3116        * </pre>
3117        *
3118        * <code>string name = 1;</code>
3119        *
3120        * @param value The name to set.
3121        * @return This builder for chaining.
3122        */
setName(java.lang.String value)3123       public Builder setName(java.lang.String value) {
3124         if (value == null) {
3125           throw new NullPointerException();
3126         }
3127         name_ = value;
3128         bitField0_ |= 0x00000001;
3129         onChanged();
3130         return this;
3131       }
3132       /**
3133        *
3134        *
3135        * <pre>
3136        * The identity name in any form of members appear in
3137        * [IAM policy
3138        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
3139        * as:
3140        * - user:foo&#64;google.com
3141        * - group:group1&#64;google.com
3142        * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
3143        * - projectOwner:some_project_id
3144        * - domain:google.com
3145        * - allUsers
3146        * - etc.
3147        * </pre>
3148        *
3149        * <code>string name = 1;</code>
3150        *
3151        * @return This builder for chaining.
3152        */
clearName()3153       public Builder clearName() {
3154         name_ = getDefaultInstance().getName();
3155         bitField0_ = (bitField0_ & ~0x00000001);
3156         onChanged();
3157         return this;
3158       }
3159       /**
3160        *
3161        *
3162        * <pre>
3163        * The identity name in any form of members appear in
3164        * [IAM policy
3165        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
3166        * as:
3167        * - user:foo&#64;google.com
3168        * - group:group1&#64;google.com
3169        * - serviceAccount:s1&#64;prj1.iam.gserviceaccount.com
3170        * - projectOwner:some_project_id
3171        * - domain:google.com
3172        * - allUsers
3173        * - etc.
3174        * </pre>
3175        *
3176        * <code>string name = 1;</code>
3177        *
3178        * @param value The bytes for name to set.
3179        * @return This builder for chaining.
3180        */
setNameBytes(com.google.protobuf.ByteString value)3181       public Builder setNameBytes(com.google.protobuf.ByteString value) {
3182         if (value == null) {
3183           throw new NullPointerException();
3184         }
3185         checkByteStringIsUtf8(value);
3186         name_ = value;
3187         bitField0_ |= 0x00000001;
3188         onChanged();
3189         return this;
3190       }
3191 
3192       private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_;
3193       private com.google.protobuf.SingleFieldBuilderV3<
3194               com.google.cloud.asset.v1.IamPolicyAnalysisState,
3195               com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
3196               com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
3197           analysisStateBuilder_;
3198       /**
3199        *
3200        *
3201        * <pre>
3202        * The analysis state of this identity.
3203        * </pre>
3204        *
3205        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3206        *
3207        * @return Whether the analysisState field is set.
3208        */
hasAnalysisState()3209       public boolean hasAnalysisState() {
3210         return ((bitField0_ & 0x00000002) != 0);
3211       }
3212       /**
3213        *
3214        *
3215        * <pre>
3216        * The analysis state of this identity.
3217        * </pre>
3218        *
3219        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3220        *
3221        * @return The analysisState.
3222        */
getAnalysisState()3223       public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() {
3224         if (analysisStateBuilder_ == null) {
3225           return analysisState_ == null
3226               ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
3227               : analysisState_;
3228         } else {
3229           return analysisStateBuilder_.getMessage();
3230         }
3231       }
3232       /**
3233        *
3234        *
3235        * <pre>
3236        * The analysis state of this identity.
3237        * </pre>
3238        *
3239        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3240        */
setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value)3241       public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
3242         if (analysisStateBuilder_ == null) {
3243           if (value == null) {
3244             throw new NullPointerException();
3245           }
3246           analysisState_ = value;
3247         } else {
3248           analysisStateBuilder_.setMessage(value);
3249         }
3250         bitField0_ |= 0x00000002;
3251         onChanged();
3252         return this;
3253       }
3254       /**
3255        *
3256        *
3257        * <pre>
3258        * The analysis state of this identity.
3259        * </pre>
3260        *
3261        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3262        */
setAnalysisState( com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue)3263       public Builder setAnalysisState(
3264           com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) {
3265         if (analysisStateBuilder_ == null) {
3266           analysisState_ = builderForValue.build();
3267         } else {
3268           analysisStateBuilder_.setMessage(builderForValue.build());
3269         }
3270         bitField0_ |= 0x00000002;
3271         onChanged();
3272         return this;
3273       }
3274       /**
3275        *
3276        *
3277        * <pre>
3278        * The analysis state of this identity.
3279        * </pre>
3280        *
3281        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3282        */
mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value)3283       public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
3284         if (analysisStateBuilder_ == null) {
3285           if (((bitField0_ & 0x00000002) != 0)
3286               && analysisState_ != null
3287               && analysisState_
3288                   != com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()) {
3289             getAnalysisStateBuilder().mergeFrom(value);
3290           } else {
3291             analysisState_ = value;
3292           }
3293         } else {
3294           analysisStateBuilder_.mergeFrom(value);
3295         }
3296         bitField0_ |= 0x00000002;
3297         onChanged();
3298         return this;
3299       }
3300       /**
3301        *
3302        *
3303        * <pre>
3304        * The analysis state of this identity.
3305        * </pre>
3306        *
3307        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3308        */
clearAnalysisState()3309       public Builder clearAnalysisState() {
3310         bitField0_ = (bitField0_ & ~0x00000002);
3311         analysisState_ = null;
3312         if (analysisStateBuilder_ != null) {
3313           analysisStateBuilder_.dispose();
3314           analysisStateBuilder_ = null;
3315         }
3316         onChanged();
3317         return this;
3318       }
3319       /**
3320        *
3321        *
3322        * <pre>
3323        * The analysis state of this identity.
3324        * </pre>
3325        *
3326        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3327        */
getAnalysisStateBuilder()3328       public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() {
3329         bitField0_ |= 0x00000002;
3330         onChanged();
3331         return getAnalysisStateFieldBuilder().getBuilder();
3332       }
3333       /**
3334        *
3335        *
3336        * <pre>
3337        * The analysis state of this identity.
3338        * </pre>
3339        *
3340        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3341        */
getAnalysisStateOrBuilder()3342       public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder() {
3343         if (analysisStateBuilder_ != null) {
3344           return analysisStateBuilder_.getMessageOrBuilder();
3345         } else {
3346           return analysisState_ == null
3347               ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()
3348               : analysisState_;
3349         }
3350       }
3351       /**
3352        *
3353        *
3354        * <pre>
3355        * The analysis state of this identity.
3356        * </pre>
3357        *
3358        * <code>.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;</code>
3359        */
3360       private com.google.protobuf.SingleFieldBuilderV3<
3361               com.google.cloud.asset.v1.IamPolicyAnalysisState,
3362               com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
3363               com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
getAnalysisStateFieldBuilder()3364           getAnalysisStateFieldBuilder() {
3365         if (analysisStateBuilder_ == null) {
3366           analysisStateBuilder_ =
3367               new com.google.protobuf.SingleFieldBuilderV3<
3368                   com.google.cloud.asset.v1.IamPolicyAnalysisState,
3369                   com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
3370                   com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>(
3371                   getAnalysisState(), getParentForChildren(), isClean());
3372           analysisState_ = null;
3373         }
3374         return analysisStateBuilder_;
3375       }
3376 
3377       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3378       public final Builder setUnknownFields(
3379           final com.google.protobuf.UnknownFieldSet unknownFields) {
3380         return super.setUnknownFields(unknownFields);
3381       }
3382 
3383       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3384       public final Builder mergeUnknownFields(
3385           final com.google.protobuf.UnknownFieldSet unknownFields) {
3386         return super.mergeUnknownFields(unknownFields);
3387       }
3388 
3389       // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)
3390     }
3391 
3392     // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)
3393     private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity
3394         DEFAULT_INSTANCE;
3395 
3396     static {
3397       DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity();
3398     }
3399 
getDefaultInstance()3400     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefaultInstance() {
3401       return DEFAULT_INSTANCE;
3402     }
3403 
3404     private static final com.google.protobuf.Parser<Identity> PARSER =
3405         new com.google.protobuf.AbstractParser<Identity>() {
3406           @java.lang.Override
3407           public Identity parsePartialFrom(
3408               com.google.protobuf.CodedInputStream input,
3409               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3410               throws com.google.protobuf.InvalidProtocolBufferException {
3411             Builder builder = newBuilder();
3412             try {
3413               builder.mergeFrom(input, extensionRegistry);
3414             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3415               throw e.setUnfinishedMessage(builder.buildPartial());
3416             } catch (com.google.protobuf.UninitializedMessageException e) {
3417               throw e.asInvalidProtocolBufferException()
3418                   .setUnfinishedMessage(builder.buildPartial());
3419             } catch (java.io.IOException e) {
3420               throw new com.google.protobuf.InvalidProtocolBufferException(e)
3421                   .setUnfinishedMessage(builder.buildPartial());
3422             }
3423             return builder.buildPartial();
3424           }
3425         };
3426 
parser()3427     public static com.google.protobuf.Parser<Identity> parser() {
3428       return PARSER;
3429     }
3430 
3431     @java.lang.Override
getParserForType()3432     public com.google.protobuf.Parser<Identity> getParserForType() {
3433       return PARSER;
3434     }
3435 
3436     @java.lang.Override
getDefaultInstanceForType()3437     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefaultInstanceForType() {
3438       return DEFAULT_INSTANCE;
3439     }
3440   }
3441 
3442   public interface EdgeOrBuilder
3443       extends
3444       // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)
3445       com.google.protobuf.MessageOrBuilder {
3446 
3447     /**
3448      *
3449      *
3450      * <pre>
3451      * The source node of the edge. For example, it could be a full resource
3452      * name for a resource node or an email of an identity.
3453      * </pre>
3454      *
3455      * <code>string source_node = 1;</code>
3456      *
3457      * @return The sourceNode.
3458      */
getSourceNode()3459     java.lang.String getSourceNode();
3460     /**
3461      *
3462      *
3463      * <pre>
3464      * The source node of the edge. For example, it could be a full resource
3465      * name for a resource node or an email of an identity.
3466      * </pre>
3467      *
3468      * <code>string source_node = 1;</code>
3469      *
3470      * @return The bytes for sourceNode.
3471      */
getSourceNodeBytes()3472     com.google.protobuf.ByteString getSourceNodeBytes();
3473 
3474     /**
3475      *
3476      *
3477      * <pre>
3478      * The target node of the edge. For example, it could be a full resource
3479      * name for a resource node or an email of an identity.
3480      * </pre>
3481      *
3482      * <code>string target_node = 2;</code>
3483      *
3484      * @return The targetNode.
3485      */
getTargetNode()3486     java.lang.String getTargetNode();
3487     /**
3488      *
3489      *
3490      * <pre>
3491      * The target node of the edge. For example, it could be a full resource
3492      * name for a resource node or an email of an identity.
3493      * </pre>
3494      *
3495      * <code>string target_node = 2;</code>
3496      *
3497      * @return The bytes for targetNode.
3498      */
getTargetNodeBytes()3499     com.google.protobuf.ByteString getTargetNodeBytes();
3500   }
3501   /**
3502    *
3503    *
3504    * <pre>
3505    * A directional edge.
3506    * </pre>
3507    *
3508    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Edge}
3509    */
3510   public static final class Edge extends com.google.protobuf.GeneratedMessageV3
3511       implements
3512       // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)
3513       EdgeOrBuilder {
3514     private static final long serialVersionUID = 0L;
3515     // Use Edge.newBuilder() to construct.
Edge(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)3516     private Edge(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
3517       super(builder);
3518     }
3519 
Edge()3520     private Edge() {
3521       sourceNode_ = "";
3522       targetNode_ = "";
3523     }
3524 
3525     @java.lang.Override
3526     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)3527     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
3528       return new Edge();
3529     }
3530 
3531     @java.lang.Override
getUnknownFields()3532     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
3533       return this.unknownFields;
3534     }
3535 
getDescriptor()3536     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3537       return com.google.cloud.asset.v1.AssetProto
3538           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor;
3539     }
3540 
3541     @java.lang.Override
3542     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3543         internalGetFieldAccessorTable() {
3544       return com.google.cloud.asset.v1.AssetProto
3545           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable
3546           .ensureFieldAccessorsInitialized(
3547               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class,
3548               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class);
3549     }
3550 
3551     public static final int SOURCE_NODE_FIELD_NUMBER = 1;
3552 
3553     @SuppressWarnings("serial")
3554     private volatile java.lang.Object sourceNode_ = "";
3555     /**
3556      *
3557      *
3558      * <pre>
3559      * The source node of the edge. For example, it could be a full resource
3560      * name for a resource node or an email of an identity.
3561      * </pre>
3562      *
3563      * <code>string source_node = 1;</code>
3564      *
3565      * @return The sourceNode.
3566      */
3567     @java.lang.Override
getSourceNode()3568     public java.lang.String getSourceNode() {
3569       java.lang.Object ref = sourceNode_;
3570       if (ref instanceof java.lang.String) {
3571         return (java.lang.String) ref;
3572       } else {
3573         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3574         java.lang.String s = bs.toStringUtf8();
3575         sourceNode_ = s;
3576         return s;
3577       }
3578     }
3579     /**
3580      *
3581      *
3582      * <pre>
3583      * The source node of the edge. For example, it could be a full resource
3584      * name for a resource node or an email of an identity.
3585      * </pre>
3586      *
3587      * <code>string source_node = 1;</code>
3588      *
3589      * @return The bytes for sourceNode.
3590      */
3591     @java.lang.Override
getSourceNodeBytes()3592     public com.google.protobuf.ByteString getSourceNodeBytes() {
3593       java.lang.Object ref = sourceNode_;
3594       if (ref instanceof java.lang.String) {
3595         com.google.protobuf.ByteString b =
3596             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3597         sourceNode_ = b;
3598         return b;
3599       } else {
3600         return (com.google.protobuf.ByteString) ref;
3601       }
3602     }
3603 
3604     public static final int TARGET_NODE_FIELD_NUMBER = 2;
3605 
3606     @SuppressWarnings("serial")
3607     private volatile java.lang.Object targetNode_ = "";
3608     /**
3609      *
3610      *
3611      * <pre>
3612      * The target node of the edge. For example, it could be a full resource
3613      * name for a resource node or an email of an identity.
3614      * </pre>
3615      *
3616      * <code>string target_node = 2;</code>
3617      *
3618      * @return The targetNode.
3619      */
3620     @java.lang.Override
getTargetNode()3621     public java.lang.String getTargetNode() {
3622       java.lang.Object ref = targetNode_;
3623       if (ref instanceof java.lang.String) {
3624         return (java.lang.String) ref;
3625       } else {
3626         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3627         java.lang.String s = bs.toStringUtf8();
3628         targetNode_ = s;
3629         return s;
3630       }
3631     }
3632     /**
3633      *
3634      *
3635      * <pre>
3636      * The target node of the edge. For example, it could be a full resource
3637      * name for a resource node or an email of an identity.
3638      * </pre>
3639      *
3640      * <code>string target_node = 2;</code>
3641      *
3642      * @return The bytes for targetNode.
3643      */
3644     @java.lang.Override
getTargetNodeBytes()3645     public com.google.protobuf.ByteString getTargetNodeBytes() {
3646       java.lang.Object ref = targetNode_;
3647       if (ref instanceof java.lang.String) {
3648         com.google.protobuf.ByteString b =
3649             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3650         targetNode_ = b;
3651         return b;
3652       } else {
3653         return (com.google.protobuf.ByteString) ref;
3654       }
3655     }
3656 
3657     private byte memoizedIsInitialized = -1;
3658 
3659     @java.lang.Override
isInitialized()3660     public final boolean isInitialized() {
3661       byte isInitialized = memoizedIsInitialized;
3662       if (isInitialized == 1) return true;
3663       if (isInitialized == 0) return false;
3664 
3665       memoizedIsInitialized = 1;
3666       return true;
3667     }
3668 
3669     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)3670     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
3671       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceNode_)) {
3672         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceNode_);
3673       }
3674       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetNode_)) {
3675         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetNode_);
3676       }
3677       getUnknownFields().writeTo(output);
3678     }
3679 
3680     @java.lang.Override
getSerializedSize()3681     public int getSerializedSize() {
3682       int size = memoizedSize;
3683       if (size != -1) return size;
3684 
3685       size = 0;
3686       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceNode_)) {
3687         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceNode_);
3688       }
3689       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetNode_)) {
3690         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetNode_);
3691       }
3692       size += getUnknownFields().getSerializedSize();
3693       memoizedSize = size;
3694       return size;
3695     }
3696 
3697     @java.lang.Override
equals(final java.lang.Object obj)3698     public boolean equals(final java.lang.Object obj) {
3699       if (obj == this) {
3700         return true;
3701       }
3702       if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)) {
3703         return super.equals(obj);
3704       }
3705       com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other =
3706           (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) obj;
3707 
3708       if (!getSourceNode().equals(other.getSourceNode())) return false;
3709       if (!getTargetNode().equals(other.getTargetNode())) return false;
3710       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3711       return true;
3712     }
3713 
3714     @java.lang.Override
hashCode()3715     public int hashCode() {
3716       if (memoizedHashCode != 0) {
3717         return memoizedHashCode;
3718       }
3719       int hash = 41;
3720       hash = (19 * hash) + getDescriptor().hashCode();
3721       hash = (37 * hash) + SOURCE_NODE_FIELD_NUMBER;
3722       hash = (53 * hash) + getSourceNode().hashCode();
3723       hash = (37 * hash) + TARGET_NODE_FIELD_NUMBER;
3724       hash = (53 * hash) + getTargetNode().hashCode();
3725       hash = (29 * hash) + getUnknownFields().hashCode();
3726       memoizedHashCode = hash;
3727       return hash;
3728     }
3729 
parseFrom( java.nio.ByteBuffer data)3730     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3731         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
3732       return PARSER.parseFrom(data);
3733     }
3734 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3735     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3736         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3737         throws com.google.protobuf.InvalidProtocolBufferException {
3738       return PARSER.parseFrom(data, extensionRegistry);
3739     }
3740 
parseFrom( com.google.protobuf.ByteString data)3741     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3742         com.google.protobuf.ByteString data)
3743         throws com.google.protobuf.InvalidProtocolBufferException {
3744       return PARSER.parseFrom(data);
3745     }
3746 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3747     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3748         com.google.protobuf.ByteString data,
3749         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3750         throws com.google.protobuf.InvalidProtocolBufferException {
3751       return PARSER.parseFrom(data, extensionRegistry);
3752     }
3753 
parseFrom(byte[] data)3754     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(byte[] data)
3755         throws com.google.protobuf.InvalidProtocolBufferException {
3756       return PARSER.parseFrom(data);
3757     }
3758 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3759     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3760         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3761         throws com.google.protobuf.InvalidProtocolBufferException {
3762       return PARSER.parseFrom(data, extensionRegistry);
3763     }
3764 
parseFrom( java.io.InputStream input)3765     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3766         java.io.InputStream input) throws java.io.IOException {
3767       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3768     }
3769 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3770     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3771         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3772         throws java.io.IOException {
3773       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3774           PARSER, input, extensionRegistry);
3775     }
3776 
parseDelimitedFrom( java.io.InputStream input)3777     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom(
3778         java.io.InputStream input) throws java.io.IOException {
3779       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3780     }
3781 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3782     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom(
3783         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3784         throws java.io.IOException {
3785       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
3786           PARSER, input, extensionRegistry);
3787     }
3788 
parseFrom( com.google.protobuf.CodedInputStream input)3789     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3790         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
3791       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3792     }
3793 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3794     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(
3795         com.google.protobuf.CodedInputStream input,
3796         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3797         throws java.io.IOException {
3798       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3799           PARSER, input, extensionRegistry);
3800     }
3801 
3802     @java.lang.Override
newBuilderForType()3803     public Builder newBuilderForType() {
3804       return newBuilder();
3805     }
3806 
newBuilder()3807     public static Builder newBuilder() {
3808       return DEFAULT_INSTANCE.toBuilder();
3809     }
3810 
newBuilder( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge prototype)3811     public static Builder newBuilder(
3812         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge prototype) {
3813       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3814     }
3815 
3816     @java.lang.Override
toBuilder()3817     public Builder toBuilder() {
3818       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3819     }
3820 
3821     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3822     protected Builder newBuilderForType(
3823         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3824       Builder builder = new Builder(parent);
3825       return builder;
3826     }
3827     /**
3828      *
3829      *
3830      * <pre>
3831      * A directional edge.
3832      * </pre>
3833      *
3834      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Edge}
3835      */
3836     public static final class Builder
3837         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
3838         implements
3839         // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)
3840         com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder {
getDescriptor()3841       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3842         return com.google.cloud.asset.v1.AssetProto
3843             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor;
3844       }
3845 
3846       @java.lang.Override
3847       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3848           internalGetFieldAccessorTable() {
3849         return com.google.cloud.asset.v1.AssetProto
3850             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable
3851             .ensureFieldAccessorsInitialized(
3852                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class,
3853                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class);
3854       }
3855 
3856       // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.newBuilder()
Builder()3857       private Builder() {}
3858 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3859       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3860         super(parent);
3861       }
3862 
3863       @java.lang.Override
clear()3864       public Builder clear() {
3865         super.clear();
3866         bitField0_ = 0;
3867         sourceNode_ = "";
3868         targetNode_ = "";
3869         return this;
3870       }
3871 
3872       @java.lang.Override
getDescriptorForType()3873       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
3874         return com.google.cloud.asset.v1.AssetProto
3875             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor;
3876       }
3877 
3878       @java.lang.Override
getDefaultInstanceForType()3879       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultInstanceForType() {
3880         return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance();
3881       }
3882 
3883       @java.lang.Override
build()3884       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge build() {
3885         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result = buildPartial();
3886         if (!result.isInitialized()) {
3887           throw newUninitializedMessageException(result);
3888         }
3889         return result;
3890       }
3891 
3892       @java.lang.Override
buildPartial()3893       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge buildPartial() {
3894         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result =
3895             new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(this);
3896         if (bitField0_ != 0) {
3897           buildPartial0(result);
3898         }
3899         onBuilt();
3900         return result;
3901       }
3902 
buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result)3903       private void buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result) {
3904         int from_bitField0_ = bitField0_;
3905         if (((from_bitField0_ & 0x00000001) != 0)) {
3906           result.sourceNode_ = sourceNode_;
3907         }
3908         if (((from_bitField0_ & 0x00000002) != 0)) {
3909           result.targetNode_ = targetNode_;
3910         }
3911       }
3912 
3913       @java.lang.Override
clone()3914       public Builder clone() {
3915         return super.clone();
3916       }
3917 
3918       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3919       public Builder setField(
3920           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3921         return super.setField(field, value);
3922       }
3923 
3924       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3925       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
3926         return super.clearField(field);
3927       }
3928 
3929       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3930       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3931         return super.clearOneof(oneof);
3932       }
3933 
3934       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3935       public Builder setRepeatedField(
3936           com.google.protobuf.Descriptors.FieldDescriptor field,
3937           int index,
3938           java.lang.Object value) {
3939         return super.setRepeatedField(field, index, value);
3940       }
3941 
3942       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3943       public Builder addRepeatedField(
3944           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3945         return super.addRepeatedField(field, value);
3946       }
3947 
3948       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)3949       public Builder mergeFrom(com.google.protobuf.Message other) {
3950         if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) {
3951           return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) other);
3952         } else {
3953           super.mergeFrom(other);
3954           return this;
3955         }
3956       }
3957 
mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other)3958       public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other) {
3959         if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance())
3960           return this;
3961         if (!other.getSourceNode().isEmpty()) {
3962           sourceNode_ = other.sourceNode_;
3963           bitField0_ |= 0x00000001;
3964           onChanged();
3965         }
3966         if (!other.getTargetNode().isEmpty()) {
3967           targetNode_ = other.targetNode_;
3968           bitField0_ |= 0x00000002;
3969           onChanged();
3970         }
3971         this.mergeUnknownFields(other.getUnknownFields());
3972         onChanged();
3973         return this;
3974       }
3975 
3976       @java.lang.Override
isInitialized()3977       public final boolean isInitialized() {
3978         return true;
3979       }
3980 
3981       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3982       public Builder mergeFrom(
3983           com.google.protobuf.CodedInputStream input,
3984           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3985           throws java.io.IOException {
3986         if (extensionRegistry == null) {
3987           throw new java.lang.NullPointerException();
3988         }
3989         try {
3990           boolean done = false;
3991           while (!done) {
3992             int tag = input.readTag();
3993             switch (tag) {
3994               case 0:
3995                 done = true;
3996                 break;
3997               case 10:
3998                 {
3999                   sourceNode_ = input.readStringRequireUtf8();
4000                   bitField0_ |= 0x00000001;
4001                   break;
4002                 } // case 10
4003               case 18:
4004                 {
4005                   targetNode_ = input.readStringRequireUtf8();
4006                   bitField0_ |= 0x00000002;
4007                   break;
4008                 } // case 18
4009               default:
4010                 {
4011                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
4012                     done = true; // was an endgroup tag
4013                   }
4014                   break;
4015                 } // default:
4016             } // switch (tag)
4017           } // while (!done)
4018         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4019           throw e.unwrapIOException();
4020         } finally {
4021           onChanged();
4022         } // finally
4023         return this;
4024       }
4025 
4026       private int bitField0_;
4027 
4028       private java.lang.Object sourceNode_ = "";
4029       /**
4030        *
4031        *
4032        * <pre>
4033        * The source node of the edge. For example, it could be a full resource
4034        * name for a resource node or an email of an identity.
4035        * </pre>
4036        *
4037        * <code>string source_node = 1;</code>
4038        *
4039        * @return The sourceNode.
4040        */
getSourceNode()4041       public java.lang.String getSourceNode() {
4042         java.lang.Object ref = sourceNode_;
4043         if (!(ref instanceof java.lang.String)) {
4044           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4045           java.lang.String s = bs.toStringUtf8();
4046           sourceNode_ = s;
4047           return s;
4048         } else {
4049           return (java.lang.String) ref;
4050         }
4051       }
4052       /**
4053        *
4054        *
4055        * <pre>
4056        * The source node of the edge. For example, it could be a full resource
4057        * name for a resource node or an email of an identity.
4058        * </pre>
4059        *
4060        * <code>string source_node = 1;</code>
4061        *
4062        * @return The bytes for sourceNode.
4063        */
getSourceNodeBytes()4064       public com.google.protobuf.ByteString getSourceNodeBytes() {
4065         java.lang.Object ref = sourceNode_;
4066         if (ref instanceof String) {
4067           com.google.protobuf.ByteString b =
4068               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4069           sourceNode_ = b;
4070           return b;
4071         } else {
4072           return (com.google.protobuf.ByteString) ref;
4073         }
4074       }
4075       /**
4076        *
4077        *
4078        * <pre>
4079        * The source node of the edge. For example, it could be a full resource
4080        * name for a resource node or an email of an identity.
4081        * </pre>
4082        *
4083        * <code>string source_node = 1;</code>
4084        *
4085        * @param value The sourceNode to set.
4086        * @return This builder for chaining.
4087        */
setSourceNode(java.lang.String value)4088       public Builder setSourceNode(java.lang.String value) {
4089         if (value == null) {
4090           throw new NullPointerException();
4091         }
4092         sourceNode_ = value;
4093         bitField0_ |= 0x00000001;
4094         onChanged();
4095         return this;
4096       }
4097       /**
4098        *
4099        *
4100        * <pre>
4101        * The source node of the edge. For example, it could be a full resource
4102        * name for a resource node or an email of an identity.
4103        * </pre>
4104        *
4105        * <code>string source_node = 1;</code>
4106        *
4107        * @return This builder for chaining.
4108        */
clearSourceNode()4109       public Builder clearSourceNode() {
4110         sourceNode_ = getDefaultInstance().getSourceNode();
4111         bitField0_ = (bitField0_ & ~0x00000001);
4112         onChanged();
4113         return this;
4114       }
4115       /**
4116        *
4117        *
4118        * <pre>
4119        * The source node of the edge. For example, it could be a full resource
4120        * name for a resource node or an email of an identity.
4121        * </pre>
4122        *
4123        * <code>string source_node = 1;</code>
4124        *
4125        * @param value The bytes for sourceNode to set.
4126        * @return This builder for chaining.
4127        */
setSourceNodeBytes(com.google.protobuf.ByteString value)4128       public Builder setSourceNodeBytes(com.google.protobuf.ByteString value) {
4129         if (value == null) {
4130           throw new NullPointerException();
4131         }
4132         checkByteStringIsUtf8(value);
4133         sourceNode_ = value;
4134         bitField0_ |= 0x00000001;
4135         onChanged();
4136         return this;
4137       }
4138 
4139       private java.lang.Object targetNode_ = "";
4140       /**
4141        *
4142        *
4143        * <pre>
4144        * The target node of the edge. For example, it could be a full resource
4145        * name for a resource node or an email of an identity.
4146        * </pre>
4147        *
4148        * <code>string target_node = 2;</code>
4149        *
4150        * @return The targetNode.
4151        */
getTargetNode()4152       public java.lang.String getTargetNode() {
4153         java.lang.Object ref = targetNode_;
4154         if (!(ref instanceof java.lang.String)) {
4155           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4156           java.lang.String s = bs.toStringUtf8();
4157           targetNode_ = s;
4158           return s;
4159         } else {
4160           return (java.lang.String) ref;
4161         }
4162       }
4163       /**
4164        *
4165        *
4166        * <pre>
4167        * The target node of the edge. For example, it could be a full resource
4168        * name for a resource node or an email of an identity.
4169        * </pre>
4170        *
4171        * <code>string target_node = 2;</code>
4172        *
4173        * @return The bytes for targetNode.
4174        */
getTargetNodeBytes()4175       public com.google.protobuf.ByteString getTargetNodeBytes() {
4176         java.lang.Object ref = targetNode_;
4177         if (ref instanceof String) {
4178           com.google.protobuf.ByteString b =
4179               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4180           targetNode_ = b;
4181           return b;
4182         } else {
4183           return (com.google.protobuf.ByteString) ref;
4184         }
4185       }
4186       /**
4187        *
4188        *
4189        * <pre>
4190        * The target node of the edge. For example, it could be a full resource
4191        * name for a resource node or an email of an identity.
4192        * </pre>
4193        *
4194        * <code>string target_node = 2;</code>
4195        *
4196        * @param value The targetNode to set.
4197        * @return This builder for chaining.
4198        */
setTargetNode(java.lang.String value)4199       public Builder setTargetNode(java.lang.String value) {
4200         if (value == null) {
4201           throw new NullPointerException();
4202         }
4203         targetNode_ = value;
4204         bitField0_ |= 0x00000002;
4205         onChanged();
4206         return this;
4207       }
4208       /**
4209        *
4210        *
4211        * <pre>
4212        * The target node of the edge. For example, it could be a full resource
4213        * name for a resource node or an email of an identity.
4214        * </pre>
4215        *
4216        * <code>string target_node = 2;</code>
4217        *
4218        * @return This builder for chaining.
4219        */
clearTargetNode()4220       public Builder clearTargetNode() {
4221         targetNode_ = getDefaultInstance().getTargetNode();
4222         bitField0_ = (bitField0_ & ~0x00000002);
4223         onChanged();
4224         return this;
4225       }
4226       /**
4227        *
4228        *
4229        * <pre>
4230        * The target node of the edge. For example, it could be a full resource
4231        * name for a resource node or an email of an identity.
4232        * </pre>
4233        *
4234        * <code>string target_node = 2;</code>
4235        *
4236        * @param value The bytes for targetNode to set.
4237        * @return This builder for chaining.
4238        */
setTargetNodeBytes(com.google.protobuf.ByteString value)4239       public Builder setTargetNodeBytes(com.google.protobuf.ByteString value) {
4240         if (value == null) {
4241           throw new NullPointerException();
4242         }
4243         checkByteStringIsUtf8(value);
4244         targetNode_ = value;
4245         bitField0_ |= 0x00000002;
4246         onChanged();
4247         return this;
4248       }
4249 
4250       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4251       public final Builder setUnknownFields(
4252           final com.google.protobuf.UnknownFieldSet unknownFields) {
4253         return super.setUnknownFields(unknownFields);
4254       }
4255 
4256       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4257       public final Builder mergeUnknownFields(
4258           final com.google.protobuf.UnknownFieldSet unknownFields) {
4259         return super.mergeUnknownFields(unknownFields);
4260       }
4261 
4262       // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)
4263     }
4264 
4265     // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)
4266     private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge DEFAULT_INSTANCE;
4267 
4268     static {
4269       DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge();
4270     }
4271 
getDefaultInstance()4272     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultInstance() {
4273       return DEFAULT_INSTANCE;
4274     }
4275 
4276     private static final com.google.protobuf.Parser<Edge> PARSER =
4277         new com.google.protobuf.AbstractParser<Edge>() {
4278           @java.lang.Override
4279           public Edge parsePartialFrom(
4280               com.google.protobuf.CodedInputStream input,
4281               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4282               throws com.google.protobuf.InvalidProtocolBufferException {
4283             Builder builder = newBuilder();
4284             try {
4285               builder.mergeFrom(input, extensionRegistry);
4286             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4287               throw e.setUnfinishedMessage(builder.buildPartial());
4288             } catch (com.google.protobuf.UninitializedMessageException e) {
4289               throw e.asInvalidProtocolBufferException()
4290                   .setUnfinishedMessage(builder.buildPartial());
4291             } catch (java.io.IOException e) {
4292               throw new com.google.protobuf.InvalidProtocolBufferException(e)
4293                   .setUnfinishedMessage(builder.buildPartial());
4294             }
4295             return builder.buildPartial();
4296           }
4297         };
4298 
parser()4299     public static com.google.protobuf.Parser<Edge> parser() {
4300       return PARSER;
4301     }
4302 
4303     @java.lang.Override
getParserForType()4304     public com.google.protobuf.Parser<Edge> getParserForType() {
4305       return PARSER;
4306     }
4307 
4308     @java.lang.Override
getDefaultInstanceForType()4309     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultInstanceForType() {
4310       return DEFAULT_INSTANCE;
4311     }
4312   }
4313 
4314   public interface AccessControlListOrBuilder
4315       extends
4316       // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
4317       com.google.protobuf.MessageOrBuilder {
4318 
4319     /**
4320      *
4321      *
4322      * <pre>
4323      * The resources that match one of the following conditions:
4324      * - The resource_selector, if it is specified in request;
4325      * - Otherwise, resources reachable from the policy attached resource.
4326      * </pre>
4327      *
4328      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4329      */
getResourcesList()4330     java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource> getResourcesList();
4331     /**
4332      *
4333      *
4334      * <pre>
4335      * The resources that match one of the following conditions:
4336      * - The resource_selector, if it is specified in request;
4337      * - Otherwise, resources reachable from the policy attached resource.
4338      * </pre>
4339      *
4340      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4341      */
getResources(int index)4342     com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index);
4343     /**
4344      *
4345      *
4346      * <pre>
4347      * The resources that match one of the following conditions:
4348      * - The resource_selector, if it is specified in request;
4349      * - Otherwise, resources reachable from the policy attached resource.
4350      * </pre>
4351      *
4352      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4353      */
getResourcesCount()4354     int getResourcesCount();
4355     /**
4356      *
4357      *
4358      * <pre>
4359      * The resources that match one of the following conditions:
4360      * - The resource_selector, if it is specified in request;
4361      * - Otherwise, resources reachable from the policy attached resource.
4362      * </pre>
4363      *
4364      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4365      */
4366     java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
getResourcesOrBuilderList()4367         getResourcesOrBuilderList();
4368     /**
4369      *
4370      *
4371      * <pre>
4372      * The resources that match one of the following conditions:
4373      * - The resource_selector, if it is specified in request;
4374      * - Otherwise, resources reachable from the policy attached resource.
4375      * </pre>
4376      *
4377      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4378      */
getResourcesOrBuilder( int index)4379     com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResourcesOrBuilder(
4380         int index);
4381 
4382     /**
4383      *
4384      *
4385      * <pre>
4386      * The accesses that match one of the following conditions:
4387      * - The access_selector, if it is specified in request;
4388      * - Otherwise, access specifiers reachable from the policy binding's role.
4389      * </pre>
4390      *
4391      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4392      */
getAccessesList()4393     java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access> getAccessesList();
4394     /**
4395      *
4396      *
4397      * <pre>
4398      * The accesses that match one of the following conditions:
4399      * - The access_selector, if it is specified in request;
4400      * - Otherwise, access specifiers reachable from the policy binding's role.
4401      * </pre>
4402      *
4403      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4404      */
getAccesses(int index)4405     com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int index);
4406     /**
4407      *
4408      *
4409      * <pre>
4410      * The accesses that match one of the following conditions:
4411      * - The access_selector, if it is specified in request;
4412      * - Otherwise, access specifiers reachable from the policy binding's role.
4413      * </pre>
4414      *
4415      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4416      */
getAccessesCount()4417     int getAccessesCount();
4418     /**
4419      *
4420      *
4421      * <pre>
4422      * The accesses that match one of the following conditions:
4423      * - The access_selector, if it is specified in request;
4424      * - Otherwise, access specifiers reachable from the policy binding's role.
4425      * </pre>
4426      *
4427      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4428      */
4429     java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
getAccessesOrBuilderList()4430         getAccessesOrBuilderList();
4431     /**
4432      *
4433      *
4434      * <pre>
4435      * The accesses that match one of the following conditions:
4436      * - The access_selector, if it is specified in request;
4437      * - Otherwise, access specifiers reachable from the policy binding's role.
4438      * </pre>
4439      *
4440      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4441      */
getAccessesOrBuilder( int index)4442     com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrBuilder(
4443         int index);
4444 
4445     /**
4446      *
4447      *
4448      * <pre>
4449      * Resource edges of the graph starting from the policy attached
4450      * resource to any descendant resources. The
4451      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4452      * contains the full resource name of a parent resource and
4453      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4454      * contains the full resource name of a child resource. This field is
4455      * present only if the output_resource_edges option is enabled in request.
4456      * </pre>
4457      *
4458      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4459      */
getResourceEdgesList()4460     java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> getResourceEdgesList();
4461     /**
4462      *
4463      *
4464      * <pre>
4465      * Resource edges of the graph starting from the policy attached
4466      * resource to any descendant resources. The
4467      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4468      * contains the full resource name of a parent resource and
4469      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4470      * contains the full resource name of a child resource. This field is
4471      * present only if the output_resource_edges option is enabled in request.
4472      * </pre>
4473      *
4474      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4475      */
getResourceEdges(int index)4476     com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index);
4477     /**
4478      *
4479      *
4480      * <pre>
4481      * Resource edges of the graph starting from the policy attached
4482      * resource to any descendant resources. The
4483      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4484      * contains the full resource name of a parent resource and
4485      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4486      * contains the full resource name of a child resource. This field is
4487      * present only if the output_resource_edges option is enabled in request.
4488      * </pre>
4489      *
4490      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4491      */
getResourceEdgesCount()4492     int getResourceEdgesCount();
4493     /**
4494      *
4495      *
4496      * <pre>
4497      * Resource edges of the graph starting from the policy attached
4498      * resource to any descendant resources. The
4499      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4500      * contains the full resource name of a parent resource and
4501      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4502      * contains the full resource name of a child resource. This field is
4503      * present only if the output_resource_edges option is enabled in request.
4504      * </pre>
4505      *
4506      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4507      */
4508     java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getResourceEdgesOrBuilderList()4509         getResourceEdgesOrBuilderList();
4510     /**
4511      *
4512      *
4513      * <pre>
4514      * Resource edges of the graph starting from the policy attached
4515      * resource to any descendant resources. The
4516      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4517      * contains the full resource name of a parent resource and
4518      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4519      * contains the full resource name of a child resource. This field is
4520      * present only if the output_resource_edges option is enabled in request.
4521      * </pre>
4522      *
4523      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4524      */
getResourceEdgesOrBuilder( int index)4525     com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdgesOrBuilder(
4526         int index);
4527 
4528     /**
4529      *
4530      *
4531      * <pre>
4532      * Condition evaluation for this AccessControlList, if there is a condition
4533      * defined in the above IAM policy binding.
4534      * </pre>
4535      *
4536      * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
4537      *
4538      * @return Whether the conditionEvaluation field is set.
4539      */
hasConditionEvaluation()4540     boolean hasConditionEvaluation();
4541     /**
4542      *
4543      *
4544      * <pre>
4545      * Condition evaluation for this AccessControlList, if there is a condition
4546      * defined in the above IAM policy binding.
4547      * </pre>
4548      *
4549      * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
4550      *
4551      * @return The conditionEvaluation.
4552      */
getConditionEvaluation()4553     com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation();
4554     /**
4555      *
4556      *
4557      * <pre>
4558      * Condition evaluation for this AccessControlList, if there is a condition
4559      * defined in the above IAM policy binding.
4560      * </pre>
4561      *
4562      * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
4563      */
getConditionEvaluationOrBuilder()4564     com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder();
4565   }
4566   /**
4567    *
4568    *
4569    * <pre>
4570    * An access control list, derived from the above IAM policy binding, which
4571    * contains a set of resources and accesses. May include one
4572    * item from each set to compose an access control entry.
4573    * NOTICE that there could be multiple access control lists for one IAM policy
4574    * binding. The access control lists are created based on resource and access
4575    * combinations.
4576    * For example, assume we have the following cases in one IAM policy binding:
4577    * - Permission P1 and P2 apply to resource R1 and R2;
4578    * - Permission P3 applies to resource R2 and R3;
4579    * This will result in the following access control lists:
4580    * - AccessControlList 1: [R1, R2], [P1, P2]
4581    * - AccessControlList 2: [R2, R3], [P3]
4582    * </pre>
4583    *
4584    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList}
4585    */
4586   public static final class AccessControlList extends com.google.protobuf.GeneratedMessageV3
4587       implements
4588       // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
4589       AccessControlListOrBuilder {
4590     private static final long serialVersionUID = 0L;
4591     // Use AccessControlList.newBuilder() to construct.
AccessControlList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4592     private AccessControlList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
4593       super(builder);
4594     }
4595 
AccessControlList()4596     private AccessControlList() {
4597       resources_ = java.util.Collections.emptyList();
4598       accesses_ = java.util.Collections.emptyList();
4599       resourceEdges_ = java.util.Collections.emptyList();
4600     }
4601 
4602     @java.lang.Override
4603     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)4604     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
4605       return new AccessControlList();
4606     }
4607 
4608     @java.lang.Override
getUnknownFields()4609     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4610       return this.unknownFields;
4611     }
4612 
getDescriptor()4613     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4614       return com.google.cloud.asset.v1.AssetProto
4615           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
4616     }
4617 
4618     @java.lang.Override
4619     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4620         internalGetFieldAccessorTable() {
4621       return com.google.cloud.asset.v1.AssetProto
4622           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
4623           .ensureFieldAccessorsInitialized(
4624               com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class,
4625               com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
4626     }
4627 
4628     public static final int RESOURCES_FIELD_NUMBER = 1;
4629 
4630     @SuppressWarnings("serial")
4631     private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource> resources_;
4632     /**
4633      *
4634      *
4635      * <pre>
4636      * The resources that match one of the following conditions:
4637      * - The resource_selector, if it is specified in request;
4638      * - Otherwise, resources reachable from the policy attached resource.
4639      * </pre>
4640      *
4641      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4642      */
4643     @java.lang.Override
4644     public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>
getResourcesList()4645         getResourcesList() {
4646       return resources_;
4647     }
4648     /**
4649      *
4650      *
4651      * <pre>
4652      * The resources that match one of the following conditions:
4653      * - The resource_selector, if it is specified in request;
4654      * - Otherwise, resources reachable from the policy attached resource.
4655      * </pre>
4656      *
4657      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4658      */
4659     @java.lang.Override
4660     public java.util.List<
4661             ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
getResourcesOrBuilderList()4662         getResourcesOrBuilderList() {
4663       return resources_;
4664     }
4665     /**
4666      *
4667      *
4668      * <pre>
4669      * The resources that match one of the following conditions:
4670      * - The resource_selector, if it is specified in request;
4671      * - Otherwise, resources reachable from the policy attached resource.
4672      * </pre>
4673      *
4674      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4675      */
4676     @java.lang.Override
getResourcesCount()4677     public int getResourcesCount() {
4678       return resources_.size();
4679     }
4680     /**
4681      *
4682      *
4683      * <pre>
4684      * The resources that match one of the following conditions:
4685      * - The resource_selector, if it is specified in request;
4686      * - Otherwise, resources reachable from the policy attached resource.
4687      * </pre>
4688      *
4689      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4690      */
4691     @java.lang.Override
getResources(int index)4692     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index) {
4693       return resources_.get(index);
4694     }
4695     /**
4696      *
4697      *
4698      * <pre>
4699      * The resources that match one of the following conditions:
4700      * - The resource_selector, if it is specified in request;
4701      * - Otherwise, resources reachable from the policy attached resource.
4702      * </pre>
4703      *
4704      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;</code>
4705      */
4706     @java.lang.Override
4707     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder
getResourcesOrBuilder(int index)4708         getResourcesOrBuilder(int index) {
4709       return resources_.get(index);
4710     }
4711 
4712     public static final int ACCESSES_FIELD_NUMBER = 2;
4713 
4714     @SuppressWarnings("serial")
4715     private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access> accesses_;
4716     /**
4717      *
4718      *
4719      * <pre>
4720      * The accesses that match one of the following conditions:
4721      * - The access_selector, if it is specified in request;
4722      * - Otherwise, access specifiers reachable from the policy binding's role.
4723      * </pre>
4724      *
4725      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4726      */
4727     @java.lang.Override
4728     public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access>
getAccessesList()4729         getAccessesList() {
4730       return accesses_;
4731     }
4732     /**
4733      *
4734      *
4735      * <pre>
4736      * The accesses that match one of the following conditions:
4737      * - The access_selector, if it is specified in request;
4738      * - Otherwise, access specifiers reachable from the policy binding's role.
4739      * </pre>
4740      *
4741      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4742      */
4743     @java.lang.Override
4744     public java.util.List<
4745             ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
getAccessesOrBuilderList()4746         getAccessesOrBuilderList() {
4747       return accesses_;
4748     }
4749     /**
4750      *
4751      *
4752      * <pre>
4753      * The accesses that match one of the following conditions:
4754      * - The access_selector, if it is specified in request;
4755      * - Otherwise, access specifiers reachable from the policy binding's role.
4756      * </pre>
4757      *
4758      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4759      */
4760     @java.lang.Override
getAccessesCount()4761     public int getAccessesCount() {
4762       return accesses_.size();
4763     }
4764     /**
4765      *
4766      *
4767      * <pre>
4768      * The accesses that match one of the following conditions:
4769      * - The access_selector, if it is specified in request;
4770      * - Otherwise, access specifiers reachable from the policy binding's role.
4771      * </pre>
4772      *
4773      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4774      */
4775     @java.lang.Override
getAccesses(int index)4776     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int index) {
4777       return accesses_.get(index);
4778     }
4779     /**
4780      *
4781      *
4782      * <pre>
4783      * The accesses that match one of the following conditions:
4784      * - The access_selector, if it is specified in request;
4785      * - Otherwise, access specifiers reachable from the policy binding's role.
4786      * </pre>
4787      *
4788      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
4789      */
4790     @java.lang.Override
getAccessesOrBuilder( int index)4791     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrBuilder(
4792         int index) {
4793       return accesses_.get(index);
4794     }
4795 
4796     public static final int RESOURCE_EDGES_FIELD_NUMBER = 3;
4797 
4798     @SuppressWarnings("serial")
4799     private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> resourceEdges_;
4800     /**
4801      *
4802      *
4803      * <pre>
4804      * Resource edges of the graph starting from the policy attached
4805      * resource to any descendant resources. The
4806      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4807      * contains the full resource name of a parent resource and
4808      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4809      * contains the full resource name of a child resource. This field is
4810      * present only if the output_resource_edges option is enabled in request.
4811      * </pre>
4812      *
4813      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4814      */
4815     @java.lang.Override
4816     public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
getResourceEdgesList()4817         getResourceEdgesList() {
4818       return resourceEdges_;
4819     }
4820     /**
4821      *
4822      *
4823      * <pre>
4824      * Resource edges of the graph starting from the policy attached
4825      * resource to any descendant resources. The
4826      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4827      * contains the full resource name of a parent resource and
4828      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4829      * contains the full resource name of a child resource. This field is
4830      * present only if the output_resource_edges option is enabled in request.
4831      * </pre>
4832      *
4833      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4834      */
4835     @java.lang.Override
4836     public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getResourceEdgesOrBuilderList()4837         getResourceEdgesOrBuilderList() {
4838       return resourceEdges_;
4839     }
4840     /**
4841      *
4842      *
4843      * <pre>
4844      * Resource edges of the graph starting from the policy attached
4845      * resource to any descendant resources. The
4846      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4847      * contains the full resource name of a parent resource and
4848      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4849      * contains the full resource name of a child resource. This field is
4850      * present only if the output_resource_edges option is enabled in request.
4851      * </pre>
4852      *
4853      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4854      */
4855     @java.lang.Override
getResourceEdgesCount()4856     public int getResourceEdgesCount() {
4857       return resourceEdges_.size();
4858     }
4859     /**
4860      *
4861      *
4862      * <pre>
4863      * Resource edges of the graph starting from the policy attached
4864      * resource to any descendant resources. The
4865      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4866      * contains the full resource name of a parent resource and
4867      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4868      * contains the full resource name of a child resource. This field is
4869      * present only if the output_resource_edges option is enabled in request.
4870      * </pre>
4871      *
4872      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4873      */
4874     @java.lang.Override
getResourceEdges(int index)4875     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index) {
4876       return resourceEdges_.get(index);
4877     }
4878     /**
4879      *
4880      *
4881      * <pre>
4882      * Resource edges of the graph starting from the policy attached
4883      * resource to any descendant resources. The
4884      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
4885      * contains the full resource name of a parent resource and
4886      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
4887      * contains the full resource name of a child resource. This field is
4888      * present only if the output_resource_edges option is enabled in request.
4889      * </pre>
4890      *
4891      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;</code>
4892      */
4893     @java.lang.Override
4894     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder
getResourceEdgesOrBuilder(int index)4895         getResourceEdgesOrBuilder(int index) {
4896       return resourceEdges_.get(index);
4897     }
4898 
4899     public static final int CONDITION_EVALUATION_FIELD_NUMBER = 4;
4900     private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_;
4901     /**
4902      *
4903      *
4904      * <pre>
4905      * Condition evaluation for this AccessControlList, if there is a condition
4906      * defined in the above IAM policy binding.
4907      * </pre>
4908      *
4909      * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
4910      *
4911      * @return Whether the conditionEvaluation field is set.
4912      */
4913     @java.lang.Override
hasConditionEvaluation()4914     public boolean hasConditionEvaluation() {
4915       return conditionEvaluation_ != null;
4916     }
4917     /**
4918      *
4919      *
4920      * <pre>
4921      * Condition evaluation for this AccessControlList, if there is a condition
4922      * defined in the above IAM policy binding.
4923      * </pre>
4924      *
4925      * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
4926      *
4927      * @return The conditionEvaluation.
4928      */
4929     @java.lang.Override
getConditionEvaluation()4930     public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() {
4931       return conditionEvaluation_ == null
4932           ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()
4933           : conditionEvaluation_;
4934     }
4935     /**
4936      *
4937      *
4938      * <pre>
4939      * Condition evaluation for this AccessControlList, if there is a condition
4940      * defined in the above IAM policy binding.
4941      * </pre>
4942      *
4943      * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
4944      */
4945     @java.lang.Override
4946     public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder
getConditionEvaluationOrBuilder()4947         getConditionEvaluationOrBuilder() {
4948       return conditionEvaluation_ == null
4949           ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()
4950           : conditionEvaluation_;
4951     }
4952 
4953     private byte memoizedIsInitialized = -1;
4954 
4955     @java.lang.Override
isInitialized()4956     public final boolean isInitialized() {
4957       byte isInitialized = memoizedIsInitialized;
4958       if (isInitialized == 1) return true;
4959       if (isInitialized == 0) return false;
4960 
4961       memoizedIsInitialized = 1;
4962       return true;
4963     }
4964 
4965     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)4966     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
4967       for (int i = 0; i < resources_.size(); i++) {
4968         output.writeMessage(1, resources_.get(i));
4969       }
4970       for (int i = 0; i < accesses_.size(); i++) {
4971         output.writeMessage(2, accesses_.get(i));
4972       }
4973       for (int i = 0; i < resourceEdges_.size(); i++) {
4974         output.writeMessage(3, resourceEdges_.get(i));
4975       }
4976       if (conditionEvaluation_ != null) {
4977         output.writeMessage(4, getConditionEvaluation());
4978       }
4979       getUnknownFields().writeTo(output);
4980     }
4981 
4982     @java.lang.Override
getSerializedSize()4983     public int getSerializedSize() {
4984       int size = memoizedSize;
4985       if (size != -1) return size;
4986 
4987       size = 0;
4988       for (int i = 0; i < resources_.size(); i++) {
4989         size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i));
4990       }
4991       for (int i = 0; i < accesses_.size(); i++) {
4992         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, accesses_.get(i));
4993       }
4994       for (int i = 0; i < resourceEdges_.size(); i++) {
4995         size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceEdges_.get(i));
4996       }
4997       if (conditionEvaluation_ != null) {
4998         size +=
4999             com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConditionEvaluation());
5000       }
5001       size += getUnknownFields().getSerializedSize();
5002       memoizedSize = size;
5003       return size;
5004     }
5005 
5006     @java.lang.Override
equals(final java.lang.Object obj)5007     public boolean equals(final java.lang.Object obj) {
5008       if (obj == this) {
5009         return true;
5010       }
5011       if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)) {
5012         return super.equals(obj);
5013       }
5014       com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other =
5015           (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) obj;
5016 
5017       if (!getResourcesList().equals(other.getResourcesList())) return false;
5018       if (!getAccessesList().equals(other.getAccessesList())) return false;
5019       if (!getResourceEdgesList().equals(other.getResourceEdgesList())) return false;
5020       if (hasConditionEvaluation() != other.hasConditionEvaluation()) return false;
5021       if (hasConditionEvaluation()) {
5022         if (!getConditionEvaluation().equals(other.getConditionEvaluation())) return false;
5023       }
5024       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
5025       return true;
5026     }
5027 
5028     @java.lang.Override
hashCode()5029     public int hashCode() {
5030       if (memoizedHashCode != 0) {
5031         return memoizedHashCode;
5032       }
5033       int hash = 41;
5034       hash = (19 * hash) + getDescriptor().hashCode();
5035       if (getResourcesCount() > 0) {
5036         hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
5037         hash = (53 * hash) + getResourcesList().hashCode();
5038       }
5039       if (getAccessesCount() > 0) {
5040         hash = (37 * hash) + ACCESSES_FIELD_NUMBER;
5041         hash = (53 * hash) + getAccessesList().hashCode();
5042       }
5043       if (getResourceEdgesCount() > 0) {
5044         hash = (37 * hash) + RESOURCE_EDGES_FIELD_NUMBER;
5045         hash = (53 * hash) + getResourceEdgesList().hashCode();
5046       }
5047       if (hasConditionEvaluation()) {
5048         hash = (37 * hash) + CONDITION_EVALUATION_FIELD_NUMBER;
5049         hash = (53 * hash) + getConditionEvaluation().hashCode();
5050       }
5051       hash = (29 * hash) + getUnknownFields().hashCode();
5052       memoizedHashCode = hash;
5053       return hash;
5054     }
5055 
parseFrom( java.nio.ByteBuffer data)5056     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5057         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
5058       return PARSER.parseFrom(data);
5059     }
5060 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5061     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5062         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5063         throws com.google.protobuf.InvalidProtocolBufferException {
5064       return PARSER.parseFrom(data, extensionRegistry);
5065     }
5066 
parseFrom( com.google.protobuf.ByteString data)5067     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5068         com.google.protobuf.ByteString data)
5069         throws com.google.protobuf.InvalidProtocolBufferException {
5070       return PARSER.parseFrom(data);
5071     }
5072 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5073     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5074         com.google.protobuf.ByteString data,
5075         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5076         throws com.google.protobuf.InvalidProtocolBufferException {
5077       return PARSER.parseFrom(data, extensionRegistry);
5078     }
5079 
parseFrom( byte[] data)5080     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5081         byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
5082       return PARSER.parseFrom(data);
5083     }
5084 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5085     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5086         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5087         throws com.google.protobuf.InvalidProtocolBufferException {
5088       return PARSER.parseFrom(data, extensionRegistry);
5089     }
5090 
parseFrom( java.io.InputStream input)5091     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5092         java.io.InputStream input) throws java.io.IOException {
5093       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
5094     }
5095 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5096     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5097         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5098         throws java.io.IOException {
5099       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
5100           PARSER, input, extensionRegistry);
5101     }
5102 
5103     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
parseDelimitedFrom(java.io.InputStream input)5104         parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
5105       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
5106     }
5107 
5108     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5109         parseDelimitedFrom(
5110             java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5111             throws java.io.IOException {
5112       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
5113           PARSER, input, extensionRegistry);
5114     }
5115 
parseFrom( com.google.protobuf.CodedInputStream input)5116     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5117         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
5118       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
5119     }
5120 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5121     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
5122         com.google.protobuf.CodedInputStream input,
5123         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5124         throws java.io.IOException {
5125       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
5126           PARSER, input, extensionRegistry);
5127     }
5128 
5129     @java.lang.Override
newBuilderForType()5130     public Builder newBuilderForType() {
5131       return newBuilder();
5132     }
5133 
newBuilder()5134     public static Builder newBuilder() {
5135       return DEFAULT_INSTANCE.toBuilder();
5136     }
5137 
newBuilder( com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList prototype)5138     public static Builder newBuilder(
5139         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList prototype) {
5140       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
5141     }
5142 
5143     @java.lang.Override
toBuilder()5144     public Builder toBuilder() {
5145       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
5146     }
5147 
5148     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5149     protected Builder newBuilderForType(
5150         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
5151       Builder builder = new Builder(parent);
5152       return builder;
5153     }
5154     /**
5155      *
5156      *
5157      * <pre>
5158      * An access control list, derived from the above IAM policy binding, which
5159      * contains a set of resources and accesses. May include one
5160      * item from each set to compose an access control entry.
5161      * NOTICE that there could be multiple access control lists for one IAM policy
5162      * binding. The access control lists are created based on resource and access
5163      * combinations.
5164      * For example, assume we have the following cases in one IAM policy binding:
5165      * - Permission P1 and P2 apply to resource R1 and R2;
5166      * - Permission P3 applies to resource R2 and R3;
5167      * This will result in the following access control lists:
5168      * - AccessControlList 1: [R1, R2], [P1, P2]
5169      * - AccessControlList 2: [R2, R3], [P3]
5170      * </pre>
5171      *
5172      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList}
5173      */
5174     public static final class Builder
5175         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
5176         implements
5177         // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
5178         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder {
getDescriptor()5179       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
5180         return com.google.cloud.asset.v1.AssetProto
5181             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
5182       }
5183 
5184       @java.lang.Override
5185       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()5186           internalGetFieldAccessorTable() {
5187         return com.google.cloud.asset.v1.AssetProto
5188             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
5189             .ensureFieldAccessorsInitialized(
5190                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class,
5191                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
5192       }
5193 
5194       // Construct using
5195       // com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.newBuilder()
Builder()5196       private Builder() {}
5197 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5198       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
5199         super(parent);
5200       }
5201 
5202       @java.lang.Override
clear()5203       public Builder clear() {
5204         super.clear();
5205         bitField0_ = 0;
5206         if (resourcesBuilder_ == null) {
5207           resources_ = java.util.Collections.emptyList();
5208         } else {
5209           resources_ = null;
5210           resourcesBuilder_.clear();
5211         }
5212         bitField0_ = (bitField0_ & ~0x00000001);
5213         if (accessesBuilder_ == null) {
5214           accesses_ = java.util.Collections.emptyList();
5215         } else {
5216           accesses_ = null;
5217           accessesBuilder_.clear();
5218         }
5219         bitField0_ = (bitField0_ & ~0x00000002);
5220         if (resourceEdgesBuilder_ == null) {
5221           resourceEdges_ = java.util.Collections.emptyList();
5222         } else {
5223           resourceEdges_ = null;
5224           resourceEdgesBuilder_.clear();
5225         }
5226         bitField0_ = (bitField0_ & ~0x00000004);
5227         conditionEvaluation_ = null;
5228         if (conditionEvaluationBuilder_ != null) {
5229           conditionEvaluationBuilder_.dispose();
5230           conditionEvaluationBuilder_ = null;
5231         }
5232         return this;
5233       }
5234 
5235       @java.lang.Override
getDescriptorForType()5236       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
5237         return com.google.cloud.asset.v1.AssetProto
5238             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
5239       }
5240 
5241       @java.lang.Override
5242       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
getDefaultInstanceForType()5243           getDefaultInstanceForType() {
5244         return com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
5245             .getDefaultInstance();
5246       }
5247 
5248       @java.lang.Override
build()5249       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList build() {
5250         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result = buildPartial();
5251         if (!result.isInitialized()) {
5252           throw newUninitializedMessageException(result);
5253         }
5254         return result;
5255       }
5256 
5257       @java.lang.Override
buildPartial()5258       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList buildPartial() {
5259         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result =
5260             new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList(this);
5261         buildPartialRepeatedFields(result);
5262         if (bitField0_ != 0) {
5263           buildPartial0(result);
5264         }
5265         onBuilt();
5266         return result;
5267       }
5268 
buildPartialRepeatedFields( com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result)5269       private void buildPartialRepeatedFields(
5270           com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result) {
5271         if (resourcesBuilder_ == null) {
5272           if (((bitField0_ & 0x00000001) != 0)) {
5273             resources_ = java.util.Collections.unmodifiableList(resources_);
5274             bitField0_ = (bitField0_ & ~0x00000001);
5275           }
5276           result.resources_ = resources_;
5277         } else {
5278           result.resources_ = resourcesBuilder_.build();
5279         }
5280         if (accessesBuilder_ == null) {
5281           if (((bitField0_ & 0x00000002) != 0)) {
5282             accesses_ = java.util.Collections.unmodifiableList(accesses_);
5283             bitField0_ = (bitField0_ & ~0x00000002);
5284           }
5285           result.accesses_ = accesses_;
5286         } else {
5287           result.accesses_ = accessesBuilder_.build();
5288         }
5289         if (resourceEdgesBuilder_ == null) {
5290           if (((bitField0_ & 0x00000004) != 0)) {
5291             resourceEdges_ = java.util.Collections.unmodifiableList(resourceEdges_);
5292             bitField0_ = (bitField0_ & ~0x00000004);
5293           }
5294           result.resourceEdges_ = resourceEdges_;
5295         } else {
5296           result.resourceEdges_ = resourceEdgesBuilder_.build();
5297         }
5298       }
5299 
buildPartial0( com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result)5300       private void buildPartial0(
5301           com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result) {
5302         int from_bitField0_ = bitField0_;
5303         if (((from_bitField0_ & 0x00000008) != 0)) {
5304           result.conditionEvaluation_ =
5305               conditionEvaluationBuilder_ == null
5306                   ? conditionEvaluation_
5307                   : conditionEvaluationBuilder_.build();
5308         }
5309       }
5310 
5311       @java.lang.Override
clone()5312       public Builder clone() {
5313         return super.clone();
5314       }
5315 
5316       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5317       public Builder setField(
5318           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
5319         return super.setField(field, value);
5320       }
5321 
5322       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)5323       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
5324         return super.clearField(field);
5325       }
5326 
5327       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)5328       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
5329         return super.clearOneof(oneof);
5330       }
5331 
5332       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)5333       public Builder setRepeatedField(
5334           com.google.protobuf.Descriptors.FieldDescriptor field,
5335           int index,
5336           java.lang.Object value) {
5337         return super.setRepeatedField(field, index, value);
5338       }
5339 
5340       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5341       public Builder addRepeatedField(
5342           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
5343         return super.addRepeatedField(field, value);
5344       }
5345 
5346       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)5347       public Builder mergeFrom(com.google.protobuf.Message other) {
5348         if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) {
5349           return mergeFrom(
5350               (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) other);
5351         } else {
5352           super.mergeFrom(other);
5353           return this;
5354         }
5355       }
5356 
mergeFrom( com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other)5357       public Builder mergeFrom(
5358           com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other) {
5359         if (other
5360             == com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
5361                 .getDefaultInstance()) return this;
5362         if (resourcesBuilder_ == null) {
5363           if (!other.resources_.isEmpty()) {
5364             if (resources_.isEmpty()) {
5365               resources_ = other.resources_;
5366               bitField0_ = (bitField0_ & ~0x00000001);
5367             } else {
5368               ensureResourcesIsMutable();
5369               resources_.addAll(other.resources_);
5370             }
5371             onChanged();
5372           }
5373         } else {
5374           if (!other.resources_.isEmpty()) {
5375             if (resourcesBuilder_.isEmpty()) {
5376               resourcesBuilder_.dispose();
5377               resourcesBuilder_ = null;
5378               resources_ = other.resources_;
5379               bitField0_ = (bitField0_ & ~0x00000001);
5380               resourcesBuilder_ =
5381                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
5382                       ? getResourcesFieldBuilder()
5383                       : null;
5384             } else {
5385               resourcesBuilder_.addAllMessages(other.resources_);
5386             }
5387           }
5388         }
5389         if (accessesBuilder_ == null) {
5390           if (!other.accesses_.isEmpty()) {
5391             if (accesses_.isEmpty()) {
5392               accesses_ = other.accesses_;
5393               bitField0_ = (bitField0_ & ~0x00000002);
5394             } else {
5395               ensureAccessesIsMutable();
5396               accesses_.addAll(other.accesses_);
5397             }
5398             onChanged();
5399           }
5400         } else {
5401           if (!other.accesses_.isEmpty()) {
5402             if (accessesBuilder_.isEmpty()) {
5403               accessesBuilder_.dispose();
5404               accessesBuilder_ = null;
5405               accesses_ = other.accesses_;
5406               bitField0_ = (bitField0_ & ~0x00000002);
5407               accessesBuilder_ =
5408                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
5409                       ? getAccessesFieldBuilder()
5410                       : null;
5411             } else {
5412               accessesBuilder_.addAllMessages(other.accesses_);
5413             }
5414           }
5415         }
5416         if (resourceEdgesBuilder_ == null) {
5417           if (!other.resourceEdges_.isEmpty()) {
5418             if (resourceEdges_.isEmpty()) {
5419               resourceEdges_ = other.resourceEdges_;
5420               bitField0_ = (bitField0_ & ~0x00000004);
5421             } else {
5422               ensureResourceEdgesIsMutable();
5423               resourceEdges_.addAll(other.resourceEdges_);
5424             }
5425             onChanged();
5426           }
5427         } else {
5428           if (!other.resourceEdges_.isEmpty()) {
5429             if (resourceEdgesBuilder_.isEmpty()) {
5430               resourceEdgesBuilder_.dispose();
5431               resourceEdgesBuilder_ = null;
5432               resourceEdges_ = other.resourceEdges_;
5433               bitField0_ = (bitField0_ & ~0x00000004);
5434               resourceEdgesBuilder_ =
5435                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
5436                       ? getResourceEdgesFieldBuilder()
5437                       : null;
5438             } else {
5439               resourceEdgesBuilder_.addAllMessages(other.resourceEdges_);
5440             }
5441           }
5442         }
5443         if (other.hasConditionEvaluation()) {
5444           mergeConditionEvaluation(other.getConditionEvaluation());
5445         }
5446         this.mergeUnknownFields(other.getUnknownFields());
5447         onChanged();
5448         return this;
5449       }
5450 
5451       @java.lang.Override
isInitialized()5452       public final boolean isInitialized() {
5453         return true;
5454       }
5455 
5456       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5457       public Builder mergeFrom(
5458           com.google.protobuf.CodedInputStream input,
5459           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5460           throws java.io.IOException {
5461         if (extensionRegistry == null) {
5462           throw new java.lang.NullPointerException();
5463         }
5464         try {
5465           boolean done = false;
5466           while (!done) {
5467             int tag = input.readTag();
5468             switch (tag) {
5469               case 0:
5470                 done = true;
5471                 break;
5472               case 10:
5473                 {
5474                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource m =
5475                       input.readMessage(
5476                           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(),
5477                           extensionRegistry);
5478                   if (resourcesBuilder_ == null) {
5479                     ensureResourcesIsMutable();
5480                     resources_.add(m);
5481                   } else {
5482                     resourcesBuilder_.addMessage(m);
5483                   }
5484                   break;
5485                 } // case 10
5486               case 18:
5487                 {
5488                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access m =
5489                       input.readMessage(
5490                           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(),
5491                           extensionRegistry);
5492                   if (accessesBuilder_ == null) {
5493                     ensureAccessesIsMutable();
5494                     accesses_.add(m);
5495                   } else {
5496                     accessesBuilder_.addMessage(m);
5497                   }
5498                   break;
5499                 } // case 18
5500               case 26:
5501                 {
5502                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m =
5503                       input.readMessage(
5504                           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(),
5505                           extensionRegistry);
5506                   if (resourceEdgesBuilder_ == null) {
5507                     ensureResourceEdgesIsMutable();
5508                     resourceEdges_.add(m);
5509                   } else {
5510                     resourceEdgesBuilder_.addMessage(m);
5511                   }
5512                   break;
5513                 } // case 26
5514               case 34:
5515                 {
5516                   input.readMessage(
5517                       getConditionEvaluationFieldBuilder().getBuilder(), extensionRegistry);
5518                   bitField0_ |= 0x00000008;
5519                   break;
5520                 } // case 34
5521               default:
5522                 {
5523                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
5524                     done = true; // was an endgroup tag
5525                   }
5526                   break;
5527                 } // default:
5528             } // switch (tag)
5529           } // while (!done)
5530         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5531           throw e.unwrapIOException();
5532         } finally {
5533           onChanged();
5534         } // finally
5535         return this;
5536       }
5537 
5538       private int bitField0_;
5539 
5540       private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>
5541           resources_ = java.util.Collections.emptyList();
5542 
ensureResourcesIsMutable()5543       private void ensureResourcesIsMutable() {
5544         if (!((bitField0_ & 0x00000001) != 0)) {
5545           resources_ =
5546               new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>(
5547                   resources_);
5548           bitField0_ |= 0x00000001;
5549         }
5550       }
5551 
5552       private com.google.protobuf.RepeatedFieldBuilderV3<
5553               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource,
5554               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder,
5555               com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
5556           resourcesBuilder_;
5557 
5558       /**
5559        *
5560        *
5561        * <pre>
5562        * The resources that match one of the following conditions:
5563        * - The resource_selector, if it is specified in request;
5564        * - Otherwise, resources reachable from the policy attached resource.
5565        * </pre>
5566        *
5567        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5568        * </code>
5569        */
5570       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>
getResourcesList()5571           getResourcesList() {
5572         if (resourcesBuilder_ == null) {
5573           return java.util.Collections.unmodifiableList(resources_);
5574         } else {
5575           return resourcesBuilder_.getMessageList();
5576         }
5577       }
5578       /**
5579        *
5580        *
5581        * <pre>
5582        * The resources that match one of the following conditions:
5583        * - The resource_selector, if it is specified in request;
5584        * - Otherwise, resources reachable from the policy attached resource.
5585        * </pre>
5586        *
5587        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5588        * </code>
5589        */
getResourcesCount()5590       public int getResourcesCount() {
5591         if (resourcesBuilder_ == null) {
5592           return resources_.size();
5593         } else {
5594           return resourcesBuilder_.getCount();
5595         }
5596       }
5597       /**
5598        *
5599        *
5600        * <pre>
5601        * The resources that match one of the following conditions:
5602        * - The resource_selector, if it is specified in request;
5603        * - Otherwise, resources reachable from the policy attached resource.
5604        * </pre>
5605        *
5606        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5607        * </code>
5608        */
getResources(int index)5609       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index) {
5610         if (resourcesBuilder_ == null) {
5611           return resources_.get(index);
5612         } else {
5613           return resourcesBuilder_.getMessage(index);
5614         }
5615       }
5616       /**
5617        *
5618        *
5619        * <pre>
5620        * The resources that match one of the following conditions:
5621        * - The resource_selector, if it is specified in request;
5622        * - Otherwise, resources reachable from the policy attached resource.
5623        * </pre>
5624        *
5625        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5626        * </code>
5627        */
setResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value)5628       public Builder setResources(
5629           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) {
5630         if (resourcesBuilder_ == null) {
5631           if (value == null) {
5632             throw new NullPointerException();
5633           }
5634           ensureResourcesIsMutable();
5635           resources_.set(index, value);
5636           onChanged();
5637         } else {
5638           resourcesBuilder_.setMessage(index, value);
5639         }
5640         return this;
5641       }
5642       /**
5643        *
5644        *
5645        * <pre>
5646        * The resources that match one of the following conditions:
5647        * - The resource_selector, if it is specified in request;
5648        * - Otherwise, resources reachable from the policy attached resource.
5649        * </pre>
5650        *
5651        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5652        * </code>
5653        */
setResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue)5654       public Builder setResources(
5655           int index,
5656           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) {
5657         if (resourcesBuilder_ == null) {
5658           ensureResourcesIsMutable();
5659           resources_.set(index, builderForValue.build());
5660           onChanged();
5661         } else {
5662           resourcesBuilder_.setMessage(index, builderForValue.build());
5663         }
5664         return this;
5665       }
5666       /**
5667        *
5668        *
5669        * <pre>
5670        * The resources that match one of the following conditions:
5671        * - The resource_selector, if it is specified in request;
5672        * - Otherwise, resources reachable from the policy attached resource.
5673        * </pre>
5674        *
5675        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5676        * </code>
5677        */
addResources( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value)5678       public Builder addResources(
5679           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) {
5680         if (resourcesBuilder_ == null) {
5681           if (value == null) {
5682             throw new NullPointerException();
5683           }
5684           ensureResourcesIsMutable();
5685           resources_.add(value);
5686           onChanged();
5687         } else {
5688           resourcesBuilder_.addMessage(value);
5689         }
5690         return this;
5691       }
5692       /**
5693        *
5694        *
5695        * <pre>
5696        * The resources that match one of the following conditions:
5697        * - The resource_selector, if it is specified in request;
5698        * - Otherwise, resources reachable from the policy attached resource.
5699        * </pre>
5700        *
5701        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5702        * </code>
5703        */
addResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value)5704       public Builder addResources(
5705           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) {
5706         if (resourcesBuilder_ == null) {
5707           if (value == null) {
5708             throw new NullPointerException();
5709           }
5710           ensureResourcesIsMutable();
5711           resources_.add(index, value);
5712           onChanged();
5713         } else {
5714           resourcesBuilder_.addMessage(index, value);
5715         }
5716         return this;
5717       }
5718       /**
5719        *
5720        *
5721        * <pre>
5722        * The resources that match one of the following conditions:
5723        * - The resource_selector, if it is specified in request;
5724        * - Otherwise, resources reachable from the policy attached resource.
5725        * </pre>
5726        *
5727        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5728        * </code>
5729        */
addResources( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue)5730       public Builder addResources(
5731           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) {
5732         if (resourcesBuilder_ == null) {
5733           ensureResourcesIsMutable();
5734           resources_.add(builderForValue.build());
5735           onChanged();
5736         } else {
5737           resourcesBuilder_.addMessage(builderForValue.build());
5738         }
5739         return this;
5740       }
5741       /**
5742        *
5743        *
5744        * <pre>
5745        * The resources that match one of the following conditions:
5746        * - The resource_selector, if it is specified in request;
5747        * - Otherwise, resources reachable from the policy attached resource.
5748        * </pre>
5749        *
5750        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5751        * </code>
5752        */
addResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue)5753       public Builder addResources(
5754           int index,
5755           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) {
5756         if (resourcesBuilder_ == null) {
5757           ensureResourcesIsMutable();
5758           resources_.add(index, builderForValue.build());
5759           onChanged();
5760         } else {
5761           resourcesBuilder_.addMessage(index, builderForValue.build());
5762         }
5763         return this;
5764       }
5765       /**
5766        *
5767        *
5768        * <pre>
5769        * The resources that match one of the following conditions:
5770        * - The resource_selector, if it is specified in request;
5771        * - Otherwise, resources reachable from the policy attached resource.
5772        * </pre>
5773        *
5774        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5775        * </code>
5776        */
addAllResources( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource> values)5777       public Builder addAllResources(
5778           java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>
5779               values) {
5780         if (resourcesBuilder_ == null) {
5781           ensureResourcesIsMutable();
5782           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_);
5783           onChanged();
5784         } else {
5785           resourcesBuilder_.addAllMessages(values);
5786         }
5787         return this;
5788       }
5789       /**
5790        *
5791        *
5792        * <pre>
5793        * The resources that match one of the following conditions:
5794        * - The resource_selector, if it is specified in request;
5795        * - Otherwise, resources reachable from the policy attached resource.
5796        * </pre>
5797        *
5798        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5799        * </code>
5800        */
clearResources()5801       public Builder clearResources() {
5802         if (resourcesBuilder_ == null) {
5803           resources_ = java.util.Collections.emptyList();
5804           bitField0_ = (bitField0_ & ~0x00000001);
5805           onChanged();
5806         } else {
5807           resourcesBuilder_.clear();
5808         }
5809         return this;
5810       }
5811       /**
5812        *
5813        *
5814        * <pre>
5815        * The resources that match one of the following conditions:
5816        * - The resource_selector, if it is specified in request;
5817        * - Otherwise, resources reachable from the policy attached resource.
5818        * </pre>
5819        *
5820        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5821        * </code>
5822        */
removeResources(int index)5823       public Builder removeResources(int index) {
5824         if (resourcesBuilder_ == null) {
5825           ensureResourcesIsMutable();
5826           resources_.remove(index);
5827           onChanged();
5828         } else {
5829           resourcesBuilder_.remove(index);
5830         }
5831         return this;
5832       }
5833       /**
5834        *
5835        *
5836        * <pre>
5837        * The resources that match one of the following conditions:
5838        * - The resource_selector, if it is specified in request;
5839        * - Otherwise, resources reachable from the policy attached resource.
5840        * </pre>
5841        *
5842        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5843        * </code>
5844        */
getResourcesBuilder( int index)5845       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder getResourcesBuilder(
5846           int index) {
5847         return getResourcesFieldBuilder().getBuilder(index);
5848       }
5849       /**
5850        *
5851        *
5852        * <pre>
5853        * The resources that match one of the following conditions:
5854        * - The resource_selector, if it is specified in request;
5855        * - Otherwise, resources reachable from the policy attached resource.
5856        * </pre>
5857        *
5858        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5859        * </code>
5860        */
5861       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder
getResourcesOrBuilder(int index)5862           getResourcesOrBuilder(int index) {
5863         if (resourcesBuilder_ == null) {
5864           return resources_.get(index);
5865         } else {
5866           return resourcesBuilder_.getMessageOrBuilder(index);
5867         }
5868       }
5869       /**
5870        *
5871        *
5872        * <pre>
5873        * The resources that match one of the following conditions:
5874        * - The resource_selector, if it is specified in request;
5875        * - Otherwise, resources reachable from the policy attached resource.
5876        * </pre>
5877        *
5878        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5879        * </code>
5880        */
5881       public java.util.List<
5882               ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
getResourcesOrBuilderList()5883           getResourcesOrBuilderList() {
5884         if (resourcesBuilder_ != null) {
5885           return resourcesBuilder_.getMessageOrBuilderList();
5886         } else {
5887           return java.util.Collections.unmodifiableList(resources_);
5888         }
5889       }
5890       /**
5891        *
5892        *
5893        * <pre>
5894        * The resources that match one of the following conditions:
5895        * - The resource_selector, if it is specified in request;
5896        * - Otherwise, resources reachable from the policy attached resource.
5897        * </pre>
5898        *
5899        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5900        * </code>
5901        */
5902       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder
addResourcesBuilder()5903           addResourcesBuilder() {
5904         return getResourcesFieldBuilder()
5905             .addBuilder(
5906                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance());
5907       }
5908       /**
5909        *
5910        *
5911        * <pre>
5912        * The resources that match one of the following conditions:
5913        * - The resource_selector, if it is specified in request;
5914        * - Otherwise, resources reachable from the policy attached resource.
5915        * </pre>
5916        *
5917        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5918        * </code>
5919        */
addResourcesBuilder( int index)5920       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder addResourcesBuilder(
5921           int index) {
5922         return getResourcesFieldBuilder()
5923             .addBuilder(
5924                 index,
5925                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance());
5926       }
5927       /**
5928        *
5929        *
5930        * <pre>
5931        * The resources that match one of the following conditions:
5932        * - The resource_selector, if it is specified in request;
5933        * - Otherwise, resources reachable from the policy attached resource.
5934        * </pre>
5935        *
5936        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
5937        * </code>
5938        */
5939       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder>
getResourcesBuilderList()5940           getResourcesBuilderList() {
5941         return getResourcesFieldBuilder().getBuilderList();
5942       }
5943 
5944       private com.google.protobuf.RepeatedFieldBuilderV3<
5945               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource,
5946               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder,
5947               com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
getResourcesFieldBuilder()5948           getResourcesFieldBuilder() {
5949         if (resourcesBuilder_ == null) {
5950           resourcesBuilder_ =
5951               new com.google.protobuf.RepeatedFieldBuilderV3<
5952                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource,
5953                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder,
5954                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>(
5955                   resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
5956           resources_ = null;
5957         }
5958         return resourcesBuilder_;
5959       }
5960 
5961       private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access> accesses_ =
5962           java.util.Collections.emptyList();
5963 
ensureAccessesIsMutable()5964       private void ensureAccessesIsMutable() {
5965         if (!((bitField0_ & 0x00000002) != 0)) {
5966           accesses_ =
5967               new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access>(
5968                   accesses_);
5969           bitField0_ |= 0x00000002;
5970         }
5971       }
5972 
5973       private com.google.protobuf.RepeatedFieldBuilderV3<
5974               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
5975               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
5976               com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
5977           accessesBuilder_;
5978 
5979       /**
5980        *
5981        *
5982        * <pre>
5983        * The accesses that match one of the following conditions:
5984        * - The access_selector, if it is specified in request;
5985        * - Otherwise, access specifiers reachable from the policy binding's role.
5986        * </pre>
5987        *
5988        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
5989        */
5990       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access>
getAccessesList()5991           getAccessesList() {
5992         if (accessesBuilder_ == null) {
5993           return java.util.Collections.unmodifiableList(accesses_);
5994         } else {
5995           return accessesBuilder_.getMessageList();
5996         }
5997       }
5998       /**
5999        *
6000        *
6001        * <pre>
6002        * The accesses that match one of the following conditions:
6003        * - The access_selector, if it is specified in request;
6004        * - Otherwise, access specifiers reachable from the policy binding's role.
6005        * </pre>
6006        *
6007        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6008        */
getAccessesCount()6009       public int getAccessesCount() {
6010         if (accessesBuilder_ == null) {
6011           return accesses_.size();
6012         } else {
6013           return accessesBuilder_.getCount();
6014         }
6015       }
6016       /**
6017        *
6018        *
6019        * <pre>
6020        * The accesses that match one of the following conditions:
6021        * - The access_selector, if it is specified in request;
6022        * - Otherwise, access specifiers reachable from the policy binding's role.
6023        * </pre>
6024        *
6025        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6026        */
getAccesses(int index)6027       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int index) {
6028         if (accessesBuilder_ == null) {
6029           return accesses_.get(index);
6030         } else {
6031           return accessesBuilder_.getMessage(index);
6032         }
6033       }
6034       /**
6035        *
6036        *
6037        * <pre>
6038        * The accesses that match one of the following conditions:
6039        * - The access_selector, if it is specified in request;
6040        * - Otherwise, access specifiers reachable from the policy binding's role.
6041        * </pre>
6042        *
6043        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6044        */
setAccesses( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access value)6045       public Builder setAccesses(
6046           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access value) {
6047         if (accessesBuilder_ == null) {
6048           if (value == null) {
6049             throw new NullPointerException();
6050           }
6051           ensureAccessesIsMutable();
6052           accesses_.set(index, value);
6053           onChanged();
6054         } else {
6055           accessesBuilder_.setMessage(index, value);
6056         }
6057         return this;
6058       }
6059       /**
6060        *
6061        *
6062        * <pre>
6063        * The accesses that match one of the following conditions:
6064        * - The access_selector, if it is specified in request;
6065        * - Otherwise, access specifiers reachable from the policy binding's role.
6066        * </pre>
6067        *
6068        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6069        */
setAccesses( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue)6070       public Builder setAccesses(
6071           int index,
6072           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
6073         if (accessesBuilder_ == null) {
6074           ensureAccessesIsMutable();
6075           accesses_.set(index, builderForValue.build());
6076           onChanged();
6077         } else {
6078           accessesBuilder_.setMessage(index, builderForValue.build());
6079         }
6080         return this;
6081       }
6082       /**
6083        *
6084        *
6085        * <pre>
6086        * The accesses that match one of the following conditions:
6087        * - The access_selector, if it is specified in request;
6088        * - Otherwise, access specifiers reachable from the policy binding's role.
6089        * </pre>
6090        *
6091        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6092        */
addAccesses(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access value)6093       public Builder addAccesses(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access value) {
6094         if (accessesBuilder_ == null) {
6095           if (value == null) {
6096             throw new NullPointerException();
6097           }
6098           ensureAccessesIsMutable();
6099           accesses_.add(value);
6100           onChanged();
6101         } else {
6102           accessesBuilder_.addMessage(value);
6103         }
6104         return this;
6105       }
6106       /**
6107        *
6108        *
6109        * <pre>
6110        * The accesses that match one of the following conditions:
6111        * - The access_selector, if it is specified in request;
6112        * - Otherwise, access specifiers reachable from the policy binding's role.
6113        * </pre>
6114        *
6115        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6116        */
addAccesses( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access value)6117       public Builder addAccesses(
6118           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access value) {
6119         if (accessesBuilder_ == null) {
6120           if (value == null) {
6121             throw new NullPointerException();
6122           }
6123           ensureAccessesIsMutable();
6124           accesses_.add(index, value);
6125           onChanged();
6126         } else {
6127           accessesBuilder_.addMessage(index, value);
6128         }
6129         return this;
6130       }
6131       /**
6132        *
6133        *
6134        * <pre>
6135        * The accesses that match one of the following conditions:
6136        * - The access_selector, if it is specified in request;
6137        * - Otherwise, access specifiers reachable from the policy binding's role.
6138        * </pre>
6139        *
6140        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6141        */
addAccesses( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue)6142       public Builder addAccesses(
6143           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
6144         if (accessesBuilder_ == null) {
6145           ensureAccessesIsMutable();
6146           accesses_.add(builderForValue.build());
6147           onChanged();
6148         } else {
6149           accessesBuilder_.addMessage(builderForValue.build());
6150         }
6151         return this;
6152       }
6153       /**
6154        *
6155        *
6156        * <pre>
6157        * The accesses that match one of the following conditions:
6158        * - The access_selector, if it is specified in request;
6159        * - Otherwise, access specifiers reachable from the policy binding's role.
6160        * </pre>
6161        *
6162        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6163        */
addAccesses( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue)6164       public Builder addAccesses(
6165           int index,
6166           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
6167         if (accessesBuilder_ == null) {
6168           ensureAccessesIsMutable();
6169           accesses_.add(index, builderForValue.build());
6170           onChanged();
6171         } else {
6172           accessesBuilder_.addMessage(index, builderForValue.build());
6173         }
6174         return this;
6175       }
6176       /**
6177        *
6178        *
6179        * <pre>
6180        * The accesses that match one of the following conditions:
6181        * - The access_selector, if it is specified in request;
6182        * - Otherwise, access specifiers reachable from the policy binding's role.
6183        * </pre>
6184        *
6185        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6186        */
addAllAccesses( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access> values)6187       public Builder addAllAccesses(
6188           java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access>
6189               values) {
6190         if (accessesBuilder_ == null) {
6191           ensureAccessesIsMutable();
6192           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accesses_);
6193           onChanged();
6194         } else {
6195           accessesBuilder_.addAllMessages(values);
6196         }
6197         return this;
6198       }
6199       /**
6200        *
6201        *
6202        * <pre>
6203        * The accesses that match one of the following conditions:
6204        * - The access_selector, if it is specified in request;
6205        * - Otherwise, access specifiers reachable from the policy binding's role.
6206        * </pre>
6207        *
6208        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6209        */
clearAccesses()6210       public Builder clearAccesses() {
6211         if (accessesBuilder_ == null) {
6212           accesses_ = java.util.Collections.emptyList();
6213           bitField0_ = (bitField0_ & ~0x00000002);
6214           onChanged();
6215         } else {
6216           accessesBuilder_.clear();
6217         }
6218         return this;
6219       }
6220       /**
6221        *
6222        *
6223        * <pre>
6224        * The accesses that match one of the following conditions:
6225        * - The access_selector, if it is specified in request;
6226        * - Otherwise, access specifiers reachable from the policy binding's role.
6227        * </pre>
6228        *
6229        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6230        */
removeAccesses(int index)6231       public Builder removeAccesses(int index) {
6232         if (accessesBuilder_ == null) {
6233           ensureAccessesIsMutable();
6234           accesses_.remove(index);
6235           onChanged();
6236         } else {
6237           accessesBuilder_.remove(index);
6238         }
6239         return this;
6240       }
6241       /**
6242        *
6243        *
6244        * <pre>
6245        * The accesses that match one of the following conditions:
6246        * - The access_selector, if it is specified in request;
6247        * - Otherwise, access specifiers reachable from the policy binding's role.
6248        * </pre>
6249        *
6250        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6251        */
getAccessesBuilder( int index)6252       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder getAccessesBuilder(
6253           int index) {
6254         return getAccessesFieldBuilder().getBuilder(index);
6255       }
6256       /**
6257        *
6258        *
6259        * <pre>
6260        * The accesses that match one of the following conditions:
6261        * - The access_selector, if it is specified in request;
6262        * - Otherwise, access specifiers reachable from the policy binding's role.
6263        * </pre>
6264        *
6265        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6266        */
getAccessesOrBuilder( int index)6267       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrBuilder(
6268           int index) {
6269         if (accessesBuilder_ == null) {
6270           return accesses_.get(index);
6271         } else {
6272           return accessesBuilder_.getMessageOrBuilder(index);
6273         }
6274       }
6275       /**
6276        *
6277        *
6278        * <pre>
6279        * The accesses that match one of the following conditions:
6280        * - The access_selector, if it is specified in request;
6281        * - Otherwise, access specifiers reachable from the policy binding's role.
6282        * </pre>
6283        *
6284        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6285        */
6286       public java.util.List<
6287               ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
getAccessesOrBuilderList()6288           getAccessesOrBuilderList() {
6289         if (accessesBuilder_ != null) {
6290           return accessesBuilder_.getMessageOrBuilderList();
6291         } else {
6292           return java.util.Collections.unmodifiableList(accesses_);
6293         }
6294       }
6295       /**
6296        *
6297        *
6298        * <pre>
6299        * The accesses that match one of the following conditions:
6300        * - The access_selector, if it is specified in request;
6301        * - Otherwise, access specifiers reachable from the policy binding's role.
6302        * </pre>
6303        *
6304        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6305        */
addAccessesBuilder()6306       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAccessesBuilder() {
6307         return getAccessesFieldBuilder()
6308             .addBuilder(
6309                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
6310       }
6311       /**
6312        *
6313        *
6314        * <pre>
6315        * The accesses that match one of the following conditions:
6316        * - The access_selector, if it is specified in request;
6317        * - Otherwise, access specifiers reachable from the policy binding's role.
6318        * </pre>
6319        *
6320        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6321        */
addAccessesBuilder( int index)6322       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAccessesBuilder(
6323           int index) {
6324         return getAccessesFieldBuilder()
6325             .addBuilder(
6326                 index,
6327                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
6328       }
6329       /**
6330        *
6331        *
6332        * <pre>
6333        * The accesses that match one of the following conditions:
6334        * - The access_selector, if it is specified in request;
6335        * - Otherwise, access specifiers reachable from the policy binding's role.
6336        * </pre>
6337        *
6338        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;</code>
6339        */
6340       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder>
getAccessesBuilderList()6341           getAccessesBuilderList() {
6342         return getAccessesFieldBuilder().getBuilderList();
6343       }
6344 
6345       private com.google.protobuf.RepeatedFieldBuilderV3<
6346               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
6347               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
6348               com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
getAccessesFieldBuilder()6349           getAccessesFieldBuilder() {
6350         if (accessesBuilder_ == null) {
6351           accessesBuilder_ =
6352               new com.google.protobuf.RepeatedFieldBuilderV3<
6353                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
6354                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
6355                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>(
6356                   accesses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
6357           accesses_ = null;
6358         }
6359         return accessesBuilder_;
6360       }
6361 
6362       private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
6363           resourceEdges_ = java.util.Collections.emptyList();
6364 
ensureResourceEdgesIsMutable()6365       private void ensureResourceEdgesIsMutable() {
6366         if (!((bitField0_ & 0x00000004) != 0)) {
6367           resourceEdges_ =
6368               new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>(
6369                   resourceEdges_);
6370           bitField0_ |= 0x00000004;
6371         }
6372       }
6373 
6374       private com.google.protobuf.RepeatedFieldBuilderV3<
6375               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
6376               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
6377               com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
6378           resourceEdgesBuilder_;
6379 
6380       /**
6381        *
6382        *
6383        * <pre>
6384        * Resource edges of the graph starting from the policy attached
6385        * resource to any descendant resources. The
6386        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6387        * contains the full resource name of a parent resource and
6388        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6389        * contains the full resource name of a child resource. This field is
6390        * present only if the output_resource_edges option is enabled in request.
6391        * </pre>
6392        *
6393        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6394        * </code>
6395        */
6396       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
getResourceEdgesList()6397           getResourceEdgesList() {
6398         if (resourceEdgesBuilder_ == null) {
6399           return java.util.Collections.unmodifiableList(resourceEdges_);
6400         } else {
6401           return resourceEdgesBuilder_.getMessageList();
6402         }
6403       }
6404       /**
6405        *
6406        *
6407        * <pre>
6408        * Resource edges of the graph starting from the policy attached
6409        * resource to any descendant resources. The
6410        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6411        * contains the full resource name of a parent resource and
6412        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6413        * contains the full resource name of a child resource. This field is
6414        * present only if the output_resource_edges option is enabled in request.
6415        * </pre>
6416        *
6417        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6418        * </code>
6419        */
getResourceEdgesCount()6420       public int getResourceEdgesCount() {
6421         if (resourceEdgesBuilder_ == null) {
6422           return resourceEdges_.size();
6423         } else {
6424           return resourceEdgesBuilder_.getCount();
6425         }
6426       }
6427       /**
6428        *
6429        *
6430        * <pre>
6431        * Resource edges of the graph starting from the policy attached
6432        * resource to any descendant resources. The
6433        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6434        * contains the full resource name of a parent resource and
6435        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6436        * contains the full resource name of a child resource. This field is
6437        * present only if the output_resource_edges option is enabled in request.
6438        * </pre>
6439        *
6440        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6441        * </code>
6442        */
getResourceEdges(int index)6443       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index) {
6444         if (resourceEdgesBuilder_ == null) {
6445           return resourceEdges_.get(index);
6446         } else {
6447           return resourceEdgesBuilder_.getMessage(index);
6448         }
6449       }
6450       /**
6451        *
6452        *
6453        * <pre>
6454        * Resource edges of the graph starting from the policy attached
6455        * resource to any descendant resources. The
6456        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6457        * contains the full resource name of a parent resource and
6458        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6459        * contains the full resource name of a child resource. This field is
6460        * present only if the output_resource_edges option is enabled in request.
6461        * </pre>
6462        *
6463        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6464        * </code>
6465        */
setResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value)6466       public Builder setResourceEdges(
6467           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) {
6468         if (resourceEdgesBuilder_ == null) {
6469           if (value == null) {
6470             throw new NullPointerException();
6471           }
6472           ensureResourceEdgesIsMutable();
6473           resourceEdges_.set(index, value);
6474           onChanged();
6475         } else {
6476           resourceEdgesBuilder_.setMessage(index, value);
6477         }
6478         return this;
6479       }
6480       /**
6481        *
6482        *
6483        * <pre>
6484        * Resource edges of the graph starting from the policy attached
6485        * resource to any descendant resources. The
6486        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6487        * contains the full resource name of a parent resource and
6488        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6489        * contains the full resource name of a child resource. This field is
6490        * present only if the output_resource_edges option is enabled in request.
6491        * </pre>
6492        *
6493        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6494        * </code>
6495        */
setResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue)6496       public Builder setResourceEdges(
6497           int index,
6498           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
6499         if (resourceEdgesBuilder_ == null) {
6500           ensureResourceEdgesIsMutable();
6501           resourceEdges_.set(index, builderForValue.build());
6502           onChanged();
6503         } else {
6504           resourceEdgesBuilder_.setMessage(index, builderForValue.build());
6505         }
6506         return this;
6507       }
6508       /**
6509        *
6510        *
6511        * <pre>
6512        * Resource edges of the graph starting from the policy attached
6513        * resource to any descendant resources. The
6514        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6515        * contains the full resource name of a parent resource and
6516        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6517        * contains the full resource name of a child resource. This field is
6518        * present only if the output_resource_edges option is enabled in request.
6519        * </pre>
6520        *
6521        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6522        * </code>
6523        */
addResourceEdges( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value)6524       public Builder addResourceEdges(
6525           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) {
6526         if (resourceEdgesBuilder_ == null) {
6527           if (value == null) {
6528             throw new NullPointerException();
6529           }
6530           ensureResourceEdgesIsMutable();
6531           resourceEdges_.add(value);
6532           onChanged();
6533         } else {
6534           resourceEdgesBuilder_.addMessage(value);
6535         }
6536         return this;
6537       }
6538       /**
6539        *
6540        *
6541        * <pre>
6542        * Resource edges of the graph starting from the policy attached
6543        * resource to any descendant resources. The
6544        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6545        * contains the full resource name of a parent resource and
6546        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6547        * contains the full resource name of a child resource. This field is
6548        * present only if the output_resource_edges option is enabled in request.
6549        * </pre>
6550        *
6551        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6552        * </code>
6553        */
addResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value)6554       public Builder addResourceEdges(
6555           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) {
6556         if (resourceEdgesBuilder_ == null) {
6557           if (value == null) {
6558             throw new NullPointerException();
6559           }
6560           ensureResourceEdgesIsMutable();
6561           resourceEdges_.add(index, value);
6562           onChanged();
6563         } else {
6564           resourceEdgesBuilder_.addMessage(index, value);
6565         }
6566         return this;
6567       }
6568       /**
6569        *
6570        *
6571        * <pre>
6572        * Resource edges of the graph starting from the policy attached
6573        * resource to any descendant resources. The
6574        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6575        * contains the full resource name of a parent resource and
6576        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6577        * contains the full resource name of a child resource. This field is
6578        * present only if the output_resource_edges option is enabled in request.
6579        * </pre>
6580        *
6581        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6582        * </code>
6583        */
addResourceEdges( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue)6584       public Builder addResourceEdges(
6585           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
6586         if (resourceEdgesBuilder_ == null) {
6587           ensureResourceEdgesIsMutable();
6588           resourceEdges_.add(builderForValue.build());
6589           onChanged();
6590         } else {
6591           resourceEdgesBuilder_.addMessage(builderForValue.build());
6592         }
6593         return this;
6594       }
6595       /**
6596        *
6597        *
6598        * <pre>
6599        * Resource edges of the graph starting from the policy attached
6600        * resource to any descendant resources. The
6601        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6602        * contains the full resource name of a parent resource and
6603        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6604        * contains the full resource name of a child resource. This field is
6605        * present only if the output_resource_edges option is enabled in request.
6606        * </pre>
6607        *
6608        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6609        * </code>
6610        */
addResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue)6611       public Builder addResourceEdges(
6612           int index,
6613           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
6614         if (resourceEdgesBuilder_ == null) {
6615           ensureResourceEdgesIsMutable();
6616           resourceEdges_.add(index, builderForValue.build());
6617           onChanged();
6618         } else {
6619           resourceEdgesBuilder_.addMessage(index, builderForValue.build());
6620         }
6621         return this;
6622       }
6623       /**
6624        *
6625        *
6626        * <pre>
6627        * Resource edges of the graph starting from the policy attached
6628        * resource to any descendant resources. The
6629        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6630        * contains the full resource name of a parent resource and
6631        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6632        * contains the full resource name of a child resource. This field is
6633        * present only if the output_resource_edges option is enabled in request.
6634        * </pre>
6635        *
6636        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6637        * </code>
6638        */
addAllResourceEdges( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> values)6639       public Builder addAllResourceEdges(
6640           java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
6641               values) {
6642         if (resourceEdgesBuilder_ == null) {
6643           ensureResourceEdgesIsMutable();
6644           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceEdges_);
6645           onChanged();
6646         } else {
6647           resourceEdgesBuilder_.addAllMessages(values);
6648         }
6649         return this;
6650       }
6651       /**
6652        *
6653        *
6654        * <pre>
6655        * Resource edges of the graph starting from the policy attached
6656        * resource to any descendant resources. The
6657        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6658        * contains the full resource name of a parent resource and
6659        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6660        * contains the full resource name of a child resource. This field is
6661        * present only if the output_resource_edges option is enabled in request.
6662        * </pre>
6663        *
6664        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6665        * </code>
6666        */
clearResourceEdges()6667       public Builder clearResourceEdges() {
6668         if (resourceEdgesBuilder_ == null) {
6669           resourceEdges_ = java.util.Collections.emptyList();
6670           bitField0_ = (bitField0_ & ~0x00000004);
6671           onChanged();
6672         } else {
6673           resourceEdgesBuilder_.clear();
6674         }
6675         return this;
6676       }
6677       /**
6678        *
6679        *
6680        * <pre>
6681        * Resource edges of the graph starting from the policy attached
6682        * resource to any descendant resources. The
6683        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6684        * contains the full resource name of a parent resource and
6685        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6686        * contains the full resource name of a child resource. This field is
6687        * present only if the output_resource_edges option is enabled in request.
6688        * </pre>
6689        *
6690        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6691        * </code>
6692        */
removeResourceEdges(int index)6693       public Builder removeResourceEdges(int index) {
6694         if (resourceEdgesBuilder_ == null) {
6695           ensureResourceEdgesIsMutable();
6696           resourceEdges_.remove(index);
6697           onChanged();
6698         } else {
6699           resourceEdgesBuilder_.remove(index);
6700         }
6701         return this;
6702       }
6703       /**
6704        *
6705        *
6706        * <pre>
6707        * Resource edges of the graph starting from the policy attached
6708        * resource to any descendant resources. The
6709        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6710        * contains the full resource name of a parent resource and
6711        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6712        * contains the full resource name of a child resource. This field is
6713        * present only if the output_resource_edges option is enabled in request.
6714        * </pre>
6715        *
6716        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6717        * </code>
6718        */
getResourceEdgesBuilder( int index)6719       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourceEdgesBuilder(
6720           int index) {
6721         return getResourceEdgesFieldBuilder().getBuilder(index);
6722       }
6723       /**
6724        *
6725        *
6726        * <pre>
6727        * Resource edges of the graph starting from the policy attached
6728        * resource to any descendant resources. The
6729        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6730        * contains the full resource name of a parent resource and
6731        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6732        * contains the full resource name of a child resource. This field is
6733        * present only if the output_resource_edges option is enabled in request.
6734        * </pre>
6735        *
6736        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6737        * </code>
6738        */
6739       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder
getResourceEdgesOrBuilder(int index)6740           getResourceEdgesOrBuilder(int index) {
6741         if (resourceEdgesBuilder_ == null) {
6742           return resourceEdges_.get(index);
6743         } else {
6744           return resourceEdgesBuilder_.getMessageOrBuilder(index);
6745         }
6746       }
6747       /**
6748        *
6749        *
6750        * <pre>
6751        * Resource edges of the graph starting from the policy attached
6752        * resource to any descendant resources. The
6753        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6754        * contains the full resource name of a parent resource and
6755        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6756        * contains the full resource name of a child resource. This field is
6757        * present only if the output_resource_edges option is enabled in request.
6758        * </pre>
6759        *
6760        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6761        * </code>
6762        */
6763       public java.util.List<
6764               ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getResourceEdgesOrBuilderList()6765           getResourceEdgesOrBuilderList() {
6766         if (resourceEdgesBuilder_ != null) {
6767           return resourceEdgesBuilder_.getMessageOrBuilderList();
6768         } else {
6769           return java.util.Collections.unmodifiableList(resourceEdges_);
6770         }
6771       }
6772       /**
6773        *
6774        *
6775        * <pre>
6776        * Resource edges of the graph starting from the policy attached
6777        * resource to any descendant resources. The
6778        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6779        * contains the full resource name of a parent resource and
6780        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6781        * contains the full resource name of a child resource. This field is
6782        * present only if the output_resource_edges option is enabled in request.
6783        * </pre>
6784        *
6785        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6786        * </code>
6787        */
6788       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder
addResourceEdgesBuilder()6789           addResourceEdgesBuilder() {
6790         return getResourceEdgesFieldBuilder()
6791             .addBuilder(
6792                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
6793       }
6794       /**
6795        *
6796        *
6797        * <pre>
6798        * Resource edges of the graph starting from the policy attached
6799        * resource to any descendant resources. The
6800        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6801        * contains the full resource name of a parent resource and
6802        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6803        * contains the full resource name of a child resource. This field is
6804        * present only if the output_resource_edges option is enabled in request.
6805        * </pre>
6806        *
6807        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6808        * </code>
6809        */
addResourceEdgesBuilder( int index)6810       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourceEdgesBuilder(
6811           int index) {
6812         return getResourceEdgesFieldBuilder()
6813             .addBuilder(
6814                 index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
6815       }
6816       /**
6817        *
6818        *
6819        * <pre>
6820        * Resource edges of the graph starting from the policy attached
6821        * resource to any descendant resources. The
6822        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
6823        * contains the full resource name of a parent resource and
6824        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
6825        * contains the full resource name of a child resource. This field is
6826        * present only if the output_resource_edges option is enabled in request.
6827        * </pre>
6828        *
6829        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
6830        * </code>
6831        */
6832       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder>
getResourceEdgesBuilderList()6833           getResourceEdgesBuilderList() {
6834         return getResourceEdgesFieldBuilder().getBuilderList();
6835       }
6836 
6837       private com.google.protobuf.RepeatedFieldBuilderV3<
6838               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
6839               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
6840               com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getResourceEdgesFieldBuilder()6841           getResourceEdgesFieldBuilder() {
6842         if (resourceEdgesBuilder_ == null) {
6843           resourceEdgesBuilder_ =
6844               new com.google.protobuf.RepeatedFieldBuilderV3<
6845                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
6846                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
6847                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>(
6848                   resourceEdges_,
6849                   ((bitField0_ & 0x00000004) != 0),
6850                   getParentForChildren(),
6851                   isClean());
6852           resourceEdges_ = null;
6853         }
6854         return resourceEdgesBuilder_;
6855       }
6856 
6857       private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_;
6858       private com.google.protobuf.SingleFieldBuilderV3<
6859               com.google.cloud.asset.v1.ConditionEvaluation,
6860               com.google.cloud.asset.v1.ConditionEvaluation.Builder,
6861               com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>
6862           conditionEvaluationBuilder_;
6863       /**
6864        *
6865        *
6866        * <pre>
6867        * Condition evaluation for this AccessControlList, if there is a condition
6868        * defined in the above IAM policy binding.
6869        * </pre>
6870        *
6871        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6872        *
6873        * @return Whether the conditionEvaluation field is set.
6874        */
hasConditionEvaluation()6875       public boolean hasConditionEvaluation() {
6876         return ((bitField0_ & 0x00000008) != 0);
6877       }
6878       /**
6879        *
6880        *
6881        * <pre>
6882        * Condition evaluation for this AccessControlList, if there is a condition
6883        * defined in the above IAM policy binding.
6884        * </pre>
6885        *
6886        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6887        *
6888        * @return The conditionEvaluation.
6889        */
getConditionEvaluation()6890       public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() {
6891         if (conditionEvaluationBuilder_ == null) {
6892           return conditionEvaluation_ == null
6893               ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()
6894               : conditionEvaluation_;
6895         } else {
6896           return conditionEvaluationBuilder_.getMessage();
6897         }
6898       }
6899       /**
6900        *
6901        *
6902        * <pre>
6903        * Condition evaluation for this AccessControlList, if there is a condition
6904        * defined in the above IAM policy binding.
6905        * </pre>
6906        *
6907        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6908        */
setConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluation value)6909       public Builder setConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluation value) {
6910         if (conditionEvaluationBuilder_ == null) {
6911           if (value == null) {
6912             throw new NullPointerException();
6913           }
6914           conditionEvaluation_ = value;
6915         } else {
6916           conditionEvaluationBuilder_.setMessage(value);
6917         }
6918         bitField0_ |= 0x00000008;
6919         onChanged();
6920         return this;
6921       }
6922       /**
6923        *
6924        *
6925        * <pre>
6926        * Condition evaluation for this AccessControlList, if there is a condition
6927        * defined in the above IAM policy binding.
6928        * </pre>
6929        *
6930        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6931        */
setConditionEvaluation( com.google.cloud.asset.v1.ConditionEvaluation.Builder builderForValue)6932       public Builder setConditionEvaluation(
6933           com.google.cloud.asset.v1.ConditionEvaluation.Builder builderForValue) {
6934         if (conditionEvaluationBuilder_ == null) {
6935           conditionEvaluation_ = builderForValue.build();
6936         } else {
6937           conditionEvaluationBuilder_.setMessage(builderForValue.build());
6938         }
6939         bitField0_ |= 0x00000008;
6940         onChanged();
6941         return this;
6942       }
6943       /**
6944        *
6945        *
6946        * <pre>
6947        * Condition evaluation for this AccessControlList, if there is a condition
6948        * defined in the above IAM policy binding.
6949        * </pre>
6950        *
6951        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6952        */
mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluation value)6953       public Builder mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluation value) {
6954         if (conditionEvaluationBuilder_ == null) {
6955           if (((bitField0_ & 0x00000008) != 0)
6956               && conditionEvaluation_ != null
6957               && conditionEvaluation_
6958                   != com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()) {
6959             getConditionEvaluationBuilder().mergeFrom(value);
6960           } else {
6961             conditionEvaluation_ = value;
6962           }
6963         } else {
6964           conditionEvaluationBuilder_.mergeFrom(value);
6965         }
6966         bitField0_ |= 0x00000008;
6967         onChanged();
6968         return this;
6969       }
6970       /**
6971        *
6972        *
6973        * <pre>
6974        * Condition evaluation for this AccessControlList, if there is a condition
6975        * defined in the above IAM policy binding.
6976        * </pre>
6977        *
6978        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6979        */
clearConditionEvaluation()6980       public Builder clearConditionEvaluation() {
6981         bitField0_ = (bitField0_ & ~0x00000008);
6982         conditionEvaluation_ = null;
6983         if (conditionEvaluationBuilder_ != null) {
6984           conditionEvaluationBuilder_.dispose();
6985           conditionEvaluationBuilder_ = null;
6986         }
6987         onChanged();
6988         return this;
6989       }
6990       /**
6991        *
6992        *
6993        * <pre>
6994        * Condition evaluation for this AccessControlList, if there is a condition
6995        * defined in the above IAM policy binding.
6996        * </pre>
6997        *
6998        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
6999        */
getConditionEvaluationBuilder()7000       public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluationBuilder() {
7001         bitField0_ |= 0x00000008;
7002         onChanged();
7003         return getConditionEvaluationFieldBuilder().getBuilder();
7004       }
7005       /**
7006        *
7007        *
7008        * <pre>
7009        * Condition evaluation for this AccessControlList, if there is a condition
7010        * defined in the above IAM policy binding.
7011        * </pre>
7012        *
7013        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
7014        */
7015       public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder
getConditionEvaluationOrBuilder()7016           getConditionEvaluationOrBuilder() {
7017         if (conditionEvaluationBuilder_ != null) {
7018           return conditionEvaluationBuilder_.getMessageOrBuilder();
7019         } else {
7020           return conditionEvaluation_ == null
7021               ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()
7022               : conditionEvaluation_;
7023         }
7024       }
7025       /**
7026        *
7027        *
7028        * <pre>
7029        * Condition evaluation for this AccessControlList, if there is a condition
7030        * defined in the above IAM policy binding.
7031        * </pre>
7032        *
7033        * <code>.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;</code>
7034        */
7035       private com.google.protobuf.SingleFieldBuilderV3<
7036               com.google.cloud.asset.v1.ConditionEvaluation,
7037               com.google.cloud.asset.v1.ConditionEvaluation.Builder,
7038               com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>
getConditionEvaluationFieldBuilder()7039           getConditionEvaluationFieldBuilder() {
7040         if (conditionEvaluationBuilder_ == null) {
7041           conditionEvaluationBuilder_ =
7042               new com.google.protobuf.SingleFieldBuilderV3<
7043                   com.google.cloud.asset.v1.ConditionEvaluation,
7044                   com.google.cloud.asset.v1.ConditionEvaluation.Builder,
7045                   com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>(
7046                   getConditionEvaluation(), getParentForChildren(), isClean());
7047           conditionEvaluation_ = null;
7048         }
7049         return conditionEvaluationBuilder_;
7050       }
7051 
7052       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)7053       public final Builder setUnknownFields(
7054           final com.google.protobuf.UnknownFieldSet unknownFields) {
7055         return super.setUnknownFields(unknownFields);
7056       }
7057 
7058       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)7059       public final Builder mergeUnknownFields(
7060           final com.google.protobuf.UnknownFieldSet unknownFields) {
7061         return super.mergeUnknownFields(unknownFields);
7062       }
7063 
7064       // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
7065     }
7066 
7067     // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
7068     private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
7069         DEFAULT_INSTANCE;
7070 
7071     static {
7072       DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList();
7073     }
7074 
7075     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
getDefaultInstance()7076         getDefaultInstance() {
7077       return DEFAULT_INSTANCE;
7078     }
7079 
7080     private static final com.google.protobuf.Parser<AccessControlList> PARSER =
7081         new com.google.protobuf.AbstractParser<AccessControlList>() {
7082           @java.lang.Override
7083           public AccessControlList parsePartialFrom(
7084               com.google.protobuf.CodedInputStream input,
7085               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7086               throws com.google.protobuf.InvalidProtocolBufferException {
7087             Builder builder = newBuilder();
7088             try {
7089               builder.mergeFrom(input, extensionRegistry);
7090             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7091               throw e.setUnfinishedMessage(builder.buildPartial());
7092             } catch (com.google.protobuf.UninitializedMessageException e) {
7093               throw e.asInvalidProtocolBufferException()
7094                   .setUnfinishedMessage(builder.buildPartial());
7095             } catch (java.io.IOException e) {
7096               throw new com.google.protobuf.InvalidProtocolBufferException(e)
7097                   .setUnfinishedMessage(builder.buildPartial());
7098             }
7099             return builder.buildPartial();
7100           }
7101         };
7102 
parser()7103     public static com.google.protobuf.Parser<AccessControlList> parser() {
7104       return PARSER;
7105     }
7106 
7107     @java.lang.Override
getParserForType()7108     public com.google.protobuf.Parser<AccessControlList> getParserForType() {
7109       return PARSER;
7110     }
7111 
7112     @java.lang.Override
7113     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
getDefaultInstanceForType()7114         getDefaultInstanceForType() {
7115       return DEFAULT_INSTANCE;
7116     }
7117   }
7118 
7119   public interface IdentityListOrBuilder
7120       extends
7121       // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
7122       com.google.protobuf.MessageOrBuilder {
7123 
7124     /**
7125      *
7126      *
7127      * <pre>
7128      * Only the identities that match one of the following conditions will be
7129      * presented:
7130      * - The identity_selector, if it is specified in request;
7131      * - Otherwise, identities reachable from the policy binding's members.
7132      * </pre>
7133      *
7134      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7135      */
getIdentitiesList()7136     java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity> getIdentitiesList();
7137     /**
7138      *
7139      *
7140      * <pre>
7141      * Only the identities that match one of the following conditions will be
7142      * presented:
7143      * - The identity_selector, if it is specified in request;
7144      * - Otherwise, identities reachable from the policy binding's members.
7145      * </pre>
7146      *
7147      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7148      */
getIdentities(int index)7149     com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index);
7150     /**
7151      *
7152      *
7153      * <pre>
7154      * Only the identities that match one of the following conditions will be
7155      * presented:
7156      * - The identity_selector, if it is specified in request;
7157      * - Otherwise, identities reachable from the policy binding's members.
7158      * </pre>
7159      *
7160      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7161      */
getIdentitiesCount()7162     int getIdentitiesCount();
7163     /**
7164      *
7165      *
7166      * <pre>
7167      * Only the identities that match one of the following conditions will be
7168      * presented:
7169      * - The identity_selector, if it is specified in request;
7170      * - Otherwise, identities reachable from the policy binding's members.
7171      * </pre>
7172      *
7173      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7174      */
7175     java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
getIdentitiesOrBuilderList()7176         getIdentitiesOrBuilderList();
7177     /**
7178      *
7179      *
7180      * <pre>
7181      * Only the identities that match one of the following conditions will be
7182      * presented:
7183      * - The identity_selector, if it is specified in request;
7184      * - Otherwise, identities reachable from the policy binding's members.
7185      * </pre>
7186      *
7187      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7188      */
getIdentitiesOrBuilder( int index)7189     com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitiesOrBuilder(
7190         int index);
7191 
7192     /**
7193      *
7194      *
7195      * <pre>
7196      * Group identity edges of the graph starting from the binding's
7197      * group members to any node of the
7198      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7199      * The
7200      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7201      * contains a group, such as `group:parent&#64;google.com`. The
7202      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7203      * contains a member of the group, such as `group:child&#64;google.com` or
7204      * `user:foo&#64;google.com`. This field is present only if the
7205      * output_group_edges option is enabled in request.
7206      * </pre>
7207      *
7208      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7209      */
getGroupEdgesList()7210     java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> getGroupEdgesList();
7211     /**
7212      *
7213      *
7214      * <pre>
7215      * Group identity edges of the graph starting from the binding's
7216      * group members to any node of the
7217      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7218      * The
7219      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7220      * contains a group, such as `group:parent&#64;google.com`. The
7221      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7222      * contains a member of the group, such as `group:child&#64;google.com` or
7223      * `user:foo&#64;google.com`. This field is present only if the
7224      * output_group_edges option is enabled in request.
7225      * </pre>
7226      *
7227      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7228      */
getGroupEdges(int index)7229     com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int index);
7230     /**
7231      *
7232      *
7233      * <pre>
7234      * Group identity edges of the graph starting from the binding's
7235      * group members to any node of the
7236      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7237      * The
7238      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7239      * contains a group, such as `group:parent&#64;google.com`. The
7240      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7241      * contains a member of the group, such as `group:child&#64;google.com` or
7242      * `user:foo&#64;google.com`. This field is present only if the
7243      * output_group_edges option is enabled in request.
7244      * </pre>
7245      *
7246      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7247      */
getGroupEdgesCount()7248     int getGroupEdgesCount();
7249     /**
7250      *
7251      *
7252      * <pre>
7253      * Group identity edges of the graph starting from the binding's
7254      * group members to any node of the
7255      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7256      * The
7257      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7258      * contains a group, such as `group:parent&#64;google.com`. The
7259      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7260      * contains a member of the group, such as `group:child&#64;google.com` or
7261      * `user:foo&#64;google.com`. This field is present only if the
7262      * output_group_edges option is enabled in request.
7263      * </pre>
7264      *
7265      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7266      */
7267     java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getGroupEdgesOrBuilderList()7268         getGroupEdgesOrBuilderList();
7269     /**
7270      *
7271      *
7272      * <pre>
7273      * Group identity edges of the graph starting from the binding's
7274      * group members to any node of the
7275      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7276      * The
7277      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7278      * contains a group, such as `group:parent&#64;google.com`. The
7279      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7280      * contains a member of the group, such as `group:child&#64;google.com` or
7281      * `user:foo&#64;google.com`. This field is present only if the
7282      * output_group_edges option is enabled in request.
7283      * </pre>
7284      *
7285      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7286      */
getGroupEdgesOrBuilder( int index)7287     com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrBuilder(
7288         int index);
7289   }
7290   /**
7291    *
7292    *
7293    * <pre>
7294    * The identities and group edges.
7295    * </pre>
7296    *
7297    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList}
7298    */
7299   public static final class IdentityList extends com.google.protobuf.GeneratedMessageV3
7300       implements
7301       // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
7302       IdentityListOrBuilder {
7303     private static final long serialVersionUID = 0L;
7304     // Use IdentityList.newBuilder() to construct.
IdentityList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)7305     private IdentityList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
7306       super(builder);
7307     }
7308 
IdentityList()7309     private IdentityList() {
7310       identities_ = java.util.Collections.emptyList();
7311       groupEdges_ = java.util.Collections.emptyList();
7312     }
7313 
7314     @java.lang.Override
7315     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)7316     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
7317       return new IdentityList();
7318     }
7319 
7320     @java.lang.Override
getUnknownFields()7321     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
7322       return this.unknownFields;
7323     }
7324 
getDescriptor()7325     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7326       return com.google.cloud.asset.v1.AssetProto
7327           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor;
7328     }
7329 
7330     @java.lang.Override
7331     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()7332         internalGetFieldAccessorTable() {
7333       return com.google.cloud.asset.v1.AssetProto
7334           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable
7335           .ensureFieldAccessorsInitialized(
7336               com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class,
7337               com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class);
7338     }
7339 
7340     public static final int IDENTITIES_FIELD_NUMBER = 1;
7341 
7342     @SuppressWarnings("serial")
7343     private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity> identities_;
7344     /**
7345      *
7346      *
7347      * <pre>
7348      * Only the identities that match one of the following conditions will be
7349      * presented:
7350      * - The identity_selector, if it is specified in request;
7351      * - Otherwise, identities reachable from the policy binding's members.
7352      * </pre>
7353      *
7354      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7355      */
7356     @java.lang.Override
7357     public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>
getIdentitiesList()7358         getIdentitiesList() {
7359       return identities_;
7360     }
7361     /**
7362      *
7363      *
7364      * <pre>
7365      * Only the identities that match one of the following conditions will be
7366      * presented:
7367      * - The identity_selector, if it is specified in request;
7368      * - Otherwise, identities reachable from the policy binding's members.
7369      * </pre>
7370      *
7371      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7372      */
7373     @java.lang.Override
7374     public java.util.List<
7375             ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
getIdentitiesOrBuilderList()7376         getIdentitiesOrBuilderList() {
7377       return identities_;
7378     }
7379     /**
7380      *
7381      *
7382      * <pre>
7383      * Only the identities that match one of the following conditions will be
7384      * presented:
7385      * - The identity_selector, if it is specified in request;
7386      * - Otherwise, identities reachable from the policy binding's members.
7387      * </pre>
7388      *
7389      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7390      */
7391     @java.lang.Override
getIdentitiesCount()7392     public int getIdentitiesCount() {
7393       return identities_.size();
7394     }
7395     /**
7396      *
7397      *
7398      * <pre>
7399      * Only the identities that match one of the following conditions will be
7400      * presented:
7401      * - The identity_selector, if it is specified in request;
7402      * - Otherwise, identities reachable from the policy binding's members.
7403      * </pre>
7404      *
7405      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7406      */
7407     @java.lang.Override
getIdentities(int index)7408     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index) {
7409       return identities_.get(index);
7410     }
7411     /**
7412      *
7413      *
7414      * <pre>
7415      * Only the identities that match one of the following conditions will be
7416      * presented:
7417      * - The identity_selector, if it is specified in request;
7418      * - Otherwise, identities reachable from the policy binding's members.
7419      * </pre>
7420      *
7421      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;</code>
7422      */
7423     @java.lang.Override
7424     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder
getIdentitiesOrBuilder(int index)7425         getIdentitiesOrBuilder(int index) {
7426       return identities_.get(index);
7427     }
7428 
7429     public static final int GROUP_EDGES_FIELD_NUMBER = 2;
7430 
7431     @SuppressWarnings("serial")
7432     private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> groupEdges_;
7433     /**
7434      *
7435      *
7436      * <pre>
7437      * Group identity edges of the graph starting from the binding's
7438      * group members to any node of the
7439      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7440      * The
7441      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7442      * contains a group, such as `group:parent&#64;google.com`. The
7443      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7444      * contains a member of the group, such as `group:child&#64;google.com` or
7445      * `user:foo&#64;google.com`. This field is present only if the
7446      * output_group_edges option is enabled in request.
7447      * </pre>
7448      *
7449      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7450      */
7451     @java.lang.Override
7452     public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
getGroupEdgesList()7453         getGroupEdgesList() {
7454       return groupEdges_;
7455     }
7456     /**
7457      *
7458      *
7459      * <pre>
7460      * Group identity edges of the graph starting from the binding's
7461      * group members to any node of the
7462      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7463      * The
7464      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7465      * contains a group, such as `group:parent&#64;google.com`. The
7466      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7467      * contains a member of the group, such as `group:child&#64;google.com` or
7468      * `user:foo&#64;google.com`. This field is present only if the
7469      * output_group_edges option is enabled in request.
7470      * </pre>
7471      *
7472      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7473      */
7474     @java.lang.Override
7475     public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getGroupEdgesOrBuilderList()7476         getGroupEdgesOrBuilderList() {
7477       return groupEdges_;
7478     }
7479     /**
7480      *
7481      *
7482      * <pre>
7483      * Group identity edges of the graph starting from the binding's
7484      * group members to any node of the
7485      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7486      * The
7487      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7488      * contains a group, such as `group:parent&#64;google.com`. The
7489      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7490      * contains a member of the group, such as `group:child&#64;google.com` or
7491      * `user:foo&#64;google.com`. This field is present only if the
7492      * output_group_edges option is enabled in request.
7493      * </pre>
7494      *
7495      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7496      */
7497     @java.lang.Override
getGroupEdgesCount()7498     public int getGroupEdgesCount() {
7499       return groupEdges_.size();
7500     }
7501     /**
7502      *
7503      *
7504      * <pre>
7505      * Group identity edges of the graph starting from the binding's
7506      * group members to any node of the
7507      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7508      * The
7509      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7510      * contains a group, such as `group:parent&#64;google.com`. The
7511      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7512      * contains a member of the group, such as `group:child&#64;google.com` or
7513      * `user:foo&#64;google.com`. This field is present only if the
7514      * output_group_edges option is enabled in request.
7515      * </pre>
7516      *
7517      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7518      */
7519     @java.lang.Override
getGroupEdges(int index)7520     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int index) {
7521       return groupEdges_.get(index);
7522     }
7523     /**
7524      *
7525      *
7526      * <pre>
7527      * Group identity edges of the graph starting from the binding's
7528      * group members to any node of the
7529      * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
7530      * The
7531      * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
7532      * contains a group, such as `group:parent&#64;google.com`. The
7533      * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
7534      * contains a member of the group, such as `group:child&#64;google.com` or
7535      * `user:foo&#64;google.com`. This field is present only if the
7536      * output_group_edges option is enabled in request.
7537      * </pre>
7538      *
7539      * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
7540      */
7541     @java.lang.Override
getGroupEdgesOrBuilder( int index)7542     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrBuilder(
7543         int index) {
7544       return groupEdges_.get(index);
7545     }
7546 
7547     private byte memoizedIsInitialized = -1;
7548 
7549     @java.lang.Override
isInitialized()7550     public final boolean isInitialized() {
7551       byte isInitialized = memoizedIsInitialized;
7552       if (isInitialized == 1) return true;
7553       if (isInitialized == 0) return false;
7554 
7555       memoizedIsInitialized = 1;
7556       return true;
7557     }
7558 
7559     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)7560     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
7561       for (int i = 0; i < identities_.size(); i++) {
7562         output.writeMessage(1, identities_.get(i));
7563       }
7564       for (int i = 0; i < groupEdges_.size(); i++) {
7565         output.writeMessage(2, groupEdges_.get(i));
7566       }
7567       getUnknownFields().writeTo(output);
7568     }
7569 
7570     @java.lang.Override
getSerializedSize()7571     public int getSerializedSize() {
7572       int size = memoizedSize;
7573       if (size != -1) return size;
7574 
7575       size = 0;
7576       for (int i = 0; i < identities_.size(); i++) {
7577         size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, identities_.get(i));
7578       }
7579       for (int i = 0; i < groupEdges_.size(); i++) {
7580         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, groupEdges_.get(i));
7581       }
7582       size += getUnknownFields().getSerializedSize();
7583       memoizedSize = size;
7584       return size;
7585     }
7586 
7587     @java.lang.Override
equals(final java.lang.Object obj)7588     public boolean equals(final java.lang.Object obj) {
7589       if (obj == this) {
7590         return true;
7591       }
7592       if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)) {
7593         return super.equals(obj);
7594       }
7595       com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other =
7596           (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) obj;
7597 
7598       if (!getIdentitiesList().equals(other.getIdentitiesList())) return false;
7599       if (!getGroupEdgesList().equals(other.getGroupEdgesList())) return false;
7600       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
7601       return true;
7602     }
7603 
7604     @java.lang.Override
hashCode()7605     public int hashCode() {
7606       if (memoizedHashCode != 0) {
7607         return memoizedHashCode;
7608       }
7609       int hash = 41;
7610       hash = (19 * hash) + getDescriptor().hashCode();
7611       if (getIdentitiesCount() > 0) {
7612         hash = (37 * hash) + IDENTITIES_FIELD_NUMBER;
7613         hash = (53 * hash) + getIdentitiesList().hashCode();
7614       }
7615       if (getGroupEdgesCount() > 0) {
7616         hash = (37 * hash) + GROUP_EDGES_FIELD_NUMBER;
7617         hash = (53 * hash) + getGroupEdgesList().hashCode();
7618       }
7619       hash = (29 * hash) + getUnknownFields().hashCode();
7620       memoizedHashCode = hash;
7621       return hash;
7622     }
7623 
parseFrom( java.nio.ByteBuffer data)7624     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7625         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
7626       return PARSER.parseFrom(data);
7627     }
7628 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7629     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7630         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7631         throws com.google.protobuf.InvalidProtocolBufferException {
7632       return PARSER.parseFrom(data, extensionRegistry);
7633     }
7634 
parseFrom( com.google.protobuf.ByteString data)7635     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7636         com.google.protobuf.ByteString data)
7637         throws com.google.protobuf.InvalidProtocolBufferException {
7638       return PARSER.parseFrom(data);
7639     }
7640 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7641     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7642         com.google.protobuf.ByteString data,
7643         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7644         throws com.google.protobuf.InvalidProtocolBufferException {
7645       return PARSER.parseFrom(data, extensionRegistry);
7646     }
7647 
parseFrom( byte[] data)7648     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7649         byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
7650       return PARSER.parseFrom(data);
7651     }
7652 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7653     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7654         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7655         throws com.google.protobuf.InvalidProtocolBufferException {
7656       return PARSER.parseFrom(data, extensionRegistry);
7657     }
7658 
parseFrom( java.io.InputStream input)7659     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7660         java.io.InputStream input) throws java.io.IOException {
7661       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
7662     }
7663 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7664     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7665         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7666         throws java.io.IOException {
7667       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
7668           PARSER, input, extensionRegistry);
7669     }
7670 
parseDelimitedFrom( java.io.InputStream input)7671     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom(
7672         java.io.InputStream input) throws java.io.IOException {
7673       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
7674     }
7675 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7676     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom(
7677         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7678         throws java.io.IOException {
7679       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
7680           PARSER, input, extensionRegistry);
7681     }
7682 
parseFrom( com.google.protobuf.CodedInputStream input)7683     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7684         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
7685       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
7686     }
7687 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7688     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
7689         com.google.protobuf.CodedInputStream input,
7690         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7691         throws java.io.IOException {
7692       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
7693           PARSER, input, extensionRegistry);
7694     }
7695 
7696     @java.lang.Override
newBuilderForType()7697     public Builder newBuilderForType() {
7698       return newBuilder();
7699     }
7700 
newBuilder()7701     public static Builder newBuilder() {
7702       return DEFAULT_INSTANCE.toBuilder();
7703     }
7704 
newBuilder( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList prototype)7705     public static Builder newBuilder(
7706         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList prototype) {
7707       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
7708     }
7709 
7710     @java.lang.Override
toBuilder()7711     public Builder toBuilder() {
7712       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
7713     }
7714 
7715     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)7716     protected Builder newBuilderForType(
7717         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
7718       Builder builder = new Builder(parent);
7719       return builder;
7720     }
7721     /**
7722      *
7723      *
7724      * <pre>
7725      * The identities and group edges.
7726      * </pre>
7727      *
7728      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList}
7729      */
7730     public static final class Builder
7731         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
7732         implements
7733         // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
7734         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder {
getDescriptor()7735       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7736         return com.google.cloud.asset.v1.AssetProto
7737             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor;
7738       }
7739 
7740       @java.lang.Override
7741       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()7742           internalGetFieldAccessorTable() {
7743         return com.google.cloud.asset.v1.AssetProto
7744             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable
7745             .ensureFieldAccessorsInitialized(
7746                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class,
7747                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class);
7748       }
7749 
7750       // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder()
Builder()7751       private Builder() {}
7752 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)7753       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
7754         super(parent);
7755       }
7756 
7757       @java.lang.Override
clear()7758       public Builder clear() {
7759         super.clear();
7760         bitField0_ = 0;
7761         if (identitiesBuilder_ == null) {
7762           identities_ = java.util.Collections.emptyList();
7763         } else {
7764           identities_ = null;
7765           identitiesBuilder_.clear();
7766         }
7767         bitField0_ = (bitField0_ & ~0x00000001);
7768         if (groupEdgesBuilder_ == null) {
7769           groupEdges_ = java.util.Collections.emptyList();
7770         } else {
7771           groupEdges_ = null;
7772           groupEdgesBuilder_.clear();
7773         }
7774         bitField0_ = (bitField0_ & ~0x00000002);
7775         return this;
7776       }
7777 
7778       @java.lang.Override
getDescriptorForType()7779       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
7780         return com.google.cloud.asset.v1.AssetProto
7781             .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor;
7782       }
7783 
7784       @java.lang.Override
7785       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
getDefaultInstanceForType()7786           getDefaultInstanceForType() {
7787         return com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance();
7788       }
7789 
7790       @java.lang.Override
build()7791       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList build() {
7792         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result = buildPartial();
7793         if (!result.isInitialized()) {
7794           throw newUninitializedMessageException(result);
7795         }
7796         return result;
7797       }
7798 
7799       @java.lang.Override
buildPartial()7800       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList buildPartial() {
7801         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result =
7802             new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList(this);
7803         buildPartialRepeatedFields(result);
7804         if (bitField0_ != 0) {
7805           buildPartial0(result);
7806         }
7807         onBuilt();
7808         return result;
7809       }
7810 
buildPartialRepeatedFields( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result)7811       private void buildPartialRepeatedFields(
7812           com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result) {
7813         if (identitiesBuilder_ == null) {
7814           if (((bitField0_ & 0x00000001) != 0)) {
7815             identities_ = java.util.Collections.unmodifiableList(identities_);
7816             bitField0_ = (bitField0_ & ~0x00000001);
7817           }
7818           result.identities_ = identities_;
7819         } else {
7820           result.identities_ = identitiesBuilder_.build();
7821         }
7822         if (groupEdgesBuilder_ == null) {
7823           if (((bitField0_ & 0x00000002) != 0)) {
7824             groupEdges_ = java.util.Collections.unmodifiableList(groupEdges_);
7825             bitField0_ = (bitField0_ & ~0x00000002);
7826           }
7827           result.groupEdges_ = groupEdges_;
7828         } else {
7829           result.groupEdges_ = groupEdgesBuilder_.build();
7830         }
7831       }
7832 
buildPartial0( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result)7833       private void buildPartial0(
7834           com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result) {
7835         int from_bitField0_ = bitField0_;
7836       }
7837 
7838       @java.lang.Override
clone()7839       public Builder clone() {
7840         return super.clone();
7841       }
7842 
7843       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)7844       public Builder setField(
7845           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
7846         return super.setField(field, value);
7847       }
7848 
7849       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)7850       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
7851         return super.clearField(field);
7852       }
7853 
7854       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)7855       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
7856         return super.clearOneof(oneof);
7857       }
7858 
7859       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)7860       public Builder setRepeatedField(
7861           com.google.protobuf.Descriptors.FieldDescriptor field,
7862           int index,
7863           java.lang.Object value) {
7864         return super.setRepeatedField(field, index, value);
7865       }
7866 
7867       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)7868       public Builder addRepeatedField(
7869           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
7870         return super.addRepeatedField(field, value);
7871       }
7872 
7873       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)7874       public Builder mergeFrom(com.google.protobuf.Message other) {
7875         if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) {
7876           return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) other);
7877         } else {
7878           super.mergeFrom(other);
7879           return this;
7880         }
7881       }
7882 
mergeFrom( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other)7883       public Builder mergeFrom(
7884           com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other) {
7885         if (other
7886             == com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance())
7887           return this;
7888         if (identitiesBuilder_ == null) {
7889           if (!other.identities_.isEmpty()) {
7890             if (identities_.isEmpty()) {
7891               identities_ = other.identities_;
7892               bitField0_ = (bitField0_ & ~0x00000001);
7893             } else {
7894               ensureIdentitiesIsMutable();
7895               identities_.addAll(other.identities_);
7896             }
7897             onChanged();
7898           }
7899         } else {
7900           if (!other.identities_.isEmpty()) {
7901             if (identitiesBuilder_.isEmpty()) {
7902               identitiesBuilder_.dispose();
7903               identitiesBuilder_ = null;
7904               identities_ = other.identities_;
7905               bitField0_ = (bitField0_ & ~0x00000001);
7906               identitiesBuilder_ =
7907                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
7908                       ? getIdentitiesFieldBuilder()
7909                       : null;
7910             } else {
7911               identitiesBuilder_.addAllMessages(other.identities_);
7912             }
7913           }
7914         }
7915         if (groupEdgesBuilder_ == null) {
7916           if (!other.groupEdges_.isEmpty()) {
7917             if (groupEdges_.isEmpty()) {
7918               groupEdges_ = other.groupEdges_;
7919               bitField0_ = (bitField0_ & ~0x00000002);
7920             } else {
7921               ensureGroupEdgesIsMutable();
7922               groupEdges_.addAll(other.groupEdges_);
7923             }
7924             onChanged();
7925           }
7926         } else {
7927           if (!other.groupEdges_.isEmpty()) {
7928             if (groupEdgesBuilder_.isEmpty()) {
7929               groupEdgesBuilder_.dispose();
7930               groupEdgesBuilder_ = null;
7931               groupEdges_ = other.groupEdges_;
7932               bitField0_ = (bitField0_ & ~0x00000002);
7933               groupEdgesBuilder_ =
7934                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
7935                       ? getGroupEdgesFieldBuilder()
7936                       : null;
7937             } else {
7938               groupEdgesBuilder_.addAllMessages(other.groupEdges_);
7939             }
7940           }
7941         }
7942         this.mergeUnknownFields(other.getUnknownFields());
7943         onChanged();
7944         return this;
7945       }
7946 
7947       @java.lang.Override
isInitialized()7948       public final boolean isInitialized() {
7949         return true;
7950       }
7951 
7952       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)7953       public Builder mergeFrom(
7954           com.google.protobuf.CodedInputStream input,
7955           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7956           throws java.io.IOException {
7957         if (extensionRegistry == null) {
7958           throw new java.lang.NullPointerException();
7959         }
7960         try {
7961           boolean done = false;
7962           while (!done) {
7963             int tag = input.readTag();
7964             switch (tag) {
7965               case 0:
7966                 done = true;
7967                 break;
7968               case 10:
7969                 {
7970                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity m =
7971                       input.readMessage(
7972                           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(),
7973                           extensionRegistry);
7974                   if (identitiesBuilder_ == null) {
7975                     ensureIdentitiesIsMutable();
7976                     identities_.add(m);
7977                   } else {
7978                     identitiesBuilder_.addMessage(m);
7979                   }
7980                   break;
7981                 } // case 10
7982               case 18:
7983                 {
7984                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m =
7985                       input.readMessage(
7986                           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(),
7987                           extensionRegistry);
7988                   if (groupEdgesBuilder_ == null) {
7989                     ensureGroupEdgesIsMutable();
7990                     groupEdges_.add(m);
7991                   } else {
7992                     groupEdgesBuilder_.addMessage(m);
7993                   }
7994                   break;
7995                 } // case 18
7996               default:
7997                 {
7998                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
7999                     done = true; // was an endgroup tag
8000                   }
8001                   break;
8002                 } // default:
8003             } // switch (tag)
8004           } // while (!done)
8005         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8006           throw e.unwrapIOException();
8007         } finally {
8008           onChanged();
8009         } // finally
8010         return this;
8011       }
8012 
8013       private int bitField0_;
8014 
8015       private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>
8016           identities_ = java.util.Collections.emptyList();
8017 
ensureIdentitiesIsMutable()8018       private void ensureIdentitiesIsMutable() {
8019         if (!((bitField0_ & 0x00000001) != 0)) {
8020           identities_ =
8021               new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>(
8022                   identities_);
8023           bitField0_ |= 0x00000001;
8024         }
8025       }
8026 
8027       private com.google.protobuf.RepeatedFieldBuilderV3<
8028               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity,
8029               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder,
8030               com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
8031           identitiesBuilder_;
8032 
8033       /**
8034        *
8035        *
8036        * <pre>
8037        * Only the identities that match one of the following conditions will be
8038        * presented:
8039        * - The identity_selector, if it is specified in request;
8040        * - Otherwise, identities reachable from the policy binding's members.
8041        * </pre>
8042        *
8043        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8044        * </code>
8045        */
8046       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>
getIdentitiesList()8047           getIdentitiesList() {
8048         if (identitiesBuilder_ == null) {
8049           return java.util.Collections.unmodifiableList(identities_);
8050         } else {
8051           return identitiesBuilder_.getMessageList();
8052         }
8053       }
8054       /**
8055        *
8056        *
8057        * <pre>
8058        * Only the identities that match one of the following conditions will be
8059        * presented:
8060        * - The identity_selector, if it is specified in request;
8061        * - Otherwise, identities reachable from the policy binding's members.
8062        * </pre>
8063        *
8064        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8065        * </code>
8066        */
getIdentitiesCount()8067       public int getIdentitiesCount() {
8068         if (identitiesBuilder_ == null) {
8069           return identities_.size();
8070         } else {
8071           return identitiesBuilder_.getCount();
8072         }
8073       }
8074       /**
8075        *
8076        *
8077        * <pre>
8078        * Only the identities that match one of the following conditions will be
8079        * presented:
8080        * - The identity_selector, if it is specified in request;
8081        * - Otherwise, identities reachable from the policy binding's members.
8082        * </pre>
8083        *
8084        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8085        * </code>
8086        */
getIdentities(int index)8087       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index) {
8088         if (identitiesBuilder_ == null) {
8089           return identities_.get(index);
8090         } else {
8091           return identitiesBuilder_.getMessage(index);
8092         }
8093       }
8094       /**
8095        *
8096        *
8097        * <pre>
8098        * Only the identities that match one of the following conditions will be
8099        * presented:
8100        * - The identity_selector, if it is specified in request;
8101        * - Otherwise, identities reachable from the policy binding's members.
8102        * </pre>
8103        *
8104        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8105        * </code>
8106        */
setIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value)8107       public Builder setIdentities(
8108           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) {
8109         if (identitiesBuilder_ == null) {
8110           if (value == null) {
8111             throw new NullPointerException();
8112           }
8113           ensureIdentitiesIsMutable();
8114           identities_.set(index, value);
8115           onChanged();
8116         } else {
8117           identitiesBuilder_.setMessage(index, value);
8118         }
8119         return this;
8120       }
8121       /**
8122        *
8123        *
8124        * <pre>
8125        * Only the identities that match one of the following conditions will be
8126        * presented:
8127        * - The identity_selector, if it is specified in request;
8128        * - Otherwise, identities reachable from the policy binding's members.
8129        * </pre>
8130        *
8131        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8132        * </code>
8133        */
setIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue)8134       public Builder setIdentities(
8135           int index,
8136           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) {
8137         if (identitiesBuilder_ == null) {
8138           ensureIdentitiesIsMutable();
8139           identities_.set(index, builderForValue.build());
8140           onChanged();
8141         } else {
8142           identitiesBuilder_.setMessage(index, builderForValue.build());
8143         }
8144         return this;
8145       }
8146       /**
8147        *
8148        *
8149        * <pre>
8150        * Only the identities that match one of the following conditions will be
8151        * presented:
8152        * - The identity_selector, if it is specified in request;
8153        * - Otherwise, identities reachable from the policy binding's members.
8154        * </pre>
8155        *
8156        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8157        * </code>
8158        */
addIdentities( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value)8159       public Builder addIdentities(
8160           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) {
8161         if (identitiesBuilder_ == null) {
8162           if (value == null) {
8163             throw new NullPointerException();
8164           }
8165           ensureIdentitiesIsMutable();
8166           identities_.add(value);
8167           onChanged();
8168         } else {
8169           identitiesBuilder_.addMessage(value);
8170         }
8171         return this;
8172       }
8173       /**
8174        *
8175        *
8176        * <pre>
8177        * Only the identities that match one of the following conditions will be
8178        * presented:
8179        * - The identity_selector, if it is specified in request;
8180        * - Otherwise, identities reachable from the policy binding's members.
8181        * </pre>
8182        *
8183        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8184        * </code>
8185        */
addIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value)8186       public Builder addIdentities(
8187           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) {
8188         if (identitiesBuilder_ == null) {
8189           if (value == null) {
8190             throw new NullPointerException();
8191           }
8192           ensureIdentitiesIsMutable();
8193           identities_.add(index, value);
8194           onChanged();
8195         } else {
8196           identitiesBuilder_.addMessage(index, value);
8197         }
8198         return this;
8199       }
8200       /**
8201        *
8202        *
8203        * <pre>
8204        * Only the identities that match one of the following conditions will be
8205        * presented:
8206        * - The identity_selector, if it is specified in request;
8207        * - Otherwise, identities reachable from the policy binding's members.
8208        * </pre>
8209        *
8210        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8211        * </code>
8212        */
addIdentities( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue)8213       public Builder addIdentities(
8214           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) {
8215         if (identitiesBuilder_ == null) {
8216           ensureIdentitiesIsMutable();
8217           identities_.add(builderForValue.build());
8218           onChanged();
8219         } else {
8220           identitiesBuilder_.addMessage(builderForValue.build());
8221         }
8222         return this;
8223       }
8224       /**
8225        *
8226        *
8227        * <pre>
8228        * Only the identities that match one of the following conditions will be
8229        * presented:
8230        * - The identity_selector, if it is specified in request;
8231        * - Otherwise, identities reachable from the policy binding's members.
8232        * </pre>
8233        *
8234        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8235        * </code>
8236        */
addIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue)8237       public Builder addIdentities(
8238           int index,
8239           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) {
8240         if (identitiesBuilder_ == null) {
8241           ensureIdentitiesIsMutable();
8242           identities_.add(index, builderForValue.build());
8243           onChanged();
8244         } else {
8245           identitiesBuilder_.addMessage(index, builderForValue.build());
8246         }
8247         return this;
8248       }
8249       /**
8250        *
8251        *
8252        * <pre>
8253        * Only the identities that match one of the following conditions will be
8254        * presented:
8255        * - The identity_selector, if it is specified in request;
8256        * - Otherwise, identities reachable from the policy binding's members.
8257        * </pre>
8258        *
8259        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8260        * </code>
8261        */
addAllIdentities( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity> values)8262       public Builder addAllIdentities(
8263           java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>
8264               values) {
8265         if (identitiesBuilder_ == null) {
8266           ensureIdentitiesIsMutable();
8267           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identities_);
8268           onChanged();
8269         } else {
8270           identitiesBuilder_.addAllMessages(values);
8271         }
8272         return this;
8273       }
8274       /**
8275        *
8276        *
8277        * <pre>
8278        * Only the identities that match one of the following conditions will be
8279        * presented:
8280        * - The identity_selector, if it is specified in request;
8281        * - Otherwise, identities reachable from the policy binding's members.
8282        * </pre>
8283        *
8284        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8285        * </code>
8286        */
clearIdentities()8287       public Builder clearIdentities() {
8288         if (identitiesBuilder_ == null) {
8289           identities_ = java.util.Collections.emptyList();
8290           bitField0_ = (bitField0_ & ~0x00000001);
8291           onChanged();
8292         } else {
8293           identitiesBuilder_.clear();
8294         }
8295         return this;
8296       }
8297       /**
8298        *
8299        *
8300        * <pre>
8301        * Only the identities that match one of the following conditions will be
8302        * presented:
8303        * - The identity_selector, if it is specified in request;
8304        * - Otherwise, identities reachable from the policy binding's members.
8305        * </pre>
8306        *
8307        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8308        * </code>
8309        */
removeIdentities(int index)8310       public Builder removeIdentities(int index) {
8311         if (identitiesBuilder_ == null) {
8312           ensureIdentitiesIsMutable();
8313           identities_.remove(index);
8314           onChanged();
8315         } else {
8316           identitiesBuilder_.remove(index);
8317         }
8318         return this;
8319       }
8320       /**
8321        *
8322        *
8323        * <pre>
8324        * Only the identities that match one of the following conditions will be
8325        * presented:
8326        * - The identity_selector, if it is specified in request;
8327        * - Otherwise, identities reachable from the policy binding's members.
8328        * </pre>
8329        *
8330        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8331        * </code>
8332        */
8333       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder
getIdentitiesBuilder(int index)8334           getIdentitiesBuilder(int index) {
8335         return getIdentitiesFieldBuilder().getBuilder(index);
8336       }
8337       /**
8338        *
8339        *
8340        * <pre>
8341        * Only the identities that match one of the following conditions will be
8342        * presented:
8343        * - The identity_selector, if it is specified in request;
8344        * - Otherwise, identities reachable from the policy binding's members.
8345        * </pre>
8346        *
8347        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8348        * </code>
8349        */
8350       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder
getIdentitiesOrBuilder(int index)8351           getIdentitiesOrBuilder(int index) {
8352         if (identitiesBuilder_ == null) {
8353           return identities_.get(index);
8354         } else {
8355           return identitiesBuilder_.getMessageOrBuilder(index);
8356         }
8357       }
8358       /**
8359        *
8360        *
8361        * <pre>
8362        * Only the identities that match one of the following conditions will be
8363        * presented:
8364        * - The identity_selector, if it is specified in request;
8365        * - Otherwise, identities reachable from the policy binding's members.
8366        * </pre>
8367        *
8368        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8369        * </code>
8370        */
8371       public java.util.List<
8372               ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
getIdentitiesOrBuilderList()8373           getIdentitiesOrBuilderList() {
8374         if (identitiesBuilder_ != null) {
8375           return identitiesBuilder_.getMessageOrBuilderList();
8376         } else {
8377           return java.util.Collections.unmodifiableList(identities_);
8378         }
8379       }
8380       /**
8381        *
8382        *
8383        * <pre>
8384        * Only the identities that match one of the following conditions will be
8385        * presented:
8386        * - The identity_selector, if it is specified in request;
8387        * - Otherwise, identities reachable from the policy binding's members.
8388        * </pre>
8389        *
8390        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8391        * </code>
8392        */
8393       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder
addIdentitiesBuilder()8394           addIdentitiesBuilder() {
8395         return getIdentitiesFieldBuilder()
8396             .addBuilder(
8397                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance());
8398       }
8399       /**
8400        *
8401        *
8402        * <pre>
8403        * Only the identities that match one of the following conditions will be
8404        * presented:
8405        * - The identity_selector, if it is specified in request;
8406        * - Otherwise, identities reachable from the policy binding's members.
8407        * </pre>
8408        *
8409        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8410        * </code>
8411        */
8412       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder
addIdentitiesBuilder(int index)8413           addIdentitiesBuilder(int index) {
8414         return getIdentitiesFieldBuilder()
8415             .addBuilder(
8416                 index,
8417                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance());
8418       }
8419       /**
8420        *
8421        *
8422        * <pre>
8423        * Only the identities that match one of the following conditions will be
8424        * presented:
8425        * - The identity_selector, if it is specified in request;
8426        * - Otherwise, identities reachable from the policy binding's members.
8427        * </pre>
8428        *
8429        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
8430        * </code>
8431        */
8432       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder>
getIdentitiesBuilderList()8433           getIdentitiesBuilderList() {
8434         return getIdentitiesFieldBuilder().getBuilderList();
8435       }
8436 
8437       private com.google.protobuf.RepeatedFieldBuilderV3<
8438               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity,
8439               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder,
8440               com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
getIdentitiesFieldBuilder()8441           getIdentitiesFieldBuilder() {
8442         if (identitiesBuilder_ == null) {
8443           identitiesBuilder_ =
8444               new com.google.protobuf.RepeatedFieldBuilderV3<
8445                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity,
8446                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder,
8447                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>(
8448                   identities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
8449           identities_ = null;
8450         }
8451         return identitiesBuilder_;
8452       }
8453 
8454       private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> groupEdges_ =
8455           java.util.Collections.emptyList();
8456 
ensureGroupEdgesIsMutable()8457       private void ensureGroupEdgesIsMutable() {
8458         if (!((bitField0_ & 0x00000002) != 0)) {
8459           groupEdges_ =
8460               new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>(
8461                   groupEdges_);
8462           bitField0_ |= 0x00000002;
8463         }
8464       }
8465 
8466       private com.google.protobuf.RepeatedFieldBuilderV3<
8467               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
8468               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
8469               com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
8470           groupEdgesBuilder_;
8471 
8472       /**
8473        *
8474        *
8475        * <pre>
8476        * Group identity edges of the graph starting from the binding's
8477        * group members to any node of the
8478        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8479        * The
8480        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8481        * contains a group, such as `group:parent&#64;google.com`. The
8482        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8483        * contains a member of the group, such as `group:child&#64;google.com` or
8484        * `user:foo&#64;google.com`. This field is present only if the
8485        * output_group_edges option is enabled in request.
8486        * </pre>
8487        *
8488        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8489        */
8490       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
getGroupEdgesList()8491           getGroupEdgesList() {
8492         if (groupEdgesBuilder_ == null) {
8493           return java.util.Collections.unmodifiableList(groupEdges_);
8494         } else {
8495           return groupEdgesBuilder_.getMessageList();
8496         }
8497       }
8498       /**
8499        *
8500        *
8501        * <pre>
8502        * Group identity edges of the graph starting from the binding's
8503        * group members to any node of the
8504        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8505        * The
8506        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8507        * contains a group, such as `group:parent&#64;google.com`. The
8508        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8509        * contains a member of the group, such as `group:child&#64;google.com` or
8510        * `user:foo&#64;google.com`. This field is present only if the
8511        * output_group_edges option is enabled in request.
8512        * </pre>
8513        *
8514        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8515        */
getGroupEdgesCount()8516       public int getGroupEdgesCount() {
8517         if (groupEdgesBuilder_ == null) {
8518           return groupEdges_.size();
8519         } else {
8520           return groupEdgesBuilder_.getCount();
8521         }
8522       }
8523       /**
8524        *
8525        *
8526        * <pre>
8527        * Group identity edges of the graph starting from the binding's
8528        * group members to any node of the
8529        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8530        * The
8531        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8532        * contains a group, such as `group:parent&#64;google.com`. The
8533        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8534        * contains a member of the group, such as `group:child&#64;google.com` or
8535        * `user:foo&#64;google.com`. This field is present only if the
8536        * output_group_edges option is enabled in request.
8537        * </pre>
8538        *
8539        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8540        */
getGroupEdges(int index)8541       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int index) {
8542         if (groupEdgesBuilder_ == null) {
8543           return groupEdges_.get(index);
8544         } else {
8545           return groupEdgesBuilder_.getMessage(index);
8546         }
8547       }
8548       /**
8549        *
8550        *
8551        * <pre>
8552        * Group identity edges of the graph starting from the binding's
8553        * group members to any node of the
8554        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8555        * The
8556        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8557        * contains a group, such as `group:parent&#64;google.com`. The
8558        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8559        * contains a member of the group, such as `group:child&#64;google.com` or
8560        * `user:foo&#64;google.com`. This field is present only if the
8561        * output_group_edges option is enabled in request.
8562        * </pre>
8563        *
8564        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8565        */
setGroupEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value)8566       public Builder setGroupEdges(
8567           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) {
8568         if (groupEdgesBuilder_ == null) {
8569           if (value == null) {
8570             throw new NullPointerException();
8571           }
8572           ensureGroupEdgesIsMutable();
8573           groupEdges_.set(index, value);
8574           onChanged();
8575         } else {
8576           groupEdgesBuilder_.setMessage(index, value);
8577         }
8578         return this;
8579       }
8580       /**
8581        *
8582        *
8583        * <pre>
8584        * Group identity edges of the graph starting from the binding's
8585        * group members to any node of the
8586        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8587        * The
8588        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8589        * contains a group, such as `group:parent&#64;google.com`. The
8590        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8591        * contains a member of the group, such as `group:child&#64;google.com` or
8592        * `user:foo&#64;google.com`. This field is present only if the
8593        * output_group_edges option is enabled in request.
8594        * </pre>
8595        *
8596        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8597        */
setGroupEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue)8598       public Builder setGroupEdges(
8599           int index,
8600           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
8601         if (groupEdgesBuilder_ == null) {
8602           ensureGroupEdgesIsMutable();
8603           groupEdges_.set(index, builderForValue.build());
8604           onChanged();
8605         } else {
8606           groupEdgesBuilder_.setMessage(index, builderForValue.build());
8607         }
8608         return this;
8609       }
8610       /**
8611        *
8612        *
8613        * <pre>
8614        * Group identity edges of the graph starting from the binding's
8615        * group members to any node of the
8616        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8617        * The
8618        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8619        * contains a group, such as `group:parent&#64;google.com`. The
8620        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8621        * contains a member of the group, such as `group:child&#64;google.com` or
8622        * `user:foo&#64;google.com`. This field is present only if the
8623        * output_group_edges option is enabled in request.
8624        * </pre>
8625        *
8626        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8627        */
addGroupEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value)8628       public Builder addGroupEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) {
8629         if (groupEdgesBuilder_ == null) {
8630           if (value == null) {
8631             throw new NullPointerException();
8632           }
8633           ensureGroupEdgesIsMutable();
8634           groupEdges_.add(value);
8635           onChanged();
8636         } else {
8637           groupEdgesBuilder_.addMessage(value);
8638         }
8639         return this;
8640       }
8641       /**
8642        *
8643        *
8644        * <pre>
8645        * Group identity edges of the graph starting from the binding's
8646        * group members to any node of the
8647        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8648        * The
8649        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8650        * contains a group, such as `group:parent&#64;google.com`. The
8651        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8652        * contains a member of the group, such as `group:child&#64;google.com` or
8653        * `user:foo&#64;google.com`. This field is present only if the
8654        * output_group_edges option is enabled in request.
8655        * </pre>
8656        *
8657        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8658        */
addGroupEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value)8659       public Builder addGroupEdges(
8660           int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) {
8661         if (groupEdgesBuilder_ == null) {
8662           if (value == null) {
8663             throw new NullPointerException();
8664           }
8665           ensureGroupEdgesIsMutable();
8666           groupEdges_.add(index, value);
8667           onChanged();
8668         } else {
8669           groupEdgesBuilder_.addMessage(index, value);
8670         }
8671         return this;
8672       }
8673       /**
8674        *
8675        *
8676        * <pre>
8677        * Group identity edges of the graph starting from the binding's
8678        * group members to any node of the
8679        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8680        * The
8681        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8682        * contains a group, such as `group:parent&#64;google.com`. The
8683        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8684        * contains a member of the group, such as `group:child&#64;google.com` or
8685        * `user:foo&#64;google.com`. This field is present only if the
8686        * output_group_edges option is enabled in request.
8687        * </pre>
8688        *
8689        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8690        */
addGroupEdges( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue)8691       public Builder addGroupEdges(
8692           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
8693         if (groupEdgesBuilder_ == null) {
8694           ensureGroupEdgesIsMutable();
8695           groupEdges_.add(builderForValue.build());
8696           onChanged();
8697         } else {
8698           groupEdgesBuilder_.addMessage(builderForValue.build());
8699         }
8700         return this;
8701       }
8702       /**
8703        *
8704        *
8705        * <pre>
8706        * Group identity edges of the graph starting from the binding's
8707        * group members to any node of the
8708        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8709        * The
8710        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8711        * contains a group, such as `group:parent&#64;google.com`. The
8712        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8713        * contains a member of the group, such as `group:child&#64;google.com` or
8714        * `user:foo&#64;google.com`. This field is present only if the
8715        * output_group_edges option is enabled in request.
8716        * </pre>
8717        *
8718        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8719        */
addGroupEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue)8720       public Builder addGroupEdges(
8721           int index,
8722           com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
8723         if (groupEdgesBuilder_ == null) {
8724           ensureGroupEdgesIsMutable();
8725           groupEdges_.add(index, builderForValue.build());
8726           onChanged();
8727         } else {
8728           groupEdgesBuilder_.addMessage(index, builderForValue.build());
8729         }
8730         return this;
8731       }
8732       /**
8733        *
8734        *
8735        * <pre>
8736        * Group identity edges of the graph starting from the binding's
8737        * group members to any node of the
8738        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8739        * The
8740        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8741        * contains a group, such as `group:parent&#64;google.com`. The
8742        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8743        * contains a member of the group, such as `group:child&#64;google.com` or
8744        * `user:foo&#64;google.com`. This field is present only if the
8745        * output_group_edges option is enabled in request.
8746        * </pre>
8747        *
8748        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8749        */
addAllGroupEdges( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge> values)8750       public Builder addAllGroupEdges(
8751           java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>
8752               values) {
8753         if (groupEdgesBuilder_ == null) {
8754           ensureGroupEdgesIsMutable();
8755           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupEdges_);
8756           onChanged();
8757         } else {
8758           groupEdgesBuilder_.addAllMessages(values);
8759         }
8760         return this;
8761       }
8762       /**
8763        *
8764        *
8765        * <pre>
8766        * Group identity edges of the graph starting from the binding's
8767        * group members to any node of the
8768        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8769        * The
8770        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8771        * contains a group, such as `group:parent&#64;google.com`. The
8772        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8773        * contains a member of the group, such as `group:child&#64;google.com` or
8774        * `user:foo&#64;google.com`. This field is present only if the
8775        * output_group_edges option is enabled in request.
8776        * </pre>
8777        *
8778        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8779        */
clearGroupEdges()8780       public Builder clearGroupEdges() {
8781         if (groupEdgesBuilder_ == null) {
8782           groupEdges_ = java.util.Collections.emptyList();
8783           bitField0_ = (bitField0_ & ~0x00000002);
8784           onChanged();
8785         } else {
8786           groupEdgesBuilder_.clear();
8787         }
8788         return this;
8789       }
8790       /**
8791        *
8792        *
8793        * <pre>
8794        * Group identity edges of the graph starting from the binding's
8795        * group members to any node of the
8796        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8797        * The
8798        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8799        * contains a group, such as `group:parent&#64;google.com`. The
8800        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8801        * contains a member of the group, such as `group:child&#64;google.com` or
8802        * `user:foo&#64;google.com`. This field is present only if the
8803        * output_group_edges option is enabled in request.
8804        * </pre>
8805        *
8806        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8807        */
removeGroupEdges(int index)8808       public Builder removeGroupEdges(int index) {
8809         if (groupEdgesBuilder_ == null) {
8810           ensureGroupEdgesIsMutable();
8811           groupEdges_.remove(index);
8812           onChanged();
8813         } else {
8814           groupEdgesBuilder_.remove(index);
8815         }
8816         return this;
8817       }
8818       /**
8819        *
8820        *
8821        * <pre>
8822        * Group identity edges of the graph starting from the binding's
8823        * group members to any node of the
8824        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8825        * The
8826        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8827        * contains a group, such as `group:parent&#64;google.com`. The
8828        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8829        * contains a member of the group, such as `group:child&#64;google.com` or
8830        * `user:foo&#64;google.com`. This field is present only if the
8831        * output_group_edges option is enabled in request.
8832        * </pre>
8833        *
8834        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8835        */
getGroupEdgesBuilder( int index)8836       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getGroupEdgesBuilder(
8837           int index) {
8838         return getGroupEdgesFieldBuilder().getBuilder(index);
8839       }
8840       /**
8841        *
8842        *
8843        * <pre>
8844        * Group identity edges of the graph starting from the binding's
8845        * group members to any node of the
8846        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8847        * The
8848        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8849        * contains a group, such as `group:parent&#64;google.com`. The
8850        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8851        * contains a member of the group, such as `group:child&#64;google.com` or
8852        * `user:foo&#64;google.com`. This field is present only if the
8853        * output_group_edges option is enabled in request.
8854        * </pre>
8855        *
8856        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8857        */
getGroupEdgesOrBuilder( int index)8858       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrBuilder(
8859           int index) {
8860         if (groupEdgesBuilder_ == null) {
8861           return groupEdges_.get(index);
8862         } else {
8863           return groupEdgesBuilder_.getMessageOrBuilder(index);
8864         }
8865       }
8866       /**
8867        *
8868        *
8869        * <pre>
8870        * Group identity edges of the graph starting from the binding's
8871        * group members to any node of the
8872        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8873        * The
8874        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8875        * contains a group, such as `group:parent&#64;google.com`. The
8876        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8877        * contains a member of the group, such as `group:child&#64;google.com` or
8878        * `user:foo&#64;google.com`. This field is present only if the
8879        * output_group_edges option is enabled in request.
8880        * </pre>
8881        *
8882        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8883        */
8884       public java.util.List<
8885               ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getGroupEdgesOrBuilderList()8886           getGroupEdgesOrBuilderList() {
8887         if (groupEdgesBuilder_ != null) {
8888           return groupEdgesBuilder_.getMessageOrBuilderList();
8889         } else {
8890           return java.util.Collections.unmodifiableList(groupEdges_);
8891         }
8892       }
8893       /**
8894        *
8895        *
8896        * <pre>
8897        * Group identity edges of the graph starting from the binding's
8898        * group members to any node of the
8899        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8900        * The
8901        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8902        * contains a group, such as `group:parent&#64;google.com`. The
8903        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8904        * contains a member of the group, such as `group:child&#64;google.com` or
8905        * `user:foo&#64;google.com`. This field is present only if the
8906        * output_group_edges option is enabled in request.
8907        * </pre>
8908        *
8909        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8910        */
addGroupEdgesBuilder()8911       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEdgesBuilder() {
8912         return getGroupEdgesFieldBuilder()
8913             .addBuilder(
8914                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
8915       }
8916       /**
8917        *
8918        *
8919        * <pre>
8920        * Group identity edges of the graph starting from the binding's
8921        * group members to any node of the
8922        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8923        * The
8924        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8925        * contains a group, such as `group:parent&#64;google.com`. The
8926        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8927        * contains a member of the group, such as `group:child&#64;google.com` or
8928        * `user:foo&#64;google.com`. This field is present only if the
8929        * output_group_edges option is enabled in request.
8930        * </pre>
8931        *
8932        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8933        */
addGroupEdgesBuilder( int index)8934       public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEdgesBuilder(
8935           int index) {
8936         return getGroupEdgesFieldBuilder()
8937             .addBuilder(
8938                 index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
8939       }
8940       /**
8941        *
8942        *
8943        * <pre>
8944        * Group identity edges of the graph starting from the binding's
8945        * group members to any node of the
8946        * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
8947        * The
8948        * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
8949        * contains a group, such as `group:parent&#64;google.com`. The
8950        * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
8951        * contains a member of the group, such as `group:child&#64;google.com` or
8952        * `user:foo&#64;google.com`. This field is present only if the
8953        * output_group_edges option is enabled in request.
8954        * </pre>
8955        *
8956        * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;</code>
8957        */
8958       public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder>
getGroupEdgesBuilderList()8959           getGroupEdgesBuilderList() {
8960         return getGroupEdgesFieldBuilder().getBuilderList();
8961       }
8962 
8963       private com.google.protobuf.RepeatedFieldBuilderV3<
8964               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
8965               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
8966               com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
getGroupEdgesFieldBuilder()8967           getGroupEdgesFieldBuilder() {
8968         if (groupEdgesBuilder_ == null) {
8969           groupEdgesBuilder_ =
8970               new com.google.protobuf.RepeatedFieldBuilderV3<
8971                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
8972                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
8973                   com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>(
8974                   groupEdges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
8975           groupEdges_ = null;
8976         }
8977         return groupEdgesBuilder_;
8978       }
8979 
8980       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)8981       public final Builder setUnknownFields(
8982           final com.google.protobuf.UnknownFieldSet unknownFields) {
8983         return super.setUnknownFields(unknownFields);
8984       }
8985 
8986       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)8987       public final Builder mergeUnknownFields(
8988           final com.google.protobuf.UnknownFieldSet unknownFields) {
8989         return super.mergeUnknownFields(unknownFields);
8990       }
8991 
8992       // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
8993     }
8994 
8995     // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
8996     private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
8997         DEFAULT_INSTANCE;
8998 
8999     static {
9000       DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList();
9001     }
9002 
9003     public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
getDefaultInstance()9004         getDefaultInstance() {
9005       return DEFAULT_INSTANCE;
9006     }
9007 
9008     private static final com.google.protobuf.Parser<IdentityList> PARSER =
9009         new com.google.protobuf.AbstractParser<IdentityList>() {
9010           @java.lang.Override
9011           public IdentityList parsePartialFrom(
9012               com.google.protobuf.CodedInputStream input,
9013               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9014               throws com.google.protobuf.InvalidProtocolBufferException {
9015             Builder builder = newBuilder();
9016             try {
9017               builder.mergeFrom(input, extensionRegistry);
9018             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9019               throw e.setUnfinishedMessage(builder.buildPartial());
9020             } catch (com.google.protobuf.UninitializedMessageException e) {
9021               throw e.asInvalidProtocolBufferException()
9022                   .setUnfinishedMessage(builder.buildPartial());
9023             } catch (java.io.IOException e) {
9024               throw new com.google.protobuf.InvalidProtocolBufferException(e)
9025                   .setUnfinishedMessage(builder.buildPartial());
9026             }
9027             return builder.buildPartial();
9028           }
9029         };
9030 
parser()9031     public static com.google.protobuf.Parser<IdentityList> parser() {
9032       return PARSER;
9033     }
9034 
9035     @java.lang.Override
getParserForType()9036     public com.google.protobuf.Parser<IdentityList> getParserForType() {
9037       return PARSER;
9038     }
9039 
9040     @java.lang.Override
9041     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
getDefaultInstanceForType()9042         getDefaultInstanceForType() {
9043       return DEFAULT_INSTANCE;
9044     }
9045   }
9046 
9047   public static final int ATTACHED_RESOURCE_FULL_NAME_FIELD_NUMBER = 1;
9048 
9049   @SuppressWarnings("serial")
9050   private volatile java.lang.Object attachedResourceFullName_ = "";
9051   /**
9052    *
9053    *
9054    * <pre>
9055    * The [full resource
9056    * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9057    * of the resource to which the
9058    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9059    * policy attaches.
9060    * </pre>
9061    *
9062    * <code>string attached_resource_full_name = 1;</code>
9063    *
9064    * @return The attachedResourceFullName.
9065    */
9066   @java.lang.Override
getAttachedResourceFullName()9067   public java.lang.String getAttachedResourceFullName() {
9068     java.lang.Object ref = attachedResourceFullName_;
9069     if (ref instanceof java.lang.String) {
9070       return (java.lang.String) ref;
9071     } else {
9072       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
9073       java.lang.String s = bs.toStringUtf8();
9074       attachedResourceFullName_ = s;
9075       return s;
9076     }
9077   }
9078   /**
9079    *
9080    *
9081    * <pre>
9082    * The [full resource
9083    * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9084    * of the resource to which the
9085    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9086    * policy attaches.
9087    * </pre>
9088    *
9089    * <code>string attached_resource_full_name = 1;</code>
9090    *
9091    * @return The bytes for attachedResourceFullName.
9092    */
9093   @java.lang.Override
getAttachedResourceFullNameBytes()9094   public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() {
9095     java.lang.Object ref = attachedResourceFullName_;
9096     if (ref instanceof java.lang.String) {
9097       com.google.protobuf.ByteString b =
9098           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
9099       attachedResourceFullName_ = b;
9100       return b;
9101     } else {
9102       return (com.google.protobuf.ByteString) ref;
9103     }
9104   }
9105 
9106   public static final int IAM_BINDING_FIELD_NUMBER = 2;
9107   private com.google.iam.v1.Binding iamBinding_;
9108   /**
9109    *
9110    *
9111    * <pre>
9112    * The IAM policy binding under analysis.
9113    * </pre>
9114    *
9115    * <code>.google.iam.v1.Binding iam_binding = 2;</code>
9116    *
9117    * @return Whether the iamBinding field is set.
9118    */
9119   @java.lang.Override
hasIamBinding()9120   public boolean hasIamBinding() {
9121     return iamBinding_ != null;
9122   }
9123   /**
9124    *
9125    *
9126    * <pre>
9127    * The IAM policy binding under analysis.
9128    * </pre>
9129    *
9130    * <code>.google.iam.v1.Binding iam_binding = 2;</code>
9131    *
9132    * @return The iamBinding.
9133    */
9134   @java.lang.Override
getIamBinding()9135   public com.google.iam.v1.Binding getIamBinding() {
9136     return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_;
9137   }
9138   /**
9139    *
9140    *
9141    * <pre>
9142    * The IAM policy binding under analysis.
9143    * </pre>
9144    *
9145    * <code>.google.iam.v1.Binding iam_binding = 2;</code>
9146    */
9147   @java.lang.Override
getIamBindingOrBuilder()9148   public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() {
9149     return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_;
9150   }
9151 
9152   public static final int ACCESS_CONTROL_LISTS_FIELD_NUMBER = 3;
9153 
9154   @SuppressWarnings("serial")
9155   private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>
9156       accessControlLists_;
9157   /**
9158    *
9159    *
9160    * <pre>
9161    * The access control lists derived from the
9162    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9163    * that match or potentially match resource and access selectors specified in
9164    * the request.
9165    * </pre>
9166    *
9167    * <code>
9168    * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
9169    * </code>
9170    */
9171   @java.lang.Override
9172   public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>
getAccessControlListsList()9173       getAccessControlListsList() {
9174     return accessControlLists_;
9175   }
9176   /**
9177    *
9178    *
9179    * <pre>
9180    * The access control lists derived from the
9181    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9182    * that match or potentially match resource and access selectors specified in
9183    * the request.
9184    * </pre>
9185    *
9186    * <code>
9187    * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
9188    * </code>
9189    */
9190   @java.lang.Override
9191   public java.util.List<
9192           ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>
getAccessControlListsOrBuilderList()9193       getAccessControlListsOrBuilderList() {
9194     return accessControlLists_;
9195   }
9196   /**
9197    *
9198    *
9199    * <pre>
9200    * The access control lists derived from the
9201    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9202    * that match or potentially match resource and access selectors specified in
9203    * the request.
9204    * </pre>
9205    *
9206    * <code>
9207    * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
9208    * </code>
9209    */
9210   @java.lang.Override
getAccessControlListsCount()9211   public int getAccessControlListsCount() {
9212     return accessControlLists_.size();
9213   }
9214   /**
9215    *
9216    *
9217    * <pre>
9218    * The access control lists derived from the
9219    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9220    * that match or potentially match resource and access selectors specified in
9221    * the request.
9222    * </pre>
9223    *
9224    * <code>
9225    * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
9226    * </code>
9227    */
9228   @java.lang.Override
getAccessControlLists( int index)9229   public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(
9230       int index) {
9231     return accessControlLists_.get(index);
9232   }
9233   /**
9234    *
9235    *
9236    * <pre>
9237    * The access control lists derived from the
9238    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9239    * that match or potentially match resource and access selectors specified in
9240    * the request.
9241    * </pre>
9242    *
9243    * <code>
9244    * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
9245    * </code>
9246    */
9247   @java.lang.Override
9248   public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder
getAccessControlListsOrBuilder(int index)9249       getAccessControlListsOrBuilder(int index) {
9250     return accessControlLists_.get(index);
9251   }
9252 
9253   public static final int IDENTITY_LIST_FIELD_NUMBER = 4;
9254   private com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identityList_;
9255   /**
9256    *
9257    *
9258    * <pre>
9259    * The identity list derived from members of the
9260    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9261    * that match or potentially match identity selector specified in the request.
9262    * </pre>
9263    *
9264    * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
9265    *
9266    * @return Whether the identityList field is set.
9267    */
9268   @java.lang.Override
hasIdentityList()9269   public boolean hasIdentityList() {
9270     return identityList_ != null;
9271   }
9272   /**
9273    *
9274    *
9275    * <pre>
9276    * The identity list derived from members of the
9277    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9278    * that match or potentially match identity selector specified in the request.
9279    * </pre>
9280    *
9281    * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
9282    *
9283    * @return The identityList.
9284    */
9285   @java.lang.Override
getIdentityList()9286   public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList() {
9287     return identityList_ == null
9288         ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()
9289         : identityList_;
9290   }
9291   /**
9292    *
9293    *
9294    * <pre>
9295    * The identity list derived from members of the
9296    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9297    * that match or potentially match identity selector specified in the request.
9298    * </pre>
9299    *
9300    * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
9301    */
9302   @java.lang.Override
9303   public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder
getIdentityListOrBuilder()9304       getIdentityListOrBuilder() {
9305     return identityList_ == null
9306         ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()
9307         : identityList_;
9308   }
9309 
9310   public static final int FULLY_EXPLORED_FIELD_NUMBER = 5;
9311   private boolean fullyExplored_ = false;
9312   /**
9313    *
9314    *
9315    * <pre>
9316    * Represents whether all analyses on the
9317    * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9318    * have successfully finished.
9319    * </pre>
9320    *
9321    * <code>bool fully_explored = 5;</code>
9322    *
9323    * @return The fullyExplored.
9324    */
9325   @java.lang.Override
getFullyExplored()9326   public boolean getFullyExplored() {
9327     return fullyExplored_;
9328   }
9329 
9330   private byte memoizedIsInitialized = -1;
9331 
9332   @java.lang.Override
isInitialized()9333   public final boolean isInitialized() {
9334     byte isInitialized = memoizedIsInitialized;
9335     if (isInitialized == 1) return true;
9336     if (isInitialized == 0) return false;
9337 
9338     memoizedIsInitialized = 1;
9339     return true;
9340   }
9341 
9342   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)9343   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
9344     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResourceFullName_)) {
9345       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResourceFullName_);
9346     }
9347     if (iamBinding_ != null) {
9348       output.writeMessage(2, getIamBinding());
9349     }
9350     for (int i = 0; i < accessControlLists_.size(); i++) {
9351       output.writeMessage(3, accessControlLists_.get(i));
9352     }
9353     if (identityList_ != null) {
9354       output.writeMessage(4, getIdentityList());
9355     }
9356     if (fullyExplored_ != false) {
9357       output.writeBool(5, fullyExplored_);
9358     }
9359     getUnknownFields().writeTo(output);
9360   }
9361 
9362   @java.lang.Override
getSerializedSize()9363   public int getSerializedSize() {
9364     int size = memoizedSize;
9365     if (size != -1) return size;
9366 
9367     size = 0;
9368     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResourceFullName_)) {
9369       size +=
9370           com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResourceFullName_);
9371     }
9372     if (iamBinding_ != null) {
9373       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIamBinding());
9374     }
9375     for (int i = 0; i < accessControlLists_.size(); i++) {
9376       size +=
9377           com.google.protobuf.CodedOutputStream.computeMessageSize(3, accessControlLists_.get(i));
9378     }
9379     if (identityList_ != null) {
9380       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdentityList());
9381     }
9382     if (fullyExplored_ != false) {
9383       size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, fullyExplored_);
9384     }
9385     size += getUnknownFields().getSerializedSize();
9386     memoizedSize = size;
9387     return size;
9388   }
9389 
9390   @java.lang.Override
equals(final java.lang.Object obj)9391   public boolean equals(final java.lang.Object obj) {
9392     if (obj == this) {
9393       return true;
9394     }
9395     if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult)) {
9396       return super.equals(obj);
9397     }
9398     com.google.cloud.asset.v1.IamPolicyAnalysisResult other =
9399         (com.google.cloud.asset.v1.IamPolicyAnalysisResult) obj;
9400 
9401     if (!getAttachedResourceFullName().equals(other.getAttachedResourceFullName())) return false;
9402     if (hasIamBinding() != other.hasIamBinding()) return false;
9403     if (hasIamBinding()) {
9404       if (!getIamBinding().equals(other.getIamBinding())) return false;
9405     }
9406     if (!getAccessControlListsList().equals(other.getAccessControlListsList())) return false;
9407     if (hasIdentityList() != other.hasIdentityList()) return false;
9408     if (hasIdentityList()) {
9409       if (!getIdentityList().equals(other.getIdentityList())) return false;
9410     }
9411     if (getFullyExplored() != other.getFullyExplored()) return false;
9412     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
9413     return true;
9414   }
9415 
9416   @java.lang.Override
hashCode()9417   public int hashCode() {
9418     if (memoizedHashCode != 0) {
9419       return memoizedHashCode;
9420     }
9421     int hash = 41;
9422     hash = (19 * hash) + getDescriptor().hashCode();
9423     hash = (37 * hash) + ATTACHED_RESOURCE_FULL_NAME_FIELD_NUMBER;
9424     hash = (53 * hash) + getAttachedResourceFullName().hashCode();
9425     if (hasIamBinding()) {
9426       hash = (37 * hash) + IAM_BINDING_FIELD_NUMBER;
9427       hash = (53 * hash) + getIamBinding().hashCode();
9428     }
9429     if (getAccessControlListsCount() > 0) {
9430       hash = (37 * hash) + ACCESS_CONTROL_LISTS_FIELD_NUMBER;
9431       hash = (53 * hash) + getAccessControlListsList().hashCode();
9432     }
9433     if (hasIdentityList()) {
9434       hash = (37 * hash) + IDENTITY_LIST_FIELD_NUMBER;
9435       hash = (53 * hash) + getIdentityList().hashCode();
9436     }
9437     hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER;
9438     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored());
9439     hash = (29 * hash) + getUnknownFields().hashCode();
9440     memoizedHashCode = hash;
9441     return hash;
9442   }
9443 
parseFrom( java.nio.ByteBuffer data)9444   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9445       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
9446     return PARSER.parseFrom(data);
9447   }
9448 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9449   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9450       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9451       throws com.google.protobuf.InvalidProtocolBufferException {
9452     return PARSER.parseFrom(data, extensionRegistry);
9453   }
9454 
parseFrom( com.google.protobuf.ByteString data)9455   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9456       com.google.protobuf.ByteString data)
9457       throws com.google.protobuf.InvalidProtocolBufferException {
9458     return PARSER.parseFrom(data);
9459   }
9460 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9461   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9462       com.google.protobuf.ByteString data,
9463       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9464       throws com.google.protobuf.InvalidProtocolBufferException {
9465     return PARSER.parseFrom(data, extensionRegistry);
9466   }
9467 
parseFrom(byte[] data)9468   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(byte[] data)
9469       throws com.google.protobuf.InvalidProtocolBufferException {
9470     return PARSER.parseFrom(data);
9471   }
9472 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9473   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9474       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9475       throws com.google.protobuf.InvalidProtocolBufferException {
9476     return PARSER.parseFrom(data, extensionRegistry);
9477   }
9478 
parseFrom( java.io.InputStream input)9479   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9480       java.io.InputStream input) throws java.io.IOException {
9481     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
9482   }
9483 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9484   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9485       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9486       throws java.io.IOException {
9487     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
9488         PARSER, input, extensionRegistry);
9489   }
9490 
parseDelimitedFrom( java.io.InputStream input)9491   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom(
9492       java.io.InputStream input) throws java.io.IOException {
9493     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
9494   }
9495 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9496   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom(
9497       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9498       throws java.io.IOException {
9499     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
9500         PARSER, input, extensionRegistry);
9501   }
9502 
parseFrom( com.google.protobuf.CodedInputStream input)9503   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9504       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
9505     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
9506   }
9507 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9508   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(
9509       com.google.protobuf.CodedInputStream input,
9510       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9511       throws java.io.IOException {
9512     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
9513         PARSER, input, extensionRegistry);
9514   }
9515 
9516   @java.lang.Override
newBuilderForType()9517   public Builder newBuilderForType() {
9518     return newBuilder();
9519   }
9520 
newBuilder()9521   public static Builder newBuilder() {
9522     return DEFAULT_INSTANCE.toBuilder();
9523   }
9524 
newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult prototype)9525   public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult prototype) {
9526     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
9527   }
9528 
9529   @java.lang.Override
toBuilder()9530   public Builder toBuilder() {
9531     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
9532   }
9533 
9534   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)9535   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
9536     Builder builder = new Builder(parent);
9537     return builder;
9538   }
9539   /**
9540    *
9541    *
9542    * <pre>
9543    * IAM Policy analysis result, consisting of one IAM policy binding and derived
9544    * access control lists.
9545    * </pre>
9546    *
9547    * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult}
9548    */
9549   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
9550       implements
9551       // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult)
9552       com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder {
getDescriptor()9553     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
9554       return com.google.cloud.asset.v1.AssetProto
9555           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
9556     }
9557 
9558     @java.lang.Override
9559     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()9560         internalGetFieldAccessorTable() {
9561       return com.google.cloud.asset.v1.AssetProto
9562           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
9563           .ensureFieldAccessorsInitialized(
9564               com.google.cloud.asset.v1.IamPolicyAnalysisResult.class,
9565               com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
9566     }
9567 
9568     // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.newBuilder()
Builder()9569     private Builder() {}
9570 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)9571     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
9572       super(parent);
9573     }
9574 
9575     @java.lang.Override
clear()9576     public Builder clear() {
9577       super.clear();
9578       bitField0_ = 0;
9579       attachedResourceFullName_ = "";
9580       iamBinding_ = null;
9581       if (iamBindingBuilder_ != null) {
9582         iamBindingBuilder_.dispose();
9583         iamBindingBuilder_ = null;
9584       }
9585       if (accessControlListsBuilder_ == null) {
9586         accessControlLists_ = java.util.Collections.emptyList();
9587       } else {
9588         accessControlLists_ = null;
9589         accessControlListsBuilder_.clear();
9590       }
9591       bitField0_ = (bitField0_ & ~0x00000004);
9592       identityList_ = null;
9593       if (identityListBuilder_ != null) {
9594         identityListBuilder_.dispose();
9595         identityListBuilder_ = null;
9596       }
9597       fullyExplored_ = false;
9598       return this;
9599     }
9600 
9601     @java.lang.Override
getDescriptorForType()9602     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
9603       return com.google.cloud.asset.v1.AssetProto
9604           .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
9605     }
9606 
9607     @java.lang.Override
getDefaultInstanceForType()9608     public com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstanceForType() {
9609       return com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance();
9610     }
9611 
9612     @java.lang.Override
build()9613     public com.google.cloud.asset.v1.IamPolicyAnalysisResult build() {
9614       com.google.cloud.asset.v1.IamPolicyAnalysisResult result = buildPartial();
9615       if (!result.isInitialized()) {
9616         throw newUninitializedMessageException(result);
9617       }
9618       return result;
9619     }
9620 
9621     @java.lang.Override
buildPartial()9622     public com.google.cloud.asset.v1.IamPolicyAnalysisResult buildPartial() {
9623       com.google.cloud.asset.v1.IamPolicyAnalysisResult result =
9624           new com.google.cloud.asset.v1.IamPolicyAnalysisResult(this);
9625       buildPartialRepeatedFields(result);
9626       if (bitField0_ != 0) {
9627         buildPartial0(result);
9628       }
9629       onBuilt();
9630       return result;
9631     }
9632 
buildPartialRepeatedFields( com.google.cloud.asset.v1.IamPolicyAnalysisResult result)9633     private void buildPartialRepeatedFields(
9634         com.google.cloud.asset.v1.IamPolicyAnalysisResult result) {
9635       if (accessControlListsBuilder_ == null) {
9636         if (((bitField0_ & 0x00000004) != 0)) {
9637           accessControlLists_ = java.util.Collections.unmodifiableList(accessControlLists_);
9638           bitField0_ = (bitField0_ & ~0x00000004);
9639         }
9640         result.accessControlLists_ = accessControlLists_;
9641       } else {
9642         result.accessControlLists_ = accessControlListsBuilder_.build();
9643       }
9644     }
9645 
buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisResult result)9646     private void buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisResult result) {
9647       int from_bitField0_ = bitField0_;
9648       if (((from_bitField0_ & 0x00000001) != 0)) {
9649         result.attachedResourceFullName_ = attachedResourceFullName_;
9650       }
9651       if (((from_bitField0_ & 0x00000002) != 0)) {
9652         result.iamBinding_ = iamBindingBuilder_ == null ? iamBinding_ : iamBindingBuilder_.build();
9653       }
9654       if (((from_bitField0_ & 0x00000008) != 0)) {
9655         result.identityList_ =
9656             identityListBuilder_ == null ? identityList_ : identityListBuilder_.build();
9657       }
9658       if (((from_bitField0_ & 0x00000010) != 0)) {
9659         result.fullyExplored_ = fullyExplored_;
9660       }
9661     }
9662 
9663     @java.lang.Override
clone()9664     public Builder clone() {
9665       return super.clone();
9666     }
9667 
9668     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)9669     public Builder setField(
9670         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
9671       return super.setField(field, value);
9672     }
9673 
9674     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)9675     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
9676       return super.clearField(field);
9677     }
9678 
9679     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)9680     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
9681       return super.clearOneof(oneof);
9682     }
9683 
9684     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)9685     public Builder setRepeatedField(
9686         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
9687       return super.setRepeatedField(field, index, value);
9688     }
9689 
9690     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)9691     public Builder addRepeatedField(
9692         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
9693       return super.addRepeatedField(field, value);
9694     }
9695 
9696     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)9697     public Builder mergeFrom(com.google.protobuf.Message other) {
9698       if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult) {
9699         return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult) other);
9700       } else {
9701         super.mergeFrom(other);
9702         return this;
9703       }
9704     }
9705 
mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other)9706     public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other) {
9707       if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance())
9708         return this;
9709       if (!other.getAttachedResourceFullName().isEmpty()) {
9710         attachedResourceFullName_ = other.attachedResourceFullName_;
9711         bitField0_ |= 0x00000001;
9712         onChanged();
9713       }
9714       if (other.hasIamBinding()) {
9715         mergeIamBinding(other.getIamBinding());
9716       }
9717       if (accessControlListsBuilder_ == null) {
9718         if (!other.accessControlLists_.isEmpty()) {
9719           if (accessControlLists_.isEmpty()) {
9720             accessControlLists_ = other.accessControlLists_;
9721             bitField0_ = (bitField0_ & ~0x00000004);
9722           } else {
9723             ensureAccessControlListsIsMutable();
9724             accessControlLists_.addAll(other.accessControlLists_);
9725           }
9726           onChanged();
9727         }
9728       } else {
9729         if (!other.accessControlLists_.isEmpty()) {
9730           if (accessControlListsBuilder_.isEmpty()) {
9731             accessControlListsBuilder_.dispose();
9732             accessControlListsBuilder_ = null;
9733             accessControlLists_ = other.accessControlLists_;
9734             bitField0_ = (bitField0_ & ~0x00000004);
9735             accessControlListsBuilder_ =
9736                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
9737                     ? getAccessControlListsFieldBuilder()
9738                     : null;
9739           } else {
9740             accessControlListsBuilder_.addAllMessages(other.accessControlLists_);
9741           }
9742         }
9743       }
9744       if (other.hasIdentityList()) {
9745         mergeIdentityList(other.getIdentityList());
9746       }
9747       if (other.getFullyExplored() != false) {
9748         setFullyExplored(other.getFullyExplored());
9749       }
9750       this.mergeUnknownFields(other.getUnknownFields());
9751       onChanged();
9752       return this;
9753     }
9754 
9755     @java.lang.Override
isInitialized()9756     public final boolean isInitialized() {
9757       return true;
9758     }
9759 
9760     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9761     public Builder mergeFrom(
9762         com.google.protobuf.CodedInputStream input,
9763         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9764         throws java.io.IOException {
9765       if (extensionRegistry == null) {
9766         throw new java.lang.NullPointerException();
9767       }
9768       try {
9769         boolean done = false;
9770         while (!done) {
9771           int tag = input.readTag();
9772           switch (tag) {
9773             case 0:
9774               done = true;
9775               break;
9776             case 10:
9777               {
9778                 attachedResourceFullName_ = input.readStringRequireUtf8();
9779                 bitField0_ |= 0x00000001;
9780                 break;
9781               } // case 10
9782             case 18:
9783               {
9784                 input.readMessage(getIamBindingFieldBuilder().getBuilder(), extensionRegistry);
9785                 bitField0_ |= 0x00000002;
9786                 break;
9787               } // case 18
9788             case 26:
9789               {
9790                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList m =
9791                     input.readMessage(
9792                         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
9793                             .parser(),
9794                         extensionRegistry);
9795                 if (accessControlListsBuilder_ == null) {
9796                   ensureAccessControlListsIsMutable();
9797                   accessControlLists_.add(m);
9798                 } else {
9799                   accessControlListsBuilder_.addMessage(m);
9800                 }
9801                 break;
9802               } // case 26
9803             case 34:
9804               {
9805                 input.readMessage(getIdentityListFieldBuilder().getBuilder(), extensionRegistry);
9806                 bitField0_ |= 0x00000008;
9807                 break;
9808               } // case 34
9809             case 40:
9810               {
9811                 fullyExplored_ = input.readBool();
9812                 bitField0_ |= 0x00000010;
9813                 break;
9814               } // case 40
9815             default:
9816               {
9817                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
9818                   done = true; // was an endgroup tag
9819                 }
9820                 break;
9821               } // default:
9822           } // switch (tag)
9823         } // while (!done)
9824       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9825         throw e.unwrapIOException();
9826       } finally {
9827         onChanged();
9828       } // finally
9829       return this;
9830     }
9831 
9832     private int bitField0_;
9833 
9834     private java.lang.Object attachedResourceFullName_ = "";
9835     /**
9836      *
9837      *
9838      * <pre>
9839      * The [full resource
9840      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9841      * of the resource to which the
9842      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9843      * policy attaches.
9844      * </pre>
9845      *
9846      * <code>string attached_resource_full_name = 1;</code>
9847      *
9848      * @return The attachedResourceFullName.
9849      */
getAttachedResourceFullName()9850     public java.lang.String getAttachedResourceFullName() {
9851       java.lang.Object ref = attachedResourceFullName_;
9852       if (!(ref instanceof java.lang.String)) {
9853         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
9854         java.lang.String s = bs.toStringUtf8();
9855         attachedResourceFullName_ = s;
9856         return s;
9857       } else {
9858         return (java.lang.String) ref;
9859       }
9860     }
9861     /**
9862      *
9863      *
9864      * <pre>
9865      * The [full resource
9866      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9867      * of the resource to which the
9868      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9869      * policy attaches.
9870      * </pre>
9871      *
9872      * <code>string attached_resource_full_name = 1;</code>
9873      *
9874      * @return The bytes for attachedResourceFullName.
9875      */
getAttachedResourceFullNameBytes()9876     public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() {
9877       java.lang.Object ref = attachedResourceFullName_;
9878       if (ref instanceof String) {
9879         com.google.protobuf.ByteString b =
9880             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
9881         attachedResourceFullName_ = b;
9882         return b;
9883       } else {
9884         return (com.google.protobuf.ByteString) ref;
9885       }
9886     }
9887     /**
9888      *
9889      *
9890      * <pre>
9891      * The [full resource
9892      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9893      * of the resource to which the
9894      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9895      * policy attaches.
9896      * </pre>
9897      *
9898      * <code>string attached_resource_full_name = 1;</code>
9899      *
9900      * @param value The attachedResourceFullName to set.
9901      * @return This builder for chaining.
9902      */
setAttachedResourceFullName(java.lang.String value)9903     public Builder setAttachedResourceFullName(java.lang.String value) {
9904       if (value == null) {
9905         throw new NullPointerException();
9906       }
9907       attachedResourceFullName_ = value;
9908       bitField0_ |= 0x00000001;
9909       onChanged();
9910       return this;
9911     }
9912     /**
9913      *
9914      *
9915      * <pre>
9916      * The [full resource
9917      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9918      * of the resource to which the
9919      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9920      * policy attaches.
9921      * </pre>
9922      *
9923      * <code>string attached_resource_full_name = 1;</code>
9924      *
9925      * @return This builder for chaining.
9926      */
clearAttachedResourceFullName()9927     public Builder clearAttachedResourceFullName() {
9928       attachedResourceFullName_ = getDefaultInstance().getAttachedResourceFullName();
9929       bitField0_ = (bitField0_ & ~0x00000001);
9930       onChanged();
9931       return this;
9932     }
9933     /**
9934      *
9935      *
9936      * <pre>
9937      * The [full resource
9938      * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
9939      * of the resource to which the
9940      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
9941      * policy attaches.
9942      * </pre>
9943      *
9944      * <code>string attached_resource_full_name = 1;</code>
9945      *
9946      * @param value The bytes for attachedResourceFullName to set.
9947      * @return This builder for chaining.
9948      */
setAttachedResourceFullNameBytes(com.google.protobuf.ByteString value)9949     public Builder setAttachedResourceFullNameBytes(com.google.protobuf.ByteString value) {
9950       if (value == null) {
9951         throw new NullPointerException();
9952       }
9953       checkByteStringIsUtf8(value);
9954       attachedResourceFullName_ = value;
9955       bitField0_ |= 0x00000001;
9956       onChanged();
9957       return this;
9958     }
9959 
9960     private com.google.iam.v1.Binding iamBinding_;
9961     private com.google.protobuf.SingleFieldBuilderV3<
9962             com.google.iam.v1.Binding,
9963             com.google.iam.v1.Binding.Builder,
9964             com.google.iam.v1.BindingOrBuilder>
9965         iamBindingBuilder_;
9966     /**
9967      *
9968      *
9969      * <pre>
9970      * The IAM policy binding under analysis.
9971      * </pre>
9972      *
9973      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
9974      *
9975      * @return Whether the iamBinding field is set.
9976      */
hasIamBinding()9977     public boolean hasIamBinding() {
9978       return ((bitField0_ & 0x00000002) != 0);
9979     }
9980     /**
9981      *
9982      *
9983      * <pre>
9984      * The IAM policy binding under analysis.
9985      * </pre>
9986      *
9987      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
9988      *
9989      * @return The iamBinding.
9990      */
getIamBinding()9991     public com.google.iam.v1.Binding getIamBinding() {
9992       if (iamBindingBuilder_ == null) {
9993         return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_;
9994       } else {
9995         return iamBindingBuilder_.getMessage();
9996       }
9997     }
9998     /**
9999      *
10000      *
10001      * <pre>
10002      * The IAM policy binding under analysis.
10003      * </pre>
10004      *
10005      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10006      */
setIamBinding(com.google.iam.v1.Binding value)10007     public Builder setIamBinding(com.google.iam.v1.Binding value) {
10008       if (iamBindingBuilder_ == null) {
10009         if (value == null) {
10010           throw new NullPointerException();
10011         }
10012         iamBinding_ = value;
10013       } else {
10014         iamBindingBuilder_.setMessage(value);
10015       }
10016       bitField0_ |= 0x00000002;
10017       onChanged();
10018       return this;
10019     }
10020     /**
10021      *
10022      *
10023      * <pre>
10024      * The IAM policy binding under analysis.
10025      * </pre>
10026      *
10027      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10028      */
setIamBinding(com.google.iam.v1.Binding.Builder builderForValue)10029     public Builder setIamBinding(com.google.iam.v1.Binding.Builder builderForValue) {
10030       if (iamBindingBuilder_ == null) {
10031         iamBinding_ = builderForValue.build();
10032       } else {
10033         iamBindingBuilder_.setMessage(builderForValue.build());
10034       }
10035       bitField0_ |= 0x00000002;
10036       onChanged();
10037       return this;
10038     }
10039     /**
10040      *
10041      *
10042      * <pre>
10043      * The IAM policy binding under analysis.
10044      * </pre>
10045      *
10046      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10047      */
mergeIamBinding(com.google.iam.v1.Binding value)10048     public Builder mergeIamBinding(com.google.iam.v1.Binding value) {
10049       if (iamBindingBuilder_ == null) {
10050         if (((bitField0_ & 0x00000002) != 0)
10051             && iamBinding_ != null
10052             && iamBinding_ != com.google.iam.v1.Binding.getDefaultInstance()) {
10053           getIamBindingBuilder().mergeFrom(value);
10054         } else {
10055           iamBinding_ = value;
10056         }
10057       } else {
10058         iamBindingBuilder_.mergeFrom(value);
10059       }
10060       bitField0_ |= 0x00000002;
10061       onChanged();
10062       return this;
10063     }
10064     /**
10065      *
10066      *
10067      * <pre>
10068      * The IAM policy binding under analysis.
10069      * </pre>
10070      *
10071      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10072      */
clearIamBinding()10073     public Builder clearIamBinding() {
10074       bitField0_ = (bitField0_ & ~0x00000002);
10075       iamBinding_ = null;
10076       if (iamBindingBuilder_ != null) {
10077         iamBindingBuilder_.dispose();
10078         iamBindingBuilder_ = null;
10079       }
10080       onChanged();
10081       return this;
10082     }
10083     /**
10084      *
10085      *
10086      * <pre>
10087      * The IAM policy binding under analysis.
10088      * </pre>
10089      *
10090      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10091      */
getIamBindingBuilder()10092     public com.google.iam.v1.Binding.Builder getIamBindingBuilder() {
10093       bitField0_ |= 0x00000002;
10094       onChanged();
10095       return getIamBindingFieldBuilder().getBuilder();
10096     }
10097     /**
10098      *
10099      *
10100      * <pre>
10101      * The IAM policy binding under analysis.
10102      * </pre>
10103      *
10104      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10105      */
getIamBindingOrBuilder()10106     public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() {
10107       if (iamBindingBuilder_ != null) {
10108         return iamBindingBuilder_.getMessageOrBuilder();
10109       } else {
10110         return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_;
10111       }
10112     }
10113     /**
10114      *
10115      *
10116      * <pre>
10117      * The IAM policy binding under analysis.
10118      * </pre>
10119      *
10120      * <code>.google.iam.v1.Binding iam_binding = 2;</code>
10121      */
10122     private com.google.protobuf.SingleFieldBuilderV3<
10123             com.google.iam.v1.Binding,
10124             com.google.iam.v1.Binding.Builder,
10125             com.google.iam.v1.BindingOrBuilder>
getIamBindingFieldBuilder()10126         getIamBindingFieldBuilder() {
10127       if (iamBindingBuilder_ == null) {
10128         iamBindingBuilder_ =
10129             new com.google.protobuf.SingleFieldBuilderV3<
10130                 com.google.iam.v1.Binding,
10131                 com.google.iam.v1.Binding.Builder,
10132                 com.google.iam.v1.BindingOrBuilder>(
10133                 getIamBinding(), getParentForChildren(), isClean());
10134         iamBinding_ = null;
10135       }
10136       return iamBindingBuilder_;
10137     }
10138 
10139     private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>
10140         accessControlLists_ = java.util.Collections.emptyList();
10141 
ensureAccessControlListsIsMutable()10142     private void ensureAccessControlListsIsMutable() {
10143       if (!((bitField0_ & 0x00000004) != 0)) {
10144         accessControlLists_ =
10145             new java.util.ArrayList<
10146                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>(
10147                 accessControlLists_);
10148         bitField0_ |= 0x00000004;
10149       }
10150     }
10151 
10152     private com.google.protobuf.RepeatedFieldBuilderV3<
10153             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList,
10154             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder,
10155             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>
10156         accessControlListsBuilder_;
10157 
10158     /**
10159      *
10160      *
10161      * <pre>
10162      * The access control lists derived from the
10163      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10164      * that match or potentially match resource and access selectors specified in
10165      * the request.
10166      * </pre>
10167      *
10168      * <code>
10169      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10170      * </code>
10171      */
10172     public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>
getAccessControlListsList()10173         getAccessControlListsList() {
10174       if (accessControlListsBuilder_ == null) {
10175         return java.util.Collections.unmodifiableList(accessControlLists_);
10176       } else {
10177         return accessControlListsBuilder_.getMessageList();
10178       }
10179     }
10180     /**
10181      *
10182      *
10183      * <pre>
10184      * The access control lists derived from the
10185      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10186      * that match or potentially match resource and access selectors specified in
10187      * the request.
10188      * </pre>
10189      *
10190      * <code>
10191      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10192      * </code>
10193      */
getAccessControlListsCount()10194     public int getAccessControlListsCount() {
10195       if (accessControlListsBuilder_ == null) {
10196         return accessControlLists_.size();
10197       } else {
10198         return accessControlListsBuilder_.getCount();
10199       }
10200     }
10201     /**
10202      *
10203      *
10204      * <pre>
10205      * The access control lists derived from the
10206      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10207      * that match or potentially match resource and access selectors specified in
10208      * the request.
10209      * </pre>
10210      *
10211      * <code>
10212      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10213      * </code>
10214      */
10215     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
getAccessControlLists(int index)10216         getAccessControlLists(int index) {
10217       if (accessControlListsBuilder_ == null) {
10218         return accessControlLists_.get(index);
10219       } else {
10220         return accessControlListsBuilder_.getMessage(index);
10221       }
10222     }
10223     /**
10224      *
10225      *
10226      * <pre>
10227      * The access control lists derived from the
10228      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10229      * that match or potentially match resource and access selectors specified in
10230      * the request.
10231      * </pre>
10232      *
10233      * <code>
10234      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10235      * </code>
10236      */
setAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value)10237     public Builder setAccessControlLists(
10238         int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) {
10239       if (accessControlListsBuilder_ == null) {
10240         if (value == null) {
10241           throw new NullPointerException();
10242         }
10243         ensureAccessControlListsIsMutable();
10244         accessControlLists_.set(index, value);
10245         onChanged();
10246       } else {
10247         accessControlListsBuilder_.setMessage(index, value);
10248       }
10249       return this;
10250     }
10251     /**
10252      *
10253      *
10254      * <pre>
10255      * The access control lists derived from the
10256      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10257      * that match or potentially match resource and access selectors specified in
10258      * the request.
10259      * </pre>
10260      *
10261      * <code>
10262      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10263      * </code>
10264      */
setAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue)10265     public Builder setAccessControlLists(
10266         int index,
10267         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder
10268             builderForValue) {
10269       if (accessControlListsBuilder_ == null) {
10270         ensureAccessControlListsIsMutable();
10271         accessControlLists_.set(index, builderForValue.build());
10272         onChanged();
10273       } else {
10274         accessControlListsBuilder_.setMessage(index, builderForValue.build());
10275       }
10276       return this;
10277     }
10278     /**
10279      *
10280      *
10281      * <pre>
10282      * The access control lists derived from the
10283      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10284      * that match or potentially match resource and access selectors specified in
10285      * the request.
10286      * </pre>
10287      *
10288      * <code>
10289      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10290      * </code>
10291      */
addAccessControlLists( com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value)10292     public Builder addAccessControlLists(
10293         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) {
10294       if (accessControlListsBuilder_ == null) {
10295         if (value == null) {
10296           throw new NullPointerException();
10297         }
10298         ensureAccessControlListsIsMutable();
10299         accessControlLists_.add(value);
10300         onChanged();
10301       } else {
10302         accessControlListsBuilder_.addMessage(value);
10303       }
10304       return this;
10305     }
10306     /**
10307      *
10308      *
10309      * <pre>
10310      * The access control lists derived from the
10311      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10312      * that match or potentially match resource and access selectors specified in
10313      * the request.
10314      * </pre>
10315      *
10316      * <code>
10317      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10318      * </code>
10319      */
addAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value)10320     public Builder addAccessControlLists(
10321         int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) {
10322       if (accessControlListsBuilder_ == null) {
10323         if (value == null) {
10324           throw new NullPointerException();
10325         }
10326         ensureAccessControlListsIsMutable();
10327         accessControlLists_.add(index, value);
10328         onChanged();
10329       } else {
10330         accessControlListsBuilder_.addMessage(index, value);
10331       }
10332       return this;
10333     }
10334     /**
10335      *
10336      *
10337      * <pre>
10338      * The access control lists derived from the
10339      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10340      * that match or potentially match resource and access selectors specified in
10341      * the request.
10342      * </pre>
10343      *
10344      * <code>
10345      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10346      * </code>
10347      */
addAccessControlLists( com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue)10348     public Builder addAccessControlLists(
10349         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder
10350             builderForValue) {
10351       if (accessControlListsBuilder_ == null) {
10352         ensureAccessControlListsIsMutable();
10353         accessControlLists_.add(builderForValue.build());
10354         onChanged();
10355       } else {
10356         accessControlListsBuilder_.addMessage(builderForValue.build());
10357       }
10358       return this;
10359     }
10360     /**
10361      *
10362      *
10363      * <pre>
10364      * The access control lists derived from the
10365      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10366      * that match or potentially match resource and access selectors specified in
10367      * the request.
10368      * </pre>
10369      *
10370      * <code>
10371      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10372      * </code>
10373      */
addAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue)10374     public Builder addAccessControlLists(
10375         int index,
10376         com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder
10377             builderForValue) {
10378       if (accessControlListsBuilder_ == null) {
10379         ensureAccessControlListsIsMutable();
10380         accessControlLists_.add(index, builderForValue.build());
10381         onChanged();
10382       } else {
10383         accessControlListsBuilder_.addMessage(index, builderForValue.build());
10384       }
10385       return this;
10386     }
10387     /**
10388      *
10389      *
10390      * <pre>
10391      * The access control lists derived from the
10392      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10393      * that match or potentially match resource and access selectors specified in
10394      * the request.
10395      * </pre>
10396      *
10397      * <code>
10398      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10399      * </code>
10400      */
addAllAccessControlLists( java.lang.Iterable< ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList> values)10401     public Builder addAllAccessControlLists(
10402         java.lang.Iterable<
10403                 ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>
10404             values) {
10405       if (accessControlListsBuilder_ == null) {
10406         ensureAccessControlListsIsMutable();
10407         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessControlLists_);
10408         onChanged();
10409       } else {
10410         accessControlListsBuilder_.addAllMessages(values);
10411       }
10412       return this;
10413     }
10414     /**
10415      *
10416      *
10417      * <pre>
10418      * The access control lists derived from the
10419      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10420      * that match or potentially match resource and access selectors specified in
10421      * the request.
10422      * </pre>
10423      *
10424      * <code>
10425      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10426      * </code>
10427      */
clearAccessControlLists()10428     public Builder clearAccessControlLists() {
10429       if (accessControlListsBuilder_ == null) {
10430         accessControlLists_ = java.util.Collections.emptyList();
10431         bitField0_ = (bitField0_ & ~0x00000004);
10432         onChanged();
10433       } else {
10434         accessControlListsBuilder_.clear();
10435       }
10436       return this;
10437     }
10438     /**
10439      *
10440      *
10441      * <pre>
10442      * The access control lists derived from the
10443      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10444      * that match or potentially match resource and access selectors specified in
10445      * the request.
10446      * </pre>
10447      *
10448      * <code>
10449      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10450      * </code>
10451      */
removeAccessControlLists(int index)10452     public Builder removeAccessControlLists(int index) {
10453       if (accessControlListsBuilder_ == null) {
10454         ensureAccessControlListsIsMutable();
10455         accessControlLists_.remove(index);
10456         onChanged();
10457       } else {
10458         accessControlListsBuilder_.remove(index);
10459       }
10460       return this;
10461     }
10462     /**
10463      *
10464      *
10465      * <pre>
10466      * The access control lists derived from the
10467      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10468      * that match or potentially match resource and access selectors specified in
10469      * the request.
10470      * </pre>
10471      *
10472      * <code>
10473      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10474      * </code>
10475      */
10476     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder
getAccessControlListsBuilder(int index)10477         getAccessControlListsBuilder(int index) {
10478       return getAccessControlListsFieldBuilder().getBuilder(index);
10479     }
10480     /**
10481      *
10482      *
10483      * <pre>
10484      * The access control lists derived from the
10485      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10486      * that match or potentially match resource and access selectors specified in
10487      * the request.
10488      * </pre>
10489      *
10490      * <code>
10491      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10492      * </code>
10493      */
10494     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder
getAccessControlListsOrBuilder(int index)10495         getAccessControlListsOrBuilder(int index) {
10496       if (accessControlListsBuilder_ == null) {
10497         return accessControlLists_.get(index);
10498       } else {
10499         return accessControlListsBuilder_.getMessageOrBuilder(index);
10500       }
10501     }
10502     /**
10503      *
10504      *
10505      * <pre>
10506      * The access control lists derived from the
10507      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10508      * that match or potentially match resource and access selectors specified in
10509      * the request.
10510      * </pre>
10511      *
10512      * <code>
10513      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10514      * </code>
10515      */
10516     public java.util.List<
10517             ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>
getAccessControlListsOrBuilderList()10518         getAccessControlListsOrBuilderList() {
10519       if (accessControlListsBuilder_ != null) {
10520         return accessControlListsBuilder_.getMessageOrBuilderList();
10521       } else {
10522         return java.util.Collections.unmodifiableList(accessControlLists_);
10523       }
10524     }
10525     /**
10526      *
10527      *
10528      * <pre>
10529      * The access control lists derived from the
10530      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10531      * that match or potentially match resource and access selectors specified in
10532      * the request.
10533      * </pre>
10534      *
10535      * <code>
10536      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10537      * </code>
10538      */
10539     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder
addAccessControlListsBuilder()10540         addAccessControlListsBuilder() {
10541       return getAccessControlListsFieldBuilder()
10542           .addBuilder(
10543               com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
10544                   .getDefaultInstance());
10545     }
10546     /**
10547      *
10548      *
10549      * <pre>
10550      * The access control lists derived from the
10551      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10552      * that match or potentially match resource and access selectors specified in
10553      * the request.
10554      * </pre>
10555      *
10556      * <code>
10557      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10558      * </code>
10559      */
10560     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder
addAccessControlListsBuilder(int index)10561         addAccessControlListsBuilder(int index) {
10562       return getAccessControlListsFieldBuilder()
10563           .addBuilder(
10564               index,
10565               com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
10566                   .getDefaultInstance());
10567     }
10568     /**
10569      *
10570      *
10571      * <pre>
10572      * The access control lists derived from the
10573      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10574      * that match or potentially match resource and access selectors specified in
10575      * the request.
10576      * </pre>
10577      *
10578      * <code>
10579      * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
10580      * </code>
10581      */
10582     public java.util.List<
10583             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder>
getAccessControlListsBuilderList()10584         getAccessControlListsBuilderList() {
10585       return getAccessControlListsFieldBuilder().getBuilderList();
10586     }
10587 
10588     private com.google.protobuf.RepeatedFieldBuilderV3<
10589             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList,
10590             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder,
10591             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>
getAccessControlListsFieldBuilder()10592         getAccessControlListsFieldBuilder() {
10593       if (accessControlListsBuilder_ == null) {
10594         accessControlListsBuilder_ =
10595             new com.google.protobuf.RepeatedFieldBuilderV3<
10596                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList,
10597                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder,
10598                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>(
10599                 accessControlLists_,
10600                 ((bitField0_ & 0x00000004) != 0),
10601                 getParentForChildren(),
10602                 isClean());
10603         accessControlLists_ = null;
10604       }
10605       return accessControlListsBuilder_;
10606     }
10607 
10608     private com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identityList_;
10609     private com.google.protobuf.SingleFieldBuilderV3<
10610             com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList,
10611             com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder,
10612             com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>
10613         identityListBuilder_;
10614     /**
10615      *
10616      *
10617      * <pre>
10618      * The identity list derived from members of the
10619      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10620      * that match or potentially match identity selector specified in the request.
10621      * </pre>
10622      *
10623      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10624      *
10625      * @return Whether the identityList field is set.
10626      */
hasIdentityList()10627     public boolean hasIdentityList() {
10628       return ((bitField0_ & 0x00000008) != 0);
10629     }
10630     /**
10631      *
10632      *
10633      * <pre>
10634      * The identity list derived from members of the
10635      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10636      * that match or potentially match identity selector specified in the request.
10637      * </pre>
10638      *
10639      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10640      *
10641      * @return The identityList.
10642      */
getIdentityList()10643     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList() {
10644       if (identityListBuilder_ == null) {
10645         return identityList_ == null
10646             ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()
10647             : identityList_;
10648       } else {
10649         return identityListBuilder_.getMessage();
10650       }
10651     }
10652     /**
10653      *
10654      *
10655      * <pre>
10656      * The identity list derived from members of the
10657      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10658      * that match or potentially match identity selector specified in the request.
10659      * </pre>
10660      *
10661      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10662      */
setIdentityList( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value)10663     public Builder setIdentityList(
10664         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) {
10665       if (identityListBuilder_ == null) {
10666         if (value == null) {
10667           throw new NullPointerException();
10668         }
10669         identityList_ = value;
10670       } else {
10671         identityListBuilder_.setMessage(value);
10672       }
10673       bitField0_ |= 0x00000008;
10674       onChanged();
10675       return this;
10676     }
10677     /**
10678      *
10679      *
10680      * <pre>
10681      * The identity list derived from members of the
10682      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10683      * that match or potentially match identity selector specified in the request.
10684      * </pre>
10685      *
10686      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10687      */
setIdentityList( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder builderForValue)10688     public Builder setIdentityList(
10689         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder builderForValue) {
10690       if (identityListBuilder_ == null) {
10691         identityList_ = builderForValue.build();
10692       } else {
10693         identityListBuilder_.setMessage(builderForValue.build());
10694       }
10695       bitField0_ |= 0x00000008;
10696       onChanged();
10697       return this;
10698     }
10699     /**
10700      *
10701      *
10702      * <pre>
10703      * The identity list derived from members of the
10704      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10705      * that match or potentially match identity selector specified in the request.
10706      * </pre>
10707      *
10708      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10709      */
mergeIdentityList( com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value)10710     public Builder mergeIdentityList(
10711         com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) {
10712       if (identityListBuilder_ == null) {
10713         if (((bitField0_ & 0x00000008) != 0)
10714             && identityList_ != null
10715             && identityList_
10716                 != com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
10717                     .getDefaultInstance()) {
10718           getIdentityListBuilder().mergeFrom(value);
10719         } else {
10720           identityList_ = value;
10721         }
10722       } else {
10723         identityListBuilder_.mergeFrom(value);
10724       }
10725       bitField0_ |= 0x00000008;
10726       onChanged();
10727       return this;
10728     }
10729     /**
10730      *
10731      *
10732      * <pre>
10733      * The identity list derived from members of the
10734      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10735      * that match or potentially match identity selector specified in the request.
10736      * </pre>
10737      *
10738      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10739      */
clearIdentityList()10740     public Builder clearIdentityList() {
10741       bitField0_ = (bitField0_ & ~0x00000008);
10742       identityList_ = null;
10743       if (identityListBuilder_ != null) {
10744         identityListBuilder_.dispose();
10745         identityListBuilder_ = null;
10746       }
10747       onChanged();
10748       return this;
10749     }
10750     /**
10751      *
10752      *
10753      * <pre>
10754      * The identity list derived from members of the
10755      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10756      * that match or potentially match identity selector specified in the request.
10757      * </pre>
10758      *
10759      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10760      */
10761     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder
getIdentityListBuilder()10762         getIdentityListBuilder() {
10763       bitField0_ |= 0x00000008;
10764       onChanged();
10765       return getIdentityListFieldBuilder().getBuilder();
10766     }
10767     /**
10768      *
10769      *
10770      * <pre>
10771      * The identity list derived from members of the
10772      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10773      * that match or potentially match identity selector specified in the request.
10774      * </pre>
10775      *
10776      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10777      */
10778     public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder
getIdentityListOrBuilder()10779         getIdentityListOrBuilder() {
10780       if (identityListBuilder_ != null) {
10781         return identityListBuilder_.getMessageOrBuilder();
10782       } else {
10783         return identityList_ == null
10784             ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()
10785             : identityList_;
10786       }
10787     }
10788     /**
10789      *
10790      *
10791      * <pre>
10792      * The identity list derived from members of the
10793      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10794      * that match or potentially match identity selector specified in the request.
10795      * </pre>
10796      *
10797      * <code>.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;</code>
10798      */
10799     private com.google.protobuf.SingleFieldBuilderV3<
10800             com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList,
10801             com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder,
10802             com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>
getIdentityListFieldBuilder()10803         getIdentityListFieldBuilder() {
10804       if (identityListBuilder_ == null) {
10805         identityListBuilder_ =
10806             new com.google.protobuf.SingleFieldBuilderV3<
10807                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList,
10808                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder,
10809                 com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>(
10810                 getIdentityList(), getParentForChildren(), isClean());
10811         identityList_ = null;
10812       }
10813       return identityListBuilder_;
10814     }
10815 
10816     private boolean fullyExplored_;
10817     /**
10818      *
10819      *
10820      * <pre>
10821      * Represents whether all analyses on the
10822      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10823      * have successfully finished.
10824      * </pre>
10825      *
10826      * <code>bool fully_explored = 5;</code>
10827      *
10828      * @return The fullyExplored.
10829      */
10830     @java.lang.Override
getFullyExplored()10831     public boolean getFullyExplored() {
10832       return fullyExplored_;
10833     }
10834     /**
10835      *
10836      *
10837      * <pre>
10838      * Represents whether all analyses on the
10839      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10840      * have successfully finished.
10841      * </pre>
10842      *
10843      * <code>bool fully_explored = 5;</code>
10844      *
10845      * @param value The fullyExplored to set.
10846      * @return This builder for chaining.
10847      */
setFullyExplored(boolean value)10848     public Builder setFullyExplored(boolean value) {
10849 
10850       fullyExplored_ = value;
10851       bitField0_ |= 0x00000010;
10852       onChanged();
10853       return this;
10854     }
10855     /**
10856      *
10857      *
10858      * <pre>
10859      * Represents whether all analyses on the
10860      * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
10861      * have successfully finished.
10862      * </pre>
10863      *
10864      * <code>bool fully_explored = 5;</code>
10865      *
10866      * @return This builder for chaining.
10867      */
clearFullyExplored()10868     public Builder clearFullyExplored() {
10869       bitField0_ = (bitField0_ & ~0x00000010);
10870       fullyExplored_ = false;
10871       onChanged();
10872       return this;
10873     }
10874 
10875     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)10876     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
10877       return super.setUnknownFields(unknownFields);
10878     }
10879 
10880     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)10881     public final Builder mergeUnknownFields(
10882         final com.google.protobuf.UnknownFieldSet unknownFields) {
10883       return super.mergeUnknownFields(unknownFields);
10884     }
10885 
10886     // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult)
10887   }
10888 
10889   // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult)
10890   private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult DEFAULT_INSTANCE;
10891 
10892   static {
10893     DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult();
10894   }
10895 
getDefaultInstance()10896   public static com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstance() {
10897     return DEFAULT_INSTANCE;
10898   }
10899 
10900   private static final com.google.protobuf.Parser<IamPolicyAnalysisResult> PARSER =
10901       new com.google.protobuf.AbstractParser<IamPolicyAnalysisResult>() {
10902         @java.lang.Override
10903         public IamPolicyAnalysisResult parsePartialFrom(
10904             com.google.protobuf.CodedInputStream input,
10905             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10906             throws com.google.protobuf.InvalidProtocolBufferException {
10907           Builder builder = newBuilder();
10908           try {
10909             builder.mergeFrom(input, extensionRegistry);
10910           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
10911             throw e.setUnfinishedMessage(builder.buildPartial());
10912           } catch (com.google.protobuf.UninitializedMessageException e) {
10913             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
10914           } catch (java.io.IOException e) {
10915             throw new com.google.protobuf.InvalidProtocolBufferException(e)
10916                 .setUnfinishedMessage(builder.buildPartial());
10917           }
10918           return builder.buildPartial();
10919         }
10920       };
10921 
parser()10922   public static com.google.protobuf.Parser<IamPolicyAnalysisResult> parser() {
10923     return PARSER;
10924   }
10925 
10926   @java.lang.Override
getParserForType()10927   public com.google.protobuf.Parser<IamPolicyAnalysisResult> getParserForType() {
10928     return PARSER;
10929   }
10930 
10931   @java.lang.Override
getDefaultInstanceForType()10932   public com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstanceForType() {
10933     return DEFAULT_INSTANCE;
10934   }
10935 }
10936