public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.grpc.CreateDirectoryPOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.grpc.CreateDirectoryPOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.grpc.CreateDirectoryPOptions) { return mergeFrom((alluxio.grpc.CreateDirectoryPOptions)other); } else { super.mergeFrom(other); return this; } }
subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial();
/** * <code>optional .alluxio.grpc.file.CreateDirectoryPOptions options = 2;</code> */ public Builder mergeOptions(alluxio.grpc.CreateDirectoryPOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && options_ != null && options_ != alluxio.grpc.CreateDirectoryPOptions.getDefaultInstance()) { options_ = alluxio.grpc.CreateDirectoryPOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
/** * Merges and embeds the given {@link CreateDirectoryPOptions} with the corresponding master * options. * * @param optionsBuilder Builder for proto {@link CreateDirectoryPOptions} to merge with defaults * @return the instance of {@link CreateDirectoryContext} with default values for master */ public static CreateDirectoryContext defaults(CreateDirectoryPOptions.Builder optionsBuilder) { CreateDirectoryPOptions masterOptions = FileSystemMasterOptions.createDirectoryDefaults(); CreateDirectoryPOptions.Builder mergedOptionsBuilder = masterOptions.toBuilder().mergeFrom(optionsBuilder.build()); return new CreateDirectoryContext(mergedOptionsBuilder); }
public static Builder newBuilder(alluxio.grpc.CreateDirectoryPOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); }