cz.proto.StageProgress 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.StageProgress}
*/
public final class StageProgress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.StageProgress)
StageProgressOrBuilder {
private static final long serialVersionUID = 0L;
// Use StageProgress.newBuilder() to construct.
private StageProgress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StageProgress() {
state_ = 0;
diagnostic_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StageProgress();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StageProgress(
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 8: {
failed_ = input.readUInt64();
break;
}
case 16: {
succeed_ = input.readUInt64();
break;
}
case 24: {
running_ = input.readUInt64();
break;
}
case 32: {
total_ = input.readUInt64();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
taskProgress_ = com.google.protobuf.MapField.newMapField(
TaskProgressDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
taskProgress__ = input.readMessage(
TaskProgressDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
taskProgress_.getMutableMap().put(
taskProgress__.getKey(), taskProgress__.getValue());
break;
}
case 48: {
initTime_ = input.readUInt64();
break;
}
case 56: {
startTime_ = input.readUInt64();
break;
}
case 64: {
finishTime_ = input.readUInt64();
break;
}
case 72: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
diagnostic_ = s;
break;
}
case 88: {
deprecated_ = input.readBool();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobProto.internal_static_cz_proto_StageProgress_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetTaskProgress();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobProto.internal_static_cz_proto_StageProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.StageProgress.class, cz.proto.StageProgress.Builder.class);
}
public static final int FAILED_FIELD_NUMBER = 1;
private long failed_;
/**
* uint64 failed = 1;
* @return The failed.
*/
@java.lang.Override
public long getFailed() {
return failed_;
}
public static final int SUCCEED_FIELD_NUMBER = 2;
private long succeed_;
/**
* uint64 succeed = 2;
* @return The succeed.
*/
@java.lang.Override
public long getSucceed() {
return succeed_;
}
public static final int RUNNING_FIELD_NUMBER = 3;
private long running_;
/**
* uint64 running = 3;
* @return The running.
*/
@java.lang.Override
public long getRunning() {
return running_;
}
public static final int TOTAL_FIELD_NUMBER = 4;
private long total_;
/**
* uint64 total = 4;
* @return The total.
*/
@java.lang.Override
public long getTotal() {
return total_;
}
public static final int TASK_PROGRESS_FIELD_NUMBER = 5;
private static final class TaskProgressDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, cz.proto.TaskProgress> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cz.proto.JobProto.internal_static_cz_proto_StageProgress_TaskProgressEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
cz.proto.TaskProgress.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, cz.proto.TaskProgress> taskProgress_;
private com.google.protobuf.MapField
internalGetTaskProgress() {
if (taskProgress_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TaskProgressDefaultEntryHolder.defaultEntry);
}
return taskProgress_;
}
public int getTaskProgressCount() {
return internalGetTaskProgress().getMap().size();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public boolean containsTaskProgress(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetTaskProgress().getMap().containsKey(key);
}
/**
* Use {@link #getTaskProgressMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getTaskProgress() {
return getTaskProgressMap();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public java.util.Map getTaskProgressMap() {
return internalGetTaskProgress().getMap();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public cz.proto.TaskProgress getTaskProgressOrDefault(
java.lang.String key,
cz.proto.TaskProgress defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetTaskProgress().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public cz.proto.TaskProgress getTaskProgressOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetTaskProgress().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int INIT_TIME_FIELD_NUMBER = 6;
private long initTime_;
/**
* uint64 init_time = 6;
* @return The initTime.
*/
@java.lang.Override
public long getInitTime() {
return initTime_;
}
public static final int START_TIME_FIELD_NUMBER = 7;
private long startTime_;
/**
* uint64 start_time = 7;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int FINISH_TIME_FIELD_NUMBER = 8;
private long finishTime_;
/**
* uint64 finish_time = 8;
* @return The finishTime.
*/
@java.lang.Override
public long getFinishTime() {
return finishTime_;
}
public static final int STATE_FIELD_NUMBER = 9;
private int state_;
/**
* .cz.proto.DetailState.State state = 9;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .cz.proto.DetailState.State state = 9;
* @return The state.
*/
@java.lang.Override public cz.proto.DetailState.State getState() {
@SuppressWarnings("deprecation")
cz.proto.DetailState.State result = cz.proto.DetailState.State.valueOf(state_);
return result == null ? cz.proto.DetailState.State.UNRECOGNIZED : result;
}
public static final int DIAGNOSTIC_FIELD_NUMBER = 10;
private volatile java.lang.Object diagnostic_;
/**
* string diagnostic = 10;
* @return The diagnostic.
*/
@java.lang.Override
public java.lang.String getDiagnostic() {
java.lang.Object ref = diagnostic_;
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();
diagnostic_ = s;
return s;
}
}
/**
* string diagnostic = 10;
* @return The bytes for diagnostic.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDiagnosticBytes() {
java.lang.Object ref = diagnostic_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPRECATED_FIELD_NUMBER = 11;
private boolean deprecated_;
/**
* bool deprecated = 11;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
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 (failed_ != 0L) {
output.writeUInt64(1, failed_);
}
if (succeed_ != 0L) {
output.writeUInt64(2, succeed_);
}
if (running_ != 0L) {
output.writeUInt64(3, running_);
}
if (total_ != 0L) {
output.writeUInt64(4, total_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetTaskProgress(),
TaskProgressDefaultEntryHolder.defaultEntry,
5);
if (initTime_ != 0L) {
output.writeUInt64(6, initTime_);
}
if (startTime_ != 0L) {
output.writeUInt64(7, startTime_);
}
if (finishTime_ != 0L) {
output.writeUInt64(8, finishTime_);
}
if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
output.writeEnum(9, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, diagnostic_);
}
if (deprecated_ != false) {
output.writeBool(11, deprecated_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (failed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, failed_);
}
if (succeed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, succeed_);
}
if (running_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, running_);
}
if (total_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, total_);
}
for (java.util.Map.Entry entry
: internalGetTaskProgress().getMap().entrySet()) {
com.google.protobuf.MapEntry
taskProgress__ = TaskProgressDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, taskProgress__);
}
if (initTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, initTime_);
}
if (startTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, startTime_);
}
if (finishTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, finishTime_);
}
if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, diagnostic_);
}
if (deprecated_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, deprecated_);
}
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.StageProgress)) {
return super.equals(obj);
}
cz.proto.StageProgress other = (cz.proto.StageProgress) obj;
if (getFailed()
!= other.getFailed()) return false;
if (getSucceed()
!= other.getSucceed()) return false;
if (getRunning()
!= other.getRunning()) return false;
if (getTotal()
!= other.getTotal()) return false;
if (!internalGetTaskProgress().equals(
other.internalGetTaskProgress())) return false;
if (getInitTime()
!= other.getInitTime()) return false;
if (getStartTime()
!= other.getStartTime()) return false;
if (getFinishTime()
!= other.getFinishTime()) return false;
if (state_ != other.state_) return false;
if (!getDiagnostic()
.equals(other.getDiagnostic())) return false;
if (getDeprecated()
!= other.getDeprecated()) 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) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFailed());
hash = (37 * hash) + SUCCEED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSucceed());
hash = (37 * hash) + RUNNING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRunning());
hash = (37 * hash) + TOTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotal());
if (!internalGetTaskProgress().getMap().isEmpty()) {
hash = (37 * hash) + TASK_PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTaskProgress().hashCode();
}
hash = (37 * hash) + INIT_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInitTime());
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFinishTime());
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + DIAGNOSTIC_FIELD_NUMBER;
hash = (53 * hash) + getDiagnostic().hashCode();
hash = (37 * hash) + DEPRECATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeprecated());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.StageProgress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.StageProgress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.StageProgress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.StageProgress 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.StageProgress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.StageProgress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.StageProgress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.StageProgress 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.StageProgress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.StageProgress 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.StageProgress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.StageProgress 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.StageProgress 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.StageProgress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.StageProgress)
cz.proto.StageProgressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobProto.internal_static_cz_proto_StageProgress_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetTaskProgress();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableTaskProgress();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobProto.internal_static_cz_proto_StageProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.StageProgress.class, cz.proto.StageProgress.Builder.class);
}
// Construct using cz.proto.StageProgress.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
failed_ = 0L;
succeed_ = 0L;
running_ = 0L;
total_ = 0L;
internalGetMutableTaskProgress().clear();
initTime_ = 0L;
startTime_ = 0L;
finishTime_ = 0L;
state_ = 0;
diagnostic_ = "";
deprecated_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.JobProto.internal_static_cz_proto_StageProgress_descriptor;
}
@java.lang.Override
public cz.proto.StageProgress getDefaultInstanceForType() {
return cz.proto.StageProgress.getDefaultInstance();
}
@java.lang.Override
public cz.proto.StageProgress build() {
cz.proto.StageProgress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.StageProgress buildPartial() {
cz.proto.StageProgress result = new cz.proto.StageProgress(this);
int from_bitField0_ = bitField0_;
result.failed_ = failed_;
result.succeed_ = succeed_;
result.running_ = running_;
result.total_ = total_;
result.taskProgress_ = internalGetTaskProgress();
result.taskProgress_.makeImmutable();
result.initTime_ = initTime_;
result.startTime_ = startTime_;
result.finishTime_ = finishTime_;
result.state_ = state_;
result.diagnostic_ = diagnostic_;
result.deprecated_ = deprecated_;
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.StageProgress) {
return mergeFrom((cz.proto.StageProgress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.StageProgress other) {
if (other == cz.proto.StageProgress.getDefaultInstance()) return this;
if (other.getFailed() != 0L) {
setFailed(other.getFailed());
}
if (other.getSucceed() != 0L) {
setSucceed(other.getSucceed());
}
if (other.getRunning() != 0L) {
setRunning(other.getRunning());
}
if (other.getTotal() != 0L) {
setTotal(other.getTotal());
}
internalGetMutableTaskProgress().mergeFrom(
other.internalGetTaskProgress());
if (other.getInitTime() != 0L) {
setInitTime(other.getInitTime());
}
if (other.getStartTime() != 0L) {
setStartTime(other.getStartTime());
}
if (other.getFinishTime() != 0L) {
setFinishTime(other.getFinishTime());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getDiagnostic().isEmpty()) {
diagnostic_ = other.diagnostic_;
onChanged();
}
if (other.getDeprecated() != false) {
setDeprecated(other.getDeprecated());
}
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.StageProgress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.StageProgress) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long failed_ ;
/**
* uint64 failed = 1;
* @return The failed.
*/
@java.lang.Override
public long getFailed() {
return failed_;
}
/**
* uint64 failed = 1;
* @param value The failed to set.
* @return This builder for chaining.
*/
public Builder setFailed(long value) {
failed_ = value;
onChanged();
return this;
}
/**
* uint64 failed = 1;
* @return This builder for chaining.
*/
public Builder clearFailed() {
failed_ = 0L;
onChanged();
return this;
}
private long succeed_ ;
/**
* uint64 succeed = 2;
* @return The succeed.
*/
@java.lang.Override
public long getSucceed() {
return succeed_;
}
/**
* uint64 succeed = 2;
* @param value The succeed to set.
* @return This builder for chaining.
*/
public Builder setSucceed(long value) {
succeed_ = value;
onChanged();
return this;
}
/**
* uint64 succeed = 2;
* @return This builder for chaining.
*/
public Builder clearSucceed() {
succeed_ = 0L;
onChanged();
return this;
}
private long running_ ;
/**
* uint64 running = 3;
* @return The running.
*/
@java.lang.Override
public long getRunning() {
return running_;
}
/**
* uint64 running = 3;
* @param value The running to set.
* @return This builder for chaining.
*/
public Builder setRunning(long value) {
running_ = value;
onChanged();
return this;
}
/**
* uint64 running = 3;
* @return This builder for chaining.
*/
public Builder clearRunning() {
running_ = 0L;
onChanged();
return this;
}
private long total_ ;
/**
* uint64 total = 4;
* @return The total.
*/
@java.lang.Override
public long getTotal() {
return total_;
}
/**
* uint64 total = 4;
* @param value The total to set.
* @return This builder for chaining.
*/
public Builder setTotal(long value) {
total_ = value;
onChanged();
return this;
}
/**
* uint64 total = 4;
* @return This builder for chaining.
*/
public Builder clearTotal() {
total_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, cz.proto.TaskProgress> taskProgress_;
private com.google.protobuf.MapField
internalGetTaskProgress() {
if (taskProgress_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TaskProgressDefaultEntryHolder.defaultEntry);
}
return taskProgress_;
}
private com.google.protobuf.MapField
internalGetMutableTaskProgress() {
onChanged();;
if (taskProgress_ == null) {
taskProgress_ = com.google.protobuf.MapField.newMapField(
TaskProgressDefaultEntryHolder.defaultEntry);
}
if (!taskProgress_.isMutable()) {
taskProgress_ = taskProgress_.copy();
}
return taskProgress_;
}
public int getTaskProgressCount() {
return internalGetTaskProgress().getMap().size();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public boolean containsTaskProgress(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetTaskProgress().getMap().containsKey(key);
}
/**
* Use {@link #getTaskProgressMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getTaskProgress() {
return getTaskProgressMap();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public java.util.Map getTaskProgressMap() {
return internalGetTaskProgress().getMap();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public cz.proto.TaskProgress getTaskProgressOrDefault(
java.lang.String key,
cz.proto.TaskProgress defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetTaskProgress().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
@java.lang.Override
public cz.proto.TaskProgress getTaskProgressOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetTaskProgress().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearTaskProgress() {
internalGetMutableTaskProgress().getMutableMap()
.clear();
return this;
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
public Builder removeTaskProgress(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableTaskProgress().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableTaskProgress() {
return internalGetMutableTaskProgress().getMutableMap();
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
public Builder putTaskProgress(
java.lang.String key,
cz.proto.TaskProgress value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableTaskProgress().getMutableMap()
.put(key, value);
return this;
}
/**
*
* In verbose mode, internal use for debugging
*
*
* map<string, .cz.proto.TaskProgress> task_progress = 5;
*/
public Builder putAllTaskProgress(
java.util.Map values) {
internalGetMutableTaskProgress().getMutableMap()
.putAll(values);
return this;
}
private long initTime_ ;
/**
* uint64 init_time = 6;
* @return The initTime.
*/
@java.lang.Override
public long getInitTime() {
return initTime_;
}
/**
* uint64 init_time = 6;
* @param value The initTime to set.
* @return This builder for chaining.
*/
public Builder setInitTime(long value) {
initTime_ = value;
onChanged();
return this;
}
/**
* uint64 init_time = 6;
* @return This builder for chaining.
*/
public Builder clearInitTime() {
initTime_ = 0L;
onChanged();
return this;
}
private long startTime_ ;
/**
* uint64 start_time = 7;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
* uint64 start_time = 7;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
startTime_ = value;
onChanged();
return this;
}
/**
* uint64 start_time = 7;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
startTime_ = 0L;
onChanged();
return this;
}
private long finishTime_ ;
/**
* uint64 finish_time = 8;
* @return The finishTime.
*/
@java.lang.Override
public long getFinishTime() {
return finishTime_;
}
/**
* uint64 finish_time = 8;
* @param value The finishTime to set.
* @return This builder for chaining.
*/
public Builder setFinishTime(long value) {
finishTime_ = value;
onChanged();
return this;
}
/**
* uint64 finish_time = 8;
* @return This builder for chaining.
*/
public Builder clearFinishTime() {
finishTime_ = 0L;
onChanged();
return this;
}
private int state_ = 0;
/**
* .cz.proto.DetailState.State state = 9;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .cz.proto.DetailState.State state = 9;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .cz.proto.DetailState.State state = 9;
* @return The state.
*/
@java.lang.Override
public cz.proto.DetailState.State getState() {
@SuppressWarnings("deprecation")
cz.proto.DetailState.State result = cz.proto.DetailState.State.valueOf(state_);
return result == null ? cz.proto.DetailState.State.UNRECOGNIZED : result;
}
/**
* .cz.proto.DetailState.State state = 9;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(cz.proto.DetailState.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.DetailState.State state = 9;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private java.lang.Object diagnostic_ = "";
/**
* string diagnostic = 10;
* @return The diagnostic.
*/
public java.lang.String getDiagnostic() {
java.lang.Object ref = diagnostic_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
diagnostic_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string diagnostic = 10;
* @return The bytes for diagnostic.
*/
public com.google.protobuf.ByteString
getDiagnosticBytes() {
java.lang.Object ref = diagnostic_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string diagnostic = 10;
* @param value The diagnostic to set.
* @return This builder for chaining.
*/
public Builder setDiagnostic(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
diagnostic_ = value;
onChanged();
return this;
}
/**
* string diagnostic = 10;
* @return This builder for chaining.
*/
public Builder clearDiagnostic() {
diagnostic_ = getDefaultInstance().getDiagnostic();
onChanged();
return this;
}
/**
* string diagnostic = 10;
* @param value The bytes for diagnostic to set.
* @return This builder for chaining.
*/
public Builder setDiagnosticBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
diagnostic_ = value;
onChanged();
return this;
}
private boolean deprecated_ ;
/**
* bool deprecated = 11;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
/**
* bool deprecated = 11;
* @param value The deprecated to set.
* @return This builder for chaining.
*/
public Builder setDeprecated(boolean value) {
deprecated_ = value;
onChanged();
return this;
}
/**
* bool deprecated = 11;
* @return This builder for chaining.
*/
public Builder clearDeprecated() {
deprecated_ = false;
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.StageProgress)
}
// @@protoc_insertion_point(class_scope:cz.proto.StageProgress)
private static final cz.proto.StageProgress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.StageProgress();
}
public static cz.proto.StageProgress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StageProgress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StageProgress(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.StageProgress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy