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