• 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  * Message containing what to include in the cache key for a request for Cloud CDN.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.CacheKeyPolicy}
29  */
30 public final class CacheKeyPolicy extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.CacheKeyPolicy)
33     CacheKeyPolicyOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use CacheKeyPolicy.newBuilder() to construct.
CacheKeyPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private CacheKeyPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
CacheKeyPolicy()40   private CacheKeyPolicy() {
41     includeHttpHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
42     includeNamedCookies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
43     queryStringBlacklist_ = com.google.protobuf.LazyStringArrayList.EMPTY;
44     queryStringWhitelist_ = com.google.protobuf.LazyStringArrayList.EMPTY;
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new CacheKeyPolicy();
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_CacheKeyPolicy_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_CacheKeyPolicy_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.compute.v1.CacheKeyPolicy.class,
70             com.google.cloud.compute.v1.CacheKeyPolicy.Builder.class);
71   }
72 
73   private int bitField0_;
74   public static final int INCLUDE_HOST_FIELD_NUMBER = 486867679;
75   private boolean includeHost_ = false;
76   /**
77    *
78    *
79    * <pre>
80    * If true, requests to different hosts will be cached separately.
81    * </pre>
82    *
83    * <code>optional bool include_host = 486867679;</code>
84    *
85    * @return Whether the includeHost field is set.
86    */
87   @java.lang.Override
hasIncludeHost()88   public boolean hasIncludeHost() {
89     return ((bitField0_ & 0x00000001) != 0);
90   }
91   /**
92    *
93    *
94    * <pre>
95    * If true, requests to different hosts will be cached separately.
96    * </pre>
97    *
98    * <code>optional bool include_host = 486867679;</code>
99    *
100    * @return The includeHost.
101    */
102   @java.lang.Override
getIncludeHost()103   public boolean getIncludeHost() {
104     return includeHost_;
105   }
106 
107   public static final int INCLUDE_HTTP_HEADERS_FIELD_NUMBER = 2489606;
108 
109   @SuppressWarnings("serial")
110   private com.google.protobuf.LazyStringList includeHttpHeaders_;
111   /**
112    *
113    *
114    * <pre>
115    * Allows HTTP request headers (by name) to be used in the cache key.
116    * </pre>
117    *
118    * <code>repeated string include_http_headers = 2489606;</code>
119    *
120    * @return A list containing the includeHttpHeaders.
121    */
getIncludeHttpHeadersList()122   public com.google.protobuf.ProtocolStringList getIncludeHttpHeadersList() {
123     return includeHttpHeaders_;
124   }
125   /**
126    *
127    *
128    * <pre>
129    * Allows HTTP request headers (by name) to be used in the cache key.
130    * </pre>
131    *
132    * <code>repeated string include_http_headers = 2489606;</code>
133    *
134    * @return The count of includeHttpHeaders.
135    */
getIncludeHttpHeadersCount()136   public int getIncludeHttpHeadersCount() {
137     return includeHttpHeaders_.size();
138   }
139   /**
140    *
141    *
142    * <pre>
143    * Allows HTTP request headers (by name) to be used in the cache key.
144    * </pre>
145    *
146    * <code>repeated string include_http_headers = 2489606;</code>
147    *
148    * @param index The index of the element to return.
149    * @return The includeHttpHeaders at the given index.
150    */
getIncludeHttpHeaders(int index)151   public java.lang.String getIncludeHttpHeaders(int index) {
152     return includeHttpHeaders_.get(index);
153   }
154   /**
155    *
156    *
157    * <pre>
158    * Allows HTTP request headers (by name) to be used in the cache key.
159    * </pre>
160    *
161    * <code>repeated string include_http_headers = 2489606;</code>
162    *
163    * @param index The index of the value to return.
164    * @return The bytes of the includeHttpHeaders at the given index.
165    */
getIncludeHttpHeadersBytes(int index)166   public com.google.protobuf.ByteString getIncludeHttpHeadersBytes(int index) {
167     return includeHttpHeaders_.getByteString(index);
168   }
169 
170   public static final int INCLUDE_NAMED_COOKIES_FIELD_NUMBER = 87316530;
171 
172   @SuppressWarnings("serial")
173   private com.google.protobuf.LazyStringList includeNamedCookies_;
174   /**
175    *
176    *
177    * <pre>
178    * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
179    * </pre>
180    *
181    * <code>repeated string include_named_cookies = 87316530;</code>
182    *
183    * @return A list containing the includeNamedCookies.
184    */
getIncludeNamedCookiesList()185   public com.google.protobuf.ProtocolStringList getIncludeNamedCookiesList() {
186     return includeNamedCookies_;
187   }
188   /**
189    *
190    *
191    * <pre>
192    * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
193    * </pre>
194    *
195    * <code>repeated string include_named_cookies = 87316530;</code>
196    *
197    * @return The count of includeNamedCookies.
198    */
getIncludeNamedCookiesCount()199   public int getIncludeNamedCookiesCount() {
200     return includeNamedCookies_.size();
201   }
202   /**
203    *
204    *
205    * <pre>
206    * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
207    * </pre>
208    *
209    * <code>repeated string include_named_cookies = 87316530;</code>
210    *
211    * @param index The index of the element to return.
212    * @return The includeNamedCookies at the given index.
213    */
getIncludeNamedCookies(int index)214   public java.lang.String getIncludeNamedCookies(int index) {
215     return includeNamedCookies_.get(index);
216   }
217   /**
218    *
219    *
220    * <pre>
221    * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
222    * </pre>
223    *
224    * <code>repeated string include_named_cookies = 87316530;</code>
225    *
226    * @param index The index of the value to return.
227    * @return The bytes of the includeNamedCookies at the given index.
228    */
getIncludeNamedCookiesBytes(int index)229   public com.google.protobuf.ByteString getIncludeNamedCookiesBytes(int index) {
230     return includeNamedCookies_.getByteString(index);
231   }
232 
233   public static final int INCLUDE_PROTOCOL_FIELD_NUMBER = 303507535;
234   private boolean includeProtocol_ = false;
235   /**
236    *
237    *
238    * <pre>
239    * If true, http and https requests will be cached separately.
240    * </pre>
241    *
242    * <code>optional bool include_protocol = 303507535;</code>
243    *
244    * @return Whether the includeProtocol field is set.
245    */
246   @java.lang.Override
hasIncludeProtocol()247   public boolean hasIncludeProtocol() {
248     return ((bitField0_ & 0x00000002) != 0);
249   }
250   /**
251    *
252    *
253    * <pre>
254    * If true, http and https requests will be cached separately.
255    * </pre>
256    *
257    * <code>optional bool include_protocol = 303507535;</code>
258    *
259    * @return The includeProtocol.
260    */
261   @java.lang.Override
getIncludeProtocol()262   public boolean getIncludeProtocol() {
263     return includeProtocol_;
264   }
265 
266   public static final int INCLUDE_QUERY_STRING_FIELD_NUMBER = 474036639;
267   private boolean includeQueryString_ = false;
268   /**
269    *
270    *
271    * <pre>
272    * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
273    * </pre>
274    *
275    * <code>optional bool include_query_string = 474036639;</code>
276    *
277    * @return Whether the includeQueryString field is set.
278    */
279   @java.lang.Override
hasIncludeQueryString()280   public boolean hasIncludeQueryString() {
281     return ((bitField0_ & 0x00000004) != 0);
282   }
283   /**
284    *
285    *
286    * <pre>
287    * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
288    * </pre>
289    *
290    * <code>optional bool include_query_string = 474036639;</code>
291    *
292    * @return The includeQueryString.
293    */
294   @java.lang.Override
getIncludeQueryString()295   public boolean getIncludeQueryString() {
296     return includeQueryString_;
297   }
298 
299   public static final int QUERY_STRING_BLACKLIST_FIELD_NUMBER = 354964742;
300 
301   @SuppressWarnings("serial")
302   private com.google.protobuf.LazyStringList queryStringBlacklist_;
303   /**
304    *
305    *
306    * <pre>
307    * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
308    * </pre>
309    *
310    * <code>repeated string query_string_blacklist = 354964742;</code>
311    *
312    * @return A list containing the queryStringBlacklist.
313    */
getQueryStringBlacklistList()314   public com.google.protobuf.ProtocolStringList getQueryStringBlacklistList() {
315     return queryStringBlacklist_;
316   }
317   /**
318    *
319    *
320    * <pre>
321    * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
322    * </pre>
323    *
324    * <code>repeated string query_string_blacklist = 354964742;</code>
325    *
326    * @return The count of queryStringBlacklist.
327    */
getQueryStringBlacklistCount()328   public int getQueryStringBlacklistCount() {
329     return queryStringBlacklist_.size();
330   }
331   /**
332    *
333    *
334    * <pre>
335    * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
336    * </pre>
337    *
338    * <code>repeated string query_string_blacklist = 354964742;</code>
339    *
340    * @param index The index of the element to return.
341    * @return The queryStringBlacklist at the given index.
342    */
getQueryStringBlacklist(int index)343   public java.lang.String getQueryStringBlacklist(int index) {
344     return queryStringBlacklist_.get(index);
345   }
346   /**
347    *
348    *
349    * <pre>
350    * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
351    * </pre>
352    *
353    * <code>repeated string query_string_blacklist = 354964742;</code>
354    *
355    * @param index The index of the value to return.
356    * @return The bytes of the queryStringBlacklist at the given index.
357    */
getQueryStringBlacklistBytes(int index)358   public com.google.protobuf.ByteString getQueryStringBlacklistBytes(int index) {
359     return queryStringBlacklist_.getByteString(index);
360   }
361 
362   public static final int QUERY_STRING_WHITELIST_FIELD_NUMBER = 52456496;
363 
364   @SuppressWarnings("serial")
365   private com.google.protobuf.LazyStringList queryStringWhitelist_;
366   /**
367    *
368    *
369    * <pre>
370    * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
371    * </pre>
372    *
373    * <code>repeated string query_string_whitelist = 52456496;</code>
374    *
375    * @return A list containing the queryStringWhitelist.
376    */
getQueryStringWhitelistList()377   public com.google.protobuf.ProtocolStringList getQueryStringWhitelistList() {
378     return queryStringWhitelist_;
379   }
380   /**
381    *
382    *
383    * <pre>
384    * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
385    * </pre>
386    *
387    * <code>repeated string query_string_whitelist = 52456496;</code>
388    *
389    * @return The count of queryStringWhitelist.
390    */
getQueryStringWhitelistCount()391   public int getQueryStringWhitelistCount() {
392     return queryStringWhitelist_.size();
393   }
394   /**
395    *
396    *
397    * <pre>
398    * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
399    * </pre>
400    *
401    * <code>repeated string query_string_whitelist = 52456496;</code>
402    *
403    * @param index The index of the element to return.
404    * @return The queryStringWhitelist at the given index.
405    */
getQueryStringWhitelist(int index)406   public java.lang.String getQueryStringWhitelist(int index) {
407     return queryStringWhitelist_.get(index);
408   }
409   /**
410    *
411    *
412    * <pre>
413    * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
414    * </pre>
415    *
416    * <code>repeated string query_string_whitelist = 52456496;</code>
417    *
418    * @param index The index of the value to return.
419    * @return The bytes of the queryStringWhitelist at the given index.
420    */
getQueryStringWhitelistBytes(int index)421   public com.google.protobuf.ByteString getQueryStringWhitelistBytes(int index) {
422     return queryStringWhitelist_.getByteString(index);
423   }
424 
425   private byte memoizedIsInitialized = -1;
426 
427   @java.lang.Override
isInitialized()428   public final boolean isInitialized() {
429     byte isInitialized = memoizedIsInitialized;
430     if (isInitialized == 1) return true;
431     if (isInitialized == 0) return false;
432 
433     memoizedIsInitialized = 1;
434     return true;
435   }
436 
437   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)438   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
439     for (int i = 0; i < includeHttpHeaders_.size(); i++) {
440       com.google.protobuf.GeneratedMessageV3.writeString(
441           output, 2489606, includeHttpHeaders_.getRaw(i));
442     }
443     for (int i = 0; i < queryStringWhitelist_.size(); i++) {
444       com.google.protobuf.GeneratedMessageV3.writeString(
445           output, 52456496, queryStringWhitelist_.getRaw(i));
446     }
447     for (int i = 0; i < includeNamedCookies_.size(); i++) {
448       com.google.protobuf.GeneratedMessageV3.writeString(
449           output, 87316530, includeNamedCookies_.getRaw(i));
450     }
451     if (((bitField0_ & 0x00000002) != 0)) {
452       output.writeBool(303507535, includeProtocol_);
453     }
454     for (int i = 0; i < queryStringBlacklist_.size(); i++) {
455       com.google.protobuf.GeneratedMessageV3.writeString(
456           output, 354964742, queryStringBlacklist_.getRaw(i));
457     }
458     if (((bitField0_ & 0x00000004) != 0)) {
459       output.writeBool(474036639, includeQueryString_);
460     }
461     if (((bitField0_ & 0x00000001) != 0)) {
462       output.writeBool(486867679, includeHost_);
463     }
464     getUnknownFields().writeTo(output);
465   }
466 
467   @java.lang.Override
getSerializedSize()468   public int getSerializedSize() {
469     int size = memoizedSize;
470     if (size != -1) return size;
471 
472     size = 0;
473     {
474       int dataSize = 0;
475       for (int i = 0; i < includeHttpHeaders_.size(); i++) {
476         dataSize += computeStringSizeNoTag(includeHttpHeaders_.getRaw(i));
477       }
478       size += dataSize;
479       size += 4 * getIncludeHttpHeadersList().size();
480     }
481     {
482       int dataSize = 0;
483       for (int i = 0; i < queryStringWhitelist_.size(); i++) {
484         dataSize += computeStringSizeNoTag(queryStringWhitelist_.getRaw(i));
485       }
486       size += dataSize;
487       size += 5 * getQueryStringWhitelistList().size();
488     }
489     {
490       int dataSize = 0;
491       for (int i = 0; i < includeNamedCookies_.size(); i++) {
492         dataSize += computeStringSizeNoTag(includeNamedCookies_.getRaw(i));
493       }
494       size += dataSize;
495       size += 5 * getIncludeNamedCookiesList().size();
496     }
497     if (((bitField0_ & 0x00000002) != 0)) {
498       size += com.google.protobuf.CodedOutputStream.computeBoolSize(303507535, includeProtocol_);
499     }
500     {
501       int dataSize = 0;
502       for (int i = 0; i < queryStringBlacklist_.size(); i++) {
503         dataSize += computeStringSizeNoTag(queryStringBlacklist_.getRaw(i));
504       }
505       size += dataSize;
506       size += 5 * getQueryStringBlacklistList().size();
507     }
508     if (((bitField0_ & 0x00000004) != 0)) {
509       size += com.google.protobuf.CodedOutputStream.computeBoolSize(474036639, includeQueryString_);
510     }
511     if (((bitField0_ & 0x00000001) != 0)) {
512       size += com.google.protobuf.CodedOutputStream.computeBoolSize(486867679, includeHost_);
513     }
514     size += getUnknownFields().getSerializedSize();
515     memoizedSize = size;
516     return size;
517   }
518 
519   @java.lang.Override
equals(final java.lang.Object obj)520   public boolean equals(final java.lang.Object obj) {
521     if (obj == this) {
522       return true;
523     }
524     if (!(obj instanceof com.google.cloud.compute.v1.CacheKeyPolicy)) {
525       return super.equals(obj);
526     }
527     com.google.cloud.compute.v1.CacheKeyPolicy other =
528         (com.google.cloud.compute.v1.CacheKeyPolicy) obj;
529 
530     if (hasIncludeHost() != other.hasIncludeHost()) return false;
531     if (hasIncludeHost()) {
532       if (getIncludeHost() != other.getIncludeHost()) return false;
533     }
534     if (!getIncludeHttpHeadersList().equals(other.getIncludeHttpHeadersList())) return false;
535     if (!getIncludeNamedCookiesList().equals(other.getIncludeNamedCookiesList())) return false;
536     if (hasIncludeProtocol() != other.hasIncludeProtocol()) return false;
537     if (hasIncludeProtocol()) {
538       if (getIncludeProtocol() != other.getIncludeProtocol()) return false;
539     }
540     if (hasIncludeQueryString() != other.hasIncludeQueryString()) return false;
541     if (hasIncludeQueryString()) {
542       if (getIncludeQueryString() != other.getIncludeQueryString()) return false;
543     }
544     if (!getQueryStringBlacklistList().equals(other.getQueryStringBlacklistList())) return false;
545     if (!getQueryStringWhitelistList().equals(other.getQueryStringWhitelistList())) return false;
546     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
547     return true;
548   }
549 
550   @java.lang.Override
hashCode()551   public int hashCode() {
552     if (memoizedHashCode != 0) {
553       return memoizedHashCode;
554     }
555     int hash = 41;
556     hash = (19 * hash) + getDescriptor().hashCode();
557     if (hasIncludeHost()) {
558       hash = (37 * hash) + INCLUDE_HOST_FIELD_NUMBER;
559       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeHost());
560     }
561     if (getIncludeHttpHeadersCount() > 0) {
562       hash = (37 * hash) + INCLUDE_HTTP_HEADERS_FIELD_NUMBER;
563       hash = (53 * hash) + getIncludeHttpHeadersList().hashCode();
564     }
565     if (getIncludeNamedCookiesCount() > 0) {
566       hash = (37 * hash) + INCLUDE_NAMED_COOKIES_FIELD_NUMBER;
567       hash = (53 * hash) + getIncludeNamedCookiesList().hashCode();
568     }
569     if (hasIncludeProtocol()) {
570       hash = (37 * hash) + INCLUDE_PROTOCOL_FIELD_NUMBER;
571       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeProtocol());
572     }
573     if (hasIncludeQueryString()) {
574       hash = (37 * hash) + INCLUDE_QUERY_STRING_FIELD_NUMBER;
575       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeQueryString());
576     }
577     if (getQueryStringBlacklistCount() > 0) {
578       hash = (37 * hash) + QUERY_STRING_BLACKLIST_FIELD_NUMBER;
579       hash = (53 * hash) + getQueryStringBlacklistList().hashCode();
580     }
581     if (getQueryStringWhitelistCount() > 0) {
582       hash = (37 * hash) + QUERY_STRING_WHITELIST_FIELD_NUMBER;
583       hash = (53 * hash) + getQueryStringWhitelistList().hashCode();
584     }
585     hash = (29 * hash) + getUnknownFields().hashCode();
586     memoizedHashCode = hash;
587     return hash;
588   }
589 
parseFrom(java.nio.ByteBuffer data)590   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(java.nio.ByteBuffer data)
591       throws com.google.protobuf.InvalidProtocolBufferException {
592     return PARSER.parseFrom(data);
593   }
594 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)595   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
596       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
597       throws com.google.protobuf.InvalidProtocolBufferException {
598     return PARSER.parseFrom(data, extensionRegistry);
599   }
600 
parseFrom( com.google.protobuf.ByteString data)601   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
602       com.google.protobuf.ByteString data)
603       throws com.google.protobuf.InvalidProtocolBufferException {
604     return PARSER.parseFrom(data);
605   }
606 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)607   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
608       com.google.protobuf.ByteString data,
609       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
610       throws com.google.protobuf.InvalidProtocolBufferException {
611     return PARSER.parseFrom(data, extensionRegistry);
612   }
613 
parseFrom(byte[] data)614   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(byte[] data)
615       throws com.google.protobuf.InvalidProtocolBufferException {
616     return PARSER.parseFrom(data);
617   }
618 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)619   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
620       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
621       throws com.google.protobuf.InvalidProtocolBufferException {
622     return PARSER.parseFrom(data, extensionRegistry);
623   }
624 
parseFrom(java.io.InputStream input)625   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(java.io.InputStream input)
626       throws java.io.IOException {
627     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
628   }
629 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)630   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
631       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
632       throws java.io.IOException {
633     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
634         PARSER, input, extensionRegistry);
635   }
636 
parseDelimitedFrom( java.io.InputStream input)637   public static com.google.cloud.compute.v1.CacheKeyPolicy parseDelimitedFrom(
638       java.io.InputStream input) throws java.io.IOException {
639     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
640   }
641 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)642   public static com.google.cloud.compute.v1.CacheKeyPolicy parseDelimitedFrom(
643       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
644       throws java.io.IOException {
645     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
646         PARSER, input, extensionRegistry);
647   }
648 
parseFrom( com.google.protobuf.CodedInputStream input)649   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
650       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
651     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
652   }
653 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)654   public static com.google.cloud.compute.v1.CacheKeyPolicy parseFrom(
655       com.google.protobuf.CodedInputStream input,
656       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
657       throws java.io.IOException {
658     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
659         PARSER, input, extensionRegistry);
660   }
661 
662   @java.lang.Override
newBuilderForType()663   public Builder newBuilderForType() {
664     return newBuilder();
665   }
666 
newBuilder()667   public static Builder newBuilder() {
668     return DEFAULT_INSTANCE.toBuilder();
669   }
670 
newBuilder(com.google.cloud.compute.v1.CacheKeyPolicy prototype)671   public static Builder newBuilder(com.google.cloud.compute.v1.CacheKeyPolicy prototype) {
672     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
673   }
674 
675   @java.lang.Override
toBuilder()676   public Builder toBuilder() {
677     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
678   }
679 
680   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)681   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
682     Builder builder = new Builder(parent);
683     return builder;
684   }
685   /**
686    *
687    *
688    * <pre>
689    * Message containing what to include in the cache key for a request for Cloud CDN.
690    * </pre>
691    *
692    * Protobuf type {@code google.cloud.compute.v1.CacheKeyPolicy}
693    */
694   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
695       implements
696       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.CacheKeyPolicy)
697       com.google.cloud.compute.v1.CacheKeyPolicyOrBuilder {
getDescriptor()698     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
699       return com.google.cloud.compute.v1.Compute
700           .internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor;
701     }
702 
703     @java.lang.Override
704     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()705         internalGetFieldAccessorTable() {
706       return com.google.cloud.compute.v1.Compute
707           .internal_static_google_cloud_compute_v1_CacheKeyPolicy_fieldAccessorTable
708           .ensureFieldAccessorsInitialized(
709               com.google.cloud.compute.v1.CacheKeyPolicy.class,
710               com.google.cloud.compute.v1.CacheKeyPolicy.Builder.class);
711     }
712 
713     // Construct using com.google.cloud.compute.v1.CacheKeyPolicy.newBuilder()
Builder()714     private Builder() {}
715 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)716     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
717       super(parent);
718     }
719 
720     @java.lang.Override
clear()721     public Builder clear() {
722       super.clear();
723       bitField0_ = 0;
724       includeHost_ = false;
725       includeHttpHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
726       bitField0_ = (bitField0_ & ~0x00000002);
727       includeNamedCookies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
728       bitField0_ = (bitField0_ & ~0x00000004);
729       includeProtocol_ = false;
730       includeQueryString_ = false;
731       queryStringBlacklist_ = com.google.protobuf.LazyStringArrayList.EMPTY;
732       bitField0_ = (bitField0_ & ~0x00000020);
733       queryStringWhitelist_ = com.google.protobuf.LazyStringArrayList.EMPTY;
734       bitField0_ = (bitField0_ & ~0x00000040);
735       return this;
736     }
737 
738     @java.lang.Override
getDescriptorForType()739     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
740       return com.google.cloud.compute.v1.Compute
741           .internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor;
742     }
743 
744     @java.lang.Override
getDefaultInstanceForType()745     public com.google.cloud.compute.v1.CacheKeyPolicy getDefaultInstanceForType() {
746       return com.google.cloud.compute.v1.CacheKeyPolicy.getDefaultInstance();
747     }
748 
749     @java.lang.Override
build()750     public com.google.cloud.compute.v1.CacheKeyPolicy build() {
751       com.google.cloud.compute.v1.CacheKeyPolicy result = buildPartial();
752       if (!result.isInitialized()) {
753         throw newUninitializedMessageException(result);
754       }
755       return result;
756     }
757 
758     @java.lang.Override
buildPartial()759     public com.google.cloud.compute.v1.CacheKeyPolicy buildPartial() {
760       com.google.cloud.compute.v1.CacheKeyPolicy result =
761           new com.google.cloud.compute.v1.CacheKeyPolicy(this);
762       buildPartialRepeatedFields(result);
763       if (bitField0_ != 0) {
764         buildPartial0(result);
765       }
766       onBuilt();
767       return result;
768     }
769 
buildPartialRepeatedFields(com.google.cloud.compute.v1.CacheKeyPolicy result)770     private void buildPartialRepeatedFields(com.google.cloud.compute.v1.CacheKeyPolicy result) {
771       if (((bitField0_ & 0x00000002) != 0)) {
772         includeHttpHeaders_ = includeHttpHeaders_.getUnmodifiableView();
773         bitField0_ = (bitField0_ & ~0x00000002);
774       }
775       result.includeHttpHeaders_ = includeHttpHeaders_;
776       if (((bitField0_ & 0x00000004) != 0)) {
777         includeNamedCookies_ = includeNamedCookies_.getUnmodifiableView();
778         bitField0_ = (bitField0_ & ~0x00000004);
779       }
780       result.includeNamedCookies_ = includeNamedCookies_;
781       if (((bitField0_ & 0x00000020) != 0)) {
782         queryStringBlacklist_ = queryStringBlacklist_.getUnmodifiableView();
783         bitField0_ = (bitField0_ & ~0x00000020);
784       }
785       result.queryStringBlacklist_ = queryStringBlacklist_;
786       if (((bitField0_ & 0x00000040) != 0)) {
787         queryStringWhitelist_ = queryStringWhitelist_.getUnmodifiableView();
788         bitField0_ = (bitField0_ & ~0x00000040);
789       }
790       result.queryStringWhitelist_ = queryStringWhitelist_;
791     }
792 
buildPartial0(com.google.cloud.compute.v1.CacheKeyPolicy result)793     private void buildPartial0(com.google.cloud.compute.v1.CacheKeyPolicy result) {
794       int from_bitField0_ = bitField0_;
795       int to_bitField0_ = 0;
796       if (((from_bitField0_ & 0x00000001) != 0)) {
797         result.includeHost_ = includeHost_;
798         to_bitField0_ |= 0x00000001;
799       }
800       if (((from_bitField0_ & 0x00000008) != 0)) {
801         result.includeProtocol_ = includeProtocol_;
802         to_bitField0_ |= 0x00000002;
803       }
804       if (((from_bitField0_ & 0x00000010) != 0)) {
805         result.includeQueryString_ = includeQueryString_;
806         to_bitField0_ |= 0x00000004;
807       }
808       result.bitField0_ |= to_bitField0_;
809     }
810 
811     @java.lang.Override
clone()812     public Builder clone() {
813       return super.clone();
814     }
815 
816     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)817     public Builder setField(
818         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
819       return super.setField(field, value);
820     }
821 
822     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)823     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
824       return super.clearField(field);
825     }
826 
827     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)828     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
829       return super.clearOneof(oneof);
830     }
831 
832     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)833     public Builder setRepeatedField(
834         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
835       return super.setRepeatedField(field, index, value);
836     }
837 
838     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)839     public Builder addRepeatedField(
840         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
841       return super.addRepeatedField(field, value);
842     }
843 
844     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)845     public Builder mergeFrom(com.google.protobuf.Message other) {
846       if (other instanceof com.google.cloud.compute.v1.CacheKeyPolicy) {
847         return mergeFrom((com.google.cloud.compute.v1.CacheKeyPolicy) other);
848       } else {
849         super.mergeFrom(other);
850         return this;
851       }
852     }
853 
mergeFrom(com.google.cloud.compute.v1.CacheKeyPolicy other)854     public Builder mergeFrom(com.google.cloud.compute.v1.CacheKeyPolicy other) {
855       if (other == com.google.cloud.compute.v1.CacheKeyPolicy.getDefaultInstance()) return this;
856       if (other.hasIncludeHost()) {
857         setIncludeHost(other.getIncludeHost());
858       }
859       if (!other.includeHttpHeaders_.isEmpty()) {
860         if (includeHttpHeaders_.isEmpty()) {
861           includeHttpHeaders_ = other.includeHttpHeaders_;
862           bitField0_ = (bitField0_ & ~0x00000002);
863         } else {
864           ensureIncludeHttpHeadersIsMutable();
865           includeHttpHeaders_.addAll(other.includeHttpHeaders_);
866         }
867         onChanged();
868       }
869       if (!other.includeNamedCookies_.isEmpty()) {
870         if (includeNamedCookies_.isEmpty()) {
871           includeNamedCookies_ = other.includeNamedCookies_;
872           bitField0_ = (bitField0_ & ~0x00000004);
873         } else {
874           ensureIncludeNamedCookiesIsMutable();
875           includeNamedCookies_.addAll(other.includeNamedCookies_);
876         }
877         onChanged();
878       }
879       if (other.hasIncludeProtocol()) {
880         setIncludeProtocol(other.getIncludeProtocol());
881       }
882       if (other.hasIncludeQueryString()) {
883         setIncludeQueryString(other.getIncludeQueryString());
884       }
885       if (!other.queryStringBlacklist_.isEmpty()) {
886         if (queryStringBlacklist_.isEmpty()) {
887           queryStringBlacklist_ = other.queryStringBlacklist_;
888           bitField0_ = (bitField0_ & ~0x00000020);
889         } else {
890           ensureQueryStringBlacklistIsMutable();
891           queryStringBlacklist_.addAll(other.queryStringBlacklist_);
892         }
893         onChanged();
894       }
895       if (!other.queryStringWhitelist_.isEmpty()) {
896         if (queryStringWhitelist_.isEmpty()) {
897           queryStringWhitelist_ = other.queryStringWhitelist_;
898           bitField0_ = (bitField0_ & ~0x00000040);
899         } else {
900           ensureQueryStringWhitelistIsMutable();
901           queryStringWhitelist_.addAll(other.queryStringWhitelist_);
902         }
903         onChanged();
904       }
905       this.mergeUnknownFields(other.getUnknownFields());
906       onChanged();
907       return this;
908     }
909 
910     @java.lang.Override
isInitialized()911     public final boolean isInitialized() {
912       return true;
913     }
914 
915     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)916     public Builder mergeFrom(
917         com.google.protobuf.CodedInputStream input,
918         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
919         throws java.io.IOException {
920       if (extensionRegistry == null) {
921         throw new java.lang.NullPointerException();
922       }
923       try {
924         boolean done = false;
925         while (!done) {
926           int tag = input.readTag();
927           switch (tag) {
928             case 0:
929               done = true;
930               break;
931             case 19916850:
932               {
933                 java.lang.String s = input.readStringRequireUtf8();
934                 ensureIncludeHttpHeadersIsMutable();
935                 includeHttpHeaders_.add(s);
936                 break;
937               } // case 19916850
938             case 419651970:
939               {
940                 java.lang.String s = input.readStringRequireUtf8();
941                 ensureQueryStringWhitelistIsMutable();
942                 queryStringWhitelist_.add(s);
943                 break;
944               } // case 419651970
945             case 698532242:
946               {
947                 java.lang.String s = input.readStringRequireUtf8();
948                 ensureIncludeNamedCookiesIsMutable();
949                 includeNamedCookies_.add(s);
950                 break;
951               } // case 698532242
952             case -1866907016:
953               {
954                 includeProtocol_ = input.readBool();
955                 bitField0_ |= 0x00000008;
956                 break;
957               } // case -1866907016
958             case -1455249358:
959               {
960                 java.lang.String s = input.readStringRequireUtf8();
961                 ensureQueryStringBlacklistIsMutable();
962                 queryStringBlacklist_.add(s);
963                 break;
964               } // case -1455249358
965             case -502674184:
966               {
967                 includeQueryString_ = input.readBool();
968                 bitField0_ |= 0x00000010;
969                 break;
970               } // case -502674184
971             case -400025864:
972               {
973                 includeHost_ = input.readBool();
974                 bitField0_ |= 0x00000001;
975                 break;
976               } // case -400025864
977             default:
978               {
979                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
980                   done = true; // was an endgroup tag
981                 }
982                 break;
983               } // default:
984           } // switch (tag)
985         } // while (!done)
986       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
987         throw e.unwrapIOException();
988       } finally {
989         onChanged();
990       } // finally
991       return this;
992     }
993 
994     private int bitField0_;
995 
996     private boolean includeHost_;
997     /**
998      *
999      *
1000      * <pre>
1001      * If true, requests to different hosts will be cached separately.
1002      * </pre>
1003      *
1004      * <code>optional bool include_host = 486867679;</code>
1005      *
1006      * @return Whether the includeHost field is set.
1007      */
1008     @java.lang.Override
hasIncludeHost()1009     public boolean hasIncludeHost() {
1010       return ((bitField0_ & 0x00000001) != 0);
1011     }
1012     /**
1013      *
1014      *
1015      * <pre>
1016      * If true, requests to different hosts will be cached separately.
1017      * </pre>
1018      *
1019      * <code>optional bool include_host = 486867679;</code>
1020      *
1021      * @return The includeHost.
1022      */
1023     @java.lang.Override
getIncludeHost()1024     public boolean getIncludeHost() {
1025       return includeHost_;
1026     }
1027     /**
1028      *
1029      *
1030      * <pre>
1031      * If true, requests to different hosts will be cached separately.
1032      * </pre>
1033      *
1034      * <code>optional bool include_host = 486867679;</code>
1035      *
1036      * @param value The includeHost to set.
1037      * @return This builder for chaining.
1038      */
setIncludeHost(boolean value)1039     public Builder setIncludeHost(boolean value) {
1040 
1041       includeHost_ = value;
1042       bitField0_ |= 0x00000001;
1043       onChanged();
1044       return this;
1045     }
1046     /**
1047      *
1048      *
1049      * <pre>
1050      * If true, requests to different hosts will be cached separately.
1051      * </pre>
1052      *
1053      * <code>optional bool include_host = 486867679;</code>
1054      *
1055      * @return This builder for chaining.
1056      */
clearIncludeHost()1057     public Builder clearIncludeHost() {
1058       bitField0_ = (bitField0_ & ~0x00000001);
1059       includeHost_ = false;
1060       onChanged();
1061       return this;
1062     }
1063 
1064     private com.google.protobuf.LazyStringList includeHttpHeaders_ =
1065         com.google.protobuf.LazyStringArrayList.EMPTY;
1066 
ensureIncludeHttpHeadersIsMutable()1067     private void ensureIncludeHttpHeadersIsMutable() {
1068       if (!((bitField0_ & 0x00000002) != 0)) {
1069         includeHttpHeaders_ = new com.google.protobuf.LazyStringArrayList(includeHttpHeaders_);
1070         bitField0_ |= 0x00000002;
1071       }
1072     }
1073     /**
1074      *
1075      *
1076      * <pre>
1077      * Allows HTTP request headers (by name) to be used in the cache key.
1078      * </pre>
1079      *
1080      * <code>repeated string include_http_headers = 2489606;</code>
1081      *
1082      * @return A list containing the includeHttpHeaders.
1083      */
getIncludeHttpHeadersList()1084     public com.google.protobuf.ProtocolStringList getIncludeHttpHeadersList() {
1085       return includeHttpHeaders_.getUnmodifiableView();
1086     }
1087     /**
1088      *
1089      *
1090      * <pre>
1091      * Allows HTTP request headers (by name) to be used in the cache key.
1092      * </pre>
1093      *
1094      * <code>repeated string include_http_headers = 2489606;</code>
1095      *
1096      * @return The count of includeHttpHeaders.
1097      */
getIncludeHttpHeadersCount()1098     public int getIncludeHttpHeadersCount() {
1099       return includeHttpHeaders_.size();
1100     }
1101     /**
1102      *
1103      *
1104      * <pre>
1105      * Allows HTTP request headers (by name) to be used in the cache key.
1106      * </pre>
1107      *
1108      * <code>repeated string include_http_headers = 2489606;</code>
1109      *
1110      * @param index The index of the element to return.
1111      * @return The includeHttpHeaders at the given index.
1112      */
getIncludeHttpHeaders(int index)1113     public java.lang.String getIncludeHttpHeaders(int index) {
1114       return includeHttpHeaders_.get(index);
1115     }
1116     /**
1117      *
1118      *
1119      * <pre>
1120      * Allows HTTP request headers (by name) to be used in the cache key.
1121      * </pre>
1122      *
1123      * <code>repeated string include_http_headers = 2489606;</code>
1124      *
1125      * @param index The index of the value to return.
1126      * @return The bytes of the includeHttpHeaders at the given index.
1127      */
getIncludeHttpHeadersBytes(int index)1128     public com.google.protobuf.ByteString getIncludeHttpHeadersBytes(int index) {
1129       return includeHttpHeaders_.getByteString(index);
1130     }
1131     /**
1132      *
1133      *
1134      * <pre>
1135      * Allows HTTP request headers (by name) to be used in the cache key.
1136      * </pre>
1137      *
1138      * <code>repeated string include_http_headers = 2489606;</code>
1139      *
1140      * @param index The index to set the value at.
1141      * @param value The includeHttpHeaders to set.
1142      * @return This builder for chaining.
1143      */
setIncludeHttpHeaders(int index, java.lang.String value)1144     public Builder setIncludeHttpHeaders(int index, java.lang.String value) {
1145       if (value == null) {
1146         throw new NullPointerException();
1147       }
1148       ensureIncludeHttpHeadersIsMutable();
1149       includeHttpHeaders_.set(index, value);
1150       onChanged();
1151       return this;
1152     }
1153     /**
1154      *
1155      *
1156      * <pre>
1157      * Allows HTTP request headers (by name) to be used in the cache key.
1158      * </pre>
1159      *
1160      * <code>repeated string include_http_headers = 2489606;</code>
1161      *
1162      * @param value The includeHttpHeaders to add.
1163      * @return This builder for chaining.
1164      */
addIncludeHttpHeaders(java.lang.String value)1165     public Builder addIncludeHttpHeaders(java.lang.String value) {
1166       if (value == null) {
1167         throw new NullPointerException();
1168       }
1169       ensureIncludeHttpHeadersIsMutable();
1170       includeHttpHeaders_.add(value);
1171       onChanged();
1172       return this;
1173     }
1174     /**
1175      *
1176      *
1177      * <pre>
1178      * Allows HTTP request headers (by name) to be used in the cache key.
1179      * </pre>
1180      *
1181      * <code>repeated string include_http_headers = 2489606;</code>
1182      *
1183      * @param values The includeHttpHeaders to add.
1184      * @return This builder for chaining.
1185      */
addAllIncludeHttpHeaders(java.lang.Iterable<java.lang.String> values)1186     public Builder addAllIncludeHttpHeaders(java.lang.Iterable<java.lang.String> values) {
1187       ensureIncludeHttpHeadersIsMutable();
1188       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeHttpHeaders_);
1189       onChanged();
1190       return this;
1191     }
1192     /**
1193      *
1194      *
1195      * <pre>
1196      * Allows HTTP request headers (by name) to be used in the cache key.
1197      * </pre>
1198      *
1199      * <code>repeated string include_http_headers = 2489606;</code>
1200      *
1201      * @return This builder for chaining.
1202      */
clearIncludeHttpHeaders()1203     public Builder clearIncludeHttpHeaders() {
1204       includeHttpHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1205       bitField0_ = (bitField0_ & ~0x00000002);
1206       onChanged();
1207       return this;
1208     }
1209     /**
1210      *
1211      *
1212      * <pre>
1213      * Allows HTTP request headers (by name) to be used in the cache key.
1214      * </pre>
1215      *
1216      * <code>repeated string include_http_headers = 2489606;</code>
1217      *
1218      * @param value The bytes of the includeHttpHeaders to add.
1219      * @return This builder for chaining.
1220      */
addIncludeHttpHeadersBytes(com.google.protobuf.ByteString value)1221     public Builder addIncludeHttpHeadersBytes(com.google.protobuf.ByteString value) {
1222       if (value == null) {
1223         throw new NullPointerException();
1224       }
1225       checkByteStringIsUtf8(value);
1226       ensureIncludeHttpHeadersIsMutable();
1227       includeHttpHeaders_.add(value);
1228       onChanged();
1229       return this;
1230     }
1231 
1232     private com.google.protobuf.LazyStringList includeNamedCookies_ =
1233         com.google.protobuf.LazyStringArrayList.EMPTY;
1234 
ensureIncludeNamedCookiesIsMutable()1235     private void ensureIncludeNamedCookiesIsMutable() {
1236       if (!((bitField0_ & 0x00000004) != 0)) {
1237         includeNamedCookies_ = new com.google.protobuf.LazyStringArrayList(includeNamedCookies_);
1238         bitField0_ |= 0x00000004;
1239       }
1240     }
1241     /**
1242      *
1243      *
1244      * <pre>
1245      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1246      * </pre>
1247      *
1248      * <code>repeated string include_named_cookies = 87316530;</code>
1249      *
1250      * @return A list containing the includeNamedCookies.
1251      */
getIncludeNamedCookiesList()1252     public com.google.protobuf.ProtocolStringList getIncludeNamedCookiesList() {
1253       return includeNamedCookies_.getUnmodifiableView();
1254     }
1255     /**
1256      *
1257      *
1258      * <pre>
1259      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1260      * </pre>
1261      *
1262      * <code>repeated string include_named_cookies = 87316530;</code>
1263      *
1264      * @return The count of includeNamedCookies.
1265      */
getIncludeNamedCookiesCount()1266     public int getIncludeNamedCookiesCount() {
1267       return includeNamedCookies_.size();
1268     }
1269     /**
1270      *
1271      *
1272      * <pre>
1273      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1274      * </pre>
1275      *
1276      * <code>repeated string include_named_cookies = 87316530;</code>
1277      *
1278      * @param index The index of the element to return.
1279      * @return The includeNamedCookies at the given index.
1280      */
getIncludeNamedCookies(int index)1281     public java.lang.String getIncludeNamedCookies(int index) {
1282       return includeNamedCookies_.get(index);
1283     }
1284     /**
1285      *
1286      *
1287      * <pre>
1288      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1289      * </pre>
1290      *
1291      * <code>repeated string include_named_cookies = 87316530;</code>
1292      *
1293      * @param index The index of the value to return.
1294      * @return The bytes of the includeNamedCookies at the given index.
1295      */
getIncludeNamedCookiesBytes(int index)1296     public com.google.protobuf.ByteString getIncludeNamedCookiesBytes(int index) {
1297       return includeNamedCookies_.getByteString(index);
1298     }
1299     /**
1300      *
1301      *
1302      * <pre>
1303      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1304      * </pre>
1305      *
1306      * <code>repeated string include_named_cookies = 87316530;</code>
1307      *
1308      * @param index The index to set the value at.
1309      * @param value The includeNamedCookies to set.
1310      * @return This builder for chaining.
1311      */
setIncludeNamedCookies(int index, java.lang.String value)1312     public Builder setIncludeNamedCookies(int index, java.lang.String value) {
1313       if (value == null) {
1314         throw new NullPointerException();
1315       }
1316       ensureIncludeNamedCookiesIsMutable();
1317       includeNamedCookies_.set(index, value);
1318       onChanged();
1319       return this;
1320     }
1321     /**
1322      *
1323      *
1324      * <pre>
1325      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1326      * </pre>
1327      *
1328      * <code>repeated string include_named_cookies = 87316530;</code>
1329      *
1330      * @param value The includeNamedCookies to add.
1331      * @return This builder for chaining.
1332      */
addIncludeNamedCookies(java.lang.String value)1333     public Builder addIncludeNamedCookies(java.lang.String value) {
1334       if (value == null) {
1335         throw new NullPointerException();
1336       }
1337       ensureIncludeNamedCookiesIsMutable();
1338       includeNamedCookies_.add(value);
1339       onChanged();
1340       return this;
1341     }
1342     /**
1343      *
1344      *
1345      * <pre>
1346      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1347      * </pre>
1348      *
1349      * <code>repeated string include_named_cookies = 87316530;</code>
1350      *
1351      * @param values The includeNamedCookies to add.
1352      * @return This builder for chaining.
1353      */
addAllIncludeNamedCookies(java.lang.Iterable<java.lang.String> values)1354     public Builder addAllIncludeNamedCookies(java.lang.Iterable<java.lang.String> values) {
1355       ensureIncludeNamedCookiesIsMutable();
1356       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeNamedCookies_);
1357       onChanged();
1358       return this;
1359     }
1360     /**
1361      *
1362      *
1363      * <pre>
1364      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1365      * </pre>
1366      *
1367      * <code>repeated string include_named_cookies = 87316530;</code>
1368      *
1369      * @return This builder for chaining.
1370      */
clearIncludeNamedCookies()1371     public Builder clearIncludeNamedCookies() {
1372       includeNamedCookies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1373       bitField0_ = (bitField0_ & ~0x00000004);
1374       onChanged();
1375       return this;
1376     }
1377     /**
1378      *
1379      *
1380      * <pre>
1381      * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.
1382      * </pre>
1383      *
1384      * <code>repeated string include_named_cookies = 87316530;</code>
1385      *
1386      * @param value The bytes of the includeNamedCookies to add.
1387      * @return This builder for chaining.
1388      */
addIncludeNamedCookiesBytes(com.google.protobuf.ByteString value)1389     public Builder addIncludeNamedCookiesBytes(com.google.protobuf.ByteString value) {
1390       if (value == null) {
1391         throw new NullPointerException();
1392       }
1393       checkByteStringIsUtf8(value);
1394       ensureIncludeNamedCookiesIsMutable();
1395       includeNamedCookies_.add(value);
1396       onChanged();
1397       return this;
1398     }
1399 
1400     private boolean includeProtocol_;
1401     /**
1402      *
1403      *
1404      * <pre>
1405      * If true, http and https requests will be cached separately.
1406      * </pre>
1407      *
1408      * <code>optional bool include_protocol = 303507535;</code>
1409      *
1410      * @return Whether the includeProtocol field is set.
1411      */
1412     @java.lang.Override
hasIncludeProtocol()1413     public boolean hasIncludeProtocol() {
1414       return ((bitField0_ & 0x00000008) != 0);
1415     }
1416     /**
1417      *
1418      *
1419      * <pre>
1420      * If true, http and https requests will be cached separately.
1421      * </pre>
1422      *
1423      * <code>optional bool include_protocol = 303507535;</code>
1424      *
1425      * @return The includeProtocol.
1426      */
1427     @java.lang.Override
getIncludeProtocol()1428     public boolean getIncludeProtocol() {
1429       return includeProtocol_;
1430     }
1431     /**
1432      *
1433      *
1434      * <pre>
1435      * If true, http and https requests will be cached separately.
1436      * </pre>
1437      *
1438      * <code>optional bool include_protocol = 303507535;</code>
1439      *
1440      * @param value The includeProtocol to set.
1441      * @return This builder for chaining.
1442      */
setIncludeProtocol(boolean value)1443     public Builder setIncludeProtocol(boolean value) {
1444 
1445       includeProtocol_ = value;
1446       bitField0_ |= 0x00000008;
1447       onChanged();
1448       return this;
1449     }
1450     /**
1451      *
1452      *
1453      * <pre>
1454      * If true, http and https requests will be cached separately.
1455      * </pre>
1456      *
1457      * <code>optional bool include_protocol = 303507535;</code>
1458      *
1459      * @return This builder for chaining.
1460      */
clearIncludeProtocol()1461     public Builder clearIncludeProtocol() {
1462       bitField0_ = (bitField0_ & ~0x00000008);
1463       includeProtocol_ = false;
1464       onChanged();
1465       return this;
1466     }
1467 
1468     private boolean includeQueryString_;
1469     /**
1470      *
1471      *
1472      * <pre>
1473      * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1474      * </pre>
1475      *
1476      * <code>optional bool include_query_string = 474036639;</code>
1477      *
1478      * @return Whether the includeQueryString field is set.
1479      */
1480     @java.lang.Override
hasIncludeQueryString()1481     public boolean hasIncludeQueryString() {
1482       return ((bitField0_ & 0x00000010) != 0);
1483     }
1484     /**
1485      *
1486      *
1487      * <pre>
1488      * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1489      * </pre>
1490      *
1491      * <code>optional bool include_query_string = 474036639;</code>
1492      *
1493      * @return The includeQueryString.
1494      */
1495     @java.lang.Override
getIncludeQueryString()1496     public boolean getIncludeQueryString() {
1497       return includeQueryString_;
1498     }
1499     /**
1500      *
1501      *
1502      * <pre>
1503      * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1504      * </pre>
1505      *
1506      * <code>optional bool include_query_string = 474036639;</code>
1507      *
1508      * @param value The includeQueryString to set.
1509      * @return This builder for chaining.
1510      */
setIncludeQueryString(boolean value)1511     public Builder setIncludeQueryString(boolean value) {
1512 
1513       includeQueryString_ = value;
1514       bitField0_ |= 0x00000010;
1515       onChanged();
1516       return this;
1517     }
1518     /**
1519      *
1520      *
1521      * <pre>
1522      * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1523      * </pre>
1524      *
1525      * <code>optional bool include_query_string = 474036639;</code>
1526      *
1527      * @return This builder for chaining.
1528      */
clearIncludeQueryString()1529     public Builder clearIncludeQueryString() {
1530       bitField0_ = (bitField0_ & ~0x00000010);
1531       includeQueryString_ = false;
1532       onChanged();
1533       return this;
1534     }
1535 
1536     private com.google.protobuf.LazyStringList queryStringBlacklist_ =
1537         com.google.protobuf.LazyStringArrayList.EMPTY;
1538 
ensureQueryStringBlacklistIsMutable()1539     private void ensureQueryStringBlacklistIsMutable() {
1540       if (!((bitField0_ & 0x00000020) != 0)) {
1541         queryStringBlacklist_ = new com.google.protobuf.LazyStringArrayList(queryStringBlacklist_);
1542         bitField0_ |= 0x00000020;
1543       }
1544     }
1545     /**
1546      *
1547      *
1548      * <pre>
1549      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1550      * </pre>
1551      *
1552      * <code>repeated string query_string_blacklist = 354964742;</code>
1553      *
1554      * @return A list containing the queryStringBlacklist.
1555      */
getQueryStringBlacklistList()1556     public com.google.protobuf.ProtocolStringList getQueryStringBlacklistList() {
1557       return queryStringBlacklist_.getUnmodifiableView();
1558     }
1559     /**
1560      *
1561      *
1562      * <pre>
1563      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1564      * </pre>
1565      *
1566      * <code>repeated string query_string_blacklist = 354964742;</code>
1567      *
1568      * @return The count of queryStringBlacklist.
1569      */
getQueryStringBlacklistCount()1570     public int getQueryStringBlacklistCount() {
1571       return queryStringBlacklist_.size();
1572     }
1573     /**
1574      *
1575      *
1576      * <pre>
1577      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1578      * </pre>
1579      *
1580      * <code>repeated string query_string_blacklist = 354964742;</code>
1581      *
1582      * @param index The index of the element to return.
1583      * @return The queryStringBlacklist at the given index.
1584      */
getQueryStringBlacklist(int index)1585     public java.lang.String getQueryStringBlacklist(int index) {
1586       return queryStringBlacklist_.get(index);
1587     }
1588     /**
1589      *
1590      *
1591      * <pre>
1592      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1593      * </pre>
1594      *
1595      * <code>repeated string query_string_blacklist = 354964742;</code>
1596      *
1597      * @param index The index of the value to return.
1598      * @return The bytes of the queryStringBlacklist at the given index.
1599      */
getQueryStringBlacklistBytes(int index)1600     public com.google.protobuf.ByteString getQueryStringBlacklistBytes(int index) {
1601       return queryStringBlacklist_.getByteString(index);
1602     }
1603     /**
1604      *
1605      *
1606      * <pre>
1607      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1608      * </pre>
1609      *
1610      * <code>repeated string query_string_blacklist = 354964742;</code>
1611      *
1612      * @param index The index to set the value at.
1613      * @param value The queryStringBlacklist to set.
1614      * @return This builder for chaining.
1615      */
setQueryStringBlacklist(int index, java.lang.String value)1616     public Builder setQueryStringBlacklist(int index, java.lang.String value) {
1617       if (value == null) {
1618         throw new NullPointerException();
1619       }
1620       ensureQueryStringBlacklistIsMutable();
1621       queryStringBlacklist_.set(index, value);
1622       onChanged();
1623       return this;
1624     }
1625     /**
1626      *
1627      *
1628      * <pre>
1629      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1630      * </pre>
1631      *
1632      * <code>repeated string query_string_blacklist = 354964742;</code>
1633      *
1634      * @param value The queryStringBlacklist to add.
1635      * @return This builder for chaining.
1636      */
addQueryStringBlacklist(java.lang.String value)1637     public Builder addQueryStringBlacklist(java.lang.String value) {
1638       if (value == null) {
1639         throw new NullPointerException();
1640       }
1641       ensureQueryStringBlacklistIsMutable();
1642       queryStringBlacklist_.add(value);
1643       onChanged();
1644       return this;
1645     }
1646     /**
1647      *
1648      *
1649      * <pre>
1650      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1651      * </pre>
1652      *
1653      * <code>repeated string query_string_blacklist = 354964742;</code>
1654      *
1655      * @param values The queryStringBlacklist to add.
1656      * @return This builder for chaining.
1657      */
addAllQueryStringBlacklist(java.lang.Iterable<java.lang.String> values)1658     public Builder addAllQueryStringBlacklist(java.lang.Iterable<java.lang.String> values) {
1659       ensureQueryStringBlacklistIsMutable();
1660       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryStringBlacklist_);
1661       onChanged();
1662       return this;
1663     }
1664     /**
1665      *
1666      *
1667      * <pre>
1668      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1669      * </pre>
1670      *
1671      * <code>repeated string query_string_blacklist = 354964742;</code>
1672      *
1673      * @return This builder for chaining.
1674      */
clearQueryStringBlacklist()1675     public Builder clearQueryStringBlacklist() {
1676       queryStringBlacklist_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1677       bitField0_ = (bitField0_ & ~0x00000020);
1678       onChanged();
1679       return this;
1680     }
1681     /**
1682      *
1683      *
1684      * <pre>
1685      * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1686      * </pre>
1687      *
1688      * <code>repeated string query_string_blacklist = 354964742;</code>
1689      *
1690      * @param value The bytes of the queryStringBlacklist to add.
1691      * @return This builder for chaining.
1692      */
addQueryStringBlacklistBytes(com.google.protobuf.ByteString value)1693     public Builder addQueryStringBlacklistBytes(com.google.protobuf.ByteString value) {
1694       if (value == null) {
1695         throw new NullPointerException();
1696       }
1697       checkByteStringIsUtf8(value);
1698       ensureQueryStringBlacklistIsMutable();
1699       queryStringBlacklist_.add(value);
1700       onChanged();
1701       return this;
1702     }
1703 
1704     private com.google.protobuf.LazyStringList queryStringWhitelist_ =
1705         com.google.protobuf.LazyStringArrayList.EMPTY;
1706 
ensureQueryStringWhitelistIsMutable()1707     private void ensureQueryStringWhitelistIsMutable() {
1708       if (!((bitField0_ & 0x00000040) != 0)) {
1709         queryStringWhitelist_ = new com.google.protobuf.LazyStringArrayList(queryStringWhitelist_);
1710         bitField0_ |= 0x00000040;
1711       }
1712     }
1713     /**
1714      *
1715      *
1716      * <pre>
1717      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1718      * </pre>
1719      *
1720      * <code>repeated string query_string_whitelist = 52456496;</code>
1721      *
1722      * @return A list containing the queryStringWhitelist.
1723      */
getQueryStringWhitelistList()1724     public com.google.protobuf.ProtocolStringList getQueryStringWhitelistList() {
1725       return queryStringWhitelist_.getUnmodifiableView();
1726     }
1727     /**
1728      *
1729      *
1730      * <pre>
1731      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1732      * </pre>
1733      *
1734      * <code>repeated string query_string_whitelist = 52456496;</code>
1735      *
1736      * @return The count of queryStringWhitelist.
1737      */
getQueryStringWhitelistCount()1738     public int getQueryStringWhitelistCount() {
1739       return queryStringWhitelist_.size();
1740     }
1741     /**
1742      *
1743      *
1744      * <pre>
1745      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1746      * </pre>
1747      *
1748      * <code>repeated string query_string_whitelist = 52456496;</code>
1749      *
1750      * @param index The index of the element to return.
1751      * @return The queryStringWhitelist at the given index.
1752      */
getQueryStringWhitelist(int index)1753     public java.lang.String getQueryStringWhitelist(int index) {
1754       return queryStringWhitelist_.get(index);
1755     }
1756     /**
1757      *
1758      *
1759      * <pre>
1760      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1761      * </pre>
1762      *
1763      * <code>repeated string query_string_whitelist = 52456496;</code>
1764      *
1765      * @param index The index of the value to return.
1766      * @return The bytes of the queryStringWhitelist at the given index.
1767      */
getQueryStringWhitelistBytes(int index)1768     public com.google.protobuf.ByteString getQueryStringWhitelistBytes(int index) {
1769       return queryStringWhitelist_.getByteString(index);
1770     }
1771     /**
1772      *
1773      *
1774      * <pre>
1775      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1776      * </pre>
1777      *
1778      * <code>repeated string query_string_whitelist = 52456496;</code>
1779      *
1780      * @param index The index to set the value at.
1781      * @param value The queryStringWhitelist to set.
1782      * @return This builder for chaining.
1783      */
setQueryStringWhitelist(int index, java.lang.String value)1784     public Builder setQueryStringWhitelist(int index, java.lang.String value) {
1785       if (value == null) {
1786         throw new NullPointerException();
1787       }
1788       ensureQueryStringWhitelistIsMutable();
1789       queryStringWhitelist_.set(index, value);
1790       onChanged();
1791       return this;
1792     }
1793     /**
1794      *
1795      *
1796      * <pre>
1797      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1798      * </pre>
1799      *
1800      * <code>repeated string query_string_whitelist = 52456496;</code>
1801      *
1802      * @param value The queryStringWhitelist to add.
1803      * @return This builder for chaining.
1804      */
addQueryStringWhitelist(java.lang.String value)1805     public Builder addQueryStringWhitelist(java.lang.String value) {
1806       if (value == null) {
1807         throw new NullPointerException();
1808       }
1809       ensureQueryStringWhitelistIsMutable();
1810       queryStringWhitelist_.add(value);
1811       onChanged();
1812       return this;
1813     }
1814     /**
1815      *
1816      *
1817      * <pre>
1818      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1819      * </pre>
1820      *
1821      * <code>repeated string query_string_whitelist = 52456496;</code>
1822      *
1823      * @param values The queryStringWhitelist to add.
1824      * @return This builder for chaining.
1825      */
addAllQueryStringWhitelist(java.lang.Iterable<java.lang.String> values)1826     public Builder addAllQueryStringWhitelist(java.lang.Iterable<java.lang.String> values) {
1827       ensureQueryStringWhitelistIsMutable();
1828       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryStringWhitelist_);
1829       onChanged();
1830       return this;
1831     }
1832     /**
1833      *
1834      *
1835      * <pre>
1836      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1837      * </pre>
1838      *
1839      * <code>repeated string query_string_whitelist = 52456496;</code>
1840      *
1841      * @return This builder for chaining.
1842      */
clearQueryStringWhitelist()1843     public Builder clearQueryStringWhitelist() {
1844       queryStringWhitelist_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1845       bitField0_ = (bitField0_ & ~0x00000040);
1846       onChanged();
1847       return this;
1848     }
1849     /**
1850      *
1851      *
1852      * <pre>
1853      * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&amp;' and '=' will be percent encoded and not treated as delimiters.
1854      * </pre>
1855      *
1856      * <code>repeated string query_string_whitelist = 52456496;</code>
1857      *
1858      * @param value The bytes of the queryStringWhitelist to add.
1859      * @return This builder for chaining.
1860      */
addQueryStringWhitelistBytes(com.google.protobuf.ByteString value)1861     public Builder addQueryStringWhitelistBytes(com.google.protobuf.ByteString value) {
1862       if (value == null) {
1863         throw new NullPointerException();
1864       }
1865       checkByteStringIsUtf8(value);
1866       ensureQueryStringWhitelistIsMutable();
1867       queryStringWhitelist_.add(value);
1868       onChanged();
1869       return this;
1870     }
1871 
1872     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1873     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1874       return super.setUnknownFields(unknownFields);
1875     }
1876 
1877     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1878     public final Builder mergeUnknownFields(
1879         final com.google.protobuf.UnknownFieldSet unknownFields) {
1880       return super.mergeUnknownFields(unknownFields);
1881     }
1882 
1883     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.CacheKeyPolicy)
1884   }
1885 
1886   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.CacheKeyPolicy)
1887   private static final com.google.cloud.compute.v1.CacheKeyPolicy DEFAULT_INSTANCE;
1888 
1889   static {
1890     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.CacheKeyPolicy();
1891   }
1892 
getDefaultInstance()1893   public static com.google.cloud.compute.v1.CacheKeyPolicy getDefaultInstance() {
1894     return DEFAULT_INSTANCE;
1895   }
1896 
1897   private static final com.google.protobuf.Parser<CacheKeyPolicy> PARSER =
1898       new com.google.protobuf.AbstractParser<CacheKeyPolicy>() {
1899         @java.lang.Override
1900         public CacheKeyPolicy parsePartialFrom(
1901             com.google.protobuf.CodedInputStream input,
1902             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1903             throws com.google.protobuf.InvalidProtocolBufferException {
1904           Builder builder = newBuilder();
1905           try {
1906             builder.mergeFrom(input, extensionRegistry);
1907           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1908             throw e.setUnfinishedMessage(builder.buildPartial());
1909           } catch (com.google.protobuf.UninitializedMessageException e) {
1910             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1911           } catch (java.io.IOException e) {
1912             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1913                 .setUnfinishedMessage(builder.buildPartial());
1914           }
1915           return builder.buildPartial();
1916         }
1917       };
1918 
parser()1919   public static com.google.protobuf.Parser<CacheKeyPolicy> parser() {
1920     return PARSER;
1921   }
1922 
1923   @java.lang.Override
getParserForType()1924   public com.google.protobuf.Parser<CacheKeyPolicy> getParserForType() {
1925     return PARSER;
1926   }
1927 
1928   @java.lang.Override
getDefaultInstanceForType()1929   public com.google.cloud.compute.v1.CacheKeyPolicy getDefaultInstanceForType() {
1930     return DEFAULT_INSTANCE;
1931   }
1932 }
1933