
alluxio.grpc.PolicyStatus Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/policy_master.proto
package alluxio.grpc;
/**
*
* next available id: 12
*
*
* Protobuf type {@code alluxio.grpc.policy.PolicyStatus}
*/
public final class PolicyStatus extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.policy.PolicyStatus)
PolicyStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolicyStatus.newBuilder() to construct.
private PolicyStatus(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolicyStatus() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolicyStatus();
}
@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.PolicyMasterProto.internal_static_alluxio_grpc_policy_PolicyStatus_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetErrors();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.PolicyMasterProto.internal_static_alluxio_grpc_policy_PolicyStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.PolicyStatus.class, alluxio.grpc.PolicyStatus.Builder.class);
}
private int bitField0_;
public static final int SCANSTARTEDMS_FIELD_NUMBER = 1;
private long scanStartedMs_;
/**
*
* scan status
*
*
* optional int64 scanStartedMs = 1;
* @return Whether the scanStartedMs field is set.
*/
@java.lang.Override
public boolean hasScanStartedMs() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* scan status
*
*
* optional int64 scanStartedMs = 1;
* @return The scanStartedMs.
*/
@java.lang.Override
public long getScanStartedMs() {
return scanStartedMs_;
}
public static final int SCANTOTAL_FIELD_NUMBER = 2;
private long scanTotal_;
/**
* optional int64 scanTotal = 2;
* @return Whether the scanTotal field is set.
*/
@java.lang.Override
public boolean hasScanTotal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 scanTotal = 2;
* @return The scanTotal.
*/
@java.lang.Override
public long getScanTotal() {
return scanTotal_;
}
public static final int SCANPENDINGACTION_FIELD_NUMBER = 3;
private long scanPendingAction_;
/**
* optional int64 scanPendingAction = 3;
* @return Whether the scanPendingAction field is set.
*/
@java.lang.Override
public boolean hasScanPendingAction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 scanPendingAction = 3;
* @return The scanPendingAction.
*/
@java.lang.Override
public long getScanPendingAction() {
return scanPendingAction_;
}
public static final int SCANCOMPLETED_FIELD_NUMBER = 4;
private long scanCompleted_;
/**
* optional int64 scanCompleted = 4;
* @return Whether the scanCompleted field is set.
*/
@java.lang.Override
public boolean hasScanCompleted() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 scanCompleted = 4;
* @return The scanCompleted.
*/
@java.lang.Override
public long getScanCompleted() {
return scanCompleted_;
}
public static final int ISSCANNING_FIELD_NUMBER = 11;
private boolean isScanning_;
/**
* optional bool isScanning = 11;
* @return Whether the isScanning field is set.
*/
@java.lang.Override
public boolean hasIsScanning() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool isScanning = 11;
* @return The isScanning.
*/
@java.lang.Override
public boolean getIsScanning() {
return isScanning_;
}
public static final int ACTIONSSCHEDULED_FIELD_NUMBER = 5;
private long actionsScheduled_;
/**
*
* metrics
*
*
* optional int64 actionsScheduled = 5;
* @return Whether the actionsScheduled field is set.
*/
@java.lang.Override
public boolean hasActionsScheduled() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* metrics
*
*
* optional int64 actionsScheduled = 5;
* @return The actionsScheduled.
*/
@java.lang.Override
public long getActionsScheduled() {
return actionsScheduled_;
}
public static final int ACTIONSRUNNING_FIELD_NUMBER = 6;
private long actionsRunning_;
/**
* optional int64 actionsRunning = 6;
* @return Whether the actionsRunning field is set.
*/
@java.lang.Override
public boolean hasActionsRunning() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 actionsRunning = 6;
* @return The actionsRunning.
*/
@java.lang.Override
public long getActionsRunning() {
return actionsRunning_;
}
public static final int ACTIONSSUCCEEDED_FIELD_NUMBER = 7;
private long actionsSucceeded_;
/**
* optional int64 actionsSucceeded = 7;
* @return Whether the actionsSucceeded field is set.
*/
@java.lang.Override
public boolean hasActionsSucceeded() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 actionsSucceeded = 7;
* @return The actionsSucceeded.
*/
@java.lang.Override
public long getActionsSucceeded() {
return actionsSucceeded_;
}
public static final int ACTIONSCANCELED_FIELD_NUMBER = 8;
private long actionsCanceled_;
/**
* optional int64 actionsCanceled = 8;
* @return Whether the actionsCanceled field is set.
*/
@java.lang.Override
public boolean hasActionsCanceled() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 actionsCanceled = 8;
* @return The actionsCanceled.
*/
@java.lang.Override
public long getActionsCanceled() {
return actionsCanceled_;
}
public static final int ACTIONSFAILED_FIELD_NUMBER = 9;
private long actionsFailed_;
/**
* optional int64 actionsFailed = 9;
* @return Whether the actionsFailed field is set.
*/
@java.lang.Override
public boolean hasActionsFailed() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 actionsFailed = 9;
* @return The actionsFailed.
*/
@java.lang.Override
public long getActionsFailed() {
return actionsFailed_;
}
public static final int ERRORS_FIELD_NUMBER = 10;
private static final class ErrorsDefaultEntryHolder {
static final alluxio.shaded.client.com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
alluxio.shaded.client.com.google.protobuf.MapEntry
.newDefaultInstance(
alluxio.grpc.PolicyMasterProto.internal_static_alluxio_grpc_policy_PolicyStatus_ErrorsEntry_descriptor,
alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
"",
alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private alluxio.shaded.client.com.google.protobuf.MapField<
java.lang.String, java.lang.String> errors_;
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetErrors() {
if (errors_ == null) {
return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
ErrorsDefaultEntryHolder.defaultEntry);
}
return errors_;
}
public int getErrorsCount() {
return internalGetErrors().getMap().size();
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public boolean containsErrors(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetErrors().getMap().containsKey(key);
}
/**
* Use {@link #getErrorsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getErrors() {
return getErrorsMap();
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public java.util.Map getErrorsMap() {
return internalGetErrors().getMap();
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public java.lang.String getErrorsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetErrors().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public java.lang.String getErrorsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetErrors().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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, scanStartedMs_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, scanTotal_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, scanPendingAction_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, scanCompleted_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(5, actionsScheduled_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(6, actionsRunning_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(7, actionsSucceeded_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(8, actionsCanceled_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(9, actionsFailed_);
}
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetErrors(),
ErrorsDefaultEntryHolder.defaultEntry,
10);
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(11, isScanning_);
}
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, scanStartedMs_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(2, scanTotal_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(3, scanPendingAction_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(4, scanCompleted_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(5, actionsScheduled_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(6, actionsRunning_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(7, actionsSucceeded_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(8, actionsCanceled_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(9, actionsFailed_);
}
for (java.util.Map.Entry entry
: internalGetErrors().getMap().entrySet()) {
alluxio.shaded.client.com.google.protobuf.MapEntry
errors__ = ErrorsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(10, errors__);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(11, isScanning_);
}
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.PolicyStatus)) {
return super.equals(obj);
}
alluxio.grpc.PolicyStatus other = (alluxio.grpc.PolicyStatus) obj;
if (hasScanStartedMs() != other.hasScanStartedMs()) return false;
if (hasScanStartedMs()) {
if (getScanStartedMs()
!= other.getScanStartedMs()) return false;
}
if (hasScanTotal() != other.hasScanTotal()) return false;
if (hasScanTotal()) {
if (getScanTotal()
!= other.getScanTotal()) return false;
}
if (hasScanPendingAction() != other.hasScanPendingAction()) return false;
if (hasScanPendingAction()) {
if (getScanPendingAction()
!= other.getScanPendingAction()) return false;
}
if (hasScanCompleted() != other.hasScanCompleted()) return false;
if (hasScanCompleted()) {
if (getScanCompleted()
!= other.getScanCompleted()) return false;
}
if (hasIsScanning() != other.hasIsScanning()) return false;
if (hasIsScanning()) {
if (getIsScanning()
!= other.getIsScanning()) return false;
}
if (hasActionsScheduled() != other.hasActionsScheduled()) return false;
if (hasActionsScheduled()) {
if (getActionsScheduled()
!= other.getActionsScheduled()) return false;
}
if (hasActionsRunning() != other.hasActionsRunning()) return false;
if (hasActionsRunning()) {
if (getActionsRunning()
!= other.getActionsRunning()) return false;
}
if (hasActionsSucceeded() != other.hasActionsSucceeded()) return false;
if (hasActionsSucceeded()) {
if (getActionsSucceeded()
!= other.getActionsSucceeded()) return false;
}
if (hasActionsCanceled() != other.hasActionsCanceled()) return false;
if (hasActionsCanceled()) {
if (getActionsCanceled()
!= other.getActionsCanceled()) return false;
}
if (hasActionsFailed() != other.hasActionsFailed()) return false;
if (hasActionsFailed()) {
if (getActionsFailed()
!= other.getActionsFailed()) return false;
}
if (!internalGetErrors().equals(
other.internalGetErrors())) 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 (hasScanStartedMs()) {
hash = (37 * hash) + SCANSTARTEDMS_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getScanStartedMs());
}
if (hasScanTotal()) {
hash = (37 * hash) + SCANTOTAL_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getScanTotal());
}
if (hasScanPendingAction()) {
hash = (37 * hash) + SCANPENDINGACTION_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getScanPendingAction());
}
if (hasScanCompleted()) {
hash = (37 * hash) + SCANCOMPLETED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getScanCompleted());
}
if (hasIsScanning()) {
hash = (37 * hash) + ISSCANNING_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getIsScanning());
}
if (hasActionsScheduled()) {
hash = (37 * hash) + ACTIONSSCHEDULED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getActionsScheduled());
}
if (hasActionsRunning()) {
hash = (37 * hash) + ACTIONSRUNNING_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getActionsRunning());
}
if (hasActionsSucceeded()) {
hash = (37 * hash) + ACTIONSSUCCEEDED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getActionsSucceeded());
}
if (hasActionsCanceled()) {
hash = (37 * hash) + ACTIONSCANCELED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getActionsCanceled());
}
if (hasActionsFailed()) {
hash = (37 * hash) + ACTIONSFAILED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getActionsFailed());
}
if (!internalGetErrors().getMap().isEmpty()) {
hash = (37 * hash) + ERRORS_FIELD_NUMBER;
hash = (53 * hash) + internalGetErrors().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.PolicyStatus parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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.PolicyStatus parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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.PolicyStatus 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;
}
/**
*
* next available id: 12
*
*
* Protobuf type {@code alluxio.grpc.policy.PolicyStatus}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.policy.PolicyStatus)
alluxio.grpc.PolicyStatusOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.PolicyMasterProto.internal_static_alluxio_grpc_policy_PolicyStatus_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetErrors();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 10:
return internalGetMutableErrors();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.PolicyMasterProto.internal_static_alluxio_grpc_policy_PolicyStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.PolicyStatus.class, alluxio.grpc.PolicyStatus.Builder.class);
}
// Construct using alluxio.grpc.PolicyStatus.newBuilder()
private Builder() {
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
scanStartedMs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
scanTotal_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
scanPendingAction_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
scanCompleted_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
isScanning_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
actionsScheduled_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
actionsRunning_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
actionsSucceeded_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
actionsCanceled_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
actionsFailed_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
internalGetMutableErrors().clear();
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.PolicyMasterProto.internal_static_alluxio_grpc_policy_PolicyStatus_descriptor;
}
@java.lang.Override
public alluxio.grpc.PolicyStatus getDefaultInstanceForType() {
return alluxio.grpc.PolicyStatus.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.PolicyStatus build() {
alluxio.grpc.PolicyStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.PolicyStatus buildPartial() {
alluxio.grpc.PolicyStatus result = new alluxio.grpc.PolicyStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scanStartedMs_ = scanStartedMs_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scanTotal_ = scanTotal_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scanPendingAction_ = scanPendingAction_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.scanCompleted_ = scanCompleted_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.isScanning_ = isScanning_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.actionsScheduled_ = actionsScheduled_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.actionsRunning_ = actionsRunning_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.actionsSucceeded_ = actionsSucceeded_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.actionsCanceled_ = actionsCanceled_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.actionsFailed_ = actionsFailed_;
to_bitField0_ |= 0x00000200;
}
result.errors_ = internalGetErrors();
result.errors_.makeImmutable();
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.PolicyStatus) {
return mergeFrom((alluxio.grpc.PolicyStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.PolicyStatus other) {
if (other == alluxio.grpc.PolicyStatus.getDefaultInstance()) return this;
if (other.hasScanStartedMs()) {
setScanStartedMs(other.getScanStartedMs());
}
if (other.hasScanTotal()) {
setScanTotal(other.getScanTotal());
}
if (other.hasScanPendingAction()) {
setScanPendingAction(other.getScanPendingAction());
}
if (other.hasScanCompleted()) {
setScanCompleted(other.getScanCompleted());
}
if (other.hasIsScanning()) {
setIsScanning(other.getIsScanning());
}
if (other.hasActionsScheduled()) {
setActionsScheduled(other.getActionsScheduled());
}
if (other.hasActionsRunning()) {
setActionsRunning(other.getActionsRunning());
}
if (other.hasActionsSucceeded()) {
setActionsSucceeded(other.getActionsSucceeded());
}
if (other.hasActionsCanceled()) {
setActionsCanceled(other.getActionsCanceled());
}
if (other.hasActionsFailed()) {
setActionsFailed(other.getActionsFailed());
}
internalGetMutableErrors().mergeFrom(
other.internalGetErrors());
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: {
scanStartedMs_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
scanTotal_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
scanPendingAction_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
scanCompleted_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
actionsScheduled_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 40
case 48: {
actionsRunning_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 48
case 56: {
actionsSucceeded_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 56
case 64: {
actionsCanceled_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 64
case 72: {
actionsFailed_ = input.readInt64();
bitField0_ |= 0x00000200;
break;
} // case 72
case 82: {
alluxio.shaded.client.com.google.protobuf.MapEntry
errors__ = input.readMessage(
ErrorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableErrors().getMutableMap().put(
errors__.getKey(), errors__.getValue());
break;
} // case 82
case 88: {
isScanning_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 88
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 scanStartedMs_ ;
/**
*
* scan status
*
*
* optional int64 scanStartedMs = 1;
* @return Whether the scanStartedMs field is set.
*/
@java.lang.Override
public boolean hasScanStartedMs() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* scan status
*
*
* optional int64 scanStartedMs = 1;
* @return The scanStartedMs.
*/
@java.lang.Override
public long getScanStartedMs() {
return scanStartedMs_;
}
/**
*
* scan status
*
*
* optional int64 scanStartedMs = 1;
* @param value The scanStartedMs to set.
* @return This builder for chaining.
*/
public Builder setScanStartedMs(long value) {
bitField0_ |= 0x00000001;
scanStartedMs_ = value;
onChanged();
return this;
}
/**
*
* scan status
*
*
* optional int64 scanStartedMs = 1;
* @return This builder for chaining.
*/
public Builder clearScanStartedMs() {
bitField0_ = (bitField0_ & ~0x00000001);
scanStartedMs_ = 0L;
onChanged();
return this;
}
private long scanTotal_ ;
/**
* optional int64 scanTotal = 2;
* @return Whether the scanTotal field is set.
*/
@java.lang.Override
public boolean hasScanTotal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 scanTotal = 2;
* @return The scanTotal.
*/
@java.lang.Override
public long getScanTotal() {
return scanTotal_;
}
/**
* optional int64 scanTotal = 2;
* @param value The scanTotal to set.
* @return This builder for chaining.
*/
public Builder setScanTotal(long value) {
bitField0_ |= 0x00000002;
scanTotal_ = value;
onChanged();
return this;
}
/**
* optional int64 scanTotal = 2;
* @return This builder for chaining.
*/
public Builder clearScanTotal() {
bitField0_ = (bitField0_ & ~0x00000002);
scanTotal_ = 0L;
onChanged();
return this;
}
private long scanPendingAction_ ;
/**
* optional int64 scanPendingAction = 3;
* @return Whether the scanPendingAction field is set.
*/
@java.lang.Override
public boolean hasScanPendingAction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 scanPendingAction = 3;
* @return The scanPendingAction.
*/
@java.lang.Override
public long getScanPendingAction() {
return scanPendingAction_;
}
/**
* optional int64 scanPendingAction = 3;
* @param value The scanPendingAction to set.
* @return This builder for chaining.
*/
public Builder setScanPendingAction(long value) {
bitField0_ |= 0x00000004;
scanPendingAction_ = value;
onChanged();
return this;
}
/**
* optional int64 scanPendingAction = 3;
* @return This builder for chaining.
*/
public Builder clearScanPendingAction() {
bitField0_ = (bitField0_ & ~0x00000004);
scanPendingAction_ = 0L;
onChanged();
return this;
}
private long scanCompleted_ ;
/**
* optional int64 scanCompleted = 4;
* @return Whether the scanCompleted field is set.
*/
@java.lang.Override
public boolean hasScanCompleted() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 scanCompleted = 4;
* @return The scanCompleted.
*/
@java.lang.Override
public long getScanCompleted() {
return scanCompleted_;
}
/**
* optional int64 scanCompleted = 4;
* @param value The scanCompleted to set.
* @return This builder for chaining.
*/
public Builder setScanCompleted(long value) {
bitField0_ |= 0x00000008;
scanCompleted_ = value;
onChanged();
return this;
}
/**
* optional int64 scanCompleted = 4;
* @return This builder for chaining.
*/
public Builder clearScanCompleted() {
bitField0_ = (bitField0_ & ~0x00000008);
scanCompleted_ = 0L;
onChanged();
return this;
}
private boolean isScanning_ ;
/**
* optional bool isScanning = 11;
* @return Whether the isScanning field is set.
*/
@java.lang.Override
public boolean hasIsScanning() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool isScanning = 11;
* @return The isScanning.
*/
@java.lang.Override
public boolean getIsScanning() {
return isScanning_;
}
/**
* optional bool isScanning = 11;
* @param value The isScanning to set.
* @return This builder for chaining.
*/
public Builder setIsScanning(boolean value) {
bitField0_ |= 0x00000010;
isScanning_ = value;
onChanged();
return this;
}
/**
* optional bool isScanning = 11;
* @return This builder for chaining.
*/
public Builder clearIsScanning() {
bitField0_ = (bitField0_ & ~0x00000010);
isScanning_ = false;
onChanged();
return this;
}
private long actionsScheduled_ ;
/**
*
* metrics
*
*
* optional int64 actionsScheduled = 5;
* @return Whether the actionsScheduled field is set.
*/
@java.lang.Override
public boolean hasActionsScheduled() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* metrics
*
*
* optional int64 actionsScheduled = 5;
* @return The actionsScheduled.
*/
@java.lang.Override
public long getActionsScheduled() {
return actionsScheduled_;
}
/**
*
* metrics
*
*
* optional int64 actionsScheduled = 5;
* @param value The actionsScheduled to set.
* @return This builder for chaining.
*/
public Builder setActionsScheduled(long value) {
bitField0_ |= 0x00000020;
actionsScheduled_ = value;
onChanged();
return this;
}
/**
*
* metrics
*
*
* optional int64 actionsScheduled = 5;
* @return This builder for chaining.
*/
public Builder clearActionsScheduled() {
bitField0_ = (bitField0_ & ~0x00000020);
actionsScheduled_ = 0L;
onChanged();
return this;
}
private long actionsRunning_ ;
/**
* optional int64 actionsRunning = 6;
* @return Whether the actionsRunning field is set.
*/
@java.lang.Override
public boolean hasActionsRunning() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 actionsRunning = 6;
* @return The actionsRunning.
*/
@java.lang.Override
public long getActionsRunning() {
return actionsRunning_;
}
/**
* optional int64 actionsRunning = 6;
* @param value The actionsRunning to set.
* @return This builder for chaining.
*/
public Builder setActionsRunning(long value) {
bitField0_ |= 0x00000040;
actionsRunning_ = value;
onChanged();
return this;
}
/**
* optional int64 actionsRunning = 6;
* @return This builder for chaining.
*/
public Builder clearActionsRunning() {
bitField0_ = (bitField0_ & ~0x00000040);
actionsRunning_ = 0L;
onChanged();
return this;
}
private long actionsSucceeded_ ;
/**
* optional int64 actionsSucceeded = 7;
* @return Whether the actionsSucceeded field is set.
*/
@java.lang.Override
public boolean hasActionsSucceeded() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 actionsSucceeded = 7;
* @return The actionsSucceeded.
*/
@java.lang.Override
public long getActionsSucceeded() {
return actionsSucceeded_;
}
/**
* optional int64 actionsSucceeded = 7;
* @param value The actionsSucceeded to set.
* @return This builder for chaining.
*/
public Builder setActionsSucceeded(long value) {
bitField0_ |= 0x00000080;
actionsSucceeded_ = value;
onChanged();
return this;
}
/**
* optional int64 actionsSucceeded = 7;
* @return This builder for chaining.
*/
public Builder clearActionsSucceeded() {
bitField0_ = (bitField0_ & ~0x00000080);
actionsSucceeded_ = 0L;
onChanged();
return this;
}
private long actionsCanceled_ ;
/**
* optional int64 actionsCanceled = 8;
* @return Whether the actionsCanceled field is set.
*/
@java.lang.Override
public boolean hasActionsCanceled() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 actionsCanceled = 8;
* @return The actionsCanceled.
*/
@java.lang.Override
public long getActionsCanceled() {
return actionsCanceled_;
}
/**
* optional int64 actionsCanceled = 8;
* @param value The actionsCanceled to set.
* @return This builder for chaining.
*/
public Builder setActionsCanceled(long value) {
bitField0_ |= 0x00000100;
actionsCanceled_ = value;
onChanged();
return this;
}
/**
* optional int64 actionsCanceled = 8;
* @return This builder for chaining.
*/
public Builder clearActionsCanceled() {
bitField0_ = (bitField0_ & ~0x00000100);
actionsCanceled_ = 0L;
onChanged();
return this;
}
private long actionsFailed_ ;
/**
* optional int64 actionsFailed = 9;
* @return Whether the actionsFailed field is set.
*/
@java.lang.Override
public boolean hasActionsFailed() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 actionsFailed = 9;
* @return The actionsFailed.
*/
@java.lang.Override
public long getActionsFailed() {
return actionsFailed_;
}
/**
* optional int64 actionsFailed = 9;
* @param value The actionsFailed to set.
* @return This builder for chaining.
*/
public Builder setActionsFailed(long value) {
bitField0_ |= 0x00000200;
actionsFailed_ = value;
onChanged();
return this;
}
/**
* optional int64 actionsFailed = 9;
* @return This builder for chaining.
*/
public Builder clearActionsFailed() {
bitField0_ = (bitField0_ & ~0x00000200);
actionsFailed_ = 0L;
onChanged();
return this;
}
private alluxio.shaded.client.com.google.protobuf.MapField<
java.lang.String, java.lang.String> errors_;
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetErrors() {
if (errors_ == null) {
return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
ErrorsDefaultEntryHolder.defaultEntry);
}
return errors_;
}
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetMutableErrors() {
onChanged();;
if (errors_ == null) {
errors_ = alluxio.shaded.client.com.google.protobuf.MapField.newMapField(
ErrorsDefaultEntryHolder.defaultEntry);
}
if (!errors_.isMutable()) {
errors_ = errors_.copy();
}
return errors_;
}
public int getErrorsCount() {
return internalGetErrors().getMap().size();
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public boolean containsErrors(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetErrors().getMap().containsKey(key);
}
/**
* Use {@link #getErrorsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getErrors() {
return getErrorsMap();
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public java.util.Map getErrorsMap() {
return internalGetErrors().getMap();
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public java.lang.String getErrorsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetErrors().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> errors = 10;
*/
@java.lang.Override
public java.lang.String getErrorsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetErrors().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearErrors() {
internalGetMutableErrors().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> errors = 10;
*/
public Builder removeErrors(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableErrors().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableErrors() {
return internalGetMutableErrors().getMutableMap();
}
/**
* map<string, string> errors = 10;
*/
public Builder putErrors(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableErrors().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> errors = 10;
*/
public Builder putAllErrors(
java.util.Map values) {
internalGetMutableErrors().getMutableMap()
.putAll(values);
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.policy.PolicyStatus)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.policy.PolicyStatus)
private static final alluxio.grpc.PolicyStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.PolicyStatus();
}
public static alluxio.grpc.PolicyStatus 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 PolicyStatus 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.PolicyStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy