public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public Builder mergeFrom(alluxio.grpc.FreePOptions other) { if (other == alluxio.grpc.FreePOptions.getDefaultInstance()) return this; if (other.hasRecursive()) { setRecursive(other.getRecursive()); } if (other.hasForced()) { setForced(other.getForced()); } if (other.hasCommonOptions()) { mergeCommonOptions(other.getCommonOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(alluxio.grpc.FreePOptions prototype) {
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.FreePOptions)) { return super.equals(obj); } alluxio.grpc.FreePOptions other = (alluxio.grpc.FreePOptions) obj; boolean result = true; result = result && (hasRecursive() == other.hasRecursive()); if (hasRecursive()) { result = result && (getRecursive() == other.getRecursive()); } result = result && (hasForced() == other.hasForced()); if (hasForced()) { result = result && (getForced() == other.getForced()); } result = result && (hasCommonOptions() == other.hasCommonOptions()); if (hasCommonOptions()) { result = result && getCommonOptions() .equals(other.getCommonOptions()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>optional .alluxio.grpc.file.FreePOptions options = 2;</code> */ public Builder mergeOptions(alluxio.grpc.FreePOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && options_ != null && options_ != alluxio.grpc.FreePOptions.getDefaultInstance()) { options_ = alluxio.grpc.FreePOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .alluxio.grpc.file.FreePOptions options = 2;</code> */ public alluxio.grpc.FreePOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? alluxio.grpc.FreePOptions.getDefaultInstance() : options_; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, recursive_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, forced_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getCommonOptions()); } unknownFields.writeTo(output); }
public alluxio.grpc.FreePOptions buildPartial() { alluxio.grpc.FreePOptions result = new alluxio.grpc.FreePOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.recursive_ = recursive_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.forced_ = forced_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (commonOptionsBuilder_ == null) { result.commonOptions_ = commonOptions_; } else { result.commonOptions_ = commonOptionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.FreePRequest)) { return super.equals(obj); } alluxio.grpc.FreePRequest other = (alluxio.grpc.FreePRequest) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && (hasOptions() == other.hasOptions()); if (hasOptions()) { result = result && getOptions() .equals(other.getOptions()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>optional .alluxio.grpc.file.FreePOptions options = 2;</code> */ public alluxio.grpc.FreePOptions getOptions() { return options_ == null ? alluxio.grpc.FreePOptions.getDefaultInstance() : options_; } /**
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, recursive_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, forced_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCommonOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
.getMs(PropertyKey.WORKER_BLOCK_HEARTBEAT_INTERVAL_MS)); FreePOptions options = FreePOptions.newBuilder().setRecursive(true).setForced(cl.hasOption("f")).build(); mFileSystem.free(path, options); try {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRecursive()) { hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRecursive()); } if (hasForced()) { hash = (37 * hash) + FORCED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForced()); } if (hasCommonOptions()) { hash = (37 * hash) + COMMONOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getCommonOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public static Builder newBuilder(alluxio.grpc.FreePOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public alluxio.grpc.FreePOptions getDefaultInstanceForType() { return alluxio.grpc.FreePOptions.getDefaultInstance(); }
/** * @return Master side defaults for {@link FreePOptions} */ public static FreePOptions freeDefaults() { return FreePOptions.newBuilder() .setCommonOptions(commonDefaults()) .setForced(false) .setRecursive(false) .build(); }
/** * @return the instance of {@link FreeContext} with default values for master */ public static FreeContext defaults() { FreePOptions masterOptions = FileSystemMasterOptions.freeDefaults(); return new FreeContext(masterOptions.toBuilder()); }
/** * <code>optional .alluxio.grpc.file.FreePOptions options = 2;</code> */ public alluxio.grpc.FreePOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? alluxio.grpc.FreePOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /**
/** * Tests for the {@link BaseFileSystem#free(AlluxioURI, FreePOptions)} method. */ @Test public void free() throws Exception { AlluxioURI file = new AlluxioURI("/file"); FreePOptions freeOptions = FreePOptions.newBuilder().setRecursive(true).build(); mFileSystem.free(file, freeOptions); verify(mFileSystemMasterClient).free(file, freeOptions); verifyFilesystemContextAcquiredAndReleased(); }
alluxio.grpc.FreePOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = options_.toBuilder();