cz.proto.TaskAttemptProgress 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.TaskAttemptProgress}
*/
public final class TaskAttemptProgress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.TaskAttemptProgress)
TaskAttemptProgressOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskAttemptProgress.newBuilder() to construct.
private TaskAttemptProgress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskAttemptProgress() {
executorAddress_ = "";
diagnostic_ = "";
state_ = 0;
attemptId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskAttemptProgress();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaskAttemptProgress(
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: {
cz.proto.TimeRangeOuterClass.TimeRange.Builder subBuilder = null;
if (timeOnExecutor_ != null) {
subBuilder = timeOnExecutor_.toBuilder();
}
timeOnExecutor_ = input.readMessage(cz.proto.TimeRangeOuterClass.TimeRange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeOnExecutor_);
timeOnExecutor_ = subBuilder.buildPartial();
}
break;
}
case 18: {
cz.proto.TimeRangeOuterClass.TimeRange.Builder subBuilder = null;
if (timeOnMaster_ != null) {
subBuilder = timeOnMaster_.toBuilder();
}
timeOnMaster_ = input.readMessage(cz.proto.TimeRangeOuterClass.TimeRange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeOnMaster_);
timeOnMaster_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
executorAddress_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
stats_ = com.google.protobuf.MapField.newMapField(
StatsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
stats__ = input.readMessage(
StatsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
stats_.getMutableMap().put(
stats__.getKey(), stats__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
diagnostic_ = s;
break;
}
case 48: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
attemptId_ = s;
break;
}
case 64: {
initedTime_ = input.readInt64();
break;
}
case 74: {
cz.proto.TimeRangeOuterClass.TimeRange.Builder subBuilder = null;
if (timeOnWaitResource_ != null) {
subBuilder = timeOnWaitResource_.toBuilder();
}
timeOnWaitResource_ = input.readMessage(cz.proto.TimeRangeOuterClass.TimeRange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeOnWaitResource_);
timeOnWaitResource_ = subBuilder.buildPartial();
}
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_TaskAttemptProgress_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetStats();
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_TaskAttemptProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.TaskAttemptProgress.class, cz.proto.TaskAttemptProgress.Builder.class);
}
public static final int TIME_ON_EXECUTOR_FIELD_NUMBER = 1;
private cz.proto.TimeRangeOuterClass.TimeRange timeOnExecutor_;
/**
* .cz.proto.TimeRange time_on_executor = 1;
* @return Whether the timeOnExecutor field is set.
*/
@java.lang.Override
public boolean hasTimeOnExecutor() {
return timeOnExecutor_ != null;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
* @return The timeOnExecutor.
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRange getTimeOnExecutor() {
return timeOnExecutor_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnExecutor_;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeOnExecutorOrBuilder() {
return getTimeOnExecutor();
}
public static final int TIME_ON_MASTER_FIELD_NUMBER = 2;
private cz.proto.TimeRangeOuterClass.TimeRange timeOnMaster_;
/**
* .cz.proto.TimeRange time_on_master = 2;
* @return Whether the timeOnMaster field is set.
*/
@java.lang.Override
public boolean hasTimeOnMaster() {
return timeOnMaster_ != null;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
* @return The timeOnMaster.
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRange getTimeOnMaster() {
return timeOnMaster_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnMaster_;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeOnMasterOrBuilder() {
return getTimeOnMaster();
}
public static final int EXECUTOR_ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object executorAddress_;
/**
* string executor_address = 3;
* @return The executorAddress.
*/
@java.lang.Override
public java.lang.String getExecutorAddress() {
java.lang.Object ref = executorAddress_;
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();
executorAddress_ = s;
return s;
}
}
/**
* string executor_address = 3;
* @return The bytes for executorAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExecutorAddressBytes() {
java.lang.Object ref = executorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
executorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATS_FIELD_NUMBER = 4;
private static final class StatsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.ByteString> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cz.proto.JobProto.internal_static_cz_proto_TaskAttemptProgress_StatsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.BYTES,
com.google.protobuf.ByteString.EMPTY);
}
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.ByteString> stats_;
private com.google.protobuf.MapField
internalGetStats() {
if (stats_ == null) {
return com.google.protobuf.MapField.emptyMapField(
StatsDefaultEntryHolder.defaultEntry);
}
return stats_;
}
public int getStatsCount() {
return internalGetStats().getMap().size();
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public boolean containsStats(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetStats().getMap().containsKey(key);
}
/**
* Use {@link #getStatsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getStats() {
return getStatsMap();
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public java.util.Map getStatsMap() {
return internalGetStats().getMap();
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public com.google.protobuf.ByteString getStatsOrDefault(
java.lang.String key,
com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetStats().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public com.google.protobuf.ByteString getStatsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetStats().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DIAGNOSTIC_FIELD_NUMBER = 5;
private volatile java.lang.Object diagnostic_;
/**
* string diagnostic = 5;
* @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 = 5;
* @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 STATE_FIELD_NUMBER = 6;
private int state_;
/**
* .cz.proto.DetailState.State state = 6;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .cz.proto.DetailState.State state = 6;
* @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 ATTEMPT_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object attemptId_;
/**
* string attempt_id = 7;
* @return The attemptId.
*/
@java.lang.Override
public java.lang.String getAttemptId() {
java.lang.Object ref = attemptId_;
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();
attemptId_ = s;
return s;
}
}
/**
* string attempt_id = 7;
* @return The bytes for attemptId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAttemptIdBytes() {
java.lang.Object ref = attemptId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attemptId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INITED_TIME_FIELD_NUMBER = 8;
private long initedTime_;
/**
* int64 inited_time = 8;
* @return The initedTime.
*/
@java.lang.Override
public long getInitedTime() {
return initedTime_;
}
public static final int TIME_ON_WAIT_RESOURCE_FIELD_NUMBER = 9;
private cz.proto.TimeRangeOuterClass.TimeRange timeOnWaitResource_;
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
* @return Whether the timeOnWaitResource field is set.
*/
@java.lang.Override
public boolean hasTimeOnWaitResource() {
return timeOnWaitResource_ != null;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
* @return The timeOnWaitResource.
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRange getTimeOnWaitResource() {
return timeOnWaitResource_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnWaitResource_;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
@java.lang.Override
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeOnWaitResourceOrBuilder() {
return getTimeOnWaitResource();
}
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 (timeOnExecutor_ != null) {
output.writeMessage(1, getTimeOnExecutor());
}
if (timeOnMaster_ != null) {
output.writeMessage(2, getTimeOnMaster());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executorAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, executorAddress_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetStats(),
StatsDefaultEntryHolder.defaultEntry,
4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, diagnostic_);
}
if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
output.writeEnum(6, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attemptId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, attemptId_);
}
if (initedTime_ != 0L) {
output.writeInt64(8, initedTime_);
}
if (timeOnWaitResource_ != null) {
output.writeMessage(9, getTimeOnWaitResource());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timeOnExecutor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimeOnExecutor());
}
if (timeOnMaster_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimeOnMaster());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executorAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, executorAddress_);
}
for (java.util.Map.Entry entry
: internalGetStats().getMap().entrySet()) {
com.google.protobuf.MapEntry
stats__ = StatsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, stats__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, diagnostic_);
}
if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attemptId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, attemptId_);
}
if (initedTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, initedTime_);
}
if (timeOnWaitResource_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getTimeOnWaitResource());
}
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.TaskAttemptProgress)) {
return super.equals(obj);
}
cz.proto.TaskAttemptProgress other = (cz.proto.TaskAttemptProgress) obj;
if (hasTimeOnExecutor() != other.hasTimeOnExecutor()) return false;
if (hasTimeOnExecutor()) {
if (!getTimeOnExecutor()
.equals(other.getTimeOnExecutor())) return false;
}
if (hasTimeOnMaster() != other.hasTimeOnMaster()) return false;
if (hasTimeOnMaster()) {
if (!getTimeOnMaster()
.equals(other.getTimeOnMaster())) return false;
}
if (!getExecutorAddress()
.equals(other.getExecutorAddress())) return false;
if (!internalGetStats().equals(
other.internalGetStats())) return false;
if (!getDiagnostic()
.equals(other.getDiagnostic())) return false;
if (state_ != other.state_) return false;
if (!getAttemptId()
.equals(other.getAttemptId())) return false;
if (getInitedTime()
!= other.getInitedTime()) return false;
if (hasTimeOnWaitResource() != other.hasTimeOnWaitResource()) return false;
if (hasTimeOnWaitResource()) {
if (!getTimeOnWaitResource()
.equals(other.getTimeOnWaitResource())) 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();
if (hasTimeOnExecutor()) {
hash = (37 * hash) + TIME_ON_EXECUTOR_FIELD_NUMBER;
hash = (53 * hash) + getTimeOnExecutor().hashCode();
}
if (hasTimeOnMaster()) {
hash = (37 * hash) + TIME_ON_MASTER_FIELD_NUMBER;
hash = (53 * hash) + getTimeOnMaster().hashCode();
}
hash = (37 * hash) + EXECUTOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getExecutorAddress().hashCode();
if (!internalGetStats().getMap().isEmpty()) {
hash = (37 * hash) + STATS_FIELD_NUMBER;
hash = (53 * hash) + internalGetStats().hashCode();
}
hash = (37 * hash) + DIAGNOSTIC_FIELD_NUMBER;
hash = (53 * hash) + getDiagnostic().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + ATTEMPT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAttemptId().hashCode();
hash = (37 * hash) + INITED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInitedTime());
if (hasTimeOnWaitResource()) {
hash = (37 * hash) + TIME_ON_WAIT_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getTimeOnWaitResource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.TaskAttemptProgress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TaskAttemptProgress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TaskAttemptProgress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TaskAttemptProgress 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.TaskAttemptProgress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TaskAttemptProgress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TaskAttemptProgress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.TaskAttemptProgress 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.TaskAttemptProgress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.TaskAttemptProgress 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.TaskAttemptProgress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.TaskAttemptProgress 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.TaskAttemptProgress 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.TaskAttemptProgress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.TaskAttemptProgress)
cz.proto.TaskAttemptProgressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobProto.internal_static_cz_proto_TaskAttemptProgress_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetStats();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableStats();
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_TaskAttemptProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.TaskAttemptProgress.class, cz.proto.TaskAttemptProgress.Builder.class);
}
// Construct using cz.proto.TaskAttemptProgress.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();
if (timeOnExecutorBuilder_ == null) {
timeOnExecutor_ = null;
} else {
timeOnExecutor_ = null;
timeOnExecutorBuilder_ = null;
}
if (timeOnMasterBuilder_ == null) {
timeOnMaster_ = null;
} else {
timeOnMaster_ = null;
timeOnMasterBuilder_ = null;
}
executorAddress_ = "";
internalGetMutableStats().clear();
diagnostic_ = "";
state_ = 0;
attemptId_ = "";
initedTime_ = 0L;
if (timeOnWaitResourceBuilder_ == null) {
timeOnWaitResource_ = null;
} else {
timeOnWaitResource_ = null;
timeOnWaitResourceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.JobProto.internal_static_cz_proto_TaskAttemptProgress_descriptor;
}
@java.lang.Override
public cz.proto.TaskAttemptProgress getDefaultInstanceForType() {
return cz.proto.TaskAttemptProgress.getDefaultInstance();
}
@java.lang.Override
public cz.proto.TaskAttemptProgress build() {
cz.proto.TaskAttemptProgress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.TaskAttemptProgress buildPartial() {
cz.proto.TaskAttemptProgress result = new cz.proto.TaskAttemptProgress(this);
int from_bitField0_ = bitField0_;
if (timeOnExecutorBuilder_ == null) {
result.timeOnExecutor_ = timeOnExecutor_;
} else {
result.timeOnExecutor_ = timeOnExecutorBuilder_.build();
}
if (timeOnMasterBuilder_ == null) {
result.timeOnMaster_ = timeOnMaster_;
} else {
result.timeOnMaster_ = timeOnMasterBuilder_.build();
}
result.executorAddress_ = executorAddress_;
result.stats_ = internalGetStats();
result.stats_.makeImmutable();
result.diagnostic_ = diagnostic_;
result.state_ = state_;
result.attemptId_ = attemptId_;
result.initedTime_ = initedTime_;
if (timeOnWaitResourceBuilder_ == null) {
result.timeOnWaitResource_ = timeOnWaitResource_;
} else {
result.timeOnWaitResource_ = timeOnWaitResourceBuilder_.build();
}
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.TaskAttemptProgress) {
return mergeFrom((cz.proto.TaskAttemptProgress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.TaskAttemptProgress other) {
if (other == cz.proto.TaskAttemptProgress.getDefaultInstance()) return this;
if (other.hasTimeOnExecutor()) {
mergeTimeOnExecutor(other.getTimeOnExecutor());
}
if (other.hasTimeOnMaster()) {
mergeTimeOnMaster(other.getTimeOnMaster());
}
if (!other.getExecutorAddress().isEmpty()) {
executorAddress_ = other.executorAddress_;
onChanged();
}
internalGetMutableStats().mergeFrom(
other.internalGetStats());
if (!other.getDiagnostic().isEmpty()) {
diagnostic_ = other.diagnostic_;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getAttemptId().isEmpty()) {
attemptId_ = other.attemptId_;
onChanged();
}
if (other.getInitedTime() != 0L) {
setInitedTime(other.getInitedTime());
}
if (other.hasTimeOnWaitResource()) {
mergeTimeOnWaitResource(other.getTimeOnWaitResource());
}
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.TaskAttemptProgress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.TaskAttemptProgress) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cz.proto.TimeRangeOuterClass.TimeRange timeOnExecutor_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder> timeOnExecutorBuilder_;
/**
* .cz.proto.TimeRange time_on_executor = 1;
* @return Whether the timeOnExecutor field is set.
*/
public boolean hasTimeOnExecutor() {
return timeOnExecutorBuilder_ != null || timeOnExecutor_ != null;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
* @return The timeOnExecutor.
*/
public cz.proto.TimeRangeOuterClass.TimeRange getTimeOnExecutor() {
if (timeOnExecutorBuilder_ == null) {
return timeOnExecutor_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnExecutor_;
} else {
return timeOnExecutorBuilder_.getMessage();
}
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
public Builder setTimeOnExecutor(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeOnExecutorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeOnExecutor_ = value;
onChanged();
} else {
timeOnExecutorBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
public Builder setTimeOnExecutor(
cz.proto.TimeRangeOuterClass.TimeRange.Builder builderForValue) {
if (timeOnExecutorBuilder_ == null) {
timeOnExecutor_ = builderForValue.build();
onChanged();
} else {
timeOnExecutorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
public Builder mergeTimeOnExecutor(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeOnExecutorBuilder_ == null) {
if (timeOnExecutor_ != null) {
timeOnExecutor_ =
cz.proto.TimeRangeOuterClass.TimeRange.newBuilder(timeOnExecutor_).mergeFrom(value).buildPartial();
} else {
timeOnExecutor_ = value;
}
onChanged();
} else {
timeOnExecutorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
public Builder clearTimeOnExecutor() {
if (timeOnExecutorBuilder_ == null) {
timeOnExecutor_ = null;
onChanged();
} else {
timeOnExecutor_ = null;
timeOnExecutorBuilder_ = null;
}
return this;
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
public cz.proto.TimeRangeOuterClass.TimeRange.Builder getTimeOnExecutorBuilder() {
onChanged();
return getTimeOnExecutorFieldBuilder().getBuilder();
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeOnExecutorOrBuilder() {
if (timeOnExecutorBuilder_ != null) {
return timeOnExecutorBuilder_.getMessageOrBuilder();
} else {
return timeOnExecutor_ == null ?
cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnExecutor_;
}
}
/**
* .cz.proto.TimeRange time_on_executor = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>
getTimeOnExecutorFieldBuilder() {
if (timeOnExecutorBuilder_ == null) {
timeOnExecutorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>(
getTimeOnExecutor(),
getParentForChildren(),
isClean());
timeOnExecutor_ = null;
}
return timeOnExecutorBuilder_;
}
private cz.proto.TimeRangeOuterClass.TimeRange timeOnMaster_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder> timeOnMasterBuilder_;
/**
* .cz.proto.TimeRange time_on_master = 2;
* @return Whether the timeOnMaster field is set.
*/
public boolean hasTimeOnMaster() {
return timeOnMasterBuilder_ != null || timeOnMaster_ != null;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
* @return The timeOnMaster.
*/
public cz.proto.TimeRangeOuterClass.TimeRange getTimeOnMaster() {
if (timeOnMasterBuilder_ == null) {
return timeOnMaster_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnMaster_;
} else {
return timeOnMasterBuilder_.getMessage();
}
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
public Builder setTimeOnMaster(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeOnMasterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeOnMaster_ = value;
onChanged();
} else {
timeOnMasterBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
public Builder setTimeOnMaster(
cz.proto.TimeRangeOuterClass.TimeRange.Builder builderForValue) {
if (timeOnMasterBuilder_ == null) {
timeOnMaster_ = builderForValue.build();
onChanged();
} else {
timeOnMasterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
public Builder mergeTimeOnMaster(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeOnMasterBuilder_ == null) {
if (timeOnMaster_ != null) {
timeOnMaster_ =
cz.proto.TimeRangeOuterClass.TimeRange.newBuilder(timeOnMaster_).mergeFrom(value).buildPartial();
} else {
timeOnMaster_ = value;
}
onChanged();
} else {
timeOnMasterBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
public Builder clearTimeOnMaster() {
if (timeOnMasterBuilder_ == null) {
timeOnMaster_ = null;
onChanged();
} else {
timeOnMaster_ = null;
timeOnMasterBuilder_ = null;
}
return this;
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
public cz.proto.TimeRangeOuterClass.TimeRange.Builder getTimeOnMasterBuilder() {
onChanged();
return getTimeOnMasterFieldBuilder().getBuilder();
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeOnMasterOrBuilder() {
if (timeOnMasterBuilder_ != null) {
return timeOnMasterBuilder_.getMessageOrBuilder();
} else {
return timeOnMaster_ == null ?
cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnMaster_;
}
}
/**
* .cz.proto.TimeRange time_on_master = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>
getTimeOnMasterFieldBuilder() {
if (timeOnMasterBuilder_ == null) {
timeOnMasterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>(
getTimeOnMaster(),
getParentForChildren(),
isClean());
timeOnMaster_ = null;
}
return timeOnMasterBuilder_;
}
private java.lang.Object executorAddress_ = "";
/**
* string executor_address = 3;
* @return The executorAddress.
*/
public java.lang.String getExecutorAddress() {
java.lang.Object ref = executorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
executorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string executor_address = 3;
* @return The bytes for executorAddress.
*/
public com.google.protobuf.ByteString
getExecutorAddressBytes() {
java.lang.Object ref = executorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
executorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string executor_address = 3;
* @param value The executorAddress to set.
* @return This builder for chaining.
*/
public Builder setExecutorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
executorAddress_ = value;
onChanged();
return this;
}
/**
* string executor_address = 3;
* @return This builder for chaining.
*/
public Builder clearExecutorAddress() {
executorAddress_ = getDefaultInstance().getExecutorAddress();
onChanged();
return this;
}
/**
* string executor_address = 3;
* @param value The bytes for executorAddress to set.
* @return This builder for chaining.
*/
public Builder setExecutorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
executorAddress_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.ByteString> stats_;
private com.google.protobuf.MapField
internalGetStats() {
if (stats_ == null) {
return com.google.protobuf.MapField.emptyMapField(
StatsDefaultEntryHolder.defaultEntry);
}
return stats_;
}
private com.google.protobuf.MapField
internalGetMutableStats() {
onChanged();;
if (stats_ == null) {
stats_ = com.google.protobuf.MapField.newMapField(
StatsDefaultEntryHolder.defaultEntry);
}
if (!stats_.isMutable()) {
stats_ = stats_.copy();
}
return stats_;
}
public int getStatsCount() {
return internalGetStats().getMap().size();
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public boolean containsStats(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetStats().getMap().containsKey(key);
}
/**
* Use {@link #getStatsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getStats() {
return getStatsMap();
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public java.util.Map getStatsMap() {
return internalGetStats().getMap();
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public com.google.protobuf.ByteString getStatsOrDefault(
java.lang.String key,
com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetStats().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, bytes> stats = 4;
*/
@java.lang.Override
public com.google.protobuf.ByteString getStatsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetStats().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearStats() {
internalGetMutableStats().getMutableMap()
.clear();
return this;
}
/**
* map<string, bytes> stats = 4;
*/
public Builder removeStats(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableStats().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableStats() {
return internalGetMutableStats().getMutableMap();
}
/**
* map<string, bytes> stats = 4;
*/
public Builder putStats(
java.lang.String key,
com.google.protobuf.ByteString value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableStats().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, bytes> stats = 4;
*/
public Builder putAllStats(
java.util.Map values) {
internalGetMutableStats().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object diagnostic_ = "";
/**
* string diagnostic = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @return This builder for chaining.
*/
public Builder clearDiagnostic() {
diagnostic_ = getDefaultInstance().getDiagnostic();
onChanged();
return this;
}
/**
* string diagnostic = 5;
* @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 int state_ = 0;
/**
* .cz.proto.DetailState.State state = 6;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .cz.proto.DetailState.State state = 6;
* @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 = 6;
* @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 = 6;
* @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 = 6;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private java.lang.Object attemptId_ = "";
/**
* string attempt_id = 7;
* @return The attemptId.
*/
public java.lang.String getAttemptId() {
java.lang.Object ref = attemptId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
attemptId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string attempt_id = 7;
* @return The bytes for attemptId.
*/
public com.google.protobuf.ByteString
getAttemptIdBytes() {
java.lang.Object ref = attemptId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attemptId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string attempt_id = 7;
* @param value The attemptId to set.
* @return This builder for chaining.
*/
public Builder setAttemptId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
attemptId_ = value;
onChanged();
return this;
}
/**
* string attempt_id = 7;
* @return This builder for chaining.
*/
public Builder clearAttemptId() {
attemptId_ = getDefaultInstance().getAttemptId();
onChanged();
return this;
}
/**
* string attempt_id = 7;
* @param value The bytes for attemptId to set.
* @return This builder for chaining.
*/
public Builder setAttemptIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
attemptId_ = value;
onChanged();
return this;
}
private long initedTime_ ;
/**
* int64 inited_time = 8;
* @return The initedTime.
*/
@java.lang.Override
public long getInitedTime() {
return initedTime_;
}
/**
* int64 inited_time = 8;
* @param value The initedTime to set.
* @return This builder for chaining.
*/
public Builder setInitedTime(long value) {
initedTime_ = value;
onChanged();
return this;
}
/**
* int64 inited_time = 8;
* @return This builder for chaining.
*/
public Builder clearInitedTime() {
initedTime_ = 0L;
onChanged();
return this;
}
private cz.proto.TimeRangeOuterClass.TimeRange timeOnWaitResource_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder> timeOnWaitResourceBuilder_;
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
* @return Whether the timeOnWaitResource field is set.
*/
public boolean hasTimeOnWaitResource() {
return timeOnWaitResourceBuilder_ != null || timeOnWaitResource_ != null;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
* @return The timeOnWaitResource.
*/
public cz.proto.TimeRangeOuterClass.TimeRange getTimeOnWaitResource() {
if (timeOnWaitResourceBuilder_ == null) {
return timeOnWaitResource_ == null ? cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnWaitResource_;
} else {
return timeOnWaitResourceBuilder_.getMessage();
}
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
public Builder setTimeOnWaitResource(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeOnWaitResourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeOnWaitResource_ = value;
onChanged();
} else {
timeOnWaitResourceBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
public Builder setTimeOnWaitResource(
cz.proto.TimeRangeOuterClass.TimeRange.Builder builderForValue) {
if (timeOnWaitResourceBuilder_ == null) {
timeOnWaitResource_ = builderForValue.build();
onChanged();
} else {
timeOnWaitResourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
public Builder mergeTimeOnWaitResource(cz.proto.TimeRangeOuterClass.TimeRange value) {
if (timeOnWaitResourceBuilder_ == null) {
if (timeOnWaitResource_ != null) {
timeOnWaitResource_ =
cz.proto.TimeRangeOuterClass.TimeRange.newBuilder(timeOnWaitResource_).mergeFrom(value).buildPartial();
} else {
timeOnWaitResource_ = value;
}
onChanged();
} else {
timeOnWaitResourceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
public Builder clearTimeOnWaitResource() {
if (timeOnWaitResourceBuilder_ == null) {
timeOnWaitResource_ = null;
onChanged();
} else {
timeOnWaitResource_ = null;
timeOnWaitResourceBuilder_ = null;
}
return this;
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
public cz.proto.TimeRangeOuterClass.TimeRange.Builder getTimeOnWaitResourceBuilder() {
onChanged();
return getTimeOnWaitResourceFieldBuilder().getBuilder();
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
public cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder getTimeOnWaitResourceOrBuilder() {
if (timeOnWaitResourceBuilder_ != null) {
return timeOnWaitResourceBuilder_.getMessageOrBuilder();
} else {
return timeOnWaitResource_ == null ?
cz.proto.TimeRangeOuterClass.TimeRange.getDefaultInstance() : timeOnWaitResource_;
}
}
/**
* .cz.proto.TimeRange time_on_wait_resource = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>
getTimeOnWaitResourceFieldBuilder() {
if (timeOnWaitResourceBuilder_ == null) {
timeOnWaitResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TimeRangeOuterClass.TimeRange, cz.proto.TimeRangeOuterClass.TimeRange.Builder, cz.proto.TimeRangeOuterClass.TimeRangeOrBuilder>(
getTimeOnWaitResource(),
getParentForChildren(),
isClean());
timeOnWaitResource_ = null;
}
return timeOnWaitResourceBuilder_;
}
@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.TaskAttemptProgress)
}
// @@protoc_insertion_point(class_scope:cz.proto.TaskAttemptProgress)
private static final cz.proto.TaskAttemptProgress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.TaskAttemptProgress();
}
public static cz.proto.TaskAttemptProgress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskAttemptProgress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TaskAttemptProgress(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.TaskAttemptProgress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy