• 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 Routes.Delete. See the method description for details.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.DeleteRouteRequest}
29  */
30 public final class DeleteRouteRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteRouteRequest)
33     DeleteRouteRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use DeleteRouteRequest.newBuilder() to construct.
DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
DeleteRouteRequest()40   private DeleteRouteRequest() {
41     project_ = "";
42     requestId_ = "";
43     route_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new DeleteRouteRequest();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.compute.v1.Compute
59         .internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.compute.v1.Compute
66         .internal_static_google_cloud_compute_v1_DeleteRouteRequest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.compute.v1.DeleteRouteRequest.class,
69             com.google.cloud.compute.v1.DeleteRouteRequest.Builder.class);
70   }
71 
72   private int bitField0_;
73   public static final int PROJECT_FIELD_NUMBER = 227560217;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object project_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Project ID for this request.
82    * </pre>
83    *
84    * <code>
85    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
86    * </code>
87    *
88    * @return The project.
89    */
90   @java.lang.Override
getProject()91   public java.lang.String getProject() {
92     java.lang.Object ref = project_;
93     if (ref instanceof java.lang.String) {
94       return (java.lang.String) ref;
95     } else {
96       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
97       java.lang.String s = bs.toStringUtf8();
98       project_ = s;
99       return s;
100     }
101   }
102   /**
103    *
104    *
105    * <pre>
106    * Project ID for this request.
107    * </pre>
108    *
109    * <code>
110    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
111    * </code>
112    *
113    * @return The bytes for project.
114    */
115   @java.lang.Override
getProjectBytes()116   public com.google.protobuf.ByteString getProjectBytes() {
117     java.lang.Object ref = project_;
118     if (ref instanceof java.lang.String) {
119       com.google.protobuf.ByteString b =
120           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
121       project_ = b;
122       return b;
123     } else {
124       return (com.google.protobuf.ByteString) ref;
125     }
126   }
127 
128   public static final int REQUEST_ID_FIELD_NUMBER = 37109963;
129 
130   @SuppressWarnings("serial")
131   private volatile java.lang.Object requestId_ = "";
132   /**
133    *
134    *
135    * <pre>
136    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
137    * </pre>
138    *
139    * <code>optional string request_id = 37109963;</code>
140    *
141    * @return Whether the requestId field is set.
142    */
143   @java.lang.Override
hasRequestId()144   public boolean hasRequestId() {
145     return ((bitField0_ & 0x00000001) != 0);
146   }
147   /**
148    *
149    *
150    * <pre>
151    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
152    * </pre>
153    *
154    * <code>optional string request_id = 37109963;</code>
155    *
156    * @return The requestId.
157    */
158   @java.lang.Override
getRequestId()159   public java.lang.String getRequestId() {
160     java.lang.Object ref = requestId_;
161     if (ref instanceof java.lang.String) {
162       return (java.lang.String) ref;
163     } else {
164       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
165       java.lang.String s = bs.toStringUtf8();
166       requestId_ = s;
167       return s;
168     }
169   }
170   /**
171    *
172    *
173    * <pre>
174    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
175    * </pre>
176    *
177    * <code>optional string request_id = 37109963;</code>
178    *
179    * @return The bytes for requestId.
180    */
181   @java.lang.Override
getRequestIdBytes()182   public com.google.protobuf.ByteString getRequestIdBytes() {
183     java.lang.Object ref = requestId_;
184     if (ref instanceof java.lang.String) {
185       com.google.protobuf.ByteString b =
186           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
187       requestId_ = b;
188       return b;
189     } else {
190       return (com.google.protobuf.ByteString) ref;
191     }
192   }
193 
194   public static final int ROUTE_FIELD_NUMBER = 108704329;
195 
196   @SuppressWarnings("serial")
197   private volatile java.lang.Object route_ = "";
198   /**
199    *
200    *
201    * <pre>
202    * Name of the Route resource to delete.
203    * </pre>
204    *
205    * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
206    *
207    * @return The route.
208    */
209   @java.lang.Override
getRoute()210   public java.lang.String getRoute() {
211     java.lang.Object ref = route_;
212     if (ref instanceof java.lang.String) {
213       return (java.lang.String) ref;
214     } else {
215       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
216       java.lang.String s = bs.toStringUtf8();
217       route_ = s;
218       return s;
219     }
220   }
221   /**
222    *
223    *
224    * <pre>
225    * Name of the Route resource to delete.
226    * </pre>
227    *
228    * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
229    *
230    * @return The bytes for route.
231    */
232   @java.lang.Override
getRouteBytes()233   public com.google.protobuf.ByteString getRouteBytes() {
234     java.lang.Object ref = route_;
235     if (ref instanceof java.lang.String) {
236       com.google.protobuf.ByteString b =
237           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
238       route_ = b;
239       return b;
240     } else {
241       return (com.google.protobuf.ByteString) ref;
242     }
243   }
244 
245   private byte memoizedIsInitialized = -1;
246 
247   @java.lang.Override
isInitialized()248   public final boolean isInitialized() {
249     byte isInitialized = memoizedIsInitialized;
250     if (isInitialized == 1) return true;
251     if (isInitialized == 0) return false;
252 
253     memoizedIsInitialized = 1;
254     return true;
255   }
256 
257   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)258   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
259     if (((bitField0_ & 0x00000001) != 0)) {
260       com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_);
261     }
262     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(route_)) {
263       com.google.protobuf.GeneratedMessageV3.writeString(output, 108704329, route_);
264     }
265     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
266       com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
267     }
268     getUnknownFields().writeTo(output);
269   }
270 
271   @java.lang.Override
getSerializedSize()272   public int getSerializedSize() {
273     int size = memoizedSize;
274     if (size != -1) return size;
275 
276     size = 0;
277     if (((bitField0_ & 0x00000001) != 0)) {
278       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_);
279     }
280     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(route_)) {
281       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108704329, route_);
282     }
283     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
284       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
285     }
286     size += getUnknownFields().getSerializedSize();
287     memoizedSize = size;
288     return size;
289   }
290 
291   @java.lang.Override
equals(final java.lang.Object obj)292   public boolean equals(final java.lang.Object obj) {
293     if (obj == this) {
294       return true;
295     }
296     if (!(obj instanceof com.google.cloud.compute.v1.DeleteRouteRequest)) {
297       return super.equals(obj);
298     }
299     com.google.cloud.compute.v1.DeleteRouteRequest other =
300         (com.google.cloud.compute.v1.DeleteRouteRequest) obj;
301 
302     if (!getProject().equals(other.getProject())) return false;
303     if (hasRequestId() != other.hasRequestId()) return false;
304     if (hasRequestId()) {
305       if (!getRequestId().equals(other.getRequestId())) return false;
306     }
307     if (!getRoute().equals(other.getRoute())) return false;
308     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
309     return true;
310   }
311 
312   @java.lang.Override
hashCode()313   public int hashCode() {
314     if (memoizedHashCode != 0) {
315       return memoizedHashCode;
316     }
317     int hash = 41;
318     hash = (19 * hash) + getDescriptor().hashCode();
319     hash = (37 * hash) + PROJECT_FIELD_NUMBER;
320     hash = (53 * hash) + getProject().hashCode();
321     if (hasRequestId()) {
322       hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
323       hash = (53 * hash) + getRequestId().hashCode();
324     }
325     hash = (37 * hash) + ROUTE_FIELD_NUMBER;
326     hash = (53 * hash) + getRoute().hashCode();
327     hash = (29 * hash) + getUnknownFields().hashCode();
328     memoizedHashCode = hash;
329     return hash;
330   }
331 
parseFrom(java.nio.ByteBuffer data)332   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(java.nio.ByteBuffer data)
333       throws com.google.protobuf.InvalidProtocolBufferException {
334     return PARSER.parseFrom(data);
335   }
336 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)337   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
338       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
339       throws com.google.protobuf.InvalidProtocolBufferException {
340     return PARSER.parseFrom(data, extensionRegistry);
341   }
342 
parseFrom( com.google.protobuf.ByteString data)343   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
344       com.google.protobuf.ByteString data)
345       throws com.google.protobuf.InvalidProtocolBufferException {
346     return PARSER.parseFrom(data);
347   }
348 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)349   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
350       com.google.protobuf.ByteString data,
351       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
352       throws com.google.protobuf.InvalidProtocolBufferException {
353     return PARSER.parseFrom(data, extensionRegistry);
354   }
355 
parseFrom(byte[] data)356   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(byte[] data)
357       throws com.google.protobuf.InvalidProtocolBufferException {
358     return PARSER.parseFrom(data);
359   }
360 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)361   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
362       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
363       throws com.google.protobuf.InvalidProtocolBufferException {
364     return PARSER.parseFrom(data, extensionRegistry);
365   }
366 
parseFrom(java.io.InputStream input)367   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(java.io.InputStream input)
368       throws java.io.IOException {
369     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
370   }
371 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)372   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
373       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
374       throws java.io.IOException {
375     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
376         PARSER, input, extensionRegistry);
377   }
378 
parseDelimitedFrom( java.io.InputStream input)379   public static com.google.cloud.compute.v1.DeleteRouteRequest parseDelimitedFrom(
380       java.io.InputStream input) throws java.io.IOException {
381     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
382   }
383 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)384   public static com.google.cloud.compute.v1.DeleteRouteRequest parseDelimitedFrom(
385       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
386       throws java.io.IOException {
387     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
388         PARSER, input, extensionRegistry);
389   }
390 
parseFrom( com.google.protobuf.CodedInputStream input)391   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
392       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
393     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
394   }
395 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)396   public static com.google.cloud.compute.v1.DeleteRouteRequest parseFrom(
397       com.google.protobuf.CodedInputStream input,
398       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
399       throws java.io.IOException {
400     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
401         PARSER, input, extensionRegistry);
402   }
403 
404   @java.lang.Override
newBuilderForType()405   public Builder newBuilderForType() {
406     return newBuilder();
407   }
408 
newBuilder()409   public static Builder newBuilder() {
410     return DEFAULT_INSTANCE.toBuilder();
411   }
412 
newBuilder(com.google.cloud.compute.v1.DeleteRouteRequest prototype)413   public static Builder newBuilder(com.google.cloud.compute.v1.DeleteRouteRequest prototype) {
414     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
415   }
416 
417   @java.lang.Override
toBuilder()418   public Builder toBuilder() {
419     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
420   }
421 
422   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)423   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
424     Builder builder = new Builder(parent);
425     return builder;
426   }
427   /**
428    *
429    *
430    * <pre>
431    * A request message for Routes.Delete. See the method description for details.
432    * </pre>
433    *
434    * Protobuf type {@code google.cloud.compute.v1.DeleteRouteRequest}
435    */
436   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
437       implements
438       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteRouteRequest)
439       com.google.cloud.compute.v1.DeleteRouteRequestOrBuilder {
getDescriptor()440     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
441       return com.google.cloud.compute.v1.Compute
442           .internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor;
443     }
444 
445     @java.lang.Override
446     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()447         internalGetFieldAccessorTable() {
448       return com.google.cloud.compute.v1.Compute
449           .internal_static_google_cloud_compute_v1_DeleteRouteRequest_fieldAccessorTable
450           .ensureFieldAccessorsInitialized(
451               com.google.cloud.compute.v1.DeleteRouteRequest.class,
452               com.google.cloud.compute.v1.DeleteRouteRequest.Builder.class);
453     }
454 
455     // Construct using com.google.cloud.compute.v1.DeleteRouteRequest.newBuilder()
Builder()456     private Builder() {}
457 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)458     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
459       super(parent);
460     }
461 
462     @java.lang.Override
clear()463     public Builder clear() {
464       super.clear();
465       bitField0_ = 0;
466       project_ = "";
467       requestId_ = "";
468       route_ = "";
469       return this;
470     }
471 
472     @java.lang.Override
getDescriptorForType()473     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
474       return com.google.cloud.compute.v1.Compute
475           .internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor;
476     }
477 
478     @java.lang.Override
getDefaultInstanceForType()479     public com.google.cloud.compute.v1.DeleteRouteRequest getDefaultInstanceForType() {
480       return com.google.cloud.compute.v1.DeleteRouteRequest.getDefaultInstance();
481     }
482 
483     @java.lang.Override
build()484     public com.google.cloud.compute.v1.DeleteRouteRequest build() {
485       com.google.cloud.compute.v1.DeleteRouteRequest result = buildPartial();
486       if (!result.isInitialized()) {
487         throw newUninitializedMessageException(result);
488       }
489       return result;
490     }
491 
492     @java.lang.Override
buildPartial()493     public com.google.cloud.compute.v1.DeleteRouteRequest buildPartial() {
494       com.google.cloud.compute.v1.DeleteRouteRequest result =
495           new com.google.cloud.compute.v1.DeleteRouteRequest(this);
496       if (bitField0_ != 0) {
497         buildPartial0(result);
498       }
499       onBuilt();
500       return result;
501     }
502 
buildPartial0(com.google.cloud.compute.v1.DeleteRouteRequest result)503     private void buildPartial0(com.google.cloud.compute.v1.DeleteRouteRequest result) {
504       int from_bitField0_ = bitField0_;
505       if (((from_bitField0_ & 0x00000001) != 0)) {
506         result.project_ = project_;
507       }
508       int to_bitField0_ = 0;
509       if (((from_bitField0_ & 0x00000002) != 0)) {
510         result.requestId_ = requestId_;
511         to_bitField0_ |= 0x00000001;
512       }
513       if (((from_bitField0_ & 0x00000004) != 0)) {
514         result.route_ = route_;
515       }
516       result.bitField0_ |= to_bitField0_;
517     }
518 
519     @java.lang.Override
clone()520     public Builder clone() {
521       return super.clone();
522     }
523 
524     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)525     public Builder setField(
526         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
527       return super.setField(field, value);
528     }
529 
530     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)531     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
532       return super.clearField(field);
533     }
534 
535     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)536     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
537       return super.clearOneof(oneof);
538     }
539 
540     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)541     public Builder setRepeatedField(
542         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
543       return super.setRepeatedField(field, index, value);
544     }
545 
546     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)547     public Builder addRepeatedField(
548         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
549       return super.addRepeatedField(field, value);
550     }
551 
552     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)553     public Builder mergeFrom(com.google.protobuf.Message other) {
554       if (other instanceof com.google.cloud.compute.v1.DeleteRouteRequest) {
555         return mergeFrom((com.google.cloud.compute.v1.DeleteRouteRequest) other);
556       } else {
557         super.mergeFrom(other);
558         return this;
559       }
560     }
561 
mergeFrom(com.google.cloud.compute.v1.DeleteRouteRequest other)562     public Builder mergeFrom(com.google.cloud.compute.v1.DeleteRouteRequest other) {
563       if (other == com.google.cloud.compute.v1.DeleteRouteRequest.getDefaultInstance()) return this;
564       if (!other.getProject().isEmpty()) {
565         project_ = other.project_;
566         bitField0_ |= 0x00000001;
567         onChanged();
568       }
569       if (other.hasRequestId()) {
570         requestId_ = other.requestId_;
571         bitField0_ |= 0x00000002;
572         onChanged();
573       }
574       if (!other.getRoute().isEmpty()) {
575         route_ = other.route_;
576         bitField0_ |= 0x00000004;
577         onChanged();
578       }
579       this.mergeUnknownFields(other.getUnknownFields());
580       onChanged();
581       return this;
582     }
583 
584     @java.lang.Override
isInitialized()585     public final boolean isInitialized() {
586       return true;
587     }
588 
589     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)590     public Builder mergeFrom(
591         com.google.protobuf.CodedInputStream input,
592         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
593         throws java.io.IOException {
594       if (extensionRegistry == null) {
595         throw new java.lang.NullPointerException();
596       }
597       try {
598         boolean done = false;
599         while (!done) {
600           int tag = input.readTag();
601           switch (tag) {
602             case 0:
603               done = true;
604               break;
605             case 296879706:
606               {
607                 requestId_ = input.readStringRequireUtf8();
608                 bitField0_ |= 0x00000002;
609                 break;
610               } // case 296879706
611             case 869634634:
612               {
613                 route_ = input.readStringRequireUtf8();
614                 bitField0_ |= 0x00000004;
615                 break;
616               } // case 869634634
617             case 1820481738:
618               {
619                 project_ = input.readStringRequireUtf8();
620                 bitField0_ |= 0x00000001;
621                 break;
622               } // case 1820481738
623             default:
624               {
625                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
626                   done = true; // was an endgroup tag
627                 }
628                 break;
629               } // default:
630           } // switch (tag)
631         } // while (!done)
632       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
633         throw e.unwrapIOException();
634       } finally {
635         onChanged();
636       } // finally
637       return this;
638     }
639 
640     private int bitField0_;
641 
642     private java.lang.Object project_ = "";
643     /**
644      *
645      *
646      * <pre>
647      * Project ID for this request.
648      * </pre>
649      *
650      * <code>
651      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
652      * </code>
653      *
654      * @return The project.
655      */
getProject()656     public java.lang.String getProject() {
657       java.lang.Object ref = project_;
658       if (!(ref instanceof java.lang.String)) {
659         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
660         java.lang.String s = bs.toStringUtf8();
661         project_ = s;
662         return s;
663       } else {
664         return (java.lang.String) ref;
665       }
666     }
667     /**
668      *
669      *
670      * <pre>
671      * Project ID for this request.
672      * </pre>
673      *
674      * <code>
675      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
676      * </code>
677      *
678      * @return The bytes for project.
679      */
getProjectBytes()680     public com.google.protobuf.ByteString getProjectBytes() {
681       java.lang.Object ref = project_;
682       if (ref instanceof String) {
683         com.google.protobuf.ByteString b =
684             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
685         project_ = b;
686         return b;
687       } else {
688         return (com.google.protobuf.ByteString) ref;
689       }
690     }
691     /**
692      *
693      *
694      * <pre>
695      * Project ID for this request.
696      * </pre>
697      *
698      * <code>
699      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
700      * </code>
701      *
702      * @param value The project to set.
703      * @return This builder for chaining.
704      */
setProject(java.lang.String value)705     public Builder setProject(java.lang.String value) {
706       if (value == null) {
707         throw new NullPointerException();
708       }
709       project_ = value;
710       bitField0_ |= 0x00000001;
711       onChanged();
712       return this;
713     }
714     /**
715      *
716      *
717      * <pre>
718      * Project ID for this request.
719      * </pre>
720      *
721      * <code>
722      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
723      * </code>
724      *
725      * @return This builder for chaining.
726      */
clearProject()727     public Builder clearProject() {
728       project_ = getDefaultInstance().getProject();
729       bitField0_ = (bitField0_ & ~0x00000001);
730       onChanged();
731       return this;
732     }
733     /**
734      *
735      *
736      * <pre>
737      * Project ID for this request.
738      * </pre>
739      *
740      * <code>
741      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
742      * </code>
743      *
744      * @param value The bytes for project to set.
745      * @return This builder for chaining.
746      */
setProjectBytes(com.google.protobuf.ByteString value)747     public Builder setProjectBytes(com.google.protobuf.ByteString value) {
748       if (value == null) {
749         throw new NullPointerException();
750       }
751       checkByteStringIsUtf8(value);
752       project_ = value;
753       bitField0_ |= 0x00000001;
754       onChanged();
755       return this;
756     }
757 
758     private java.lang.Object requestId_ = "";
759     /**
760      *
761      *
762      * <pre>
763      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
764      * </pre>
765      *
766      * <code>optional string request_id = 37109963;</code>
767      *
768      * @return Whether the requestId field is set.
769      */
hasRequestId()770     public boolean hasRequestId() {
771       return ((bitField0_ & 0x00000002) != 0);
772     }
773     /**
774      *
775      *
776      * <pre>
777      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
778      * </pre>
779      *
780      * <code>optional string request_id = 37109963;</code>
781      *
782      * @return The requestId.
783      */
getRequestId()784     public java.lang.String getRequestId() {
785       java.lang.Object ref = requestId_;
786       if (!(ref instanceof java.lang.String)) {
787         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
788         java.lang.String s = bs.toStringUtf8();
789         requestId_ = s;
790         return s;
791       } else {
792         return (java.lang.String) ref;
793       }
794     }
795     /**
796      *
797      *
798      * <pre>
799      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
800      * </pre>
801      *
802      * <code>optional string request_id = 37109963;</code>
803      *
804      * @return The bytes for requestId.
805      */
getRequestIdBytes()806     public com.google.protobuf.ByteString getRequestIdBytes() {
807       java.lang.Object ref = requestId_;
808       if (ref instanceof String) {
809         com.google.protobuf.ByteString b =
810             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
811         requestId_ = b;
812         return b;
813       } else {
814         return (com.google.protobuf.ByteString) ref;
815       }
816     }
817     /**
818      *
819      *
820      * <pre>
821      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
822      * </pre>
823      *
824      * <code>optional string request_id = 37109963;</code>
825      *
826      * @param value The requestId to set.
827      * @return This builder for chaining.
828      */
setRequestId(java.lang.String value)829     public Builder setRequestId(java.lang.String value) {
830       if (value == null) {
831         throw new NullPointerException();
832       }
833       requestId_ = value;
834       bitField0_ |= 0x00000002;
835       onChanged();
836       return this;
837     }
838     /**
839      *
840      *
841      * <pre>
842      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
843      * </pre>
844      *
845      * <code>optional string request_id = 37109963;</code>
846      *
847      * @return This builder for chaining.
848      */
clearRequestId()849     public Builder clearRequestId() {
850       requestId_ = getDefaultInstance().getRequestId();
851       bitField0_ = (bitField0_ & ~0x00000002);
852       onChanged();
853       return this;
854     }
855     /**
856      *
857      *
858      * <pre>
859      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
860      * </pre>
861      *
862      * <code>optional string request_id = 37109963;</code>
863      *
864      * @param value The bytes for requestId to set.
865      * @return This builder for chaining.
866      */
setRequestIdBytes(com.google.protobuf.ByteString value)867     public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
868       if (value == null) {
869         throw new NullPointerException();
870       }
871       checkByteStringIsUtf8(value);
872       requestId_ = value;
873       bitField0_ |= 0x00000002;
874       onChanged();
875       return this;
876     }
877 
878     private java.lang.Object route_ = "";
879     /**
880      *
881      *
882      * <pre>
883      * Name of the Route resource to delete.
884      * </pre>
885      *
886      * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
887      *
888      * @return The route.
889      */
getRoute()890     public java.lang.String getRoute() {
891       java.lang.Object ref = route_;
892       if (!(ref instanceof java.lang.String)) {
893         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
894         java.lang.String s = bs.toStringUtf8();
895         route_ = s;
896         return s;
897       } else {
898         return (java.lang.String) ref;
899       }
900     }
901     /**
902      *
903      *
904      * <pre>
905      * Name of the Route resource to delete.
906      * </pre>
907      *
908      * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
909      *
910      * @return The bytes for route.
911      */
getRouteBytes()912     public com.google.protobuf.ByteString getRouteBytes() {
913       java.lang.Object ref = route_;
914       if (ref instanceof String) {
915         com.google.protobuf.ByteString b =
916             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
917         route_ = b;
918         return b;
919       } else {
920         return (com.google.protobuf.ByteString) ref;
921       }
922     }
923     /**
924      *
925      *
926      * <pre>
927      * Name of the Route resource to delete.
928      * </pre>
929      *
930      * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
931      *
932      * @param value The route to set.
933      * @return This builder for chaining.
934      */
setRoute(java.lang.String value)935     public Builder setRoute(java.lang.String value) {
936       if (value == null) {
937         throw new NullPointerException();
938       }
939       route_ = value;
940       bitField0_ |= 0x00000004;
941       onChanged();
942       return this;
943     }
944     /**
945      *
946      *
947      * <pre>
948      * Name of the Route resource to delete.
949      * </pre>
950      *
951      * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
952      *
953      * @return This builder for chaining.
954      */
clearRoute()955     public Builder clearRoute() {
956       route_ = getDefaultInstance().getRoute();
957       bitField0_ = (bitField0_ & ~0x00000004);
958       onChanged();
959       return this;
960     }
961     /**
962      *
963      *
964      * <pre>
965      * Name of the Route resource to delete.
966      * </pre>
967      *
968      * <code>string route = 108704329 [(.google.api.field_behavior) = REQUIRED];</code>
969      *
970      * @param value The bytes for route to set.
971      * @return This builder for chaining.
972      */
setRouteBytes(com.google.protobuf.ByteString value)973     public Builder setRouteBytes(com.google.protobuf.ByteString value) {
974       if (value == null) {
975         throw new NullPointerException();
976       }
977       checkByteStringIsUtf8(value);
978       route_ = value;
979       bitField0_ |= 0x00000004;
980       onChanged();
981       return this;
982     }
983 
984     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)985     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
986       return super.setUnknownFields(unknownFields);
987     }
988 
989     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)990     public final Builder mergeUnknownFields(
991         final com.google.protobuf.UnknownFieldSet unknownFields) {
992       return super.mergeUnknownFields(unknownFields);
993     }
994 
995     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteRouteRequest)
996   }
997 
998   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteRouteRequest)
999   private static final com.google.cloud.compute.v1.DeleteRouteRequest DEFAULT_INSTANCE;
1000 
1001   static {
1002     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteRouteRequest();
1003   }
1004 
getDefaultInstance()1005   public static com.google.cloud.compute.v1.DeleteRouteRequest getDefaultInstance() {
1006     return DEFAULT_INSTANCE;
1007   }
1008 
1009   private static final com.google.protobuf.Parser<DeleteRouteRequest> PARSER =
1010       new com.google.protobuf.AbstractParser<DeleteRouteRequest>() {
1011         @java.lang.Override
1012         public DeleteRouteRequest parsePartialFrom(
1013             com.google.protobuf.CodedInputStream input,
1014             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1015             throws com.google.protobuf.InvalidProtocolBufferException {
1016           Builder builder = newBuilder();
1017           try {
1018             builder.mergeFrom(input, extensionRegistry);
1019           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1020             throw e.setUnfinishedMessage(builder.buildPartial());
1021           } catch (com.google.protobuf.UninitializedMessageException e) {
1022             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1023           } catch (java.io.IOException e) {
1024             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1025                 .setUnfinishedMessage(builder.buildPartial());
1026           }
1027           return builder.buildPartial();
1028         }
1029       };
1030 
parser()1031   public static com.google.protobuf.Parser<DeleteRouteRequest> parser() {
1032     return PARSER;
1033   }
1034 
1035   @java.lang.Override
getParserForType()1036   public com.google.protobuf.Parser<DeleteRouteRequest> getParserForType() {
1037     return PARSER;
1038   }
1039 
1040   @java.lang.Override
getDefaultInstanceForType()1041   public com.google.cloud.compute.v1.DeleteRouteRequest getDefaultInstanceForType() {
1042     return DEFAULT_INSTANCE;
1043   }
1044 }
1045