com.vesoft.nebula.proto.graph.ElapsedTime Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: graph.proto
// Protobuf Java Version: 3.25.1
package com.vesoft.nebula.proto.graph;
/**
* Protobuf type {@code nebula.proto.graph.ElapsedTime}
*/
public final class ElapsedTime extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:nebula.proto.graph.ElapsedTime)
ElapsedTimeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ElapsedTime.newBuilder() to construct.
private ElapsedTime(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ElapsedTime() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ElapsedTime();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ElapsedTime_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ElapsedTime_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vesoft.nebula.proto.graph.ElapsedTime.class, com.vesoft.nebula.proto.graph.ElapsedTime.Builder.class);
}
public static final int TOTAL_SERVER_TIME_US_FIELD_NUMBER = 1;
private long totalServerTimeUs_ = 0L;
/**
* int64 total_server_time_us = 1;
* @return The totalServerTimeUs.
*/
@java.lang.Override
public long getTotalServerTimeUs() {
return totalServerTimeUs_;
}
public static final int BUILD_TIME_US_FIELD_NUMBER = 2;
private long buildTimeUs_ = 0L;
/**
* int64 build_time_us = 2;
* @return The buildTimeUs.
*/
@java.lang.Override
public long getBuildTimeUs() {
return buildTimeUs_;
}
public static final int OPTIMIZE_TIME_US_FIELD_NUMBER = 3;
private long optimizeTimeUs_ = 0L;
/**
* int64 optimize_time_us = 3;
* @return The optimizeTimeUs.
*/
@java.lang.Override
public long getOptimizeTimeUs() {
return optimizeTimeUs_;
}
public static final int SERIALIZE_TIME_US_FIELD_NUMBER = 4;
private long serializeTimeUs_ = 0L;
/**
* int64 serialize_time_us = 4;
* @return The serializeTimeUs.
*/
@java.lang.Override
public long getSerializeTimeUs() {
return serializeTimeUs_;
}
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 (totalServerTimeUs_ != 0L) {
output.writeInt64(1, totalServerTimeUs_);
}
if (buildTimeUs_ != 0L) {
output.writeInt64(2, buildTimeUs_);
}
if (optimizeTimeUs_ != 0L) {
output.writeInt64(3, optimizeTimeUs_);
}
if (serializeTimeUs_ != 0L) {
output.writeInt64(4, serializeTimeUs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (totalServerTimeUs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, totalServerTimeUs_);
}
if (buildTimeUs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, buildTimeUs_);
}
if (optimizeTimeUs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, optimizeTimeUs_);
}
if (serializeTimeUs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, serializeTimeUs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vesoft.nebula.proto.graph.ElapsedTime)) {
return super.equals(obj);
}
com.vesoft.nebula.proto.graph.ElapsedTime other = (com.vesoft.nebula.proto.graph.ElapsedTime) obj;
if (getTotalServerTimeUs()
!= other.getTotalServerTimeUs()) return false;
if (getBuildTimeUs()
!= other.getBuildTimeUs()) return false;
if (getOptimizeTimeUs()
!= other.getOptimizeTimeUs()) return false;
if (getSerializeTimeUs()
!= other.getSerializeTimeUs()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TOTAL_SERVER_TIME_US_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalServerTimeUs());
hash = (37 * hash) + BUILD_TIME_US_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBuildTimeUs());
hash = (37 * hash) + OPTIMIZE_TIME_US_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOptimizeTimeUs());
hash = (37 * hash) + SERIALIZE_TIME_US_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSerializeTimeUs());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime 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 com.vesoft.nebula.proto.graph.ElapsedTime parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime 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 com.vesoft.nebula.proto.graph.ElapsedTime parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.ElapsedTime 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(com.vesoft.nebula.proto.graph.ElapsedTime 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 nebula.proto.graph.ElapsedTime}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:nebula.proto.graph.ElapsedTime)
com.vesoft.nebula.proto.graph.ElapsedTimeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ElapsedTime_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ElapsedTime_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vesoft.nebula.proto.graph.ElapsedTime.class, com.vesoft.nebula.proto.graph.ElapsedTime.Builder.class);
}
// Construct using com.vesoft.nebula.proto.graph.ElapsedTime.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
totalServerTimeUs_ = 0L;
buildTimeUs_ = 0L;
optimizeTimeUs_ = 0L;
serializeTimeUs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ElapsedTime_descriptor;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ElapsedTime getDefaultInstanceForType() {
return com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance();
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ElapsedTime build() {
com.vesoft.nebula.proto.graph.ElapsedTime result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ElapsedTime buildPartial() {
com.vesoft.nebula.proto.graph.ElapsedTime result = new com.vesoft.nebula.proto.graph.ElapsedTime(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.vesoft.nebula.proto.graph.ElapsedTime result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.totalServerTimeUs_ = totalServerTimeUs_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.buildTimeUs_ = buildTimeUs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.optimizeTimeUs_ = optimizeTimeUs_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.serializeTimeUs_ = serializeTimeUs_;
}
}
@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 com.vesoft.nebula.proto.graph.ElapsedTime) {
return mergeFrom((com.vesoft.nebula.proto.graph.ElapsedTime)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vesoft.nebula.proto.graph.ElapsedTime other) {
if (other == com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance()) return this;
if (other.getTotalServerTimeUs() != 0L) {
setTotalServerTimeUs(other.getTotalServerTimeUs());
}
if (other.getBuildTimeUs() != 0L) {
setBuildTimeUs(other.getBuildTimeUs());
}
if (other.getOptimizeTimeUs() != 0L) {
setOptimizeTimeUs(other.getOptimizeTimeUs());
}
if (other.getSerializeTimeUs() != 0L) {
setSerializeTimeUs(other.getSerializeTimeUs());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
totalServerTimeUs_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
buildTimeUs_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
optimizeTimeUs_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
serializeTimeUs_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long totalServerTimeUs_ ;
/**
* int64 total_server_time_us = 1;
* @return The totalServerTimeUs.
*/
@java.lang.Override
public long getTotalServerTimeUs() {
return totalServerTimeUs_;
}
/**
* int64 total_server_time_us = 1;
* @param value The totalServerTimeUs to set.
* @return This builder for chaining.
*/
public Builder setTotalServerTimeUs(long value) {
totalServerTimeUs_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 total_server_time_us = 1;
* @return This builder for chaining.
*/
public Builder clearTotalServerTimeUs() {
bitField0_ = (bitField0_ & ~0x00000001);
totalServerTimeUs_ = 0L;
onChanged();
return this;
}
private long buildTimeUs_ ;
/**
* int64 build_time_us = 2;
* @return The buildTimeUs.
*/
@java.lang.Override
public long getBuildTimeUs() {
return buildTimeUs_;
}
/**
* int64 build_time_us = 2;
* @param value The buildTimeUs to set.
* @return This builder for chaining.
*/
public Builder setBuildTimeUs(long value) {
buildTimeUs_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 build_time_us = 2;
* @return This builder for chaining.
*/
public Builder clearBuildTimeUs() {
bitField0_ = (bitField0_ & ~0x00000002);
buildTimeUs_ = 0L;
onChanged();
return this;
}
private long optimizeTimeUs_ ;
/**
* int64 optimize_time_us = 3;
* @return The optimizeTimeUs.
*/
@java.lang.Override
public long getOptimizeTimeUs() {
return optimizeTimeUs_;
}
/**
* int64 optimize_time_us = 3;
* @param value The optimizeTimeUs to set.
* @return This builder for chaining.
*/
public Builder setOptimizeTimeUs(long value) {
optimizeTimeUs_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 optimize_time_us = 3;
* @return This builder for chaining.
*/
public Builder clearOptimizeTimeUs() {
bitField0_ = (bitField0_ & ~0x00000004);
optimizeTimeUs_ = 0L;
onChanged();
return this;
}
private long serializeTimeUs_ ;
/**
* int64 serialize_time_us = 4;
* @return The serializeTimeUs.
*/
@java.lang.Override
public long getSerializeTimeUs() {
return serializeTimeUs_;
}
/**
* int64 serialize_time_us = 4;
* @param value The serializeTimeUs to set.
* @return This builder for chaining.
*/
public Builder setSerializeTimeUs(long value) {
serializeTimeUs_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 serialize_time_us = 4;
* @return This builder for chaining.
*/
public Builder clearSerializeTimeUs() {
bitField0_ = (bitField0_ & ~0x00000008);
serializeTimeUs_ = 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:nebula.proto.graph.ElapsedTime)
}
// @@protoc_insertion_point(class_scope:nebula.proto.graph.ElapsedTime)
private static final com.vesoft.nebula.proto.graph.ElapsedTime DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vesoft.nebula.proto.graph.ElapsedTime();
}
public static com.vesoft.nebula.proto.graph.ElapsedTime getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ElapsedTime parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.ElapsedTime getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}