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/devtools/cloudtrace/v1/trace.proto 18 19 package com.google.devtools.cloudtrace.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * The request message for the `ListTraces` method. All fields are required 26 * unless specified. 27 * </pre> 28 * 29 * Protobuf type {@code google.devtools.cloudtrace.v1.ListTracesRequest} 30 */ 31 public final class ListTracesRequest extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.devtools.cloudtrace.v1.ListTracesRequest) 34 ListTracesRequestOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use ListTracesRequest.newBuilder() to construct. ListTracesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private ListTracesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 ListTracesRequest()41 private ListTracesRequest() { 42 projectId_ = ""; 43 view_ = 0; 44 pageToken_ = ""; 45 filter_ = ""; 46 orderBy_ = ""; 47 } 48 49 @java.lang.Override 50 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)51 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 52 return new ListTracesRequest(); 53 } 54 55 @java.lang.Override getUnknownFields()56 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 57 return this.unknownFields; 58 } 59 getDescriptor()60 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 61 return com.google.devtools.cloudtrace.v1.TraceProto 62 .internal_static_google_devtools_cloudtrace_v1_ListTracesRequest_descriptor; 63 } 64 65 @java.lang.Override 66 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()67 internalGetFieldAccessorTable() { 68 return com.google.devtools.cloudtrace.v1.TraceProto 69 .internal_static_google_devtools_cloudtrace_v1_ListTracesRequest_fieldAccessorTable 70 .ensureFieldAccessorsInitialized( 71 com.google.devtools.cloudtrace.v1.ListTracesRequest.class, 72 com.google.devtools.cloudtrace.v1.ListTracesRequest.Builder.class); 73 } 74 75 /** 76 * 77 * 78 * <pre> 79 * Type of data returned for traces in the list. 80 * </pre> 81 * 82 * Protobuf enum {@code google.devtools.cloudtrace.v1.ListTracesRequest.ViewType} 83 */ 84 public enum ViewType implements com.google.protobuf.ProtocolMessageEnum { 85 /** 86 * 87 * 88 * <pre> 89 * Default is `MINIMAL` if unspecified. 90 * </pre> 91 * 92 * <code>VIEW_TYPE_UNSPECIFIED = 0;</code> 93 */ 94 VIEW_TYPE_UNSPECIFIED(0), 95 /** 96 * 97 * 98 * <pre> 99 * Minimal view of the trace record that contains only the project 100 * and trace IDs. 101 * </pre> 102 * 103 * <code>MINIMAL = 1;</code> 104 */ 105 MINIMAL(1), 106 /** 107 * 108 * 109 * <pre> 110 * Root span view of the trace record that returns the root spans along 111 * with the minimal trace data. 112 * </pre> 113 * 114 * <code>ROOTSPAN = 2;</code> 115 */ 116 ROOTSPAN(2), 117 /** 118 * 119 * 120 * <pre> 121 * Complete view of the trace record that contains the actual trace data. 122 * This is equivalent to calling the REST `get` or RPC `GetTrace` method 123 * using the ID of each listed trace. 124 * </pre> 125 * 126 * <code>COMPLETE = 3;</code> 127 */ 128 COMPLETE(3), 129 UNRECOGNIZED(-1), 130 ; 131 132 /** 133 * 134 * 135 * <pre> 136 * Default is `MINIMAL` if unspecified. 137 * </pre> 138 * 139 * <code>VIEW_TYPE_UNSPECIFIED = 0;</code> 140 */ 141 public static final int VIEW_TYPE_UNSPECIFIED_VALUE = 0; 142 /** 143 * 144 * 145 * <pre> 146 * Minimal view of the trace record that contains only the project 147 * and trace IDs. 148 * </pre> 149 * 150 * <code>MINIMAL = 1;</code> 151 */ 152 public static final int MINIMAL_VALUE = 1; 153 /** 154 * 155 * 156 * <pre> 157 * Root span view of the trace record that returns the root spans along 158 * with the minimal trace data. 159 * </pre> 160 * 161 * <code>ROOTSPAN = 2;</code> 162 */ 163 public static final int ROOTSPAN_VALUE = 2; 164 /** 165 * 166 * 167 * <pre> 168 * Complete view of the trace record that contains the actual trace data. 169 * This is equivalent to calling the REST `get` or RPC `GetTrace` method 170 * using the ID of each listed trace. 171 * </pre> 172 * 173 * <code>COMPLETE = 3;</code> 174 */ 175 public static final int COMPLETE_VALUE = 3; 176 getNumber()177 public final int getNumber() { 178 if (this == UNRECOGNIZED) { 179 throw new java.lang.IllegalArgumentException( 180 "Can't get the number of an unknown enum value."); 181 } 182 return value; 183 } 184 185 /** 186 * @param value The numeric wire value of the corresponding enum entry. 187 * @return The enum associated with the given numeric wire value. 188 * @deprecated Use {@link #forNumber(int)} instead. 189 */ 190 @java.lang.Deprecated valueOf(int value)191 public static ViewType valueOf(int value) { 192 return forNumber(value); 193 } 194 195 /** 196 * @param value The numeric wire value of the corresponding enum entry. 197 * @return The enum associated with the given numeric wire value. 198 */ forNumber(int value)199 public static ViewType forNumber(int value) { 200 switch (value) { 201 case 0: 202 return VIEW_TYPE_UNSPECIFIED; 203 case 1: 204 return MINIMAL; 205 case 2: 206 return ROOTSPAN; 207 case 3: 208 return COMPLETE; 209 default: 210 return null; 211 } 212 } 213 internalGetValueMap()214 public static com.google.protobuf.Internal.EnumLiteMap<ViewType> internalGetValueMap() { 215 return internalValueMap; 216 } 217 218 private static final com.google.protobuf.Internal.EnumLiteMap<ViewType> internalValueMap = 219 new com.google.protobuf.Internal.EnumLiteMap<ViewType>() { 220 public ViewType findValueByNumber(int number) { 221 return ViewType.forNumber(number); 222 } 223 }; 224 getValueDescriptor()225 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 226 if (this == UNRECOGNIZED) { 227 throw new java.lang.IllegalStateException( 228 "Can't get the descriptor of an unrecognized enum value."); 229 } 230 return getDescriptor().getValues().get(ordinal()); 231 } 232 getDescriptorForType()233 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 234 return getDescriptor(); 235 } 236 getDescriptor()237 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 238 return com.google.devtools.cloudtrace.v1.ListTracesRequest.getDescriptor() 239 .getEnumTypes() 240 .get(0); 241 } 242 243 private static final ViewType[] VALUES = values(); 244 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)245 public static ViewType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 246 if (desc.getType() != getDescriptor()) { 247 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 248 } 249 if (desc.getIndex() == -1) { 250 return UNRECOGNIZED; 251 } 252 return VALUES[desc.getIndex()]; 253 } 254 255 private final int value; 256 ViewType(int value)257 private ViewType(int value) { 258 this.value = value; 259 } 260 261 // @@protoc_insertion_point(enum_scope:google.devtools.cloudtrace.v1.ListTracesRequest.ViewType) 262 } 263 264 public static final int PROJECT_ID_FIELD_NUMBER = 1; 265 266 @SuppressWarnings("serial") 267 private volatile java.lang.Object projectId_ = ""; 268 /** 269 * 270 * 271 * <pre> 272 * Required. ID of the Cloud project where the trace data is stored. 273 * </pre> 274 * 275 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 276 * 277 * @return The projectId. 278 */ 279 @java.lang.Override getProjectId()280 public java.lang.String getProjectId() { 281 java.lang.Object ref = projectId_; 282 if (ref instanceof java.lang.String) { 283 return (java.lang.String) ref; 284 } else { 285 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 286 java.lang.String s = bs.toStringUtf8(); 287 projectId_ = s; 288 return s; 289 } 290 } 291 /** 292 * 293 * 294 * <pre> 295 * Required. ID of the Cloud project where the trace data is stored. 296 * </pre> 297 * 298 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 299 * 300 * @return The bytes for projectId. 301 */ 302 @java.lang.Override getProjectIdBytes()303 public com.google.protobuf.ByteString getProjectIdBytes() { 304 java.lang.Object ref = projectId_; 305 if (ref instanceof java.lang.String) { 306 com.google.protobuf.ByteString b = 307 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 308 projectId_ = b; 309 return b; 310 } else { 311 return (com.google.protobuf.ByteString) ref; 312 } 313 } 314 315 public static final int VIEW_FIELD_NUMBER = 2; 316 private int view_ = 0; 317 /** 318 * 319 * 320 * <pre> 321 * Optional. Type of data returned for traces in the list. Default is 322 * `MINIMAL`. 323 * </pre> 324 * 325 * <code> 326 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 327 * </code> 328 * 329 * @return The enum numeric value on the wire for view. 330 */ 331 @java.lang.Override getViewValue()332 public int getViewValue() { 333 return view_; 334 } 335 /** 336 * 337 * 338 * <pre> 339 * Optional. Type of data returned for traces in the list. Default is 340 * `MINIMAL`. 341 * </pre> 342 * 343 * <code> 344 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 345 * </code> 346 * 347 * @return The view. 348 */ 349 @java.lang.Override getView()350 public com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType getView() { 351 com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType result = 352 com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.forNumber(view_); 353 return result == null 354 ? com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.UNRECOGNIZED 355 : result; 356 } 357 358 public static final int PAGE_SIZE_FIELD_NUMBER = 3; 359 private int pageSize_ = 0; 360 /** 361 * 362 * 363 * <pre> 364 * Optional. Maximum number of traces to return. If not specified or <= 0, the 365 * implementation selects a reasonable value. The implementation may 366 * return fewer traces than the requested page size. 367 * </pre> 368 * 369 * <code>int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 370 * 371 * @return The pageSize. 372 */ 373 @java.lang.Override getPageSize()374 public int getPageSize() { 375 return pageSize_; 376 } 377 378 public static final int PAGE_TOKEN_FIELD_NUMBER = 4; 379 380 @SuppressWarnings("serial") 381 private volatile java.lang.Object pageToken_ = ""; 382 /** 383 * 384 * 385 * <pre> 386 * Token identifying the page of results to return. If provided, use the 387 * value of the `next_page_token` field from a previous request. 388 * </pre> 389 * 390 * <code>string page_token = 4;</code> 391 * 392 * @return The pageToken. 393 */ 394 @java.lang.Override getPageToken()395 public java.lang.String getPageToken() { 396 java.lang.Object ref = pageToken_; 397 if (ref instanceof java.lang.String) { 398 return (java.lang.String) ref; 399 } else { 400 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 401 java.lang.String s = bs.toStringUtf8(); 402 pageToken_ = s; 403 return s; 404 } 405 } 406 /** 407 * 408 * 409 * <pre> 410 * Token identifying the page of results to return. If provided, use the 411 * value of the `next_page_token` field from a previous request. 412 * </pre> 413 * 414 * <code>string page_token = 4;</code> 415 * 416 * @return The bytes for pageToken. 417 */ 418 @java.lang.Override getPageTokenBytes()419 public com.google.protobuf.ByteString getPageTokenBytes() { 420 java.lang.Object ref = pageToken_; 421 if (ref instanceof java.lang.String) { 422 com.google.protobuf.ByteString b = 423 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 424 pageToken_ = b; 425 return b; 426 } else { 427 return (com.google.protobuf.ByteString) ref; 428 } 429 } 430 431 public static final int START_TIME_FIELD_NUMBER = 5; 432 private com.google.protobuf.Timestamp startTime_; 433 /** 434 * 435 * 436 * <pre> 437 * Start of the time interval (inclusive) during which the trace data was 438 * collected from the application. 439 * </pre> 440 * 441 * <code>.google.protobuf.Timestamp start_time = 5;</code> 442 * 443 * @return Whether the startTime field is set. 444 */ 445 @java.lang.Override hasStartTime()446 public boolean hasStartTime() { 447 return startTime_ != null; 448 } 449 /** 450 * 451 * 452 * <pre> 453 * Start of the time interval (inclusive) during which the trace data was 454 * collected from the application. 455 * </pre> 456 * 457 * <code>.google.protobuf.Timestamp start_time = 5;</code> 458 * 459 * @return The startTime. 460 */ 461 @java.lang.Override getStartTime()462 public com.google.protobuf.Timestamp getStartTime() { 463 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 464 } 465 /** 466 * 467 * 468 * <pre> 469 * Start of the time interval (inclusive) during which the trace data was 470 * collected from the application. 471 * </pre> 472 * 473 * <code>.google.protobuf.Timestamp start_time = 5;</code> 474 */ 475 @java.lang.Override getStartTimeOrBuilder()476 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 477 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 478 } 479 480 public static final int END_TIME_FIELD_NUMBER = 6; 481 private com.google.protobuf.Timestamp endTime_; 482 /** 483 * 484 * 485 * <pre> 486 * End of the time interval (inclusive) during which the trace data was 487 * collected from the application. 488 * </pre> 489 * 490 * <code>.google.protobuf.Timestamp end_time = 6;</code> 491 * 492 * @return Whether the endTime field is set. 493 */ 494 @java.lang.Override hasEndTime()495 public boolean hasEndTime() { 496 return endTime_ != null; 497 } 498 /** 499 * 500 * 501 * <pre> 502 * End of the time interval (inclusive) during which the trace data was 503 * collected from the application. 504 * </pre> 505 * 506 * <code>.google.protobuf.Timestamp end_time = 6;</code> 507 * 508 * @return The endTime. 509 */ 510 @java.lang.Override getEndTime()511 public com.google.protobuf.Timestamp getEndTime() { 512 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 513 } 514 /** 515 * 516 * 517 * <pre> 518 * End of the time interval (inclusive) during which the trace data was 519 * collected from the application. 520 * </pre> 521 * 522 * <code>.google.protobuf.Timestamp end_time = 6;</code> 523 */ 524 @java.lang.Override getEndTimeOrBuilder()525 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 526 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 527 } 528 529 public static final int FILTER_FIELD_NUMBER = 7; 530 531 @SuppressWarnings("serial") 532 private volatile java.lang.Object filter_ = ""; 533 /** 534 * 535 * 536 * <pre> 537 * Optional. A filter against labels for the request. 538 * By default, searches use prefix matching. To specify exact match, prepend 539 * a plus symbol (`+`) to the search term. 540 * Multiple terms are ANDed. Syntax: 541 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 542 * span starts with `NAME_PREFIX`. 543 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 544 * exactly `NAME`. 545 * * `span:NAME_PREFIX`: Return traces where any span starts with 546 * `NAME_PREFIX`. 547 * * `+span:NAME`: Return traces where any span's name is exactly 548 * `NAME`. 549 * * `latency:DURATION`: Return traces whose overall latency is 550 * greater or equal to than `DURATION`. Accepted units are nanoseconds 551 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 552 * example, `latency:24ms` returns traces whose overall latency 553 * is greater than or equal to 24 milliseconds. 554 * * `label:LABEL_KEY`: Return all traces containing the specified 555 * label key (exact match, case-sensitive) regardless of the key:value 556 * pair's value (including empty values). 557 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 558 * label key (exact match, case-sensitive) whose value starts with 559 * `VALUE_PREFIX`. Both a key and a value must be specified. 560 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 561 * exactly matching the specified text. Both a key and a value must be 562 * specified. 563 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 564 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 565 * </pre> 566 * 567 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 568 * 569 * @return The filter. 570 */ 571 @java.lang.Override getFilter()572 public java.lang.String getFilter() { 573 java.lang.Object ref = filter_; 574 if (ref instanceof java.lang.String) { 575 return (java.lang.String) ref; 576 } else { 577 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 578 java.lang.String s = bs.toStringUtf8(); 579 filter_ = s; 580 return s; 581 } 582 } 583 /** 584 * 585 * 586 * <pre> 587 * Optional. A filter against labels for the request. 588 * By default, searches use prefix matching. To specify exact match, prepend 589 * a plus symbol (`+`) to the search term. 590 * Multiple terms are ANDed. Syntax: 591 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 592 * span starts with `NAME_PREFIX`. 593 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 594 * exactly `NAME`. 595 * * `span:NAME_PREFIX`: Return traces where any span starts with 596 * `NAME_PREFIX`. 597 * * `+span:NAME`: Return traces where any span's name is exactly 598 * `NAME`. 599 * * `latency:DURATION`: Return traces whose overall latency is 600 * greater or equal to than `DURATION`. Accepted units are nanoseconds 601 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 602 * example, `latency:24ms` returns traces whose overall latency 603 * is greater than or equal to 24 milliseconds. 604 * * `label:LABEL_KEY`: Return all traces containing the specified 605 * label key (exact match, case-sensitive) regardless of the key:value 606 * pair's value (including empty values). 607 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 608 * label key (exact match, case-sensitive) whose value starts with 609 * `VALUE_PREFIX`. Both a key and a value must be specified. 610 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 611 * exactly matching the specified text. Both a key and a value must be 612 * specified. 613 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 614 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 615 * </pre> 616 * 617 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 618 * 619 * @return The bytes for filter. 620 */ 621 @java.lang.Override getFilterBytes()622 public com.google.protobuf.ByteString getFilterBytes() { 623 java.lang.Object ref = filter_; 624 if (ref instanceof java.lang.String) { 625 com.google.protobuf.ByteString b = 626 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 627 filter_ = b; 628 return b; 629 } else { 630 return (com.google.protobuf.ByteString) ref; 631 } 632 } 633 634 public static final int ORDER_BY_FIELD_NUMBER = 8; 635 636 @SuppressWarnings("serial") 637 private volatile java.lang.Object orderBy_ = ""; 638 /** 639 * 640 * 641 * <pre> 642 * Optional. Field used to sort the returned traces. 643 * Can be one of the following: 644 * * `trace_id` 645 * * `name` (`name` field of root span in the trace) 646 * * `duration` (difference between `end_time` and `start_time` fields of 647 * the root span) 648 * * `start` (`start_time` field of the root span) 649 * Descending order can be specified by appending `desc` to the sort field 650 * (for example, `name desc`). 651 * Only one sort field is permitted. 652 * </pre> 653 * 654 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 655 * 656 * @return The orderBy. 657 */ 658 @java.lang.Override getOrderBy()659 public java.lang.String getOrderBy() { 660 java.lang.Object ref = orderBy_; 661 if (ref instanceof java.lang.String) { 662 return (java.lang.String) ref; 663 } else { 664 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 665 java.lang.String s = bs.toStringUtf8(); 666 orderBy_ = s; 667 return s; 668 } 669 } 670 /** 671 * 672 * 673 * <pre> 674 * Optional. Field used to sort the returned traces. 675 * Can be one of the following: 676 * * `trace_id` 677 * * `name` (`name` field of root span in the trace) 678 * * `duration` (difference between `end_time` and `start_time` fields of 679 * the root span) 680 * * `start` (`start_time` field of the root span) 681 * Descending order can be specified by appending `desc` to the sort field 682 * (for example, `name desc`). 683 * Only one sort field is permitted. 684 * </pre> 685 * 686 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 687 * 688 * @return The bytes for orderBy. 689 */ 690 @java.lang.Override getOrderByBytes()691 public com.google.protobuf.ByteString getOrderByBytes() { 692 java.lang.Object ref = orderBy_; 693 if (ref instanceof java.lang.String) { 694 com.google.protobuf.ByteString b = 695 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 696 orderBy_ = b; 697 return b; 698 } else { 699 return (com.google.protobuf.ByteString) ref; 700 } 701 } 702 703 private byte memoizedIsInitialized = -1; 704 705 @java.lang.Override isInitialized()706 public final boolean isInitialized() { 707 byte isInitialized = memoizedIsInitialized; 708 if (isInitialized == 1) return true; 709 if (isInitialized == 0) return false; 710 711 memoizedIsInitialized = 1; 712 return true; 713 } 714 715 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)716 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 717 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { 718 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); 719 } 720 if (view_ 721 != com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.VIEW_TYPE_UNSPECIFIED 722 .getNumber()) { 723 output.writeEnum(2, view_); 724 } 725 if (pageSize_ != 0) { 726 output.writeInt32(3, pageSize_); 727 } 728 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { 729 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); 730 } 731 if (startTime_ != null) { 732 output.writeMessage(5, getStartTime()); 733 } 734 if (endTime_ != null) { 735 output.writeMessage(6, getEndTime()); 736 } 737 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { 738 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); 739 } 740 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { 741 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_); 742 } 743 getUnknownFields().writeTo(output); 744 } 745 746 @java.lang.Override getSerializedSize()747 public int getSerializedSize() { 748 int size = memoizedSize; 749 if (size != -1) return size; 750 751 size = 0; 752 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { 753 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); 754 } 755 if (view_ 756 != com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.VIEW_TYPE_UNSPECIFIED 757 .getNumber()) { 758 size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); 759 } 760 if (pageSize_ != 0) { 761 size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); 762 } 763 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { 764 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); 765 } 766 if (startTime_ != null) { 767 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); 768 } 769 if (endTime_ != null) { 770 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); 771 } 772 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { 773 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); 774 } 775 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { 776 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); 777 } 778 size += getUnknownFields().getSerializedSize(); 779 memoizedSize = size; 780 return size; 781 } 782 783 @java.lang.Override equals(final java.lang.Object obj)784 public boolean equals(final java.lang.Object obj) { 785 if (obj == this) { 786 return true; 787 } 788 if (!(obj instanceof com.google.devtools.cloudtrace.v1.ListTracesRequest)) { 789 return super.equals(obj); 790 } 791 com.google.devtools.cloudtrace.v1.ListTracesRequest other = 792 (com.google.devtools.cloudtrace.v1.ListTracesRequest) obj; 793 794 if (!getProjectId().equals(other.getProjectId())) return false; 795 if (view_ != other.view_) return false; 796 if (getPageSize() != other.getPageSize()) return false; 797 if (!getPageToken().equals(other.getPageToken())) return false; 798 if (hasStartTime() != other.hasStartTime()) return false; 799 if (hasStartTime()) { 800 if (!getStartTime().equals(other.getStartTime())) return false; 801 } 802 if (hasEndTime() != other.hasEndTime()) return false; 803 if (hasEndTime()) { 804 if (!getEndTime().equals(other.getEndTime())) return false; 805 } 806 if (!getFilter().equals(other.getFilter())) return false; 807 if (!getOrderBy().equals(other.getOrderBy())) return false; 808 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 809 return true; 810 } 811 812 @java.lang.Override hashCode()813 public int hashCode() { 814 if (memoizedHashCode != 0) { 815 return memoizedHashCode; 816 } 817 int hash = 41; 818 hash = (19 * hash) + getDescriptor().hashCode(); 819 hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; 820 hash = (53 * hash) + getProjectId().hashCode(); 821 hash = (37 * hash) + VIEW_FIELD_NUMBER; 822 hash = (53 * hash) + view_; 823 hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; 824 hash = (53 * hash) + getPageSize(); 825 hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; 826 hash = (53 * hash) + getPageToken().hashCode(); 827 if (hasStartTime()) { 828 hash = (37 * hash) + START_TIME_FIELD_NUMBER; 829 hash = (53 * hash) + getStartTime().hashCode(); 830 } 831 if (hasEndTime()) { 832 hash = (37 * hash) + END_TIME_FIELD_NUMBER; 833 hash = (53 * hash) + getEndTime().hashCode(); 834 } 835 hash = (37 * hash) + FILTER_FIELD_NUMBER; 836 hash = (53 * hash) + getFilter().hashCode(); 837 hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; 838 hash = (53 * hash) + getOrderBy().hashCode(); 839 hash = (29 * hash) + getUnknownFields().hashCode(); 840 memoizedHashCode = hash; 841 return hash; 842 } 843 parseFrom( java.nio.ByteBuffer data)844 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 845 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 846 return PARSER.parseFrom(data); 847 } 848 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)849 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 850 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 851 throws com.google.protobuf.InvalidProtocolBufferException { 852 return PARSER.parseFrom(data, extensionRegistry); 853 } 854 parseFrom( com.google.protobuf.ByteString data)855 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 856 com.google.protobuf.ByteString data) 857 throws com.google.protobuf.InvalidProtocolBufferException { 858 return PARSER.parseFrom(data); 859 } 860 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)861 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 862 com.google.protobuf.ByteString data, 863 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 864 throws com.google.protobuf.InvalidProtocolBufferException { 865 return PARSER.parseFrom(data, extensionRegistry); 866 } 867 parseFrom(byte[] data)868 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom(byte[] data) 869 throws com.google.protobuf.InvalidProtocolBufferException { 870 return PARSER.parseFrom(data); 871 } 872 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)873 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 874 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 875 throws com.google.protobuf.InvalidProtocolBufferException { 876 return PARSER.parseFrom(data, extensionRegistry); 877 } 878 parseFrom( java.io.InputStream input)879 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 880 java.io.InputStream input) throws java.io.IOException { 881 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 882 } 883 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)884 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 885 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 886 throws java.io.IOException { 887 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 888 PARSER, input, extensionRegistry); 889 } 890 parseDelimitedFrom( java.io.InputStream input)891 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseDelimitedFrom( 892 java.io.InputStream input) throws java.io.IOException { 893 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 894 } 895 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)896 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseDelimitedFrom( 897 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 898 throws java.io.IOException { 899 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 900 PARSER, input, extensionRegistry); 901 } 902 parseFrom( com.google.protobuf.CodedInputStream input)903 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 904 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 905 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 906 } 907 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)908 public static com.google.devtools.cloudtrace.v1.ListTracesRequest parseFrom( 909 com.google.protobuf.CodedInputStream input, 910 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 911 throws java.io.IOException { 912 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 913 PARSER, input, extensionRegistry); 914 } 915 916 @java.lang.Override newBuilderForType()917 public Builder newBuilderForType() { 918 return newBuilder(); 919 } 920 newBuilder()921 public static Builder newBuilder() { 922 return DEFAULT_INSTANCE.toBuilder(); 923 } 924 newBuilder(com.google.devtools.cloudtrace.v1.ListTracesRequest prototype)925 public static Builder newBuilder(com.google.devtools.cloudtrace.v1.ListTracesRequest prototype) { 926 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 927 } 928 929 @java.lang.Override toBuilder()930 public Builder toBuilder() { 931 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 932 } 933 934 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)935 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 936 Builder builder = new Builder(parent); 937 return builder; 938 } 939 /** 940 * 941 * 942 * <pre> 943 * The request message for the `ListTraces` method. All fields are required 944 * unless specified. 945 * </pre> 946 * 947 * Protobuf type {@code google.devtools.cloudtrace.v1.ListTracesRequest} 948 */ 949 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 950 implements 951 // @@protoc_insertion_point(builder_implements:google.devtools.cloudtrace.v1.ListTracesRequest) 952 com.google.devtools.cloudtrace.v1.ListTracesRequestOrBuilder { getDescriptor()953 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 954 return com.google.devtools.cloudtrace.v1.TraceProto 955 .internal_static_google_devtools_cloudtrace_v1_ListTracesRequest_descriptor; 956 } 957 958 @java.lang.Override 959 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()960 internalGetFieldAccessorTable() { 961 return com.google.devtools.cloudtrace.v1.TraceProto 962 .internal_static_google_devtools_cloudtrace_v1_ListTracesRequest_fieldAccessorTable 963 .ensureFieldAccessorsInitialized( 964 com.google.devtools.cloudtrace.v1.ListTracesRequest.class, 965 com.google.devtools.cloudtrace.v1.ListTracesRequest.Builder.class); 966 } 967 968 // Construct using com.google.devtools.cloudtrace.v1.ListTracesRequest.newBuilder() Builder()969 private Builder() {} 970 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)971 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 972 super(parent); 973 } 974 975 @java.lang.Override clear()976 public Builder clear() { 977 super.clear(); 978 bitField0_ = 0; 979 projectId_ = ""; 980 view_ = 0; 981 pageSize_ = 0; 982 pageToken_ = ""; 983 startTime_ = null; 984 if (startTimeBuilder_ != null) { 985 startTimeBuilder_.dispose(); 986 startTimeBuilder_ = null; 987 } 988 endTime_ = null; 989 if (endTimeBuilder_ != null) { 990 endTimeBuilder_.dispose(); 991 endTimeBuilder_ = null; 992 } 993 filter_ = ""; 994 orderBy_ = ""; 995 return this; 996 } 997 998 @java.lang.Override getDescriptorForType()999 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1000 return com.google.devtools.cloudtrace.v1.TraceProto 1001 .internal_static_google_devtools_cloudtrace_v1_ListTracesRequest_descriptor; 1002 } 1003 1004 @java.lang.Override getDefaultInstanceForType()1005 public com.google.devtools.cloudtrace.v1.ListTracesRequest getDefaultInstanceForType() { 1006 return com.google.devtools.cloudtrace.v1.ListTracesRequest.getDefaultInstance(); 1007 } 1008 1009 @java.lang.Override build()1010 public com.google.devtools.cloudtrace.v1.ListTracesRequest build() { 1011 com.google.devtools.cloudtrace.v1.ListTracesRequest result = buildPartial(); 1012 if (!result.isInitialized()) { 1013 throw newUninitializedMessageException(result); 1014 } 1015 return result; 1016 } 1017 1018 @java.lang.Override buildPartial()1019 public com.google.devtools.cloudtrace.v1.ListTracesRequest buildPartial() { 1020 com.google.devtools.cloudtrace.v1.ListTracesRequest result = 1021 new com.google.devtools.cloudtrace.v1.ListTracesRequest(this); 1022 if (bitField0_ != 0) { 1023 buildPartial0(result); 1024 } 1025 onBuilt(); 1026 return result; 1027 } 1028 buildPartial0(com.google.devtools.cloudtrace.v1.ListTracesRequest result)1029 private void buildPartial0(com.google.devtools.cloudtrace.v1.ListTracesRequest result) { 1030 int from_bitField0_ = bitField0_; 1031 if (((from_bitField0_ & 0x00000001) != 0)) { 1032 result.projectId_ = projectId_; 1033 } 1034 if (((from_bitField0_ & 0x00000002) != 0)) { 1035 result.view_ = view_; 1036 } 1037 if (((from_bitField0_ & 0x00000004) != 0)) { 1038 result.pageSize_ = pageSize_; 1039 } 1040 if (((from_bitField0_ & 0x00000008) != 0)) { 1041 result.pageToken_ = pageToken_; 1042 } 1043 if (((from_bitField0_ & 0x00000010) != 0)) { 1044 result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); 1045 } 1046 if (((from_bitField0_ & 0x00000020) != 0)) { 1047 result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); 1048 } 1049 if (((from_bitField0_ & 0x00000040) != 0)) { 1050 result.filter_ = filter_; 1051 } 1052 if (((from_bitField0_ & 0x00000080) != 0)) { 1053 result.orderBy_ = orderBy_; 1054 } 1055 } 1056 1057 @java.lang.Override clone()1058 public Builder clone() { 1059 return super.clone(); 1060 } 1061 1062 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1063 public Builder setField( 1064 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1065 return super.setField(field, value); 1066 } 1067 1068 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1069 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1070 return super.clearField(field); 1071 } 1072 1073 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1074 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1075 return super.clearOneof(oneof); 1076 } 1077 1078 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1079 public Builder setRepeatedField( 1080 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1081 return super.setRepeatedField(field, index, value); 1082 } 1083 1084 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1085 public Builder addRepeatedField( 1086 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1087 return super.addRepeatedField(field, value); 1088 } 1089 1090 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1091 public Builder mergeFrom(com.google.protobuf.Message other) { 1092 if (other instanceof com.google.devtools.cloudtrace.v1.ListTracesRequest) { 1093 return mergeFrom((com.google.devtools.cloudtrace.v1.ListTracesRequest) other); 1094 } else { 1095 super.mergeFrom(other); 1096 return this; 1097 } 1098 } 1099 mergeFrom(com.google.devtools.cloudtrace.v1.ListTracesRequest other)1100 public Builder mergeFrom(com.google.devtools.cloudtrace.v1.ListTracesRequest other) { 1101 if (other == com.google.devtools.cloudtrace.v1.ListTracesRequest.getDefaultInstance()) 1102 return this; 1103 if (!other.getProjectId().isEmpty()) { 1104 projectId_ = other.projectId_; 1105 bitField0_ |= 0x00000001; 1106 onChanged(); 1107 } 1108 if (other.view_ != 0) { 1109 setViewValue(other.getViewValue()); 1110 } 1111 if (other.getPageSize() != 0) { 1112 setPageSize(other.getPageSize()); 1113 } 1114 if (!other.getPageToken().isEmpty()) { 1115 pageToken_ = other.pageToken_; 1116 bitField0_ |= 0x00000008; 1117 onChanged(); 1118 } 1119 if (other.hasStartTime()) { 1120 mergeStartTime(other.getStartTime()); 1121 } 1122 if (other.hasEndTime()) { 1123 mergeEndTime(other.getEndTime()); 1124 } 1125 if (!other.getFilter().isEmpty()) { 1126 filter_ = other.filter_; 1127 bitField0_ |= 0x00000040; 1128 onChanged(); 1129 } 1130 if (!other.getOrderBy().isEmpty()) { 1131 orderBy_ = other.orderBy_; 1132 bitField0_ |= 0x00000080; 1133 onChanged(); 1134 } 1135 this.mergeUnknownFields(other.getUnknownFields()); 1136 onChanged(); 1137 return this; 1138 } 1139 1140 @java.lang.Override isInitialized()1141 public final boolean isInitialized() { 1142 return true; 1143 } 1144 1145 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1146 public Builder mergeFrom( 1147 com.google.protobuf.CodedInputStream input, 1148 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1149 throws java.io.IOException { 1150 if (extensionRegistry == null) { 1151 throw new java.lang.NullPointerException(); 1152 } 1153 try { 1154 boolean done = false; 1155 while (!done) { 1156 int tag = input.readTag(); 1157 switch (tag) { 1158 case 0: 1159 done = true; 1160 break; 1161 case 10: 1162 { 1163 projectId_ = input.readStringRequireUtf8(); 1164 bitField0_ |= 0x00000001; 1165 break; 1166 } // case 10 1167 case 16: 1168 { 1169 view_ = input.readEnum(); 1170 bitField0_ |= 0x00000002; 1171 break; 1172 } // case 16 1173 case 24: 1174 { 1175 pageSize_ = input.readInt32(); 1176 bitField0_ |= 0x00000004; 1177 break; 1178 } // case 24 1179 case 34: 1180 { 1181 pageToken_ = input.readStringRequireUtf8(); 1182 bitField0_ |= 0x00000008; 1183 break; 1184 } // case 34 1185 case 42: 1186 { 1187 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); 1188 bitField0_ |= 0x00000010; 1189 break; 1190 } // case 42 1191 case 50: 1192 { 1193 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); 1194 bitField0_ |= 0x00000020; 1195 break; 1196 } // case 50 1197 case 58: 1198 { 1199 filter_ = input.readStringRequireUtf8(); 1200 bitField0_ |= 0x00000040; 1201 break; 1202 } // case 58 1203 case 66: 1204 { 1205 orderBy_ = input.readStringRequireUtf8(); 1206 bitField0_ |= 0x00000080; 1207 break; 1208 } // case 66 1209 default: 1210 { 1211 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1212 done = true; // was an endgroup tag 1213 } 1214 break; 1215 } // default: 1216 } // switch (tag) 1217 } // while (!done) 1218 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1219 throw e.unwrapIOException(); 1220 } finally { 1221 onChanged(); 1222 } // finally 1223 return this; 1224 } 1225 1226 private int bitField0_; 1227 1228 private java.lang.Object projectId_ = ""; 1229 /** 1230 * 1231 * 1232 * <pre> 1233 * Required. ID of the Cloud project where the trace data is stored. 1234 * </pre> 1235 * 1236 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1237 * 1238 * @return The projectId. 1239 */ getProjectId()1240 public java.lang.String getProjectId() { 1241 java.lang.Object ref = projectId_; 1242 if (!(ref instanceof java.lang.String)) { 1243 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1244 java.lang.String s = bs.toStringUtf8(); 1245 projectId_ = s; 1246 return s; 1247 } else { 1248 return (java.lang.String) ref; 1249 } 1250 } 1251 /** 1252 * 1253 * 1254 * <pre> 1255 * Required. ID of the Cloud project where the trace data is stored. 1256 * </pre> 1257 * 1258 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1259 * 1260 * @return The bytes for projectId. 1261 */ getProjectIdBytes()1262 public com.google.protobuf.ByteString getProjectIdBytes() { 1263 java.lang.Object ref = projectId_; 1264 if (ref instanceof String) { 1265 com.google.protobuf.ByteString b = 1266 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1267 projectId_ = b; 1268 return b; 1269 } else { 1270 return (com.google.protobuf.ByteString) ref; 1271 } 1272 } 1273 /** 1274 * 1275 * 1276 * <pre> 1277 * Required. ID of the Cloud project where the trace data is stored. 1278 * </pre> 1279 * 1280 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1281 * 1282 * @param value The projectId to set. 1283 * @return This builder for chaining. 1284 */ setProjectId(java.lang.String value)1285 public Builder setProjectId(java.lang.String value) { 1286 if (value == null) { 1287 throw new NullPointerException(); 1288 } 1289 projectId_ = value; 1290 bitField0_ |= 0x00000001; 1291 onChanged(); 1292 return this; 1293 } 1294 /** 1295 * 1296 * 1297 * <pre> 1298 * Required. ID of the Cloud project where the trace data is stored. 1299 * </pre> 1300 * 1301 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1302 * 1303 * @return This builder for chaining. 1304 */ clearProjectId()1305 public Builder clearProjectId() { 1306 projectId_ = getDefaultInstance().getProjectId(); 1307 bitField0_ = (bitField0_ & ~0x00000001); 1308 onChanged(); 1309 return this; 1310 } 1311 /** 1312 * 1313 * 1314 * <pre> 1315 * Required. ID of the Cloud project where the trace data is stored. 1316 * </pre> 1317 * 1318 * <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1319 * 1320 * @param value The bytes for projectId to set. 1321 * @return This builder for chaining. 1322 */ setProjectIdBytes(com.google.protobuf.ByteString value)1323 public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { 1324 if (value == null) { 1325 throw new NullPointerException(); 1326 } 1327 checkByteStringIsUtf8(value); 1328 projectId_ = value; 1329 bitField0_ |= 0x00000001; 1330 onChanged(); 1331 return this; 1332 } 1333 1334 private int view_ = 0; 1335 /** 1336 * 1337 * 1338 * <pre> 1339 * Optional. Type of data returned for traces in the list. Default is 1340 * `MINIMAL`. 1341 * </pre> 1342 * 1343 * <code> 1344 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 1345 * </code> 1346 * 1347 * @return The enum numeric value on the wire for view. 1348 */ 1349 @java.lang.Override getViewValue()1350 public int getViewValue() { 1351 return view_; 1352 } 1353 /** 1354 * 1355 * 1356 * <pre> 1357 * Optional. Type of data returned for traces in the list. Default is 1358 * `MINIMAL`. 1359 * </pre> 1360 * 1361 * <code> 1362 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 1363 * </code> 1364 * 1365 * @param value The enum numeric value on the wire for view to set. 1366 * @return This builder for chaining. 1367 */ setViewValue(int value)1368 public Builder setViewValue(int value) { 1369 view_ = value; 1370 bitField0_ |= 0x00000002; 1371 onChanged(); 1372 return this; 1373 } 1374 /** 1375 * 1376 * 1377 * <pre> 1378 * Optional. Type of data returned for traces in the list. Default is 1379 * `MINIMAL`. 1380 * </pre> 1381 * 1382 * <code> 1383 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 1384 * </code> 1385 * 1386 * @return The view. 1387 */ 1388 @java.lang.Override getView()1389 public com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType getView() { 1390 com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType result = 1391 com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.forNumber(view_); 1392 return result == null 1393 ? com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.UNRECOGNIZED 1394 : result; 1395 } 1396 /** 1397 * 1398 * 1399 * <pre> 1400 * Optional. Type of data returned for traces in the list. Default is 1401 * `MINIMAL`. 1402 * </pre> 1403 * 1404 * <code> 1405 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 1406 * </code> 1407 * 1408 * @param value The view to set. 1409 * @return This builder for chaining. 1410 */ setView(com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType value)1411 public Builder setView(com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType value) { 1412 if (value == null) { 1413 throw new NullPointerException(); 1414 } 1415 bitField0_ |= 0x00000002; 1416 view_ = value.getNumber(); 1417 onChanged(); 1418 return this; 1419 } 1420 /** 1421 * 1422 * 1423 * <pre> 1424 * Optional. Type of data returned for traces in the list. Default is 1425 * `MINIMAL`. 1426 * </pre> 1427 * 1428 * <code> 1429 * .google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2 [(.google.api.field_behavior) = OPTIONAL]; 1430 * </code> 1431 * 1432 * @return This builder for chaining. 1433 */ clearView()1434 public Builder clearView() { 1435 bitField0_ = (bitField0_ & ~0x00000002); 1436 view_ = 0; 1437 onChanged(); 1438 return this; 1439 } 1440 1441 private int pageSize_; 1442 /** 1443 * 1444 * 1445 * <pre> 1446 * Optional. Maximum number of traces to return. If not specified or <= 0, the 1447 * implementation selects a reasonable value. The implementation may 1448 * return fewer traces than the requested page size. 1449 * </pre> 1450 * 1451 * <code>int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1452 * 1453 * @return The pageSize. 1454 */ 1455 @java.lang.Override getPageSize()1456 public int getPageSize() { 1457 return pageSize_; 1458 } 1459 /** 1460 * 1461 * 1462 * <pre> 1463 * Optional. Maximum number of traces to return. If not specified or <= 0, the 1464 * implementation selects a reasonable value. The implementation may 1465 * return fewer traces than the requested page size. 1466 * </pre> 1467 * 1468 * <code>int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1469 * 1470 * @param value The pageSize to set. 1471 * @return This builder for chaining. 1472 */ setPageSize(int value)1473 public Builder setPageSize(int value) { 1474 1475 pageSize_ = value; 1476 bitField0_ |= 0x00000004; 1477 onChanged(); 1478 return this; 1479 } 1480 /** 1481 * 1482 * 1483 * <pre> 1484 * Optional. Maximum number of traces to return. If not specified or <= 0, the 1485 * implementation selects a reasonable value. The implementation may 1486 * return fewer traces than the requested page size. 1487 * </pre> 1488 * 1489 * <code>int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 1490 * 1491 * @return This builder for chaining. 1492 */ clearPageSize()1493 public Builder clearPageSize() { 1494 bitField0_ = (bitField0_ & ~0x00000004); 1495 pageSize_ = 0; 1496 onChanged(); 1497 return this; 1498 } 1499 1500 private java.lang.Object pageToken_ = ""; 1501 /** 1502 * 1503 * 1504 * <pre> 1505 * Token identifying the page of results to return. If provided, use the 1506 * value of the `next_page_token` field from a previous request. 1507 * </pre> 1508 * 1509 * <code>string page_token = 4;</code> 1510 * 1511 * @return The pageToken. 1512 */ getPageToken()1513 public java.lang.String getPageToken() { 1514 java.lang.Object ref = pageToken_; 1515 if (!(ref instanceof java.lang.String)) { 1516 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1517 java.lang.String s = bs.toStringUtf8(); 1518 pageToken_ = s; 1519 return s; 1520 } else { 1521 return (java.lang.String) ref; 1522 } 1523 } 1524 /** 1525 * 1526 * 1527 * <pre> 1528 * Token identifying the page of results to return. If provided, use the 1529 * value of the `next_page_token` field from a previous request. 1530 * </pre> 1531 * 1532 * <code>string page_token = 4;</code> 1533 * 1534 * @return The bytes for pageToken. 1535 */ getPageTokenBytes()1536 public com.google.protobuf.ByteString getPageTokenBytes() { 1537 java.lang.Object ref = pageToken_; 1538 if (ref instanceof String) { 1539 com.google.protobuf.ByteString b = 1540 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1541 pageToken_ = b; 1542 return b; 1543 } else { 1544 return (com.google.protobuf.ByteString) ref; 1545 } 1546 } 1547 /** 1548 * 1549 * 1550 * <pre> 1551 * Token identifying the page of results to return. If provided, use the 1552 * value of the `next_page_token` field from a previous request. 1553 * </pre> 1554 * 1555 * <code>string page_token = 4;</code> 1556 * 1557 * @param value The pageToken to set. 1558 * @return This builder for chaining. 1559 */ setPageToken(java.lang.String value)1560 public Builder setPageToken(java.lang.String value) { 1561 if (value == null) { 1562 throw new NullPointerException(); 1563 } 1564 pageToken_ = value; 1565 bitField0_ |= 0x00000008; 1566 onChanged(); 1567 return this; 1568 } 1569 /** 1570 * 1571 * 1572 * <pre> 1573 * Token identifying the page of results to return. If provided, use the 1574 * value of the `next_page_token` field from a previous request. 1575 * </pre> 1576 * 1577 * <code>string page_token = 4;</code> 1578 * 1579 * @return This builder for chaining. 1580 */ clearPageToken()1581 public Builder clearPageToken() { 1582 pageToken_ = getDefaultInstance().getPageToken(); 1583 bitField0_ = (bitField0_ & ~0x00000008); 1584 onChanged(); 1585 return this; 1586 } 1587 /** 1588 * 1589 * 1590 * <pre> 1591 * Token identifying the page of results to return. If provided, use the 1592 * value of the `next_page_token` field from a previous request. 1593 * </pre> 1594 * 1595 * <code>string page_token = 4;</code> 1596 * 1597 * @param value The bytes for pageToken to set. 1598 * @return This builder for chaining. 1599 */ setPageTokenBytes(com.google.protobuf.ByteString value)1600 public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 1601 if (value == null) { 1602 throw new NullPointerException(); 1603 } 1604 checkByteStringIsUtf8(value); 1605 pageToken_ = value; 1606 bitField0_ |= 0x00000008; 1607 onChanged(); 1608 return this; 1609 } 1610 1611 private com.google.protobuf.Timestamp startTime_; 1612 private com.google.protobuf.SingleFieldBuilderV3< 1613 com.google.protobuf.Timestamp, 1614 com.google.protobuf.Timestamp.Builder, 1615 com.google.protobuf.TimestampOrBuilder> 1616 startTimeBuilder_; 1617 /** 1618 * 1619 * 1620 * <pre> 1621 * Start of the time interval (inclusive) during which the trace data was 1622 * collected from the application. 1623 * </pre> 1624 * 1625 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1626 * 1627 * @return Whether the startTime field is set. 1628 */ hasStartTime()1629 public boolean hasStartTime() { 1630 return ((bitField0_ & 0x00000010) != 0); 1631 } 1632 /** 1633 * 1634 * 1635 * <pre> 1636 * Start of the time interval (inclusive) during which the trace data was 1637 * collected from the application. 1638 * </pre> 1639 * 1640 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1641 * 1642 * @return The startTime. 1643 */ getStartTime()1644 public com.google.protobuf.Timestamp getStartTime() { 1645 if (startTimeBuilder_ == null) { 1646 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 1647 } else { 1648 return startTimeBuilder_.getMessage(); 1649 } 1650 } 1651 /** 1652 * 1653 * 1654 * <pre> 1655 * Start of the time interval (inclusive) during which the trace data was 1656 * collected from the application. 1657 * </pre> 1658 * 1659 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1660 */ setStartTime(com.google.protobuf.Timestamp value)1661 public Builder setStartTime(com.google.protobuf.Timestamp value) { 1662 if (startTimeBuilder_ == null) { 1663 if (value == null) { 1664 throw new NullPointerException(); 1665 } 1666 startTime_ = value; 1667 } else { 1668 startTimeBuilder_.setMessage(value); 1669 } 1670 bitField0_ |= 0x00000010; 1671 onChanged(); 1672 return this; 1673 } 1674 /** 1675 * 1676 * 1677 * <pre> 1678 * Start of the time interval (inclusive) during which the trace data was 1679 * collected from the application. 1680 * </pre> 1681 * 1682 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1683 */ setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)1684 public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1685 if (startTimeBuilder_ == null) { 1686 startTime_ = builderForValue.build(); 1687 } else { 1688 startTimeBuilder_.setMessage(builderForValue.build()); 1689 } 1690 bitField0_ |= 0x00000010; 1691 onChanged(); 1692 return this; 1693 } 1694 /** 1695 * 1696 * 1697 * <pre> 1698 * Start of the time interval (inclusive) during which the trace data was 1699 * collected from the application. 1700 * </pre> 1701 * 1702 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1703 */ mergeStartTime(com.google.protobuf.Timestamp value)1704 public Builder mergeStartTime(com.google.protobuf.Timestamp value) { 1705 if (startTimeBuilder_ == null) { 1706 if (((bitField0_ & 0x00000010) != 0) 1707 && startTime_ != null 1708 && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1709 getStartTimeBuilder().mergeFrom(value); 1710 } else { 1711 startTime_ = value; 1712 } 1713 } else { 1714 startTimeBuilder_.mergeFrom(value); 1715 } 1716 bitField0_ |= 0x00000010; 1717 onChanged(); 1718 return this; 1719 } 1720 /** 1721 * 1722 * 1723 * <pre> 1724 * Start of the time interval (inclusive) during which the trace data was 1725 * collected from the application. 1726 * </pre> 1727 * 1728 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1729 */ clearStartTime()1730 public Builder clearStartTime() { 1731 bitField0_ = (bitField0_ & ~0x00000010); 1732 startTime_ = null; 1733 if (startTimeBuilder_ != null) { 1734 startTimeBuilder_.dispose(); 1735 startTimeBuilder_ = null; 1736 } 1737 onChanged(); 1738 return this; 1739 } 1740 /** 1741 * 1742 * 1743 * <pre> 1744 * Start of the time interval (inclusive) during which the trace data was 1745 * collected from the application. 1746 * </pre> 1747 * 1748 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1749 */ getStartTimeBuilder()1750 public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { 1751 bitField0_ |= 0x00000010; 1752 onChanged(); 1753 return getStartTimeFieldBuilder().getBuilder(); 1754 } 1755 /** 1756 * 1757 * 1758 * <pre> 1759 * Start of the time interval (inclusive) during which the trace data was 1760 * collected from the application. 1761 * </pre> 1762 * 1763 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1764 */ getStartTimeOrBuilder()1765 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 1766 if (startTimeBuilder_ != null) { 1767 return startTimeBuilder_.getMessageOrBuilder(); 1768 } else { 1769 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 1770 } 1771 } 1772 /** 1773 * 1774 * 1775 * <pre> 1776 * Start of the time interval (inclusive) during which the trace data was 1777 * collected from the application. 1778 * </pre> 1779 * 1780 * <code>.google.protobuf.Timestamp start_time = 5;</code> 1781 */ 1782 private com.google.protobuf.SingleFieldBuilderV3< 1783 com.google.protobuf.Timestamp, 1784 com.google.protobuf.Timestamp.Builder, 1785 com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder()1786 getStartTimeFieldBuilder() { 1787 if (startTimeBuilder_ == null) { 1788 startTimeBuilder_ = 1789 new com.google.protobuf.SingleFieldBuilderV3< 1790 com.google.protobuf.Timestamp, 1791 com.google.protobuf.Timestamp.Builder, 1792 com.google.protobuf.TimestampOrBuilder>( 1793 getStartTime(), getParentForChildren(), isClean()); 1794 startTime_ = null; 1795 } 1796 return startTimeBuilder_; 1797 } 1798 1799 private com.google.protobuf.Timestamp endTime_; 1800 private com.google.protobuf.SingleFieldBuilderV3< 1801 com.google.protobuf.Timestamp, 1802 com.google.protobuf.Timestamp.Builder, 1803 com.google.protobuf.TimestampOrBuilder> 1804 endTimeBuilder_; 1805 /** 1806 * 1807 * 1808 * <pre> 1809 * End of the time interval (inclusive) during which the trace data was 1810 * collected from the application. 1811 * </pre> 1812 * 1813 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1814 * 1815 * @return Whether the endTime field is set. 1816 */ hasEndTime()1817 public boolean hasEndTime() { 1818 return ((bitField0_ & 0x00000020) != 0); 1819 } 1820 /** 1821 * 1822 * 1823 * <pre> 1824 * End of the time interval (inclusive) during which the trace data was 1825 * collected from the application. 1826 * </pre> 1827 * 1828 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1829 * 1830 * @return The endTime. 1831 */ getEndTime()1832 public com.google.protobuf.Timestamp getEndTime() { 1833 if (endTimeBuilder_ == null) { 1834 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1835 } else { 1836 return endTimeBuilder_.getMessage(); 1837 } 1838 } 1839 /** 1840 * 1841 * 1842 * <pre> 1843 * End of the time interval (inclusive) during which the trace data was 1844 * collected from the application. 1845 * </pre> 1846 * 1847 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1848 */ setEndTime(com.google.protobuf.Timestamp value)1849 public Builder setEndTime(com.google.protobuf.Timestamp value) { 1850 if (endTimeBuilder_ == null) { 1851 if (value == null) { 1852 throw new NullPointerException(); 1853 } 1854 endTime_ = value; 1855 } else { 1856 endTimeBuilder_.setMessage(value); 1857 } 1858 bitField0_ |= 0x00000020; 1859 onChanged(); 1860 return this; 1861 } 1862 /** 1863 * 1864 * 1865 * <pre> 1866 * End of the time interval (inclusive) during which the trace data was 1867 * collected from the application. 1868 * </pre> 1869 * 1870 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1871 */ setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)1872 public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1873 if (endTimeBuilder_ == null) { 1874 endTime_ = builderForValue.build(); 1875 } else { 1876 endTimeBuilder_.setMessage(builderForValue.build()); 1877 } 1878 bitField0_ |= 0x00000020; 1879 onChanged(); 1880 return this; 1881 } 1882 /** 1883 * 1884 * 1885 * <pre> 1886 * End of the time interval (inclusive) during which the trace data was 1887 * collected from the application. 1888 * </pre> 1889 * 1890 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1891 */ mergeEndTime(com.google.protobuf.Timestamp value)1892 public Builder mergeEndTime(com.google.protobuf.Timestamp value) { 1893 if (endTimeBuilder_ == null) { 1894 if (((bitField0_ & 0x00000020) != 0) 1895 && endTime_ != null 1896 && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1897 getEndTimeBuilder().mergeFrom(value); 1898 } else { 1899 endTime_ = value; 1900 } 1901 } else { 1902 endTimeBuilder_.mergeFrom(value); 1903 } 1904 bitField0_ |= 0x00000020; 1905 onChanged(); 1906 return this; 1907 } 1908 /** 1909 * 1910 * 1911 * <pre> 1912 * End of the time interval (inclusive) during which the trace data was 1913 * collected from the application. 1914 * </pre> 1915 * 1916 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1917 */ clearEndTime()1918 public Builder clearEndTime() { 1919 bitField0_ = (bitField0_ & ~0x00000020); 1920 endTime_ = null; 1921 if (endTimeBuilder_ != null) { 1922 endTimeBuilder_.dispose(); 1923 endTimeBuilder_ = null; 1924 } 1925 onChanged(); 1926 return this; 1927 } 1928 /** 1929 * 1930 * 1931 * <pre> 1932 * End of the time interval (inclusive) during which the trace data was 1933 * collected from the application. 1934 * </pre> 1935 * 1936 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1937 */ getEndTimeBuilder()1938 public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { 1939 bitField0_ |= 0x00000020; 1940 onChanged(); 1941 return getEndTimeFieldBuilder().getBuilder(); 1942 } 1943 /** 1944 * 1945 * 1946 * <pre> 1947 * End of the time interval (inclusive) during which the trace data was 1948 * collected from the application. 1949 * </pre> 1950 * 1951 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1952 */ getEndTimeOrBuilder()1953 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 1954 if (endTimeBuilder_ != null) { 1955 return endTimeBuilder_.getMessageOrBuilder(); 1956 } else { 1957 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1958 } 1959 } 1960 /** 1961 * 1962 * 1963 * <pre> 1964 * End of the time interval (inclusive) during which the trace data was 1965 * collected from the application. 1966 * </pre> 1967 * 1968 * <code>.google.protobuf.Timestamp end_time = 6;</code> 1969 */ 1970 private com.google.protobuf.SingleFieldBuilderV3< 1971 com.google.protobuf.Timestamp, 1972 com.google.protobuf.Timestamp.Builder, 1973 com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder()1974 getEndTimeFieldBuilder() { 1975 if (endTimeBuilder_ == null) { 1976 endTimeBuilder_ = 1977 new com.google.protobuf.SingleFieldBuilderV3< 1978 com.google.protobuf.Timestamp, 1979 com.google.protobuf.Timestamp.Builder, 1980 com.google.protobuf.TimestampOrBuilder>( 1981 getEndTime(), getParentForChildren(), isClean()); 1982 endTime_ = null; 1983 } 1984 return endTimeBuilder_; 1985 } 1986 1987 private java.lang.Object filter_ = ""; 1988 /** 1989 * 1990 * 1991 * <pre> 1992 * Optional. A filter against labels for the request. 1993 * By default, searches use prefix matching. To specify exact match, prepend 1994 * a plus symbol (`+`) to the search term. 1995 * Multiple terms are ANDed. Syntax: 1996 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 1997 * span starts with `NAME_PREFIX`. 1998 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 1999 * exactly `NAME`. 2000 * * `span:NAME_PREFIX`: Return traces where any span starts with 2001 * `NAME_PREFIX`. 2002 * * `+span:NAME`: Return traces where any span's name is exactly 2003 * `NAME`. 2004 * * `latency:DURATION`: Return traces whose overall latency is 2005 * greater or equal to than `DURATION`. Accepted units are nanoseconds 2006 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 2007 * example, `latency:24ms` returns traces whose overall latency 2008 * is greater than or equal to 24 milliseconds. 2009 * * `label:LABEL_KEY`: Return all traces containing the specified 2010 * label key (exact match, case-sensitive) regardless of the key:value 2011 * pair's value (including empty values). 2012 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 2013 * label key (exact match, case-sensitive) whose value starts with 2014 * `VALUE_PREFIX`. Both a key and a value must be specified. 2015 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 2016 * exactly matching the specified text. Both a key and a value must be 2017 * specified. 2018 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 2019 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 2020 * </pre> 2021 * 2022 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 2023 * 2024 * @return The filter. 2025 */ getFilter()2026 public java.lang.String getFilter() { 2027 java.lang.Object ref = filter_; 2028 if (!(ref instanceof java.lang.String)) { 2029 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2030 java.lang.String s = bs.toStringUtf8(); 2031 filter_ = s; 2032 return s; 2033 } else { 2034 return (java.lang.String) ref; 2035 } 2036 } 2037 /** 2038 * 2039 * 2040 * <pre> 2041 * Optional. A filter against labels for the request. 2042 * By default, searches use prefix matching. To specify exact match, prepend 2043 * a plus symbol (`+`) to the search term. 2044 * Multiple terms are ANDed. Syntax: 2045 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 2046 * span starts with `NAME_PREFIX`. 2047 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 2048 * exactly `NAME`. 2049 * * `span:NAME_PREFIX`: Return traces where any span starts with 2050 * `NAME_PREFIX`. 2051 * * `+span:NAME`: Return traces where any span's name is exactly 2052 * `NAME`. 2053 * * `latency:DURATION`: Return traces whose overall latency is 2054 * greater or equal to than `DURATION`. Accepted units are nanoseconds 2055 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 2056 * example, `latency:24ms` returns traces whose overall latency 2057 * is greater than or equal to 24 milliseconds. 2058 * * `label:LABEL_KEY`: Return all traces containing the specified 2059 * label key (exact match, case-sensitive) regardless of the key:value 2060 * pair's value (including empty values). 2061 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 2062 * label key (exact match, case-sensitive) whose value starts with 2063 * `VALUE_PREFIX`. Both a key and a value must be specified. 2064 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 2065 * exactly matching the specified text. Both a key and a value must be 2066 * specified. 2067 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 2068 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 2069 * </pre> 2070 * 2071 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 2072 * 2073 * @return The bytes for filter. 2074 */ getFilterBytes()2075 public com.google.protobuf.ByteString getFilterBytes() { 2076 java.lang.Object ref = filter_; 2077 if (ref instanceof String) { 2078 com.google.protobuf.ByteString b = 2079 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2080 filter_ = b; 2081 return b; 2082 } else { 2083 return (com.google.protobuf.ByteString) ref; 2084 } 2085 } 2086 /** 2087 * 2088 * 2089 * <pre> 2090 * Optional. A filter against labels for the request. 2091 * By default, searches use prefix matching. To specify exact match, prepend 2092 * a plus symbol (`+`) to the search term. 2093 * Multiple terms are ANDed. Syntax: 2094 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 2095 * span starts with `NAME_PREFIX`. 2096 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 2097 * exactly `NAME`. 2098 * * `span:NAME_PREFIX`: Return traces where any span starts with 2099 * `NAME_PREFIX`. 2100 * * `+span:NAME`: Return traces where any span's name is exactly 2101 * `NAME`. 2102 * * `latency:DURATION`: Return traces whose overall latency is 2103 * greater or equal to than `DURATION`. Accepted units are nanoseconds 2104 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 2105 * example, `latency:24ms` returns traces whose overall latency 2106 * is greater than or equal to 24 milliseconds. 2107 * * `label:LABEL_KEY`: Return all traces containing the specified 2108 * label key (exact match, case-sensitive) regardless of the key:value 2109 * pair's value (including empty values). 2110 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 2111 * label key (exact match, case-sensitive) whose value starts with 2112 * `VALUE_PREFIX`. Both a key and a value must be specified. 2113 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 2114 * exactly matching the specified text. Both a key and a value must be 2115 * specified. 2116 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 2117 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 2118 * </pre> 2119 * 2120 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 2121 * 2122 * @param value The filter to set. 2123 * @return This builder for chaining. 2124 */ setFilter(java.lang.String value)2125 public Builder setFilter(java.lang.String value) { 2126 if (value == null) { 2127 throw new NullPointerException(); 2128 } 2129 filter_ = value; 2130 bitField0_ |= 0x00000040; 2131 onChanged(); 2132 return this; 2133 } 2134 /** 2135 * 2136 * 2137 * <pre> 2138 * Optional. A filter against labels for the request. 2139 * By default, searches use prefix matching. To specify exact match, prepend 2140 * a plus symbol (`+`) to the search term. 2141 * Multiple terms are ANDed. Syntax: 2142 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 2143 * span starts with `NAME_PREFIX`. 2144 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 2145 * exactly `NAME`. 2146 * * `span:NAME_PREFIX`: Return traces where any span starts with 2147 * `NAME_PREFIX`. 2148 * * `+span:NAME`: Return traces where any span's name is exactly 2149 * `NAME`. 2150 * * `latency:DURATION`: Return traces whose overall latency is 2151 * greater or equal to than `DURATION`. Accepted units are nanoseconds 2152 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 2153 * example, `latency:24ms` returns traces whose overall latency 2154 * is greater than or equal to 24 milliseconds. 2155 * * `label:LABEL_KEY`: Return all traces containing the specified 2156 * label key (exact match, case-sensitive) regardless of the key:value 2157 * pair's value (including empty values). 2158 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 2159 * label key (exact match, case-sensitive) whose value starts with 2160 * `VALUE_PREFIX`. Both a key and a value must be specified. 2161 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 2162 * exactly matching the specified text. Both a key and a value must be 2163 * specified. 2164 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 2165 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 2166 * </pre> 2167 * 2168 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 2169 * 2170 * @return This builder for chaining. 2171 */ clearFilter()2172 public Builder clearFilter() { 2173 filter_ = getDefaultInstance().getFilter(); 2174 bitField0_ = (bitField0_ & ~0x00000040); 2175 onChanged(); 2176 return this; 2177 } 2178 /** 2179 * 2180 * 2181 * <pre> 2182 * Optional. A filter against labels for the request. 2183 * By default, searches use prefix matching. To specify exact match, prepend 2184 * a plus symbol (`+`) to the search term. 2185 * Multiple terms are ANDed. Syntax: 2186 * * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root 2187 * span starts with `NAME_PREFIX`. 2188 * * `+root:NAME` or `+NAME`: Return traces where any root span's name is 2189 * exactly `NAME`. 2190 * * `span:NAME_PREFIX`: Return traces where any span starts with 2191 * `NAME_PREFIX`. 2192 * * `+span:NAME`: Return traces where any span's name is exactly 2193 * `NAME`. 2194 * * `latency:DURATION`: Return traces whose overall latency is 2195 * greater or equal to than `DURATION`. Accepted units are nanoseconds 2196 * (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For 2197 * example, `latency:24ms` returns traces whose overall latency 2198 * is greater than or equal to 24 milliseconds. 2199 * * `label:LABEL_KEY`: Return all traces containing the specified 2200 * label key (exact match, case-sensitive) regardless of the key:value 2201 * pair's value (including empty values). 2202 * * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified 2203 * label key (exact match, case-sensitive) whose value starts with 2204 * `VALUE_PREFIX`. Both a key and a value must be specified. 2205 * * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair 2206 * exactly matching the specified text. Both a key and a value must be 2207 * specified. 2208 * * `method:VALUE`: Equivalent to `/http/method:VALUE`. 2209 * * `url:VALUE`: Equivalent to `/http/url:VALUE`. 2210 * </pre> 2211 * 2212 * <code>string filter = 7 [(.google.api.field_behavior) = OPTIONAL];</code> 2213 * 2214 * @param value The bytes for filter to set. 2215 * @return This builder for chaining. 2216 */ setFilterBytes(com.google.protobuf.ByteString value)2217 public Builder setFilterBytes(com.google.protobuf.ByteString value) { 2218 if (value == null) { 2219 throw new NullPointerException(); 2220 } 2221 checkByteStringIsUtf8(value); 2222 filter_ = value; 2223 bitField0_ |= 0x00000040; 2224 onChanged(); 2225 return this; 2226 } 2227 2228 private java.lang.Object orderBy_ = ""; 2229 /** 2230 * 2231 * 2232 * <pre> 2233 * Optional. Field used to sort the returned traces. 2234 * Can be one of the following: 2235 * * `trace_id` 2236 * * `name` (`name` field of root span in the trace) 2237 * * `duration` (difference between `end_time` and `start_time` fields of 2238 * the root span) 2239 * * `start` (`start_time` field of the root span) 2240 * Descending order can be specified by appending `desc` to the sort field 2241 * (for example, `name desc`). 2242 * Only one sort field is permitted. 2243 * </pre> 2244 * 2245 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 2246 * 2247 * @return The orderBy. 2248 */ getOrderBy()2249 public java.lang.String getOrderBy() { 2250 java.lang.Object ref = orderBy_; 2251 if (!(ref instanceof java.lang.String)) { 2252 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2253 java.lang.String s = bs.toStringUtf8(); 2254 orderBy_ = s; 2255 return s; 2256 } else { 2257 return (java.lang.String) ref; 2258 } 2259 } 2260 /** 2261 * 2262 * 2263 * <pre> 2264 * Optional. Field used to sort the returned traces. 2265 * Can be one of the following: 2266 * * `trace_id` 2267 * * `name` (`name` field of root span in the trace) 2268 * * `duration` (difference between `end_time` and `start_time` fields of 2269 * the root span) 2270 * * `start` (`start_time` field of the root span) 2271 * Descending order can be specified by appending `desc` to the sort field 2272 * (for example, `name desc`). 2273 * Only one sort field is permitted. 2274 * </pre> 2275 * 2276 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 2277 * 2278 * @return The bytes for orderBy. 2279 */ getOrderByBytes()2280 public com.google.protobuf.ByteString getOrderByBytes() { 2281 java.lang.Object ref = orderBy_; 2282 if (ref instanceof String) { 2283 com.google.protobuf.ByteString b = 2284 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2285 orderBy_ = b; 2286 return b; 2287 } else { 2288 return (com.google.protobuf.ByteString) ref; 2289 } 2290 } 2291 /** 2292 * 2293 * 2294 * <pre> 2295 * Optional. Field used to sort the returned traces. 2296 * Can be one of the following: 2297 * * `trace_id` 2298 * * `name` (`name` field of root span in the trace) 2299 * * `duration` (difference between `end_time` and `start_time` fields of 2300 * the root span) 2301 * * `start` (`start_time` field of the root span) 2302 * Descending order can be specified by appending `desc` to the sort field 2303 * (for example, `name desc`). 2304 * Only one sort field is permitted. 2305 * </pre> 2306 * 2307 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 2308 * 2309 * @param value The orderBy to set. 2310 * @return This builder for chaining. 2311 */ setOrderBy(java.lang.String value)2312 public Builder setOrderBy(java.lang.String value) { 2313 if (value == null) { 2314 throw new NullPointerException(); 2315 } 2316 orderBy_ = value; 2317 bitField0_ |= 0x00000080; 2318 onChanged(); 2319 return this; 2320 } 2321 /** 2322 * 2323 * 2324 * <pre> 2325 * Optional. Field used to sort the returned traces. 2326 * Can be one of the following: 2327 * * `trace_id` 2328 * * `name` (`name` field of root span in the trace) 2329 * * `duration` (difference between `end_time` and `start_time` fields of 2330 * the root span) 2331 * * `start` (`start_time` field of the root span) 2332 * Descending order can be specified by appending `desc` to the sort field 2333 * (for example, `name desc`). 2334 * Only one sort field is permitted. 2335 * </pre> 2336 * 2337 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 2338 * 2339 * @return This builder for chaining. 2340 */ clearOrderBy()2341 public Builder clearOrderBy() { 2342 orderBy_ = getDefaultInstance().getOrderBy(); 2343 bitField0_ = (bitField0_ & ~0x00000080); 2344 onChanged(); 2345 return this; 2346 } 2347 /** 2348 * 2349 * 2350 * <pre> 2351 * Optional. Field used to sort the returned traces. 2352 * Can be one of the following: 2353 * * `trace_id` 2354 * * `name` (`name` field of root span in the trace) 2355 * * `duration` (difference between `end_time` and `start_time` fields of 2356 * the root span) 2357 * * `start` (`start_time` field of the root span) 2358 * Descending order can be specified by appending `desc` to the sort field 2359 * (for example, `name desc`). 2360 * Only one sort field is permitted. 2361 * </pre> 2362 * 2363 * <code>string order_by = 8 [(.google.api.field_behavior) = OPTIONAL];</code> 2364 * 2365 * @param value The bytes for orderBy to set. 2366 * @return This builder for chaining. 2367 */ setOrderByBytes(com.google.protobuf.ByteString value)2368 public Builder setOrderByBytes(com.google.protobuf.ByteString value) { 2369 if (value == null) { 2370 throw new NullPointerException(); 2371 } 2372 checkByteStringIsUtf8(value); 2373 orderBy_ = value; 2374 bitField0_ |= 0x00000080; 2375 onChanged(); 2376 return this; 2377 } 2378 2379 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2380 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2381 return super.setUnknownFields(unknownFields); 2382 } 2383 2384 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2385 public final Builder mergeUnknownFields( 2386 final com.google.protobuf.UnknownFieldSet unknownFields) { 2387 return super.mergeUnknownFields(unknownFields); 2388 } 2389 2390 // @@protoc_insertion_point(builder_scope:google.devtools.cloudtrace.v1.ListTracesRequest) 2391 } 2392 2393 // @@protoc_insertion_point(class_scope:google.devtools.cloudtrace.v1.ListTracesRequest) 2394 private static final com.google.devtools.cloudtrace.v1.ListTracesRequest DEFAULT_INSTANCE; 2395 2396 static { 2397 DEFAULT_INSTANCE = new com.google.devtools.cloudtrace.v1.ListTracesRequest(); 2398 } 2399 getDefaultInstance()2400 public static com.google.devtools.cloudtrace.v1.ListTracesRequest getDefaultInstance() { 2401 return DEFAULT_INSTANCE; 2402 } 2403 2404 private static final com.google.protobuf.Parser<ListTracesRequest> PARSER = 2405 new com.google.protobuf.AbstractParser<ListTracesRequest>() { 2406 @java.lang.Override 2407 public ListTracesRequest parsePartialFrom( 2408 com.google.protobuf.CodedInputStream input, 2409 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2410 throws com.google.protobuf.InvalidProtocolBufferException { 2411 Builder builder = newBuilder(); 2412 try { 2413 builder.mergeFrom(input, extensionRegistry); 2414 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2415 throw e.setUnfinishedMessage(builder.buildPartial()); 2416 } catch (com.google.protobuf.UninitializedMessageException e) { 2417 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2418 } catch (java.io.IOException e) { 2419 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2420 .setUnfinishedMessage(builder.buildPartial()); 2421 } 2422 return builder.buildPartial(); 2423 } 2424 }; 2425 parser()2426 public static com.google.protobuf.Parser<ListTracesRequest> parser() { 2427 return PARSER; 2428 } 2429 2430 @java.lang.Override getParserForType()2431 public com.google.protobuf.Parser<ListTracesRequest> getParserForType() { 2432 return PARSER; 2433 } 2434 2435 @java.lang.Override getDefaultInstanceForType()2436 public com.google.devtools.cloudtrace.v1.ListTracesRequest getDefaultInstanceForType() { 2437 return DEFAULT_INSTANCE; 2438 } 2439 } 2440