/** * * * <pre> * End of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp end_time = 6;</code> */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endTime_ = value; onChanged(); } else { endTimeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Start of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp start_time = 5;</code> */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * ID of the Cloud project where the trace data is stored. * </pre> * * <code>string project_id = 1;</code> */ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; onChanged(); return this; }
/** * * * <pre> * Field used to sort the returned traces. Optional. * Can be one of the following: * * `trace_id` * * `name` (`name` field of root span in the trace) * * `duration` (difference between `end_time` and `start_time` fields of * the root span) * * `start` (`start_time` field of the root span) * Descending order can be specified by appending `desc` to the sort field * (for example, `name desc`). * Only one sort field is permitted. * </pre> * * <code>string order_by = 8;</code> */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /**
/** * * * <pre> * End of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp end_time = 6;</code> */ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Start of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp start_time = 5;</code> */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTime_ = null; startTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * End of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp end_time = 6;</code> */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { endTime_ = null; onChanged(); } else { endTime_ = null; endTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * Start of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp start_time = 5;</code> */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Maximum number of traces to return. If not specified or <= 0, the * implementation selects a reasonable value. The implementation may * return fewer traces than the requested page size. Optional. * </pre> * * <code>int32 page_size = 3;</code> */ public Builder setPageSize(int value) { pageSize_ = value; onChanged(); return this; } /**
/** * * * <pre> * Token identifying the page of results to return. If provided, use the * value of the `next_page_token` field from a previous request. Optional. * </pre> * * <code>string page_token = 4;</code> */ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * Type of data returned for traces in the list. Optional. Default is * `MINIMAL`. * </pre> * * <code>.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2;</code> */ public Builder setView(com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Token identifying the page of results to return. If provided, use the * value of the `next_page_token` field from a previous request. Optional. * </pre> * * <code>string page_token = 4;</code> */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; }
/** * * * <pre> * Token identifying the page of results to return. If provided, use the * value of the `next_page_token` field from a previous request. Optional. * </pre> * * <code>string page_token = 4;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
/** * * * <pre> * Type of data returned for traces in the list. Optional. Default is * `MINIMAL`. * </pre> * * <code>.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2;</code> */ public Builder setViewValue(int value) { view_ = value; onChanged(); return this; } /**
/** * * * <pre> * ID of the Cloud project where the trace data is stored. * </pre> * * <code>string project_id = 1;</code> */ public Builder setProjectId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; onChanged(); return this; } /**
/** * * * <pre> * End of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp end_time = 6;</code> */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Start of the time interval (inclusive) during which the trace data was * collected from the application. * </pre> * * <code>.google.protobuf.Timestamp start_time = 5;</code> */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * ID of the Cloud project where the trace data is stored. * </pre> * * <code>string project_id = 1;</code> */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /**
/** * * * <pre> * Maximum number of traces to return. If not specified or <= 0, the * implementation selects a reasonable value. The implementation may * return fewer traces than the requested page size. Optional. * </pre> * * <code>int32 page_size = 3;</code> */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; }
/** * * * <pre> * Type of data returned for traces in the list. Optional. Default is * `MINIMAL`. * </pre> * * <code>.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType view = 2;</code> */ public Builder clearView() { view_ = 0; onChanged(); return this; }