hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadOnly());
setReadOnly(other.getReadOnly());
result = result && (getReadOnly() == other.getReadOnly());
setReadOnly(other.getReadOnly());
/** * Creates a new instance of {@link MountOptions} from {@link File.AddMountPointEntry}. * * @param options Proto options */ public MountOptions(File.AddMountPointEntry options) { this(); if (options != null) { if (options.hasReadOnly()) { mReadOnly = options.getReadOnly(); } for (File.StringPairEntry entry : options.getPropertiesList()) { mProperties.put(entry.getKey(), entry.getValue()); } if (options.hasShared()) { mShared = options.getShared(); } } }
/** * Creates mount proto options from {@link File.AddMountPointEntry}. * @param mountEntryPoint mount point entry * @return created mount proto options */ public static MountPOptions fromMountEntry(File.AddMountPointEntry mountEntryPoint) { MountPOptions.Builder optionsBuilder = MountPOptions.newBuilder(); if (mountEntryPoint != null) { if (mountEntryPoint.hasReadOnly()) { optionsBuilder.setReadOnly(mountEntryPoint.getReadOnly()); } for (File.StringPairEntry entry : mountEntryPoint.getPropertiesList()) { optionsBuilder.putProperties(entry.getKey(), entry.getValue()); } if (mountEntryPoint.hasShared()) { optionsBuilder.setShared(mountEntryPoint.getShared()); } } return optionsBuilder.build(); }