• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A request message for VpnGateways.List. See the method description for details.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.ListVpnGatewaysRequest}
29  */
30 public final class ListVpnGatewaysRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListVpnGatewaysRequest)
33     ListVpnGatewaysRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ListVpnGatewaysRequest.newBuilder() to construct.
ListVpnGatewaysRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ListVpnGatewaysRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ListVpnGatewaysRequest()40   private ListVpnGatewaysRequest() {
41     filter_ = "";
42     orderBy_ = "";
43     pageToken_ = "";
44     project_ = "";
45     region_ = "";
46   }
47 
48   @java.lang.Override
49   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)50   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
51     return new ListVpnGatewaysRequest();
52   }
53 
54   @java.lang.Override
getUnknownFields()55   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
56     return this.unknownFields;
57   }
58 
getDescriptor()59   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
60     return com.google.cloud.compute.v1.Compute
61         .internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor;
62   }
63 
64   @java.lang.Override
65   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()66       internalGetFieldAccessorTable() {
67     return com.google.cloud.compute.v1.Compute
68         .internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_fieldAccessorTable
69         .ensureFieldAccessorsInitialized(
70             com.google.cloud.compute.v1.ListVpnGatewaysRequest.class,
71             com.google.cloud.compute.v1.ListVpnGatewaysRequest.Builder.class);
72   }
73 
74   private int bitField0_;
75   public static final int FILTER_FIELD_NUMBER = 336120696;
76 
77   @SuppressWarnings("serial")
78   private volatile java.lang.Object filter_ = "";
79   /**
80    *
81    *
82    * <pre>
83    * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
84    * </pre>
85    *
86    * <code>optional string filter = 336120696;</code>
87    *
88    * @return Whether the filter field is set.
89    */
90   @java.lang.Override
hasFilter()91   public boolean hasFilter() {
92     return ((bitField0_ & 0x00000001) != 0);
93   }
94   /**
95    *
96    *
97    * <pre>
98    * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
99    * </pre>
100    *
101    * <code>optional string filter = 336120696;</code>
102    *
103    * @return The filter.
104    */
105   @java.lang.Override
getFilter()106   public java.lang.String getFilter() {
107     java.lang.Object ref = filter_;
108     if (ref instanceof java.lang.String) {
109       return (java.lang.String) ref;
110     } else {
111       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
112       java.lang.String s = bs.toStringUtf8();
113       filter_ = s;
114       return s;
115     }
116   }
117   /**
118    *
119    *
120    * <pre>
121    * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
122    * </pre>
123    *
124    * <code>optional string filter = 336120696;</code>
125    *
126    * @return The bytes for filter.
127    */
128   @java.lang.Override
getFilterBytes()129   public com.google.protobuf.ByteString getFilterBytes() {
130     java.lang.Object ref = filter_;
131     if (ref instanceof java.lang.String) {
132       com.google.protobuf.ByteString b =
133           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
134       filter_ = b;
135       return b;
136     } else {
137       return (com.google.protobuf.ByteString) ref;
138     }
139   }
140 
141   public static final int MAX_RESULTS_FIELD_NUMBER = 54715419;
142   private int maxResults_ = 0;
143   /**
144    *
145    *
146    * <pre>
147    * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
148    * </pre>
149    *
150    * <code>optional uint32 max_results = 54715419;</code>
151    *
152    * @return Whether the maxResults field is set.
153    */
154   @java.lang.Override
hasMaxResults()155   public boolean hasMaxResults() {
156     return ((bitField0_ & 0x00000002) != 0);
157   }
158   /**
159    *
160    *
161    * <pre>
162    * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
163    * </pre>
164    *
165    * <code>optional uint32 max_results = 54715419;</code>
166    *
167    * @return The maxResults.
168    */
169   @java.lang.Override
getMaxResults()170   public int getMaxResults() {
171     return maxResults_;
172   }
173 
174   public static final int ORDER_BY_FIELD_NUMBER = 160562920;
175 
176   @SuppressWarnings("serial")
177   private volatile java.lang.Object orderBy_ = "";
178   /**
179    *
180    *
181    * <pre>
182    * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
183    * </pre>
184    *
185    * <code>optional string order_by = 160562920;</code>
186    *
187    * @return Whether the orderBy field is set.
188    */
189   @java.lang.Override
hasOrderBy()190   public boolean hasOrderBy() {
191     return ((bitField0_ & 0x00000004) != 0);
192   }
193   /**
194    *
195    *
196    * <pre>
197    * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
198    * </pre>
199    *
200    * <code>optional string order_by = 160562920;</code>
201    *
202    * @return The orderBy.
203    */
204   @java.lang.Override
getOrderBy()205   public java.lang.String getOrderBy() {
206     java.lang.Object ref = orderBy_;
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       orderBy_ = s;
213       return s;
214     }
215   }
216   /**
217    *
218    *
219    * <pre>
220    * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
221    * </pre>
222    *
223    * <code>optional string order_by = 160562920;</code>
224    *
225    * @return The bytes for orderBy.
226    */
227   @java.lang.Override
getOrderByBytes()228   public com.google.protobuf.ByteString getOrderByBytes() {
229     java.lang.Object ref = orderBy_;
230     if (ref instanceof java.lang.String) {
231       com.google.protobuf.ByteString b =
232           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
233       orderBy_ = b;
234       return b;
235     } else {
236       return (com.google.protobuf.ByteString) ref;
237     }
238   }
239 
240   public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697;
241 
242   @SuppressWarnings("serial")
243   private volatile java.lang.Object pageToken_ = "";
244   /**
245    *
246    *
247    * <pre>
248    * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
249    * </pre>
250    *
251    * <code>optional string page_token = 19994697;</code>
252    *
253    * @return Whether the pageToken field is set.
254    */
255   @java.lang.Override
hasPageToken()256   public boolean hasPageToken() {
257     return ((bitField0_ & 0x00000008) != 0);
258   }
259   /**
260    *
261    *
262    * <pre>
263    * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
264    * </pre>
265    *
266    * <code>optional string page_token = 19994697;</code>
267    *
268    * @return The pageToken.
269    */
270   @java.lang.Override
getPageToken()271   public java.lang.String getPageToken() {
272     java.lang.Object ref = pageToken_;
273     if (ref instanceof java.lang.String) {
274       return (java.lang.String) ref;
275     } else {
276       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
277       java.lang.String s = bs.toStringUtf8();
278       pageToken_ = s;
279       return s;
280     }
281   }
282   /**
283    *
284    *
285    * <pre>
286    * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
287    * </pre>
288    *
289    * <code>optional string page_token = 19994697;</code>
290    *
291    * @return The bytes for pageToken.
292    */
293   @java.lang.Override
getPageTokenBytes()294   public com.google.protobuf.ByteString getPageTokenBytes() {
295     java.lang.Object ref = pageToken_;
296     if (ref instanceof java.lang.String) {
297       com.google.protobuf.ByteString b =
298           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
299       pageToken_ = b;
300       return b;
301     } else {
302       return (com.google.protobuf.ByteString) ref;
303     }
304   }
305 
306   public static final int PROJECT_FIELD_NUMBER = 227560217;
307 
308   @SuppressWarnings("serial")
309   private volatile java.lang.Object project_ = "";
310   /**
311    *
312    *
313    * <pre>
314    * Project ID for this request.
315    * </pre>
316    *
317    * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
318    *
319    * @return The project.
320    */
321   @java.lang.Override
getProject()322   public java.lang.String getProject() {
323     java.lang.Object ref = project_;
324     if (ref instanceof java.lang.String) {
325       return (java.lang.String) ref;
326     } else {
327       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
328       java.lang.String s = bs.toStringUtf8();
329       project_ = s;
330       return s;
331     }
332   }
333   /**
334    *
335    *
336    * <pre>
337    * Project ID for this request.
338    * </pre>
339    *
340    * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
341    *
342    * @return The bytes for project.
343    */
344   @java.lang.Override
getProjectBytes()345   public com.google.protobuf.ByteString getProjectBytes() {
346     java.lang.Object ref = project_;
347     if (ref instanceof java.lang.String) {
348       com.google.protobuf.ByteString b =
349           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
350       project_ = b;
351       return b;
352     } else {
353       return (com.google.protobuf.ByteString) ref;
354     }
355   }
356 
357   public static final int REGION_FIELD_NUMBER = 138946292;
358 
359   @SuppressWarnings("serial")
360   private volatile java.lang.Object region_ = "";
361   /**
362    *
363    *
364    * <pre>
365    * Name of the region for this request.
366    * </pre>
367    *
368    * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
369    *
370    * @return The region.
371    */
372   @java.lang.Override
getRegion()373   public java.lang.String getRegion() {
374     java.lang.Object ref = region_;
375     if (ref instanceof java.lang.String) {
376       return (java.lang.String) ref;
377     } else {
378       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
379       java.lang.String s = bs.toStringUtf8();
380       region_ = s;
381       return s;
382     }
383   }
384   /**
385    *
386    *
387    * <pre>
388    * Name of the region for this request.
389    * </pre>
390    *
391    * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
392    *
393    * @return The bytes for region.
394    */
395   @java.lang.Override
getRegionBytes()396   public com.google.protobuf.ByteString getRegionBytes() {
397     java.lang.Object ref = region_;
398     if (ref instanceof java.lang.String) {
399       com.google.protobuf.ByteString b =
400           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
401       region_ = b;
402       return b;
403     } else {
404       return (com.google.protobuf.ByteString) ref;
405     }
406   }
407 
408   public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390;
409   private boolean returnPartialSuccess_ = false;
410   /**
411    *
412    *
413    * <pre>
414    * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
415    * </pre>
416    *
417    * <code>optional bool return_partial_success = 517198390;</code>
418    *
419    * @return Whether the returnPartialSuccess field is set.
420    */
421   @java.lang.Override
hasReturnPartialSuccess()422   public boolean hasReturnPartialSuccess() {
423     return ((bitField0_ & 0x00000010) != 0);
424   }
425   /**
426    *
427    *
428    * <pre>
429    * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
430    * </pre>
431    *
432    * <code>optional bool return_partial_success = 517198390;</code>
433    *
434    * @return The returnPartialSuccess.
435    */
436   @java.lang.Override
getReturnPartialSuccess()437   public boolean getReturnPartialSuccess() {
438     return returnPartialSuccess_;
439   }
440 
441   private byte memoizedIsInitialized = -1;
442 
443   @java.lang.Override
isInitialized()444   public final boolean isInitialized() {
445     byte isInitialized = memoizedIsInitialized;
446     if (isInitialized == 1) return true;
447     if (isInitialized == 0) return false;
448 
449     memoizedIsInitialized = 1;
450     return true;
451   }
452 
453   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)454   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
455     if (((bitField0_ & 0x00000008) != 0)) {
456       com.google.protobuf.GeneratedMessageV3.writeString(output, 19994697, pageToken_);
457     }
458     if (((bitField0_ & 0x00000002) != 0)) {
459       output.writeUInt32(54715419, maxResults_);
460     }
461     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
462       com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_);
463     }
464     if (((bitField0_ & 0x00000004) != 0)) {
465       com.google.protobuf.GeneratedMessageV3.writeString(output, 160562920, orderBy_);
466     }
467     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
468       com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
469     }
470     if (((bitField0_ & 0x00000001) != 0)) {
471       com.google.protobuf.GeneratedMessageV3.writeString(output, 336120696, filter_);
472     }
473     if (((bitField0_ & 0x00000010) != 0)) {
474       output.writeBool(517198390, returnPartialSuccess_);
475     }
476     getUnknownFields().writeTo(output);
477   }
478 
479   @java.lang.Override
getSerializedSize()480   public int getSerializedSize() {
481     int size = memoizedSize;
482     if (size != -1) return size;
483 
484     size = 0;
485     if (((bitField0_ & 0x00000008) != 0)) {
486       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19994697, pageToken_);
487     }
488     if (((bitField0_ & 0x00000002) != 0)) {
489       size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_);
490     }
491     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
492       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_);
493     }
494     if (((bitField0_ & 0x00000004) != 0)) {
495       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(160562920, orderBy_);
496     }
497     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
498       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
499     }
500     if (((bitField0_ & 0x00000001) != 0)) {
501       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(336120696, filter_);
502     }
503     if (((bitField0_ & 0x00000010) != 0)) {
504       size +=
505           com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_);
506     }
507     size += getUnknownFields().getSerializedSize();
508     memoizedSize = size;
509     return size;
510   }
511 
512   @java.lang.Override
equals(final java.lang.Object obj)513   public boolean equals(final java.lang.Object obj) {
514     if (obj == this) {
515       return true;
516     }
517     if (!(obj instanceof com.google.cloud.compute.v1.ListVpnGatewaysRequest)) {
518       return super.equals(obj);
519     }
520     com.google.cloud.compute.v1.ListVpnGatewaysRequest other =
521         (com.google.cloud.compute.v1.ListVpnGatewaysRequest) obj;
522 
523     if (hasFilter() != other.hasFilter()) return false;
524     if (hasFilter()) {
525       if (!getFilter().equals(other.getFilter())) return false;
526     }
527     if (hasMaxResults() != other.hasMaxResults()) return false;
528     if (hasMaxResults()) {
529       if (getMaxResults() != other.getMaxResults()) return false;
530     }
531     if (hasOrderBy() != other.hasOrderBy()) return false;
532     if (hasOrderBy()) {
533       if (!getOrderBy().equals(other.getOrderBy())) return false;
534     }
535     if (hasPageToken() != other.hasPageToken()) return false;
536     if (hasPageToken()) {
537       if (!getPageToken().equals(other.getPageToken())) return false;
538     }
539     if (!getProject().equals(other.getProject())) return false;
540     if (!getRegion().equals(other.getRegion())) return false;
541     if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false;
542     if (hasReturnPartialSuccess()) {
543       if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false;
544     }
545     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
546     return true;
547   }
548 
549   @java.lang.Override
hashCode()550   public int hashCode() {
551     if (memoizedHashCode != 0) {
552       return memoizedHashCode;
553     }
554     int hash = 41;
555     hash = (19 * hash) + getDescriptor().hashCode();
556     if (hasFilter()) {
557       hash = (37 * hash) + FILTER_FIELD_NUMBER;
558       hash = (53 * hash) + getFilter().hashCode();
559     }
560     if (hasMaxResults()) {
561       hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER;
562       hash = (53 * hash) + getMaxResults();
563     }
564     if (hasOrderBy()) {
565       hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
566       hash = (53 * hash) + getOrderBy().hashCode();
567     }
568     if (hasPageToken()) {
569       hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
570       hash = (53 * hash) + getPageToken().hashCode();
571     }
572     hash = (37 * hash) + PROJECT_FIELD_NUMBER;
573     hash = (53 * hash) + getProject().hashCode();
574     hash = (37 * hash) + REGION_FIELD_NUMBER;
575     hash = (53 * hash) + getRegion().hashCode();
576     if (hasReturnPartialSuccess()) {
577       hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER;
578       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess());
579     }
580     hash = (29 * hash) + getUnknownFields().hashCode();
581     memoizedHashCode = hash;
582     return hash;
583   }
584 
parseFrom( java.nio.ByteBuffer data)585   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
586       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
587     return PARSER.parseFrom(data);
588   }
589 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)590   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
591       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
592       throws com.google.protobuf.InvalidProtocolBufferException {
593     return PARSER.parseFrom(data, extensionRegistry);
594   }
595 
parseFrom( com.google.protobuf.ByteString data)596   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
597       com.google.protobuf.ByteString data)
598       throws com.google.protobuf.InvalidProtocolBufferException {
599     return PARSER.parseFrom(data);
600   }
601 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)602   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
603       com.google.protobuf.ByteString data,
604       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
605       throws com.google.protobuf.InvalidProtocolBufferException {
606     return PARSER.parseFrom(data, extensionRegistry);
607   }
608 
parseFrom(byte[] data)609   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(byte[] data)
610       throws com.google.protobuf.InvalidProtocolBufferException {
611     return PARSER.parseFrom(data);
612   }
613 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)614   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
615       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
616       throws com.google.protobuf.InvalidProtocolBufferException {
617     return PARSER.parseFrom(data, extensionRegistry);
618   }
619 
parseFrom( java.io.InputStream input)620   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
621       java.io.InputStream input) throws java.io.IOException {
622     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
623   }
624 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)625   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
626       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
627       throws java.io.IOException {
628     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
629         PARSER, input, extensionRegistry);
630   }
631 
parseDelimitedFrom( java.io.InputStream input)632   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseDelimitedFrom(
633       java.io.InputStream input) throws java.io.IOException {
634     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
635   }
636 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)637   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseDelimitedFrom(
638       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
639       throws java.io.IOException {
640     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
641         PARSER, input, extensionRegistry);
642   }
643 
parseFrom( com.google.protobuf.CodedInputStream input)644   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
645       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
646     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
647   }
648 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)649   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest parseFrom(
650       com.google.protobuf.CodedInputStream input,
651       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
652       throws java.io.IOException {
653     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
654         PARSER, input, extensionRegistry);
655   }
656 
657   @java.lang.Override
newBuilderForType()658   public Builder newBuilderForType() {
659     return newBuilder();
660   }
661 
newBuilder()662   public static Builder newBuilder() {
663     return DEFAULT_INSTANCE.toBuilder();
664   }
665 
newBuilder(com.google.cloud.compute.v1.ListVpnGatewaysRequest prototype)666   public static Builder newBuilder(com.google.cloud.compute.v1.ListVpnGatewaysRequest prototype) {
667     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
668   }
669 
670   @java.lang.Override
toBuilder()671   public Builder toBuilder() {
672     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
673   }
674 
675   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)676   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
677     Builder builder = new Builder(parent);
678     return builder;
679   }
680   /**
681    *
682    *
683    * <pre>
684    * A request message for VpnGateways.List. See the method description for details.
685    * </pre>
686    *
687    * Protobuf type {@code google.cloud.compute.v1.ListVpnGatewaysRequest}
688    */
689   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
690       implements
691       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListVpnGatewaysRequest)
692       com.google.cloud.compute.v1.ListVpnGatewaysRequestOrBuilder {
getDescriptor()693     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
694       return com.google.cloud.compute.v1.Compute
695           .internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor;
696     }
697 
698     @java.lang.Override
699     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()700         internalGetFieldAccessorTable() {
701       return com.google.cloud.compute.v1.Compute
702           .internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_fieldAccessorTable
703           .ensureFieldAccessorsInitialized(
704               com.google.cloud.compute.v1.ListVpnGatewaysRequest.class,
705               com.google.cloud.compute.v1.ListVpnGatewaysRequest.Builder.class);
706     }
707 
708     // Construct using com.google.cloud.compute.v1.ListVpnGatewaysRequest.newBuilder()
Builder()709     private Builder() {}
710 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)711     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
712       super(parent);
713     }
714 
715     @java.lang.Override
clear()716     public Builder clear() {
717       super.clear();
718       bitField0_ = 0;
719       filter_ = "";
720       maxResults_ = 0;
721       orderBy_ = "";
722       pageToken_ = "";
723       project_ = "";
724       region_ = "";
725       returnPartialSuccess_ = false;
726       return this;
727     }
728 
729     @java.lang.Override
getDescriptorForType()730     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
731       return com.google.cloud.compute.v1.Compute
732           .internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor;
733     }
734 
735     @java.lang.Override
getDefaultInstanceForType()736     public com.google.cloud.compute.v1.ListVpnGatewaysRequest getDefaultInstanceForType() {
737       return com.google.cloud.compute.v1.ListVpnGatewaysRequest.getDefaultInstance();
738     }
739 
740     @java.lang.Override
build()741     public com.google.cloud.compute.v1.ListVpnGatewaysRequest build() {
742       com.google.cloud.compute.v1.ListVpnGatewaysRequest result = buildPartial();
743       if (!result.isInitialized()) {
744         throw newUninitializedMessageException(result);
745       }
746       return result;
747     }
748 
749     @java.lang.Override
buildPartial()750     public com.google.cloud.compute.v1.ListVpnGatewaysRequest buildPartial() {
751       com.google.cloud.compute.v1.ListVpnGatewaysRequest result =
752           new com.google.cloud.compute.v1.ListVpnGatewaysRequest(this);
753       if (bitField0_ != 0) {
754         buildPartial0(result);
755       }
756       onBuilt();
757       return result;
758     }
759 
buildPartial0(com.google.cloud.compute.v1.ListVpnGatewaysRequest result)760     private void buildPartial0(com.google.cloud.compute.v1.ListVpnGatewaysRequest result) {
761       int from_bitField0_ = bitField0_;
762       int to_bitField0_ = 0;
763       if (((from_bitField0_ & 0x00000001) != 0)) {
764         result.filter_ = filter_;
765         to_bitField0_ |= 0x00000001;
766       }
767       if (((from_bitField0_ & 0x00000002) != 0)) {
768         result.maxResults_ = maxResults_;
769         to_bitField0_ |= 0x00000002;
770       }
771       if (((from_bitField0_ & 0x00000004) != 0)) {
772         result.orderBy_ = orderBy_;
773         to_bitField0_ |= 0x00000004;
774       }
775       if (((from_bitField0_ & 0x00000008) != 0)) {
776         result.pageToken_ = pageToken_;
777         to_bitField0_ |= 0x00000008;
778       }
779       if (((from_bitField0_ & 0x00000010) != 0)) {
780         result.project_ = project_;
781       }
782       if (((from_bitField0_ & 0x00000020) != 0)) {
783         result.region_ = region_;
784       }
785       if (((from_bitField0_ & 0x00000040) != 0)) {
786         result.returnPartialSuccess_ = returnPartialSuccess_;
787         to_bitField0_ |= 0x00000010;
788       }
789       result.bitField0_ |= to_bitField0_;
790     }
791 
792     @java.lang.Override
clone()793     public Builder clone() {
794       return super.clone();
795     }
796 
797     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)798     public Builder setField(
799         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
800       return super.setField(field, value);
801     }
802 
803     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)804     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
805       return super.clearField(field);
806     }
807 
808     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)809     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
810       return super.clearOneof(oneof);
811     }
812 
813     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)814     public Builder setRepeatedField(
815         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
816       return super.setRepeatedField(field, index, value);
817     }
818 
819     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)820     public Builder addRepeatedField(
821         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
822       return super.addRepeatedField(field, value);
823     }
824 
825     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)826     public Builder mergeFrom(com.google.protobuf.Message other) {
827       if (other instanceof com.google.cloud.compute.v1.ListVpnGatewaysRequest) {
828         return mergeFrom((com.google.cloud.compute.v1.ListVpnGatewaysRequest) other);
829       } else {
830         super.mergeFrom(other);
831         return this;
832       }
833     }
834 
mergeFrom(com.google.cloud.compute.v1.ListVpnGatewaysRequest other)835     public Builder mergeFrom(com.google.cloud.compute.v1.ListVpnGatewaysRequest other) {
836       if (other == com.google.cloud.compute.v1.ListVpnGatewaysRequest.getDefaultInstance())
837         return this;
838       if (other.hasFilter()) {
839         filter_ = other.filter_;
840         bitField0_ |= 0x00000001;
841         onChanged();
842       }
843       if (other.hasMaxResults()) {
844         setMaxResults(other.getMaxResults());
845       }
846       if (other.hasOrderBy()) {
847         orderBy_ = other.orderBy_;
848         bitField0_ |= 0x00000004;
849         onChanged();
850       }
851       if (other.hasPageToken()) {
852         pageToken_ = other.pageToken_;
853         bitField0_ |= 0x00000008;
854         onChanged();
855       }
856       if (!other.getProject().isEmpty()) {
857         project_ = other.project_;
858         bitField0_ |= 0x00000010;
859         onChanged();
860       }
861       if (!other.getRegion().isEmpty()) {
862         region_ = other.region_;
863         bitField0_ |= 0x00000020;
864         onChanged();
865       }
866       if (other.hasReturnPartialSuccess()) {
867         setReturnPartialSuccess(other.getReturnPartialSuccess());
868       }
869       this.mergeUnknownFields(other.getUnknownFields());
870       onChanged();
871       return this;
872     }
873 
874     @java.lang.Override
isInitialized()875     public final boolean isInitialized() {
876       return true;
877     }
878 
879     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)880     public Builder mergeFrom(
881         com.google.protobuf.CodedInputStream input,
882         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
883         throws java.io.IOException {
884       if (extensionRegistry == null) {
885         throw new java.lang.NullPointerException();
886       }
887       try {
888         boolean done = false;
889         while (!done) {
890           int tag = input.readTag();
891           switch (tag) {
892             case 0:
893               done = true;
894               break;
895             case 159957578:
896               {
897                 pageToken_ = input.readStringRequireUtf8();
898                 bitField0_ |= 0x00000008;
899                 break;
900               } // case 159957578
901             case 437723352:
902               {
903                 maxResults_ = input.readUInt32();
904                 bitField0_ |= 0x00000002;
905                 break;
906               } // case 437723352
907             case 1111570338:
908               {
909                 region_ = input.readStringRequireUtf8();
910                 bitField0_ |= 0x00000020;
911                 break;
912               } // case 1111570338
913             case 1284503362:
914               {
915                 orderBy_ = input.readStringRequireUtf8();
916                 bitField0_ |= 0x00000004;
917                 break;
918               } // case 1284503362
919             case 1820481738:
920               {
921                 project_ = input.readStringRequireUtf8();
922                 bitField0_ |= 0x00000010;
923                 break;
924               } // case 1820481738
925             case -1606001726:
926               {
927                 filter_ = input.readStringRequireUtf8();
928                 bitField0_ |= 0x00000001;
929                 break;
930               } // case -1606001726
931             case -157380176:
932               {
933                 returnPartialSuccess_ = input.readBool();
934                 bitField0_ |= 0x00000040;
935                 break;
936               } // case -157380176
937             default:
938               {
939                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
940                   done = true; // was an endgroup tag
941                 }
942                 break;
943               } // default:
944           } // switch (tag)
945         } // while (!done)
946       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
947         throw e.unwrapIOException();
948       } finally {
949         onChanged();
950       } // finally
951       return this;
952     }
953 
954     private int bitField0_;
955 
956     private java.lang.Object filter_ = "";
957     /**
958      *
959      *
960      * <pre>
961      * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
962      * </pre>
963      *
964      * <code>optional string filter = 336120696;</code>
965      *
966      * @return Whether the filter field is set.
967      */
hasFilter()968     public boolean hasFilter() {
969       return ((bitField0_ & 0x00000001) != 0);
970     }
971     /**
972      *
973      *
974      * <pre>
975      * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
976      * </pre>
977      *
978      * <code>optional string filter = 336120696;</code>
979      *
980      * @return The filter.
981      */
getFilter()982     public java.lang.String getFilter() {
983       java.lang.Object ref = filter_;
984       if (!(ref instanceof java.lang.String)) {
985         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
986         java.lang.String s = bs.toStringUtf8();
987         filter_ = s;
988         return s;
989       } else {
990         return (java.lang.String) ref;
991       }
992     }
993     /**
994      *
995      *
996      * <pre>
997      * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
998      * </pre>
999      *
1000      * <code>optional string filter = 336120696;</code>
1001      *
1002      * @return The bytes for filter.
1003      */
getFilterBytes()1004     public com.google.protobuf.ByteString getFilterBytes() {
1005       java.lang.Object ref = filter_;
1006       if (ref instanceof String) {
1007         com.google.protobuf.ByteString b =
1008             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1009         filter_ = b;
1010         return b;
1011       } else {
1012         return (com.google.protobuf.ByteString) ref;
1013       }
1014     }
1015     /**
1016      *
1017      *
1018      * <pre>
1019      * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
1020      * </pre>
1021      *
1022      * <code>optional string filter = 336120696;</code>
1023      *
1024      * @param value The filter to set.
1025      * @return This builder for chaining.
1026      */
setFilter(java.lang.String value)1027     public Builder setFilter(java.lang.String value) {
1028       if (value == null) {
1029         throw new NullPointerException();
1030       }
1031       filter_ = value;
1032       bitField0_ |= 0x00000001;
1033       onChanged();
1034       return this;
1035     }
1036     /**
1037      *
1038      *
1039      * <pre>
1040      * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
1041      * </pre>
1042      *
1043      * <code>optional string filter = 336120696;</code>
1044      *
1045      * @return This builder for chaining.
1046      */
clearFilter()1047     public Builder clearFilter() {
1048       filter_ = getDefaultInstance().getFilter();
1049       bitField0_ = (bitField0_ & ~0x00000001);
1050       onChanged();
1051       return this;
1052     }
1053     /**
1054      *
1055      *
1056      * <pre>
1057      * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
1058      * </pre>
1059      *
1060      * <code>optional string filter = 336120696;</code>
1061      *
1062      * @param value The bytes for filter to set.
1063      * @return This builder for chaining.
1064      */
setFilterBytes(com.google.protobuf.ByteString value)1065     public Builder setFilterBytes(com.google.protobuf.ByteString value) {
1066       if (value == null) {
1067         throw new NullPointerException();
1068       }
1069       checkByteStringIsUtf8(value);
1070       filter_ = value;
1071       bitField0_ |= 0x00000001;
1072       onChanged();
1073       return this;
1074     }
1075 
1076     private int maxResults_;
1077     /**
1078      *
1079      *
1080      * <pre>
1081      * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
1082      * </pre>
1083      *
1084      * <code>optional uint32 max_results = 54715419;</code>
1085      *
1086      * @return Whether the maxResults field is set.
1087      */
1088     @java.lang.Override
hasMaxResults()1089     public boolean hasMaxResults() {
1090       return ((bitField0_ & 0x00000002) != 0);
1091     }
1092     /**
1093      *
1094      *
1095      * <pre>
1096      * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
1097      * </pre>
1098      *
1099      * <code>optional uint32 max_results = 54715419;</code>
1100      *
1101      * @return The maxResults.
1102      */
1103     @java.lang.Override
getMaxResults()1104     public int getMaxResults() {
1105       return maxResults_;
1106     }
1107     /**
1108      *
1109      *
1110      * <pre>
1111      * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
1112      * </pre>
1113      *
1114      * <code>optional uint32 max_results = 54715419;</code>
1115      *
1116      * @param value The maxResults to set.
1117      * @return This builder for chaining.
1118      */
setMaxResults(int value)1119     public Builder setMaxResults(int value) {
1120 
1121       maxResults_ = value;
1122       bitField0_ |= 0x00000002;
1123       onChanged();
1124       return this;
1125     }
1126     /**
1127      *
1128      *
1129      * <pre>
1130      * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
1131      * </pre>
1132      *
1133      * <code>optional uint32 max_results = 54715419;</code>
1134      *
1135      * @return This builder for chaining.
1136      */
clearMaxResults()1137     public Builder clearMaxResults() {
1138       bitField0_ = (bitField0_ & ~0x00000002);
1139       maxResults_ = 0;
1140       onChanged();
1141       return this;
1142     }
1143 
1144     private java.lang.Object orderBy_ = "";
1145     /**
1146      *
1147      *
1148      * <pre>
1149      * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1150      * </pre>
1151      *
1152      * <code>optional string order_by = 160562920;</code>
1153      *
1154      * @return Whether the orderBy field is set.
1155      */
hasOrderBy()1156     public boolean hasOrderBy() {
1157       return ((bitField0_ & 0x00000004) != 0);
1158     }
1159     /**
1160      *
1161      *
1162      * <pre>
1163      * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1164      * </pre>
1165      *
1166      * <code>optional string order_by = 160562920;</code>
1167      *
1168      * @return The orderBy.
1169      */
getOrderBy()1170     public java.lang.String getOrderBy() {
1171       java.lang.Object ref = orderBy_;
1172       if (!(ref instanceof java.lang.String)) {
1173         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1174         java.lang.String s = bs.toStringUtf8();
1175         orderBy_ = s;
1176         return s;
1177       } else {
1178         return (java.lang.String) ref;
1179       }
1180     }
1181     /**
1182      *
1183      *
1184      * <pre>
1185      * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1186      * </pre>
1187      *
1188      * <code>optional string order_by = 160562920;</code>
1189      *
1190      * @return The bytes for orderBy.
1191      */
getOrderByBytes()1192     public com.google.protobuf.ByteString getOrderByBytes() {
1193       java.lang.Object ref = orderBy_;
1194       if (ref instanceof String) {
1195         com.google.protobuf.ByteString b =
1196             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1197         orderBy_ = b;
1198         return b;
1199       } else {
1200         return (com.google.protobuf.ByteString) ref;
1201       }
1202     }
1203     /**
1204      *
1205      *
1206      * <pre>
1207      * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1208      * </pre>
1209      *
1210      * <code>optional string order_by = 160562920;</code>
1211      *
1212      * @param value The orderBy to set.
1213      * @return This builder for chaining.
1214      */
setOrderBy(java.lang.String value)1215     public Builder setOrderBy(java.lang.String value) {
1216       if (value == null) {
1217         throw new NullPointerException();
1218       }
1219       orderBy_ = value;
1220       bitField0_ |= 0x00000004;
1221       onChanged();
1222       return this;
1223     }
1224     /**
1225      *
1226      *
1227      * <pre>
1228      * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1229      * </pre>
1230      *
1231      * <code>optional string order_by = 160562920;</code>
1232      *
1233      * @return This builder for chaining.
1234      */
clearOrderBy()1235     public Builder clearOrderBy() {
1236       orderBy_ = getDefaultInstance().getOrderBy();
1237       bitField0_ = (bitField0_ & ~0x00000004);
1238       onChanged();
1239       return this;
1240     }
1241     /**
1242      *
1243      *
1244      * <pre>
1245      * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1246      * </pre>
1247      *
1248      * <code>optional string order_by = 160562920;</code>
1249      *
1250      * @param value The bytes for orderBy to set.
1251      * @return This builder for chaining.
1252      */
setOrderByBytes(com.google.protobuf.ByteString value)1253     public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
1254       if (value == null) {
1255         throw new NullPointerException();
1256       }
1257       checkByteStringIsUtf8(value);
1258       orderBy_ = value;
1259       bitField0_ |= 0x00000004;
1260       onChanged();
1261       return this;
1262     }
1263 
1264     private java.lang.Object pageToken_ = "";
1265     /**
1266      *
1267      *
1268      * <pre>
1269      * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1270      * </pre>
1271      *
1272      * <code>optional string page_token = 19994697;</code>
1273      *
1274      * @return Whether the pageToken field is set.
1275      */
hasPageToken()1276     public boolean hasPageToken() {
1277       return ((bitField0_ & 0x00000008) != 0);
1278     }
1279     /**
1280      *
1281      *
1282      * <pre>
1283      * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1284      * </pre>
1285      *
1286      * <code>optional string page_token = 19994697;</code>
1287      *
1288      * @return The pageToken.
1289      */
getPageToken()1290     public java.lang.String getPageToken() {
1291       java.lang.Object ref = pageToken_;
1292       if (!(ref instanceof java.lang.String)) {
1293         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1294         java.lang.String s = bs.toStringUtf8();
1295         pageToken_ = s;
1296         return s;
1297       } else {
1298         return (java.lang.String) ref;
1299       }
1300     }
1301     /**
1302      *
1303      *
1304      * <pre>
1305      * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1306      * </pre>
1307      *
1308      * <code>optional string page_token = 19994697;</code>
1309      *
1310      * @return The bytes for pageToken.
1311      */
getPageTokenBytes()1312     public com.google.protobuf.ByteString getPageTokenBytes() {
1313       java.lang.Object ref = pageToken_;
1314       if (ref instanceof String) {
1315         com.google.protobuf.ByteString b =
1316             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1317         pageToken_ = b;
1318         return b;
1319       } else {
1320         return (com.google.protobuf.ByteString) ref;
1321       }
1322     }
1323     /**
1324      *
1325      *
1326      * <pre>
1327      * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1328      * </pre>
1329      *
1330      * <code>optional string page_token = 19994697;</code>
1331      *
1332      * @param value The pageToken to set.
1333      * @return This builder for chaining.
1334      */
setPageToken(java.lang.String value)1335     public Builder setPageToken(java.lang.String value) {
1336       if (value == null) {
1337         throw new NullPointerException();
1338       }
1339       pageToken_ = value;
1340       bitField0_ |= 0x00000008;
1341       onChanged();
1342       return this;
1343     }
1344     /**
1345      *
1346      *
1347      * <pre>
1348      * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1349      * </pre>
1350      *
1351      * <code>optional string page_token = 19994697;</code>
1352      *
1353      * @return This builder for chaining.
1354      */
clearPageToken()1355     public Builder clearPageToken() {
1356       pageToken_ = getDefaultInstance().getPageToken();
1357       bitField0_ = (bitField0_ & ~0x00000008);
1358       onChanged();
1359       return this;
1360     }
1361     /**
1362      *
1363      *
1364      * <pre>
1365      * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1366      * </pre>
1367      *
1368      * <code>optional string page_token = 19994697;</code>
1369      *
1370      * @param value The bytes for pageToken to set.
1371      * @return This builder for chaining.
1372      */
setPageTokenBytes(com.google.protobuf.ByteString value)1373     public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
1374       if (value == null) {
1375         throw new NullPointerException();
1376       }
1377       checkByteStringIsUtf8(value);
1378       pageToken_ = value;
1379       bitField0_ |= 0x00000008;
1380       onChanged();
1381       return this;
1382     }
1383 
1384     private java.lang.Object project_ = "";
1385     /**
1386      *
1387      *
1388      * <pre>
1389      * Project ID for this request.
1390      * </pre>
1391      *
1392      * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
1393      *
1394      * @return The project.
1395      */
getProject()1396     public java.lang.String getProject() {
1397       java.lang.Object ref = project_;
1398       if (!(ref instanceof java.lang.String)) {
1399         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1400         java.lang.String s = bs.toStringUtf8();
1401         project_ = s;
1402         return s;
1403       } else {
1404         return (java.lang.String) ref;
1405       }
1406     }
1407     /**
1408      *
1409      *
1410      * <pre>
1411      * Project ID for this request.
1412      * </pre>
1413      *
1414      * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
1415      *
1416      * @return The bytes for project.
1417      */
getProjectBytes()1418     public com.google.protobuf.ByteString getProjectBytes() {
1419       java.lang.Object ref = project_;
1420       if (ref instanceof String) {
1421         com.google.protobuf.ByteString b =
1422             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1423         project_ = b;
1424         return b;
1425       } else {
1426         return (com.google.protobuf.ByteString) ref;
1427       }
1428     }
1429     /**
1430      *
1431      *
1432      * <pre>
1433      * Project ID for this request.
1434      * </pre>
1435      *
1436      * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
1437      *
1438      * @param value The project to set.
1439      * @return This builder for chaining.
1440      */
setProject(java.lang.String value)1441     public Builder setProject(java.lang.String value) {
1442       if (value == null) {
1443         throw new NullPointerException();
1444       }
1445       project_ = value;
1446       bitField0_ |= 0x00000010;
1447       onChanged();
1448       return this;
1449     }
1450     /**
1451      *
1452      *
1453      * <pre>
1454      * Project ID for this request.
1455      * </pre>
1456      *
1457      * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
1458      *
1459      * @return This builder for chaining.
1460      */
clearProject()1461     public Builder clearProject() {
1462       project_ = getDefaultInstance().getProject();
1463       bitField0_ = (bitField0_ & ~0x00000010);
1464       onChanged();
1465       return this;
1466     }
1467     /**
1468      *
1469      *
1470      * <pre>
1471      * Project ID for this request.
1472      * </pre>
1473      *
1474      * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code>
1475      *
1476      * @param value The bytes for project to set.
1477      * @return This builder for chaining.
1478      */
setProjectBytes(com.google.protobuf.ByteString value)1479     public Builder setProjectBytes(com.google.protobuf.ByteString value) {
1480       if (value == null) {
1481         throw new NullPointerException();
1482       }
1483       checkByteStringIsUtf8(value);
1484       project_ = value;
1485       bitField0_ |= 0x00000010;
1486       onChanged();
1487       return this;
1488     }
1489 
1490     private java.lang.Object region_ = "";
1491     /**
1492      *
1493      *
1494      * <pre>
1495      * Name of the region for this request.
1496      * </pre>
1497      *
1498      * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
1499      *
1500      * @return The region.
1501      */
getRegion()1502     public java.lang.String getRegion() {
1503       java.lang.Object ref = region_;
1504       if (!(ref instanceof java.lang.String)) {
1505         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1506         java.lang.String s = bs.toStringUtf8();
1507         region_ = s;
1508         return s;
1509       } else {
1510         return (java.lang.String) ref;
1511       }
1512     }
1513     /**
1514      *
1515      *
1516      * <pre>
1517      * Name of the region for this request.
1518      * </pre>
1519      *
1520      * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
1521      *
1522      * @return The bytes for region.
1523      */
getRegionBytes()1524     public com.google.protobuf.ByteString getRegionBytes() {
1525       java.lang.Object ref = region_;
1526       if (ref instanceof String) {
1527         com.google.protobuf.ByteString b =
1528             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1529         region_ = b;
1530         return b;
1531       } else {
1532         return (com.google.protobuf.ByteString) ref;
1533       }
1534     }
1535     /**
1536      *
1537      *
1538      * <pre>
1539      * Name of the region for this request.
1540      * </pre>
1541      *
1542      * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
1543      *
1544      * @param value The region to set.
1545      * @return This builder for chaining.
1546      */
setRegion(java.lang.String value)1547     public Builder setRegion(java.lang.String value) {
1548       if (value == null) {
1549         throw new NullPointerException();
1550       }
1551       region_ = value;
1552       bitField0_ |= 0x00000020;
1553       onChanged();
1554       return this;
1555     }
1556     /**
1557      *
1558      *
1559      * <pre>
1560      * Name of the region for this request.
1561      * </pre>
1562      *
1563      * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
1564      *
1565      * @return This builder for chaining.
1566      */
clearRegion()1567     public Builder clearRegion() {
1568       region_ = getDefaultInstance().getRegion();
1569       bitField0_ = (bitField0_ & ~0x00000020);
1570       onChanged();
1571       return this;
1572     }
1573     /**
1574      *
1575      *
1576      * <pre>
1577      * Name of the region for this request.
1578      * </pre>
1579      *
1580      * <code>string region = 138946292 [(.google.api.field_behavior) = REQUIRED];</code>
1581      *
1582      * @param value The bytes for region to set.
1583      * @return This builder for chaining.
1584      */
setRegionBytes(com.google.protobuf.ByteString value)1585     public Builder setRegionBytes(com.google.protobuf.ByteString value) {
1586       if (value == null) {
1587         throw new NullPointerException();
1588       }
1589       checkByteStringIsUtf8(value);
1590       region_ = value;
1591       bitField0_ |= 0x00000020;
1592       onChanged();
1593       return this;
1594     }
1595 
1596     private boolean returnPartialSuccess_;
1597     /**
1598      *
1599      *
1600      * <pre>
1601      * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1602      * </pre>
1603      *
1604      * <code>optional bool return_partial_success = 517198390;</code>
1605      *
1606      * @return Whether the returnPartialSuccess field is set.
1607      */
1608     @java.lang.Override
hasReturnPartialSuccess()1609     public boolean hasReturnPartialSuccess() {
1610       return ((bitField0_ & 0x00000040) != 0);
1611     }
1612     /**
1613      *
1614      *
1615      * <pre>
1616      * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1617      * </pre>
1618      *
1619      * <code>optional bool return_partial_success = 517198390;</code>
1620      *
1621      * @return The returnPartialSuccess.
1622      */
1623     @java.lang.Override
getReturnPartialSuccess()1624     public boolean getReturnPartialSuccess() {
1625       return returnPartialSuccess_;
1626     }
1627     /**
1628      *
1629      *
1630      * <pre>
1631      * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1632      * </pre>
1633      *
1634      * <code>optional bool return_partial_success = 517198390;</code>
1635      *
1636      * @param value The returnPartialSuccess to set.
1637      * @return This builder for chaining.
1638      */
setReturnPartialSuccess(boolean value)1639     public Builder setReturnPartialSuccess(boolean value) {
1640 
1641       returnPartialSuccess_ = value;
1642       bitField0_ |= 0x00000040;
1643       onChanged();
1644       return this;
1645     }
1646     /**
1647      *
1648      *
1649      * <pre>
1650      * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1651      * </pre>
1652      *
1653      * <code>optional bool return_partial_success = 517198390;</code>
1654      *
1655      * @return This builder for chaining.
1656      */
clearReturnPartialSuccess()1657     public Builder clearReturnPartialSuccess() {
1658       bitField0_ = (bitField0_ & ~0x00000040);
1659       returnPartialSuccess_ = false;
1660       onChanged();
1661       return this;
1662     }
1663 
1664     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1665     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1666       return super.setUnknownFields(unknownFields);
1667     }
1668 
1669     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1670     public final Builder mergeUnknownFields(
1671         final com.google.protobuf.UnknownFieldSet unknownFields) {
1672       return super.mergeUnknownFields(unknownFields);
1673     }
1674 
1675     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListVpnGatewaysRequest)
1676   }
1677 
1678   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListVpnGatewaysRequest)
1679   private static final com.google.cloud.compute.v1.ListVpnGatewaysRequest DEFAULT_INSTANCE;
1680 
1681   static {
1682     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListVpnGatewaysRequest();
1683   }
1684 
getDefaultInstance()1685   public static com.google.cloud.compute.v1.ListVpnGatewaysRequest getDefaultInstance() {
1686     return DEFAULT_INSTANCE;
1687   }
1688 
1689   private static final com.google.protobuf.Parser<ListVpnGatewaysRequest> PARSER =
1690       new com.google.protobuf.AbstractParser<ListVpnGatewaysRequest>() {
1691         @java.lang.Override
1692         public ListVpnGatewaysRequest parsePartialFrom(
1693             com.google.protobuf.CodedInputStream input,
1694             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1695             throws com.google.protobuf.InvalidProtocolBufferException {
1696           Builder builder = newBuilder();
1697           try {
1698             builder.mergeFrom(input, extensionRegistry);
1699           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1700             throw e.setUnfinishedMessage(builder.buildPartial());
1701           } catch (com.google.protobuf.UninitializedMessageException e) {
1702             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1703           } catch (java.io.IOException e) {
1704             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1705                 .setUnfinishedMessage(builder.buildPartial());
1706           }
1707           return builder.buildPartial();
1708         }
1709       };
1710 
parser()1711   public static com.google.protobuf.Parser<ListVpnGatewaysRequest> parser() {
1712     return PARSER;
1713   }
1714 
1715   @java.lang.Override
getParserForType()1716   public com.google.protobuf.Parser<ListVpnGatewaysRequest> getParserForType() {
1717     return PARSER;
1718   }
1719 
1720   @java.lang.Override
getDefaultInstanceForType()1721   public com.google.cloud.compute.v1.ListVpnGatewaysRequest getDefaultInstanceForType() {
1722     return DEFAULT_INSTANCE;
1723   }
1724 }
1725