/** * <pre> * The action to take when the quota is violated * </pre> * * <code>optional .hbase.pb.SpaceViolationPolicy violation_policy = 2;</code> */ public Builder setViolationPolicy(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceViolationPolicy value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; violationPolicy_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * The action to take when the quota is violated * </pre> * * <code>optional .hbase.pb.SpaceViolationPolicy violation_policy = 2;</code> */ public Builder setViolationPolicy(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceViolationPolicy value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; violationPolicy_ = value.getNumber(); onChanged(); return this; } /**
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota.getDefaultInstance()) return this; if (other.hasSoftLimit()) { setSoftLimit(other.getSoftLimit()); } if (other.hasViolationPolicy()) { setViolationPolicy(other.getViolationPolicy()); } if (other.hasRemove()) { setRemove(other.getRemove()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * When true, remove the quota. * </pre> * * <code>optional bool remove = 3 [default = false];</code> */ public Builder setRemove(boolean value) { bitField0_ |= 0x00000004; remove_ = value; onChanged(); return this; } /**
/** * <pre> * The limit of bytes for this quota * </pre> * * <code>optional uint64 soft_limit = 1;</code> */ public Builder setSoftLimit(long value) { bitField0_ |= 0x00000001; softLimit_ = value; onChanged(); return this; } /**
/** * <pre> * The action to take when the quota is violated * </pre> * * <code>optional .hbase.pb.SpaceViolationPolicy violation_policy = 2;</code> */ public Builder clearViolationPolicy() { bitField0_ = (bitField0_ & ~0x00000002); violationPolicy_ = 1; onChanged(); return this; }
/** * <pre> * When true, remove the quota. * </pre> * * <code>optional bool remove = 3 [default = false];</code> */ public Builder clearRemove() { bitField0_ = (bitField0_ & ~0x00000004); remove_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The limit of bytes for this quota * </pre> * * <code>optional uint64 soft_limit = 1;</code> */ public Builder clearSoftLimit() { bitField0_ = (bitField0_ & ~0x00000001); softLimit_ = 0L; onChanged(); return this; }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota.getDefaultInstance()) return this; if (other.hasSoftLimit()) { setSoftLimit(other.getSoftLimit()); } if (other.hasViolationPolicy()) { setViolationPolicy(other.getViolationPolicy()); } if (other.hasRemove()) { setRemove(other.getRemove()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * When true, remove the quota. * </pre> * * <code>optional bool remove = 3 [default = false];</code> */ public Builder setRemove(boolean value) { bitField0_ |= 0x00000004; remove_ = value; onChanged(); return this; } /**
/** * <pre> * The limit of bytes for this quota * </pre> * * <code>optional uint64 soft_limit = 1;</code> */ public Builder setSoftLimit(long value) { bitField0_ |= 0x00000001; softLimit_ = value; onChanged(); return this; } /**
/** * <pre> * When true, remove the quota. * </pre> * * <code>optional bool remove = 3 [default = false];</code> */ public Builder clearRemove() { bitField0_ = (bitField0_ & ~0x00000004); remove_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The action to take when the quota is violated * </pre> * * <code>optional .hbase.pb.SpaceViolationPolicy violation_policy = 2;</code> */ public Builder clearViolationPolicy() { bitField0_ = (bitField0_ & ~0x00000002); violationPolicy_ = 1; onChanged(); return this; }
/** * <pre> * The limit of bytes for this quota * </pre> * * <code>optional uint64 soft_limit = 1;</code> */ public Builder clearSoftLimit() { bitField0_ = (bitField0_ & ~0x00000001); softLimit_ = 0L; onChanged(); return this; }