• 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/analytics/admin/v1alpha/analytics_admin.proto
18 
19 package com.google.analytics.admin.v1alpha;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Request message for BatchCreateUserLinks RPC.
26  * </pre>
27  *
28  * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksRequest}
29  */
30 public final class BatchCreateUserLinksRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest)
33     BatchCreateUserLinksRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use BatchCreateUserLinksRequest.newBuilder() to construct.
BatchCreateUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private BatchCreateUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
BatchCreateUserLinksRequest()40   private BatchCreateUserLinksRequest() {
41     parent_ = "";
42     requests_ = java.util.Collections.emptyList();
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new BatchCreateUserLinksRequest();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
58         .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
65         .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class,
68             com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.Builder.class);
69   }
70 
71   public static final int PARENT_FIELD_NUMBER = 1;
72 
73   @SuppressWarnings("serial")
74   private volatile java.lang.Object parent_ = "";
75   /**
76    *
77    *
78    * <pre>
79    * Required. The account or property that all user links in the request are
80    * for. This field is required. The parent field in the CreateUserLinkRequest
81    * messages must either be empty or match this field.
82    * Example format: accounts/1234
83    * </pre>
84    *
85    * <code>
86    * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
87    * </code>
88    *
89    * @return The parent.
90    */
91   @java.lang.Override
getParent()92   public java.lang.String getParent() {
93     java.lang.Object ref = parent_;
94     if (ref instanceof java.lang.String) {
95       return (java.lang.String) ref;
96     } else {
97       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
98       java.lang.String s = bs.toStringUtf8();
99       parent_ = s;
100       return s;
101     }
102   }
103   /**
104    *
105    *
106    * <pre>
107    * Required. The account or property that all user links in the request are
108    * for. This field is required. The parent field in the CreateUserLinkRequest
109    * messages must either be empty or match this field.
110    * Example format: accounts/1234
111    * </pre>
112    *
113    * <code>
114    * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
115    * </code>
116    *
117    * @return The bytes for parent.
118    */
119   @java.lang.Override
getParentBytes()120   public com.google.protobuf.ByteString getParentBytes() {
121     java.lang.Object ref = parent_;
122     if (ref instanceof java.lang.String) {
123       com.google.protobuf.ByteString b =
124           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
125       parent_ = b;
126       return b;
127     } else {
128       return (com.google.protobuf.ByteString) ref;
129     }
130   }
131 
132   public static final int NOTIFY_NEW_USERS_FIELD_NUMBER = 2;
133   private boolean notifyNewUsers_ = false;
134   /**
135    *
136    *
137    * <pre>
138    * Optional. If set, then email the new users notifying them that they've been
139    * granted permissions to the resource. Regardless of whether this is set or
140    * not, notify_new_user field inside each individual request is ignored.
141    * </pre>
142    *
143    * <code>bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
144    *
145    * @return The notifyNewUsers.
146    */
147   @java.lang.Override
getNotifyNewUsers()148   public boolean getNotifyNewUsers() {
149     return notifyNewUsers_;
150   }
151 
152   public static final int REQUESTS_FIELD_NUMBER = 3;
153 
154   @SuppressWarnings("serial")
155   private java.util.List<com.google.analytics.admin.v1alpha.CreateUserLinkRequest> requests_;
156   /**
157    *
158    *
159    * <pre>
160    * Required. The requests specifying the user links to create.
161    * A maximum of 1000 user links can be created in a batch.
162    * </pre>
163    *
164    * <code>
165    * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
166    * </code>
167    */
168   @java.lang.Override
169   public java.util.List<com.google.analytics.admin.v1alpha.CreateUserLinkRequest>
getRequestsList()170       getRequestsList() {
171     return requests_;
172   }
173   /**
174    *
175    *
176    * <pre>
177    * Required. The requests specifying the user links to create.
178    * A maximum of 1000 user links can be created in a batch.
179    * </pre>
180    *
181    * <code>
182    * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
183    * </code>
184    */
185   @java.lang.Override
186   public java.util.List<? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>
getRequestsOrBuilderList()187       getRequestsOrBuilderList() {
188     return requests_;
189   }
190   /**
191    *
192    *
193    * <pre>
194    * Required. The requests specifying the user links to create.
195    * A maximum of 1000 user links can be created in a batch.
196    * </pre>
197    *
198    * <code>
199    * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
200    * </code>
201    */
202   @java.lang.Override
getRequestsCount()203   public int getRequestsCount() {
204     return requests_.size();
205   }
206   /**
207    *
208    *
209    * <pre>
210    * Required. The requests specifying the user links to create.
211    * A maximum of 1000 user links can be created in a batch.
212    * </pre>
213    *
214    * <code>
215    * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
216    * </code>
217    */
218   @java.lang.Override
getRequests(int index)219   public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) {
220     return requests_.get(index);
221   }
222   /**
223    *
224    *
225    * <pre>
226    * Required. The requests specifying the user links to create.
227    * A maximum of 1000 user links can be created in a batch.
228    * </pre>
229    *
230    * <code>
231    * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
232    * </code>
233    */
234   @java.lang.Override
getRequestsOrBuilder( int index)235   public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder(
236       int index) {
237     return requests_.get(index);
238   }
239 
240   private byte memoizedIsInitialized = -1;
241 
242   @java.lang.Override
isInitialized()243   public final boolean isInitialized() {
244     byte isInitialized = memoizedIsInitialized;
245     if (isInitialized == 1) return true;
246     if (isInitialized == 0) return false;
247 
248     memoizedIsInitialized = 1;
249     return true;
250   }
251 
252   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)253   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
254     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
255       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
256     }
257     if (notifyNewUsers_ != false) {
258       output.writeBool(2, notifyNewUsers_);
259     }
260     for (int i = 0; i < requests_.size(); i++) {
261       output.writeMessage(3, requests_.get(i));
262     }
263     getUnknownFields().writeTo(output);
264   }
265 
266   @java.lang.Override
getSerializedSize()267   public int getSerializedSize() {
268     int size = memoizedSize;
269     if (size != -1) return size;
270 
271     size = 0;
272     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
273       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
274     }
275     if (notifyNewUsers_ != false) {
276       size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, notifyNewUsers_);
277     }
278     for (int i = 0; i < requests_.size(); i++) {
279       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, requests_.get(i));
280     }
281     size += getUnknownFields().getSerializedSize();
282     memoizedSize = size;
283     return size;
284   }
285 
286   @java.lang.Override
equals(final java.lang.Object obj)287   public boolean equals(final java.lang.Object obj) {
288     if (obj == this) {
289       return true;
290     }
291     if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest)) {
292       return super.equals(obj);
293     }
294     com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other =
295         (com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) obj;
296 
297     if (!getParent().equals(other.getParent())) return false;
298     if (getNotifyNewUsers() != other.getNotifyNewUsers()) return false;
299     if (!getRequestsList().equals(other.getRequestsList())) return false;
300     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
301     return true;
302   }
303 
304   @java.lang.Override
hashCode()305   public int hashCode() {
306     if (memoizedHashCode != 0) {
307       return memoizedHashCode;
308     }
309     int hash = 41;
310     hash = (19 * hash) + getDescriptor().hashCode();
311     hash = (37 * hash) + PARENT_FIELD_NUMBER;
312     hash = (53 * hash) + getParent().hashCode();
313     hash = (37 * hash) + NOTIFY_NEW_USERS_FIELD_NUMBER;
314     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNotifyNewUsers());
315     if (getRequestsCount() > 0) {
316       hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
317       hash = (53 * hash) + getRequestsList().hashCode();
318     }
319     hash = (29 * hash) + getUnknownFields().hashCode();
320     memoizedHashCode = hash;
321     return hash;
322   }
323 
parseFrom( java.nio.ByteBuffer data)324   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
325       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
326     return PARSER.parseFrom(data);
327   }
328 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)329   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
330       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331       throws com.google.protobuf.InvalidProtocolBufferException {
332     return PARSER.parseFrom(data, extensionRegistry);
333   }
334 
parseFrom( com.google.protobuf.ByteString data)335   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
336       com.google.protobuf.ByteString data)
337       throws com.google.protobuf.InvalidProtocolBufferException {
338     return PARSER.parseFrom(data);
339   }
340 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)341   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
342       com.google.protobuf.ByteString data,
343       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
344       throws com.google.protobuf.InvalidProtocolBufferException {
345     return PARSER.parseFrom(data, extensionRegistry);
346   }
347 
parseFrom( byte[] data)348   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
349       byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
350     return PARSER.parseFrom(data);
351   }
352 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)353   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
354       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355       throws com.google.protobuf.InvalidProtocolBufferException {
356     return PARSER.parseFrom(data, extensionRegistry);
357   }
358 
parseFrom( java.io.InputStream input)359   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
360       java.io.InputStream input) throws java.io.IOException {
361     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
362   }
363 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)364   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
365       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
366       throws java.io.IOException {
367     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
368         PARSER, input, extensionRegistry);
369   }
370 
parseDelimitedFrom( java.io.InputStream input)371   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseDelimitedFrom(
372       java.io.InputStream input) throws java.io.IOException {
373     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
374   }
375 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)376   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseDelimitedFrom(
377       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
378       throws java.io.IOException {
379     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
380         PARSER, input, extensionRegistry);
381   }
382 
parseFrom( com.google.protobuf.CodedInputStream input)383   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
384       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
385     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
386   }
387 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)388   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom(
389       com.google.protobuf.CodedInputStream input,
390       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
391       throws java.io.IOException {
392     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
393         PARSER, input, extensionRegistry);
394   }
395 
396   @java.lang.Override
newBuilderForType()397   public Builder newBuilderForType() {
398     return newBuilder();
399   }
400 
newBuilder()401   public static Builder newBuilder() {
402     return DEFAULT_INSTANCE.toBuilder();
403   }
404 
newBuilder( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest prototype)405   public static Builder newBuilder(
406       com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest prototype) {
407     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
408   }
409 
410   @java.lang.Override
toBuilder()411   public Builder toBuilder() {
412     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
413   }
414 
415   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)416   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
417     Builder builder = new Builder(parent);
418     return builder;
419   }
420   /**
421    *
422    *
423    * <pre>
424    * Request message for BatchCreateUserLinks RPC.
425    * </pre>
426    *
427    * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksRequest}
428    */
429   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
430       implements
431       // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest)
432       com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequestOrBuilder {
getDescriptor()433     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
434       return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
435           .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor;
436     }
437 
438     @java.lang.Override
439     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()440         internalGetFieldAccessorTable() {
441       return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
442           .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable
443           .ensureFieldAccessorsInitialized(
444               com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class,
445               com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.Builder.class);
446     }
447 
448     // Construct using com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.newBuilder()
Builder()449     private Builder() {}
450 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)451     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
452       super(parent);
453     }
454 
455     @java.lang.Override
clear()456     public Builder clear() {
457       super.clear();
458       bitField0_ = 0;
459       parent_ = "";
460       notifyNewUsers_ = false;
461       if (requestsBuilder_ == null) {
462         requests_ = java.util.Collections.emptyList();
463       } else {
464         requests_ = null;
465         requestsBuilder_.clear();
466       }
467       bitField0_ = (bitField0_ & ~0x00000004);
468       return this;
469     }
470 
471     @java.lang.Override
getDescriptorForType()472     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
473       return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
474           .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor;
475     }
476 
477     @java.lang.Override
478     public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest
getDefaultInstanceForType()479         getDefaultInstanceForType() {
480       return com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.getDefaultInstance();
481     }
482 
483     @java.lang.Override
build()484     public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest build() {
485       com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result = buildPartial();
486       if (!result.isInitialized()) {
487         throw newUninitializedMessageException(result);
488       }
489       return result;
490     }
491 
492     @java.lang.Override
buildPartial()493     public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest buildPartial() {
494       com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result =
495           new com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(this);
496       buildPartialRepeatedFields(result);
497       if (bitField0_ != 0) {
498         buildPartial0(result);
499       }
500       onBuilt();
501       return result;
502     }
503 
buildPartialRepeatedFields( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result)504     private void buildPartialRepeatedFields(
505         com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result) {
506       if (requestsBuilder_ == null) {
507         if (((bitField0_ & 0x00000004) != 0)) {
508           requests_ = java.util.Collections.unmodifiableList(requests_);
509           bitField0_ = (bitField0_ & ~0x00000004);
510         }
511         result.requests_ = requests_;
512       } else {
513         result.requests_ = requestsBuilder_.build();
514       }
515     }
516 
buildPartial0( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result)517     private void buildPartial0(
518         com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result) {
519       int from_bitField0_ = bitField0_;
520       if (((from_bitField0_ & 0x00000001) != 0)) {
521         result.parent_ = parent_;
522       }
523       if (((from_bitField0_ & 0x00000002) != 0)) {
524         result.notifyNewUsers_ = notifyNewUsers_;
525       }
526     }
527 
528     @java.lang.Override
clone()529     public Builder clone() {
530       return super.clone();
531     }
532 
533     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)534     public Builder setField(
535         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
536       return super.setField(field, value);
537     }
538 
539     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)540     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
541       return super.clearField(field);
542     }
543 
544     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)545     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
546       return super.clearOneof(oneof);
547     }
548 
549     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)550     public Builder setRepeatedField(
551         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
552       return super.setRepeatedField(field, index, value);
553     }
554 
555     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)556     public Builder addRepeatedField(
557         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
558       return super.addRepeatedField(field, value);
559     }
560 
561     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)562     public Builder mergeFrom(com.google.protobuf.Message other) {
563       if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) {
564         return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) other);
565       } else {
566         super.mergeFrom(other);
567         return this;
568       }
569     }
570 
mergeFrom(com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other)571     public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other) {
572       if (other
573           == com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.getDefaultInstance())
574         return this;
575       if (!other.getParent().isEmpty()) {
576         parent_ = other.parent_;
577         bitField0_ |= 0x00000001;
578         onChanged();
579       }
580       if (other.getNotifyNewUsers() != false) {
581         setNotifyNewUsers(other.getNotifyNewUsers());
582       }
583       if (requestsBuilder_ == null) {
584         if (!other.requests_.isEmpty()) {
585           if (requests_.isEmpty()) {
586             requests_ = other.requests_;
587             bitField0_ = (bitField0_ & ~0x00000004);
588           } else {
589             ensureRequestsIsMutable();
590             requests_.addAll(other.requests_);
591           }
592           onChanged();
593         }
594       } else {
595         if (!other.requests_.isEmpty()) {
596           if (requestsBuilder_.isEmpty()) {
597             requestsBuilder_.dispose();
598             requestsBuilder_ = null;
599             requests_ = other.requests_;
600             bitField0_ = (bitField0_ & ~0x00000004);
601             requestsBuilder_ =
602                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
603                     ? getRequestsFieldBuilder()
604                     : null;
605           } else {
606             requestsBuilder_.addAllMessages(other.requests_);
607           }
608         }
609       }
610       this.mergeUnknownFields(other.getUnknownFields());
611       onChanged();
612       return this;
613     }
614 
615     @java.lang.Override
isInitialized()616     public final boolean isInitialized() {
617       return true;
618     }
619 
620     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)621     public Builder mergeFrom(
622         com.google.protobuf.CodedInputStream input,
623         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
624         throws java.io.IOException {
625       if (extensionRegistry == null) {
626         throw new java.lang.NullPointerException();
627       }
628       try {
629         boolean done = false;
630         while (!done) {
631           int tag = input.readTag();
632           switch (tag) {
633             case 0:
634               done = true;
635               break;
636             case 10:
637               {
638                 parent_ = input.readStringRequireUtf8();
639                 bitField0_ |= 0x00000001;
640                 break;
641               } // case 10
642             case 16:
643               {
644                 notifyNewUsers_ = input.readBool();
645                 bitField0_ |= 0x00000002;
646                 break;
647               } // case 16
648             case 26:
649               {
650                 com.google.analytics.admin.v1alpha.CreateUserLinkRequest m =
651                     input.readMessage(
652                         com.google.analytics.admin.v1alpha.CreateUserLinkRequest.parser(),
653                         extensionRegistry);
654                 if (requestsBuilder_ == null) {
655                   ensureRequestsIsMutable();
656                   requests_.add(m);
657                 } else {
658                   requestsBuilder_.addMessage(m);
659                 }
660                 break;
661               } // case 26
662             default:
663               {
664                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
665                   done = true; // was an endgroup tag
666                 }
667                 break;
668               } // default:
669           } // switch (tag)
670         } // while (!done)
671       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
672         throw e.unwrapIOException();
673       } finally {
674         onChanged();
675       } // finally
676       return this;
677     }
678 
679     private int bitField0_;
680 
681     private java.lang.Object parent_ = "";
682     /**
683      *
684      *
685      * <pre>
686      * Required. The account or property that all user links in the request are
687      * for. This field is required. The parent field in the CreateUserLinkRequest
688      * messages must either be empty or match this field.
689      * Example format: accounts/1234
690      * </pre>
691      *
692      * <code>
693      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
694      * </code>
695      *
696      * @return The parent.
697      */
getParent()698     public java.lang.String getParent() {
699       java.lang.Object ref = parent_;
700       if (!(ref instanceof java.lang.String)) {
701         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
702         java.lang.String s = bs.toStringUtf8();
703         parent_ = s;
704         return s;
705       } else {
706         return (java.lang.String) ref;
707       }
708     }
709     /**
710      *
711      *
712      * <pre>
713      * Required. The account or property that all user links in the request are
714      * for. This field is required. The parent field in the CreateUserLinkRequest
715      * messages must either be empty or match this field.
716      * Example format: accounts/1234
717      * </pre>
718      *
719      * <code>
720      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
721      * </code>
722      *
723      * @return The bytes for parent.
724      */
getParentBytes()725     public com.google.protobuf.ByteString getParentBytes() {
726       java.lang.Object ref = parent_;
727       if (ref instanceof String) {
728         com.google.protobuf.ByteString b =
729             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
730         parent_ = b;
731         return b;
732       } else {
733         return (com.google.protobuf.ByteString) ref;
734       }
735     }
736     /**
737      *
738      *
739      * <pre>
740      * Required. The account or property that all user links in the request are
741      * for. This field is required. The parent field in the CreateUserLinkRequest
742      * messages must either be empty or match this field.
743      * Example format: accounts/1234
744      * </pre>
745      *
746      * <code>
747      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
748      * </code>
749      *
750      * @param value The parent to set.
751      * @return This builder for chaining.
752      */
setParent(java.lang.String value)753     public Builder setParent(java.lang.String value) {
754       if (value == null) {
755         throw new NullPointerException();
756       }
757       parent_ = value;
758       bitField0_ |= 0x00000001;
759       onChanged();
760       return this;
761     }
762     /**
763      *
764      *
765      * <pre>
766      * Required. The account or property that all user links in the request are
767      * for. This field is required. The parent field in the CreateUserLinkRequest
768      * messages must either be empty or match this field.
769      * Example format: accounts/1234
770      * </pre>
771      *
772      * <code>
773      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
774      * </code>
775      *
776      * @return This builder for chaining.
777      */
clearParent()778     public Builder clearParent() {
779       parent_ = getDefaultInstance().getParent();
780       bitField0_ = (bitField0_ & ~0x00000001);
781       onChanged();
782       return this;
783     }
784     /**
785      *
786      *
787      * <pre>
788      * Required. The account or property that all user links in the request are
789      * for. This field is required. The parent field in the CreateUserLinkRequest
790      * messages must either be empty or match this field.
791      * Example format: accounts/1234
792      * </pre>
793      *
794      * <code>
795      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
796      * </code>
797      *
798      * @param value The bytes for parent to set.
799      * @return This builder for chaining.
800      */
setParentBytes(com.google.protobuf.ByteString value)801     public Builder setParentBytes(com.google.protobuf.ByteString value) {
802       if (value == null) {
803         throw new NullPointerException();
804       }
805       checkByteStringIsUtf8(value);
806       parent_ = value;
807       bitField0_ |= 0x00000001;
808       onChanged();
809       return this;
810     }
811 
812     private boolean notifyNewUsers_;
813     /**
814      *
815      *
816      * <pre>
817      * Optional. If set, then email the new users notifying them that they've been
818      * granted permissions to the resource. Regardless of whether this is set or
819      * not, notify_new_user field inside each individual request is ignored.
820      * </pre>
821      *
822      * <code>bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
823      *
824      * @return The notifyNewUsers.
825      */
826     @java.lang.Override
getNotifyNewUsers()827     public boolean getNotifyNewUsers() {
828       return notifyNewUsers_;
829     }
830     /**
831      *
832      *
833      * <pre>
834      * Optional. If set, then email the new users notifying them that they've been
835      * granted permissions to the resource. Regardless of whether this is set or
836      * not, notify_new_user field inside each individual request is ignored.
837      * </pre>
838      *
839      * <code>bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
840      *
841      * @param value The notifyNewUsers to set.
842      * @return This builder for chaining.
843      */
setNotifyNewUsers(boolean value)844     public Builder setNotifyNewUsers(boolean value) {
845 
846       notifyNewUsers_ = value;
847       bitField0_ |= 0x00000002;
848       onChanged();
849       return this;
850     }
851     /**
852      *
853      *
854      * <pre>
855      * Optional. If set, then email the new users notifying them that they've been
856      * granted permissions to the resource. Regardless of whether this is set or
857      * not, notify_new_user field inside each individual request is ignored.
858      * </pre>
859      *
860      * <code>bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
861      *
862      * @return This builder for chaining.
863      */
clearNotifyNewUsers()864     public Builder clearNotifyNewUsers() {
865       bitField0_ = (bitField0_ & ~0x00000002);
866       notifyNewUsers_ = false;
867       onChanged();
868       return this;
869     }
870 
871     private java.util.List<com.google.analytics.admin.v1alpha.CreateUserLinkRequest> requests_ =
872         java.util.Collections.emptyList();
873 
ensureRequestsIsMutable()874     private void ensureRequestsIsMutable() {
875       if (!((bitField0_ & 0x00000004) != 0)) {
876         requests_ =
877             new java.util.ArrayList<com.google.analytics.admin.v1alpha.CreateUserLinkRequest>(
878                 requests_);
879         bitField0_ |= 0x00000004;
880       }
881     }
882 
883     private com.google.protobuf.RepeatedFieldBuilderV3<
884             com.google.analytics.admin.v1alpha.CreateUserLinkRequest,
885             com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder,
886             com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>
887         requestsBuilder_;
888 
889     /**
890      *
891      *
892      * <pre>
893      * Required. The requests specifying the user links to create.
894      * A maximum of 1000 user links can be created in a batch.
895      * </pre>
896      *
897      * <code>
898      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
899      * </code>
900      */
901     public java.util.List<com.google.analytics.admin.v1alpha.CreateUserLinkRequest>
getRequestsList()902         getRequestsList() {
903       if (requestsBuilder_ == null) {
904         return java.util.Collections.unmodifiableList(requests_);
905       } else {
906         return requestsBuilder_.getMessageList();
907       }
908     }
909     /**
910      *
911      *
912      * <pre>
913      * Required. The requests specifying the user links to create.
914      * A maximum of 1000 user links can be created in a batch.
915      * </pre>
916      *
917      * <code>
918      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
919      * </code>
920      */
getRequestsCount()921     public int getRequestsCount() {
922       if (requestsBuilder_ == null) {
923         return requests_.size();
924       } else {
925         return requestsBuilder_.getCount();
926       }
927     }
928     /**
929      *
930      *
931      * <pre>
932      * Required. The requests specifying the user links to create.
933      * A maximum of 1000 user links can be created in a batch.
934      * </pre>
935      *
936      * <code>
937      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
938      * </code>
939      */
getRequests(int index)940     public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) {
941       if (requestsBuilder_ == null) {
942         return requests_.get(index);
943       } else {
944         return requestsBuilder_.getMessage(index);
945       }
946     }
947     /**
948      *
949      *
950      * <pre>
951      * Required. The requests specifying the user links to create.
952      * A maximum of 1000 user links can be created in a batch.
953      * </pre>
954      *
955      * <code>
956      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
957      * </code>
958      */
setRequests( int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest value)959     public Builder setRequests(
960         int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest value) {
961       if (requestsBuilder_ == null) {
962         if (value == null) {
963           throw new NullPointerException();
964         }
965         ensureRequestsIsMutable();
966         requests_.set(index, value);
967         onChanged();
968       } else {
969         requestsBuilder_.setMessage(index, value);
970       }
971       return this;
972     }
973     /**
974      *
975      *
976      * <pre>
977      * Required. The requests specifying the user links to create.
978      * A maximum of 1000 user links can be created in a batch.
979      * </pre>
980      *
981      * <code>
982      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
983      * </code>
984      */
setRequests( int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue)985     public Builder setRequests(
986         int index,
987         com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) {
988       if (requestsBuilder_ == null) {
989         ensureRequestsIsMutable();
990         requests_.set(index, builderForValue.build());
991         onChanged();
992       } else {
993         requestsBuilder_.setMessage(index, builderForValue.build());
994       }
995       return this;
996     }
997     /**
998      *
999      *
1000      * <pre>
1001      * Required. The requests specifying the user links to create.
1002      * A maximum of 1000 user links can be created in a batch.
1003      * </pre>
1004      *
1005      * <code>
1006      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1007      * </code>
1008      */
addRequests(com.google.analytics.admin.v1alpha.CreateUserLinkRequest value)1009     public Builder addRequests(com.google.analytics.admin.v1alpha.CreateUserLinkRequest value) {
1010       if (requestsBuilder_ == null) {
1011         if (value == null) {
1012           throw new NullPointerException();
1013         }
1014         ensureRequestsIsMutable();
1015         requests_.add(value);
1016         onChanged();
1017       } else {
1018         requestsBuilder_.addMessage(value);
1019       }
1020       return this;
1021     }
1022     /**
1023      *
1024      *
1025      * <pre>
1026      * Required. The requests specifying the user links to create.
1027      * A maximum of 1000 user links can be created in a batch.
1028      * </pre>
1029      *
1030      * <code>
1031      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1032      * </code>
1033      */
addRequests( int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest value)1034     public Builder addRequests(
1035         int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest value) {
1036       if (requestsBuilder_ == null) {
1037         if (value == null) {
1038           throw new NullPointerException();
1039         }
1040         ensureRequestsIsMutable();
1041         requests_.add(index, value);
1042         onChanged();
1043       } else {
1044         requestsBuilder_.addMessage(index, value);
1045       }
1046       return this;
1047     }
1048     /**
1049      *
1050      *
1051      * <pre>
1052      * Required. The requests specifying the user links to create.
1053      * A maximum of 1000 user links can be created in a batch.
1054      * </pre>
1055      *
1056      * <code>
1057      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1058      * </code>
1059      */
addRequests( com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue)1060     public Builder addRequests(
1061         com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) {
1062       if (requestsBuilder_ == null) {
1063         ensureRequestsIsMutable();
1064         requests_.add(builderForValue.build());
1065         onChanged();
1066       } else {
1067         requestsBuilder_.addMessage(builderForValue.build());
1068       }
1069       return this;
1070     }
1071     /**
1072      *
1073      *
1074      * <pre>
1075      * Required. The requests specifying the user links to create.
1076      * A maximum of 1000 user links can be created in a batch.
1077      * </pre>
1078      *
1079      * <code>
1080      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1081      * </code>
1082      */
addRequests( int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue)1083     public Builder addRequests(
1084         int index,
1085         com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) {
1086       if (requestsBuilder_ == null) {
1087         ensureRequestsIsMutable();
1088         requests_.add(index, builderForValue.build());
1089         onChanged();
1090       } else {
1091         requestsBuilder_.addMessage(index, builderForValue.build());
1092       }
1093       return this;
1094     }
1095     /**
1096      *
1097      *
1098      * <pre>
1099      * Required. The requests specifying the user links to create.
1100      * A maximum of 1000 user links can be created in a batch.
1101      * </pre>
1102      *
1103      * <code>
1104      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1105      * </code>
1106      */
addAllRequests( java.lang.Iterable<? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequest> values)1107     public Builder addAllRequests(
1108         java.lang.Iterable<? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequest>
1109             values) {
1110       if (requestsBuilder_ == null) {
1111         ensureRequestsIsMutable();
1112         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_);
1113         onChanged();
1114       } else {
1115         requestsBuilder_.addAllMessages(values);
1116       }
1117       return this;
1118     }
1119     /**
1120      *
1121      *
1122      * <pre>
1123      * Required. The requests specifying the user links to create.
1124      * A maximum of 1000 user links can be created in a batch.
1125      * </pre>
1126      *
1127      * <code>
1128      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1129      * </code>
1130      */
clearRequests()1131     public Builder clearRequests() {
1132       if (requestsBuilder_ == null) {
1133         requests_ = java.util.Collections.emptyList();
1134         bitField0_ = (bitField0_ & ~0x00000004);
1135         onChanged();
1136       } else {
1137         requestsBuilder_.clear();
1138       }
1139       return this;
1140     }
1141     /**
1142      *
1143      *
1144      * <pre>
1145      * Required. The requests specifying the user links to create.
1146      * A maximum of 1000 user links can be created in a batch.
1147      * </pre>
1148      *
1149      * <code>
1150      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1151      * </code>
1152      */
removeRequests(int index)1153     public Builder removeRequests(int index) {
1154       if (requestsBuilder_ == null) {
1155         ensureRequestsIsMutable();
1156         requests_.remove(index);
1157         onChanged();
1158       } else {
1159         requestsBuilder_.remove(index);
1160       }
1161       return this;
1162     }
1163     /**
1164      *
1165      *
1166      * <pre>
1167      * Required. The requests specifying the user links to create.
1168      * A maximum of 1000 user links can be created in a batch.
1169      * </pre>
1170      *
1171      * <code>
1172      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1173      * </code>
1174      */
getRequestsBuilder( int index)1175     public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder getRequestsBuilder(
1176         int index) {
1177       return getRequestsFieldBuilder().getBuilder(index);
1178     }
1179     /**
1180      *
1181      *
1182      * <pre>
1183      * Required. The requests specifying the user links to create.
1184      * A maximum of 1000 user links can be created in a batch.
1185      * </pre>
1186      *
1187      * <code>
1188      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1189      * </code>
1190      */
getRequestsOrBuilder( int index)1191     public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder(
1192         int index) {
1193       if (requestsBuilder_ == null) {
1194         return requests_.get(index);
1195       } else {
1196         return requestsBuilder_.getMessageOrBuilder(index);
1197       }
1198     }
1199     /**
1200      *
1201      *
1202      * <pre>
1203      * Required. The requests specifying the user links to create.
1204      * A maximum of 1000 user links can be created in a batch.
1205      * </pre>
1206      *
1207      * <code>
1208      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1209      * </code>
1210      */
1211     public java.util.List<
1212             ? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>
getRequestsOrBuilderList()1213         getRequestsOrBuilderList() {
1214       if (requestsBuilder_ != null) {
1215         return requestsBuilder_.getMessageOrBuilderList();
1216       } else {
1217         return java.util.Collections.unmodifiableList(requests_);
1218       }
1219     }
1220     /**
1221      *
1222      *
1223      * <pre>
1224      * Required. The requests specifying the user links to create.
1225      * A maximum of 1000 user links can be created in a batch.
1226      * </pre>
1227      *
1228      * <code>
1229      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1230      * </code>
1231      */
addRequestsBuilder()1232     public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder() {
1233       return getRequestsFieldBuilder()
1234           .addBuilder(
1235               com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance());
1236     }
1237     /**
1238      *
1239      *
1240      * <pre>
1241      * Required. The requests specifying the user links to create.
1242      * A maximum of 1000 user links can be created in a batch.
1243      * </pre>
1244      *
1245      * <code>
1246      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1247      * </code>
1248      */
addRequestsBuilder( int index)1249     public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder(
1250         int index) {
1251       return getRequestsFieldBuilder()
1252           .addBuilder(
1253               index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance());
1254     }
1255     /**
1256      *
1257      *
1258      * <pre>
1259      * Required. The requests specifying the user links to create.
1260      * A maximum of 1000 user links can be created in a batch.
1261      * </pre>
1262      *
1263      * <code>
1264      * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];
1265      * </code>
1266      */
1267     public java.util.List<com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder>
getRequestsBuilderList()1268         getRequestsBuilderList() {
1269       return getRequestsFieldBuilder().getBuilderList();
1270     }
1271 
1272     private com.google.protobuf.RepeatedFieldBuilderV3<
1273             com.google.analytics.admin.v1alpha.CreateUserLinkRequest,
1274             com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder,
1275             com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>
getRequestsFieldBuilder()1276         getRequestsFieldBuilder() {
1277       if (requestsBuilder_ == null) {
1278         requestsBuilder_ =
1279             new com.google.protobuf.RepeatedFieldBuilderV3<
1280                 com.google.analytics.admin.v1alpha.CreateUserLinkRequest,
1281                 com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder,
1282                 com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>(
1283                 requests_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
1284         requests_ = null;
1285       }
1286       return requestsBuilder_;
1287     }
1288 
1289     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1290     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1291       return super.setUnknownFields(unknownFields);
1292     }
1293 
1294     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1295     public final Builder mergeUnknownFields(
1296         final com.google.protobuf.UnknownFieldSet unknownFields) {
1297       return super.mergeUnknownFields(unknownFields);
1298     }
1299 
1300     // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest)
1301   }
1302 
1303   // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest)
1304   private static final com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest
1305       DEFAULT_INSTANCE;
1306 
1307   static {
1308     DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest();
1309   }
1310 
1311   public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest
getDefaultInstance()1312       getDefaultInstance() {
1313     return DEFAULT_INSTANCE;
1314   }
1315 
1316   private static final com.google.protobuf.Parser<BatchCreateUserLinksRequest> PARSER =
1317       new com.google.protobuf.AbstractParser<BatchCreateUserLinksRequest>() {
1318         @java.lang.Override
1319         public BatchCreateUserLinksRequest parsePartialFrom(
1320             com.google.protobuf.CodedInputStream input,
1321             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1322             throws com.google.protobuf.InvalidProtocolBufferException {
1323           Builder builder = newBuilder();
1324           try {
1325             builder.mergeFrom(input, extensionRegistry);
1326           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1327             throw e.setUnfinishedMessage(builder.buildPartial());
1328           } catch (com.google.protobuf.UninitializedMessageException e) {
1329             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1330           } catch (java.io.IOException e) {
1331             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1332                 .setUnfinishedMessage(builder.buildPartial());
1333           }
1334           return builder.buildPartial();
1335         }
1336       };
1337 
parser()1338   public static com.google.protobuf.Parser<BatchCreateUserLinksRequest> parser() {
1339     return PARSER;
1340   }
1341 
1342   @java.lang.Override
getParserForType()1343   public com.google.protobuf.Parser<BatchCreateUserLinksRequest> getParserForType() {
1344     return PARSER;
1345   }
1346 
1347   @java.lang.Override
1348   public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest
getDefaultInstanceForType()1349       getDefaultInstanceForType() {
1350     return DEFAULT_INSTANCE;
1351   }
1352 }
1353