hash = (37 * hash) + PINNED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPinned());
@Test public void setStateSuccess() throws Exception { // set unmask try (Closeable c = new ConfigurationRule( PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK, "000", ServerConfiguration.global()).toResource()) { String file = PathUtils.concatPath(TEST_DIR_URI, "testState1"); verifyCreateFile(TEST_USER_1, file, false); SetAttributePOptions expect = getNonDefaultSetState(); SetAttributePOptions result = verifySetState(TEST_USER_2, file, expect); assertEquals(expect.getTtl(), result.getTtl()); assertEquals(expect.getTtlAction(), result.getTtlAction()); assertEquals(expect.getPinned(), result.getPinned()); } }
public Builder mergeFrom(alluxio.grpc.SetAttributePOptions other) { if (other == alluxio.grpc.SetAttributePOptions.getDefaultInstance()) return this; if (other.hasPinned()) { setPinned(other.getPinned());