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