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