cz.proto.RuntimeDriverStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: job.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.RuntimeDriverStats}
*/
public final class RuntimeDriverStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.RuntimeDriverStats)
RuntimeDriverStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RuntimeDriverStats.newBuilder() to construct.
private RuntimeDriverStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RuntimeDriverStats() {
id_ = "";
runStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RuntimeDriverStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RuntimeDriverStats(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
cz.proto.TimeRangeOuterClass.TimeRange.Builder subBuilder = null;
if (timeRangeUs_ != null) {
subBuilder = timeRangeUs_.toBuilder();
}
timeRangeUs_ = input.readMessage(cz.proto.TimeRangeOuterClass.TimeRange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeRangeUs_);
timeRangeUs_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
runStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
runStats_.add(
input.readMessage(cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.parser(), extensionRegistry));
break;
}
case 32: {
pipelineId_ = input.readUInt64();
break;
}
case 40: {
driverSequence_ = input.readUInt64();
break;
}
case 48: {
blockTimingNanos_ = input.readUInt64();
break;
}
case 56: {
queueTimingNanos_ = input.readUInt64();
break;
}
case 64: {
yieldCount_ = input.readUInt64();
break;
}
case 72: {
blockCount_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
runStats_ = java.util.Collections.unmodifiableList(runStats_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobProto.internal_static_cz_proto_RuntimeDriverStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobProto.internal_static_cz_proto_RuntimeDriverStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.RuntimeDriverStats.class, cz.proto.RuntimeDriverStats.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* may deprecate later
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* may deprecate later
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIME_RANGE_US_FIELD_NUMBER = 2;
private cz.proto.TimeRangeOuterClass.TimeRange timeRangeUs_;
/**
* .cz.proto.TimeRange time_range_us = 2;
* @return Whether the timeRangeUs field is set.
*/
@java.lang.Override
public boolean hasTimeRangeUs() {
return timeRangeUs_ != null;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
* @return The timeRangeUs.
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRange getTimeRangeUs() {
return timeRangeUs_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeRangeUs_;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeRangeUsOrBuilder() {
return getTimeRangeUs();
}
public static final int RUN_STATS_FIELD_NUMBER = 3;
private java.util.List runStats_;
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
@java.lang.Override
public java.util.List getRunStatsList() {
return runStats_;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
@java.lang.Override
public java.util.List extends cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder>
getRunStatsOrBuilderList() {
return runStats_;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
@java.lang.Override
public int getRunStatsCount() {
return runStats_.size();
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
@java.lang.Override
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats getRunStats(int index) {
return runStats_.get(index);
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
@java.lang.Override
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder getRunStatsOrBuilder(
int index) {
return runStats_.get(index);
}
public static final int PIPELINE_ID_FIELD_NUMBER = 4;
private long pipelineId_;
/**
* uint64 pipeline_id = 4;
* @return The pipelineId.
*/
@java.lang.Override
public long getPipelineId() {
return pipelineId_;
}
public static final int DRIVER_SEQUENCE_FIELD_NUMBER = 5;
private long driverSequence_;
/**
* uint64 driver_sequence = 5;
* @return The driverSequence.
*/
@java.lang.Override
public long getDriverSequence() {
return driverSequence_;
}
public static final int BLOCK_TIMING_NANOS_FIELD_NUMBER = 6;
private long blockTimingNanos_;
/**
* uint64 block_timing_nanos = 6;
* @return The blockTimingNanos.
*/
@java.lang.Override
public long getBlockTimingNanos() {
return blockTimingNanos_;
}
public static final int QUEUE_TIMING_NANOS_FIELD_NUMBER = 7;
private long queueTimingNanos_;
/**
* uint64 queue_timing_nanos = 7;
* @return The queueTimingNanos.
*/
@java.lang.Override
public long getQueueTimingNanos() {
return queueTimingNanos_;
}
public static final int YIELD_COUNT_FIELD_NUMBER = 8;
private long yieldCount_;
/**
* uint64 yield_count = 8;
* @return The yieldCount.
*/
@java.lang.Override
public long getYieldCount() {
return yieldCount_;
}
public static final int BLOCK_COUNT_FIELD_NUMBER = 9;
private long blockCount_;
/**
* uint64 block_count = 9;
* @return The blockCount.
*/
@java.lang.Override
public long getBlockCount() {
return blockCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (timeRangeUs_ != null) {
output.writeMessage(2, getTimeRangeUs());
}
for (int i = 0; i < runStats_.size(); i++) {
output.writeMessage(3, runStats_.get(i));
}
if (pipelineId_ != 0L) {
output.writeUInt64(4, pipelineId_);
}
if (driverSequence_ != 0L) {
output.writeUInt64(5, driverSequence_);
}
if (blockTimingNanos_ != 0L) {
output.writeUInt64(6, blockTimingNanos_);
}
if (queueTimingNanos_ != 0L) {
output.writeUInt64(7, queueTimingNanos_);
}
if (yieldCount_ != 0L) {
output.writeUInt64(8, yieldCount_);
}
if (blockCount_ != 0L) {
output.writeUInt64(9, blockCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (timeRangeUs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimeRangeUs());
}
for (int i = 0; i < runStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, runStats_.get(i));
}
if (pipelineId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, pipelineId_);
}
if (driverSequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, driverSequence_);
}
if (blockTimingNanos_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, blockTimingNanos_);
}
if (queueTimingNanos_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, queueTimingNanos_);
}
if (yieldCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, yieldCount_);
}
if (blockCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, blockCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.RuntimeDriverStats)) {
return super.equals(obj);
}
cz.proto.RuntimeDriverStats other = (cz.proto.RuntimeDriverStats) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasTimeRangeUs() != other.hasTimeRangeUs()) return false;
if (hasTimeRangeUs()) {
if (!getTimeRangeUs()
.equals(other.getTimeRangeUs())) return false;
}
if (!getRunStatsList()
.equals(other.getRunStatsList())) return false;
if (getPipelineId()
!= other.getPipelineId()) return false;
if (getDriverSequence()
!= other.getDriverSequence()) return false;
if (getBlockTimingNanos()
!= other.getBlockTimingNanos()) return false;
if (getQueueTimingNanos()
!= other.getQueueTimingNanos()) return false;
if (getYieldCount()
!= other.getYieldCount()) return false;
if (getBlockCount()
!= other.getBlockCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (hasTimeRangeUs()) {
hash = (37 * hash) + TIME_RANGE_US_FIELD_NUMBER;
hash = (53 * hash) + getTimeRangeUs().hashCode();
}
if (getRunStatsCount() > 0) {
hash = (37 * hash) + RUN_STATS_FIELD_NUMBER;
hash = (53 * hash) + getRunStatsList().hashCode();
}
hash = (37 * hash) + PIPELINE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPipelineId());
hash = (37 * hash) + DRIVER_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDriverSequence());
hash = (37 * hash) + BLOCK_TIMING_NANOS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockTimingNanos());
hash = (37 * hash) + QUEUE_TIMING_NANOS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getQueueTimingNanos());
hash = (37 * hash) + YIELD_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getYieldCount());
hash = (37 * hash) + BLOCK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.RuntimeDriverStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.RuntimeDriverStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.RuntimeDriverStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.RuntimeDriverStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.RuntimeDriverStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.RuntimeDriverStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.RuntimeDriverStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.RuntimeDriverStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.RuntimeDriverStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.RuntimeDriverStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.RuntimeDriverStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.RuntimeDriverStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cz.proto.RuntimeDriverStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cz.proto.RuntimeDriverStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.RuntimeDriverStats)
cz.proto.RuntimeDriverStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobProto.internal_static_cz_proto_RuntimeDriverStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobProto.internal_static_cz_proto_RuntimeDriverStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.RuntimeDriverStats.class, cz.proto.RuntimeDriverStats.Builder.class);
}
// Construct using cz.proto.RuntimeDriverStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRunStatsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
if (timeRangeUsBuilder_ == null) {
timeRangeUs_ = null;
} else {
timeRangeUs_ = null;
timeRangeUsBuilder_ = null;
}
if (runStatsBuilder_ == null) {
runStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
runStatsBuilder_.clear();
}
pipelineId_ = 0L;
driverSequence_ = 0L;
blockTimingNanos_ = 0L;
queueTimingNanos_ = 0L;
yieldCount_ = 0L;
blockCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.JobProto.internal_static_cz_proto_RuntimeDriverStats_descriptor;
}
@java.lang.Override
public cz.proto.RuntimeDriverStats getDefaultInstanceForType() {
return cz.proto.RuntimeDriverStats.getDefaultInstance();
}
@java.lang.Override
public cz.proto.RuntimeDriverStats build() {
cz.proto.RuntimeDriverStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.RuntimeDriverStats buildPartial() {
cz.proto.RuntimeDriverStats result = new cz.proto.RuntimeDriverStats(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
if (timeRangeUsBuilder_ == null) {
result.timeRangeUs_ = timeRangeUs_;
} else {
result.timeRangeUs_ = timeRangeUsBuilder_.build();
}
if (runStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
runStats_ = java.util.Collections.unmodifiableList(runStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.runStats_ = runStats_;
} else {
result.runStats_ = runStatsBuilder_.build();
}
result.pipelineId_ = pipelineId_;
result.driverSequence_ = driverSequence_;
result.blockTimingNanos_ = blockTimingNanos_;
result.queueTimingNanos_ = queueTimingNanos_;
result.yieldCount_ = yieldCount_;
result.blockCount_ = blockCount_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.proto.RuntimeDriverStats) {
return mergeFrom((cz.proto.RuntimeDriverStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.RuntimeDriverStats other) {
if (other == cz.proto.RuntimeDriverStats.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasTimeRangeUs()) {
mergeTimeRangeUs(other.getTimeRangeUs());
}
if (runStatsBuilder_ == null) {
if (!other.runStats_.isEmpty()) {
if (runStats_.isEmpty()) {
runStats_ = other.runStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRunStatsIsMutable();
runStats_.addAll(other.runStats_);
}
onChanged();
}
} else {
if (!other.runStats_.isEmpty()) {
if (runStatsBuilder_.isEmpty()) {
runStatsBuilder_.dispose();
runStatsBuilder_ = null;
runStats_ = other.runStats_;
bitField0_ = (bitField0_ & ~0x00000001);
runStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRunStatsFieldBuilder() : null;
} else {
runStatsBuilder_.addAllMessages(other.runStats_);
}
}
}
if (other.getPipelineId() != 0L) {
setPipelineId(other.getPipelineId());
}
if (other.getDriverSequence() != 0L) {
setDriverSequence(other.getDriverSequence());
}
if (other.getBlockTimingNanos() != 0L) {
setBlockTimingNanos(other.getBlockTimingNanos());
}
if (other.getQueueTimingNanos() != 0L) {
setQueueTimingNanos(other.getQueueTimingNanos());
}
if (other.getYieldCount() != 0L) {
setYieldCount(other.getYieldCount());
}
if (other.getBlockCount() != 0L) {
setBlockCount(other.getBlockCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cz.proto.RuntimeDriverStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.RuntimeDriverStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* may deprecate later
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* may deprecate later
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* may deprecate later
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* may deprecate later
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* may deprecate later
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private cz.proto.TimeRangeOuterClass.TimeRange timeRangeUs_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder> timeRangeUsBuilder_;
/**
* .cz.proto.TimeRange time_range_us = 2;
* @return Whether the timeRangeUs field is set.
*/
public boolean hasTimeRangeUs() {
return timeRangeUsBuilder_ != null || timeRangeUs_ != null;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
* @return The timeRangeUs.
*/
public cz.proto.TimeRangeOuterClass.TimeRange getTimeRangeUs() {
if (timeRangeUsBuilder_ == null) {
return timeRangeUs_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeRangeUs_;
} else {
return timeRangeUsBuilder_.getMessage();
}
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
public Builder setTimeRangeUs(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeRangeUsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeRangeUs_ = value;
onChanged();
} else {
timeRangeUsBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
public Builder setTimeRangeUs(
cz.proto.TimeRangeOuterClass.TimeRange.Builder builderForValue) {
if (timeRangeUsBuilder_ == null) {
timeRangeUs_ = builderForValue.build();
onChanged();
} else {
timeRangeUsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
public Builder mergeTimeRangeUs(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeRangeUsBuilder_ == null) {
if (timeRangeUs_ != null) {
timeRangeUs_ =
cz.proto.TimeRangeOuterClass.TimeRange.newBuilder(timeRangeUs_).mergeFrom(value).buildPartial();
} else {
timeRangeUs_ = value;
}
onChanged();
} else {
timeRangeUsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
public Builder clearTimeRangeUs() {
if (timeRangeUsBuilder_ == null) {
timeRangeUs_ = null;
onChanged();
} else {
timeRangeUs_ = null;
timeRangeUsBuilder_ = null;
}
return this;
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
public cz.proto.TimeRangeOuterClass.TimeRange.Builder getTimeRangeUsBuilder() {
onChanged();
return getTimeRangeUsFieldBuilder().getBuilder();
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeRangeUsOrBuilder() {
if (timeRangeUsBuilder_ != null) {
return timeRangeUsBuilder_.getMessageOrBuilder();
} else {
return timeRangeUs_ == null ?
cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeRangeUs_;
}
}
/**
* .cz.proto.TimeRange time_range_us = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>
getTimeRangeUsFieldBuilder() {
if (timeRangeUsBuilder_ == null) {
timeRangeUsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>(
getTimeRangeUs(),
getParentForChildren(),
isClean());
timeRangeUs_ = null;
}
return timeRangeUsBuilder_;
}
private java.util.List runStats_ =
java.util.Collections.emptyList();
private void ensureRunStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
runStats_ = new java.util.ArrayList(runStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder> runStatsBuilder_;
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public java.util.List getRunStatsList() {
if (runStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(runStats_);
} else {
return runStatsBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public int getRunStatsCount() {
if (runStatsBuilder_ == null) {
return runStats_.size();
} else {
return runStatsBuilder_.getCount();
}
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats getRunStats(int index) {
if (runStatsBuilder_ == null) {
return runStats_.get(index);
} else {
return runStatsBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder setRunStats(
int index, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats value) {
if (runStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRunStatsIsMutable();
runStats_.set(index, value);
onChanged();
} else {
runStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder setRunStats(
int index, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder builderForValue) {
if (runStatsBuilder_ == null) {
ensureRunStatsIsMutable();
runStats_.set(index, builderForValue.build());
onChanged();
} else {
runStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder addRunStats(cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats value) {
if (runStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRunStatsIsMutable();
runStats_.add(value);
onChanged();
} else {
runStatsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder addRunStats(
int index, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats value) {
if (runStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRunStatsIsMutable();
runStats_.add(index, value);
onChanged();
} else {
runStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder addRunStats(
cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder builderForValue) {
if (runStatsBuilder_ == null) {
ensureRunStatsIsMutable();
runStats_.add(builderForValue.build());
onChanged();
} else {
runStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder addRunStats(
int index, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder builderForValue) {
if (runStatsBuilder_ == null) {
ensureRunStatsIsMutable();
runStats_.add(index, builderForValue.build());
onChanged();
} else {
runStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder addAllRunStats(
java.lang.Iterable extends cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats> values) {
if (runStatsBuilder_ == null) {
ensureRunStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, runStats_);
onChanged();
} else {
runStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder clearRunStats() {
if (runStatsBuilder_ == null) {
runStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
runStatsBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public Builder removeRunStats(int index) {
if (runStatsBuilder_ == null) {
ensureRunStatsIsMutable();
runStats_.remove(index);
onChanged();
} else {
runStatsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder getRunStatsBuilder(
int index) {
return getRunStatsFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder getRunStatsOrBuilder(
int index) {
if (runStatsBuilder_ == null) {
return runStats_.get(index); } else {
return runStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public java.util.List extends cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder>
getRunStatsOrBuilderList() {
if (runStatsBuilder_ != null) {
return runStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(runStats_);
}
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder addRunStatsBuilder() {
return getRunStatsFieldBuilder().addBuilder(
cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.getDefaultInstance());
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder addRunStatsBuilder(
int index) {
return getRunStatsFieldBuilder().addBuilder(
index, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.getDefaultInstance());
}
/**
* repeated .cz.proto.RuntimeRunSpanStats run_stats = 3;
*/
public java.util.List
getRunStatsBuilderList() {
return getRunStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder>
getRunStatsFieldBuilder() {
if (runStatsBuilder_ == null) {
runStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStats.Builder, cz.proto.RuntimeRunSpanStatsOuterClass.RuntimeRunSpanStatsOrBuilder>(
runStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
runStats_ = null;
}
return runStatsBuilder_;
}
private long pipelineId_ ;
/**
* uint64 pipeline_id = 4;
* @return The pipelineId.
*/
@java.lang.Override
public long getPipelineId() {
return pipelineId_;
}
/**
* uint64 pipeline_id = 4;
* @param value The pipelineId to set.
* @return This builder for chaining.
*/
public Builder setPipelineId(long value) {
pipelineId_ = value;
onChanged();
return this;
}
/**
* uint64 pipeline_id = 4;
* @return This builder for chaining.
*/
public Builder clearPipelineId() {
pipelineId_ = 0L;
onChanged();
return this;
}
private long driverSequence_ ;
/**
* uint64 driver_sequence = 5;
* @return The driverSequence.
*/
@java.lang.Override
public long getDriverSequence() {
return driverSequence_;
}
/**
* uint64 driver_sequence = 5;
* @param value The driverSequence to set.
* @return This builder for chaining.
*/
public Builder setDriverSequence(long value) {
driverSequence_ = value;
onChanged();
return this;
}
/**
* uint64 driver_sequence = 5;
* @return This builder for chaining.
*/
public Builder clearDriverSequence() {
driverSequence_ = 0L;
onChanged();
return this;
}
private long blockTimingNanos_ ;
/**
* uint64 block_timing_nanos = 6;
* @return The blockTimingNanos.
*/
@java.lang.Override
public long getBlockTimingNanos() {
return blockTimingNanos_;
}
/**
* uint64 block_timing_nanos = 6;
* @param value The blockTimingNanos to set.
* @return This builder for chaining.
*/
public Builder setBlockTimingNanos(long value) {
blockTimingNanos_ = value;
onChanged();
return this;
}
/**
* uint64 block_timing_nanos = 6;
* @return This builder for chaining.
*/
public Builder clearBlockTimingNanos() {
blockTimingNanos_ = 0L;
onChanged();
return this;
}
private long queueTimingNanos_ ;
/**
* uint64 queue_timing_nanos = 7;
* @return The queueTimingNanos.
*/
@java.lang.Override
public long getQueueTimingNanos() {
return queueTimingNanos_;
}
/**
* uint64 queue_timing_nanos = 7;
* @param value The queueTimingNanos to set.
* @return This builder for chaining.
*/
public Builder setQueueTimingNanos(long value) {
queueTimingNanos_ = value;
onChanged();
return this;
}
/**
* uint64 queue_timing_nanos = 7;
* @return This builder for chaining.
*/
public Builder clearQueueTimingNanos() {
queueTimingNanos_ = 0L;
onChanged();
return this;
}
private long yieldCount_ ;
/**
* uint64 yield_count = 8;
* @return The yieldCount.
*/
@java.lang.Override
public long getYieldCount() {
return yieldCount_;
}
/**
* uint64 yield_count = 8;
* @param value The yieldCount to set.
* @return This builder for chaining.
*/
public Builder setYieldCount(long value) {
yieldCount_ = value;
onChanged();
return this;
}
/**
* uint64 yield_count = 8;
* @return This builder for chaining.
*/
public Builder clearYieldCount() {
yieldCount_ = 0L;
onChanged();
return this;
}
private long blockCount_ ;
/**
* uint64 block_count = 9;
* @return The blockCount.
*/
@java.lang.Override
public long getBlockCount() {
return blockCount_;
}
/**
* uint64 block_count = 9;
* @param value The blockCount to set.
* @return This builder for chaining.
*/
public Builder setBlockCount(long value) {
blockCount_ = value;
onChanged();
return this;
}
/**
* uint64 block_count = 9;
* @return This builder for chaining.
*/
public Builder clearBlockCount() {
blockCount_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cz.proto.RuntimeDriverStats)
}
// @@protoc_insertion_point(class_scope:cz.proto.RuntimeDriverStats)
private static final cz.proto.RuntimeDriverStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.RuntimeDriverStats();
}
public static cz.proto.RuntimeDriverStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RuntimeDriverStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RuntimeDriverStats(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.RuntimeDriverStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy