alluxio.grpc.CmdSummary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Shaded Alluxio Client Module for hadoop 3
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/job_master.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.job.CmdSummary}
*/
public final class CmdSummary extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.job.CmdSummary)
CmdSummaryOrBuilder {
private static final long serialVersionUID = 0L;
// Use CmdSummary.newBuilder() to construct.
private CmdSummary(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CmdSummary() {
operationType_ = 1;
jobSource_ = 0;
status_ = 0;
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CmdSummary();
}
@java.lang.Override
public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.JobMasterProto.internal_static_alluxio_grpc_job_CmdSummary_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.JobMasterProto.internal_static_alluxio_grpc_job_CmdSummary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.CmdSummary.class, alluxio.grpc.CmdSummary.Builder.class);
}
private int bitField0_;
public static final int JOBCONTROLID_FIELD_NUMBER = 1;
private long jobControlId_;
/**
* optional int64 jobControlId = 1;
* @return Whether the jobControlId field is set.
*/
@java.lang.Override
public boolean hasJobControlId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 jobControlId = 1;
* @return The jobControlId.
*/
@java.lang.Override
public long getJobControlId() {
return jobControlId_;
}
public static final int OPERATIONTYPE_FIELD_NUMBER = 2;
private int operationType_;
/**
* optional .alluxio.grpc.job.OperationType operationType = 2;
* @return Whether the operationType field is set.
*/
@java.lang.Override public boolean hasOperationType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .alluxio.grpc.job.OperationType operationType = 2;
* @return The operationType.
*/
@java.lang.Override public alluxio.grpc.OperationType getOperationType() {
@SuppressWarnings("deprecation")
alluxio.grpc.OperationType result = alluxio.grpc.OperationType.valueOf(operationType_);
return result == null ? alluxio.grpc.OperationType.DIST_LOAD : result;
}
public static final int JOBSOURCE_FIELD_NUMBER = 3;
private int jobSource_;
/**
* optional .alluxio.grpc.job.JobSource jobSource = 3;
* @return Whether the jobSource field is set.
*/
@java.lang.Override public boolean hasJobSource() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .alluxio.grpc.job.JobSource jobSource = 3;
* @return The jobSource.
*/
@java.lang.Override public alluxio.grpc.JobSource getJobSource() {
@SuppressWarnings("deprecation")
alluxio.grpc.JobSource result = alluxio.grpc.JobSource.valueOf(jobSource_);
return result == null ? alluxio.grpc.JobSource.UNSUPPORTED : result;
}
public static final int STATUS_FIELD_NUMBER = 4;
private int status_;
/**
* optional .alluxio.grpc.job.Status status = 4;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .alluxio.grpc.job.Status status = 4;
* @return The status.
*/
@java.lang.Override public alluxio.grpc.Status getStatus() {
@SuppressWarnings("deprecation")
alluxio.grpc.Status result = alluxio.grpc.Status.valueOf(status_);
return result == null ? alluxio.grpc.Status.UNKNOWN : result;
}
public static final int SUBMISSIONTIME_FIELD_NUMBER = 5;
private long submissionTime_;
/**
* optional int64 submissionTime = 5;
* @return Whether the submissionTime field is set.
*/
@java.lang.Override
public boolean hasSubmissionTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 submissionTime = 5;
* @return The submissionTime.
*/
@java.lang.Override
public long getSubmissionTime() {
return submissionTime_;
}
public static final int DURATION_FIELD_NUMBER = 6;
private long duration_;
/**
* optional int64 duration = 6;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 duration = 6;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 7;
private volatile java.lang.Object errorMessage_;
/**
* optional string errorMessage = 7;
* @return Whether the errorMessage field is set.
*/
@java.lang.Override
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string errorMessage = 7;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
alluxio.shaded.client.com.google.protobuf.ByteString bs =
(alluxio.shaded.client.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
}
}
/**
* optional string errorMessage = 7;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int CMDPROGRESS_FIELD_NUMBER = 8;
private alluxio.grpc.CmdProgress cmdProgress_;
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
* @return Whether the cmdProgress field is set.
*/
@java.lang.Override
public boolean hasCmdProgress() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
* @return The cmdProgress.
*/
@java.lang.Override
public alluxio.grpc.CmdProgress getCmdProgress() {
return cmdProgress_ == null ? alluxio.grpc.CmdProgress.getDefaultInstance() : cmdProgress_;
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
@java.lang.Override
public alluxio.grpc.CmdProgressOrBuilder getCmdProgressOrBuilder() {
return cmdProgress_ == null ? alluxio.grpc.CmdProgress.getDefaultInstance() : cmdProgress_;
}
public static final int PROGRESSPERCENTAGE_FIELD_NUMBER = 9;
private float progressPercentage_;
/**
* optional float progressPercentage = 9;
* @return Whether the progressPercentage field is set.
*/
@java.lang.Override
public boolean hasProgressPercentage() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional float progressPercentage = 9;
* @return The progressPercentage.
*/
@java.lang.Override
public float getProgressPercentage() {
return progressPercentage_;
}
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(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
throws java.alluxio.shaded.client.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, jobControlId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, operationType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, jobSource_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(4, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, submissionTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(6, duration_);
}
if (((bitField0_ & 0x00000040) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 7, errorMessage_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(8, getCmdProgress());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeFloat(9, progressPercentage_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(1, jobControlId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteEnumSize(2, operationType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteEnumSize(3, jobSource_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteEnumSize(4, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(5, submissionTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(6, duration_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(7, errorMessage_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(8, getCmdProgress());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteFloatSize(9, progressPercentage_);
}
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 alluxio.grpc.CmdSummary)) {
return super.equals(obj);
}
alluxio.grpc.CmdSummary other = (alluxio.grpc.CmdSummary) obj;
if (hasJobControlId() != other.hasJobControlId()) return false;
if (hasJobControlId()) {
if (getJobControlId()
!= other.getJobControlId()) return false;
}
if (hasOperationType() != other.hasOperationType()) return false;
if (hasOperationType()) {
if (operationType_ != other.operationType_) return false;
}
if (hasJobSource() != other.hasJobSource()) return false;
if (hasJobSource()) {
if (jobSource_ != other.jobSource_) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (hasSubmissionTime() != other.hasSubmissionTime()) return false;
if (hasSubmissionTime()) {
if (getSubmissionTime()
!= other.getSubmissionTime()) return false;
}
if (hasDuration() != other.hasDuration()) return false;
if (hasDuration()) {
if (getDuration()
!= other.getDuration()) return false;
}
if (hasErrorMessage() != other.hasErrorMessage()) return false;
if (hasErrorMessage()) {
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
}
if (hasCmdProgress() != other.hasCmdProgress()) return false;
if (hasCmdProgress()) {
if (!getCmdProgress()
.equals(other.getCmdProgress())) return false;
}
if (hasProgressPercentage() != other.hasProgressPercentage()) return false;
if (hasProgressPercentage()) {
if (java.lang.Float.floatToIntBits(getProgressPercentage())
!= java.lang.Float.floatToIntBits(
other.getProgressPercentage())) 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();
if (hasJobControlId()) {
hash = (37 * hash) + JOBCONTROLID_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getJobControlId());
}
if (hasOperationType()) {
hash = (37 * hash) + OPERATIONTYPE_FIELD_NUMBER;
hash = (53 * hash) + operationType_;
}
if (hasJobSource()) {
hash = (37 * hash) + JOBSOURCE_FIELD_NUMBER;
hash = (53 * hash) + jobSource_;
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (hasSubmissionTime()) {
hash = (37 * hash) + SUBMISSIONTIME_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getSubmissionTime());
}
if (hasDuration()) {
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getDuration());
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
if (hasCmdProgress()) {
hash = (37 * hash) + CMDPROGRESS_FIELD_NUMBER;
hash = (53 * hash) + getCmdProgress().hashCode();
}
if (hasProgressPercentage()) {
hash = (37 * hash) + PROGRESSPERCENTAGE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getProgressPercentage());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.CmdSummary parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.CmdSummary parseFrom(
java.nio.ByteBuffer data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.CmdSummary parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.CmdSummary parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.CmdSummary parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.CmdSummary parseFrom(
byte[] data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.CmdSummary parseFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.CmdSummary parseFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.CmdSummary parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static alluxio.grpc.CmdSummary parseDelimitedFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.CmdSummary parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.CmdSummary parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.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(alluxio.grpc.CmdSummary 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(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.grpc.job.CmdSummary}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.job.CmdSummary)
alluxio.grpc.CmdSummaryOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.JobMasterProto.internal_static_alluxio_grpc_job_CmdSummary_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.JobMasterProto.internal_static_alluxio_grpc_job_CmdSummary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.CmdSummary.class, alluxio.grpc.CmdSummary.Builder.class);
}
// Construct using alluxio.grpc.CmdSummary.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCmdProgressFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
jobControlId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
operationType_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
jobSource_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
submissionTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
duration_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
errorMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
if (cmdProgressBuilder_ == null) {
cmdProgress_ = null;
} else {
cmdProgressBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
progressPercentage_ = 0F;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.JobMasterProto.internal_static_alluxio_grpc_job_CmdSummary_descriptor;
}
@java.lang.Override
public alluxio.grpc.CmdSummary getDefaultInstanceForType() {
return alluxio.grpc.CmdSummary.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.CmdSummary build() {
alluxio.grpc.CmdSummary result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.CmdSummary buildPartial() {
alluxio.grpc.CmdSummary result = new alluxio.grpc.CmdSummary(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.jobControlId_ = jobControlId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.operationType_ = operationType_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.jobSource_ = jobSource_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.submissionTime_ = submissionTime_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.duration_ = duration_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.errorMessage_ = errorMessage_;
if (((from_bitField0_ & 0x00000080) != 0)) {
if (cmdProgressBuilder_ == null) {
result.cmdProgress_ = cmdProgress_;
} else {
result.cmdProgress_ = cmdProgressBuilder_.build();
}
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.progressPercentage_ = progressPercentage_;
to_bitField0_ |= 0x00000100;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
if (other instanceof alluxio.grpc.CmdSummary) {
return mergeFrom((alluxio.grpc.CmdSummary)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.CmdSummary other) {
if (other == alluxio.grpc.CmdSummary.getDefaultInstance()) return this;
if (other.hasJobControlId()) {
setJobControlId(other.getJobControlId());
}
if (other.hasOperationType()) {
setOperationType(other.getOperationType());
}
if (other.hasJobSource()) {
setJobSource(other.getJobSource());
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasSubmissionTime()) {
setSubmissionTime(other.getSubmissionTime());
}
if (other.hasDuration()) {
setDuration(other.getDuration());
}
if (other.hasErrorMessage()) {
bitField0_ |= 0x00000040;
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.hasCmdProgress()) {
mergeCmdProgress(other.getCmdProgress());
}
if (other.hasProgressPercentage()) {
setProgressPercentage(other.getProgressPercentage());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.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: {
jobControlId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
int tmpRaw = input.readEnum();
alluxio.grpc.OperationType tmpValue =
alluxio.grpc.OperationType.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
operationType_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 16
case 24: {
int tmpRaw = input.readEnum();
alluxio.grpc.JobSource tmpValue =
alluxio.grpc.JobSource.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
jobSource_ = tmpRaw;
bitField0_ |= 0x00000004;
}
break;
} // case 24
case 32: {
int tmpRaw = input.readEnum();
alluxio.grpc.Status tmpValue =
alluxio.grpc.Status.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(4, tmpRaw);
} else {
status_ = tmpRaw;
bitField0_ |= 0x00000008;
}
break;
} // case 32
case 40: {
submissionTime_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
duration_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
errorMessage_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getCmdProgressFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 77: {
progressPercentage_ = input.readFloat();
bitField0_ |= 0x00000100;
break;
} // case 77
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long jobControlId_ ;
/**
* optional int64 jobControlId = 1;
* @return Whether the jobControlId field is set.
*/
@java.lang.Override
public boolean hasJobControlId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 jobControlId = 1;
* @return The jobControlId.
*/
@java.lang.Override
public long getJobControlId() {
return jobControlId_;
}
/**
* optional int64 jobControlId = 1;
* @param value The jobControlId to set.
* @return This builder for chaining.
*/
public Builder setJobControlId(long value) {
bitField0_ |= 0x00000001;
jobControlId_ = value;
onChanged();
return this;
}
/**
* optional int64 jobControlId = 1;
* @return This builder for chaining.
*/
public Builder clearJobControlId() {
bitField0_ = (bitField0_ & ~0x00000001);
jobControlId_ = 0L;
onChanged();
return this;
}
private int operationType_ = 1;
/**
* optional .alluxio.grpc.job.OperationType operationType = 2;
* @return Whether the operationType field is set.
*/
@java.lang.Override public boolean hasOperationType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .alluxio.grpc.job.OperationType operationType = 2;
* @return The operationType.
*/
@java.lang.Override
public alluxio.grpc.OperationType getOperationType() {
@SuppressWarnings("deprecation")
alluxio.grpc.OperationType result = alluxio.grpc.OperationType.valueOf(operationType_);
return result == null ? alluxio.grpc.OperationType.DIST_LOAD : result;
}
/**
* optional .alluxio.grpc.job.OperationType operationType = 2;
* @param value The operationType to set.
* @return This builder for chaining.
*/
public Builder setOperationType(alluxio.grpc.OperationType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
operationType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .alluxio.grpc.job.OperationType operationType = 2;
* @return This builder for chaining.
*/
public Builder clearOperationType() {
bitField0_ = (bitField0_ & ~0x00000002);
operationType_ = 1;
onChanged();
return this;
}
private int jobSource_ = 0;
/**
* optional .alluxio.grpc.job.JobSource jobSource = 3;
* @return Whether the jobSource field is set.
*/
@java.lang.Override public boolean hasJobSource() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .alluxio.grpc.job.JobSource jobSource = 3;
* @return The jobSource.
*/
@java.lang.Override
public alluxio.grpc.JobSource getJobSource() {
@SuppressWarnings("deprecation")
alluxio.grpc.JobSource result = alluxio.grpc.JobSource.valueOf(jobSource_);
return result == null ? alluxio.grpc.JobSource.UNSUPPORTED : result;
}
/**
* optional .alluxio.grpc.job.JobSource jobSource = 3;
* @param value The jobSource to set.
* @return This builder for chaining.
*/
public Builder setJobSource(alluxio.grpc.JobSource value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
jobSource_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .alluxio.grpc.job.JobSource jobSource = 3;
* @return This builder for chaining.
*/
public Builder clearJobSource() {
bitField0_ = (bitField0_ & ~0x00000004);
jobSource_ = 0;
onChanged();
return this;
}
private int status_ = 0;
/**
* optional .alluxio.grpc.job.Status status = 4;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .alluxio.grpc.job.Status status = 4;
* @return The status.
*/
@java.lang.Override
public alluxio.grpc.Status getStatus() {
@SuppressWarnings("deprecation")
alluxio.grpc.Status result = alluxio.grpc.Status.valueOf(status_);
return result == null ? alluxio.grpc.Status.UNKNOWN : result;
}
/**
* optional .alluxio.grpc.job.Status status = 4;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(alluxio.grpc.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .alluxio.grpc.job.Status status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000008);
status_ = 0;
onChanged();
return this;
}
private long submissionTime_ ;
/**
* optional int64 submissionTime = 5;
* @return Whether the submissionTime field is set.
*/
@java.lang.Override
public boolean hasSubmissionTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 submissionTime = 5;
* @return The submissionTime.
*/
@java.lang.Override
public long getSubmissionTime() {
return submissionTime_;
}
/**
* optional int64 submissionTime = 5;
* @param value The submissionTime to set.
* @return This builder for chaining.
*/
public Builder setSubmissionTime(long value) {
bitField0_ |= 0x00000010;
submissionTime_ = value;
onChanged();
return this;
}
/**
* optional int64 submissionTime = 5;
* @return This builder for chaining.
*/
public Builder clearSubmissionTime() {
bitField0_ = (bitField0_ & ~0x00000010);
submissionTime_ = 0L;
onChanged();
return this;
}
private long duration_ ;
/**
* optional int64 duration = 6;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 duration = 6;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
/**
* optional int64 duration = 6;
* @param value The duration to set.
* @return This builder for chaining.
*/
public Builder setDuration(long value) {
bitField0_ |= 0x00000020;
duration_ = value;
onChanged();
return this;
}
/**
* optional int64 duration = 6;
* @return This builder for chaining.
*/
public Builder clearDuration() {
bitField0_ = (bitField0_ & ~0x00000020);
duration_ = 0L;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* optional string errorMessage = 7;
* @return Whether the errorMessage field is set.
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string errorMessage = 7;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
alluxio.shaded.client.com.google.protobuf.ByteString bs =
(alluxio.shaded.client.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string errorMessage = 7;
* @return The bytes for errorMessage.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string errorMessage = 7;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
errorMessage_ = value;
onChanged();
return this;
}
/**
* optional string errorMessage = 7;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
bitField0_ = (bitField0_ & ~0x00000040);
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* optional string errorMessage = 7;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
errorMessage_ = value;
onChanged();
return this;
}
private alluxio.grpc.CmdProgress cmdProgress_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.CmdProgress, alluxio.grpc.CmdProgress.Builder, alluxio.grpc.CmdProgressOrBuilder> cmdProgressBuilder_;
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
* @return Whether the cmdProgress field is set.
*/
public boolean hasCmdProgress() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
* @return The cmdProgress.
*/
public alluxio.grpc.CmdProgress getCmdProgress() {
if (cmdProgressBuilder_ == null) {
return cmdProgress_ == null ? alluxio.grpc.CmdProgress.getDefaultInstance() : cmdProgress_;
} else {
return cmdProgressBuilder_.getMessage();
}
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
public Builder setCmdProgress(alluxio.grpc.CmdProgress value) {
if (cmdProgressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cmdProgress_ = value;
onChanged();
} else {
cmdProgressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
public Builder setCmdProgress(
alluxio.grpc.CmdProgress.Builder builderForValue) {
if (cmdProgressBuilder_ == null) {
cmdProgress_ = builderForValue.build();
onChanged();
} else {
cmdProgressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
public Builder mergeCmdProgress(alluxio.grpc.CmdProgress value) {
if (cmdProgressBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
cmdProgress_ != null &&
cmdProgress_ != alluxio.grpc.CmdProgress.getDefaultInstance()) {
cmdProgress_ =
alluxio.grpc.CmdProgress.newBuilder(cmdProgress_).mergeFrom(value).buildPartial();
} else {
cmdProgress_ = value;
}
onChanged();
} else {
cmdProgressBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
public Builder clearCmdProgress() {
if (cmdProgressBuilder_ == null) {
cmdProgress_ = null;
onChanged();
} else {
cmdProgressBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
public alluxio.grpc.CmdProgress.Builder getCmdProgressBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getCmdProgressFieldBuilder().getBuilder();
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
public alluxio.grpc.CmdProgressOrBuilder getCmdProgressOrBuilder() {
if (cmdProgressBuilder_ != null) {
return cmdProgressBuilder_.getMessageOrBuilder();
} else {
return cmdProgress_ == null ?
alluxio.grpc.CmdProgress.getDefaultInstance() : cmdProgress_;
}
}
/**
* optional .alluxio.grpc.job.CmdProgress cmdProgress = 8;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.CmdProgress, alluxio.grpc.CmdProgress.Builder, alluxio.grpc.CmdProgressOrBuilder>
getCmdProgressFieldBuilder() {
if (cmdProgressBuilder_ == null) {
cmdProgressBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.CmdProgress, alluxio.grpc.CmdProgress.Builder, alluxio.grpc.CmdProgressOrBuilder>(
getCmdProgress(),
getParentForChildren(),
isClean());
cmdProgress_ = null;
}
return cmdProgressBuilder_;
}
private float progressPercentage_ ;
/**
* optional float progressPercentage = 9;
* @return Whether the progressPercentage field is set.
*/
@java.lang.Override
public boolean hasProgressPercentage() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional float progressPercentage = 9;
* @return The progressPercentage.
*/
@java.lang.Override
public float getProgressPercentage() {
return progressPercentage_;
}
/**
* optional float progressPercentage = 9;
* @param value The progressPercentage to set.
* @return This builder for chaining.
*/
public Builder setProgressPercentage(float value) {
bitField0_ |= 0x00000100;
progressPercentage_ = value;
onChanged();
return this;
}
/**
* optional float progressPercentage = 9;
* @return This builder for chaining.
*/
public Builder clearProgressPercentage() {
bitField0_ = (bitField0_ & ~0x00000100);
progressPercentage_ = 0F;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:alluxio.grpc.job.CmdSummary)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.job.CmdSummary)
private static final alluxio.grpc.CmdSummary DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.CmdSummary();
}
public static alluxio.grpc.CmdSummary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
@java.lang.Override
public CmdSummary parsePartialFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.alluxio.shaded.client.io.IOException e) {
throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public alluxio.grpc.CmdSummary getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}