/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LogSafety valueOf(int value) { return forNumber(value); }
public static LogSafety valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; }
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 6 [default = UNSAFE];</code> */ public Builder setLogSafety(com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; logSafety_ = value.getNumber(); onChanged(); return this; } /**
com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(12, rawValue);
com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue);
com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue);
jgen.writeBooleanField("negativeLookups", value.hasNegativeLookups()); jgen.writeBooleanField("appendHeavyAndReadLight", value.isAppendHeavyAndReadLight()); jgen.writeStringField("nameLogSafety", value.getNameLogSafety().name()); jgen.writeEndObject();
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((cachePriority == null) ? 0 : cachePriority.hashCode()); result = prime * result + ((columns == null) ? 0 : columns.hashCode()); result = prime * result + ((conflictHandler == null) ? 0 : conflictHandler.hashCode()); result = prime * result + (rangeScanAllowed ? 1231 : 1237); result = prime * result + ((rowMetadata == null) ? 0 : rowMetadata.hashCode()); result = prime * result + (rangeScanAllowed ? 0 : 1); result = prime * result + explicitCompressionBlockSizeKB; result = prime * result + (negativeLookups ? 0 : 1); result = prime * result + sweepStrategy.hashCode(); result = prime * result + (appendHeavyAndReadLight ? 0 : 1); result = prime * result + nameLogSafety.hashCode(); // Nonnull, because it has a default value return result; }
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 6 [default = UNSAFE];</code> */ public Builder setLogSafety(com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; logSafety_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety nameLogSafety = 12 [default = UNSAFE];</code> */ public Builder setNameLogSafety(com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; nameLogSafety_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 4 [default = UNSAFE];</code> */ public Builder setLogSafety(com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; logSafety_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 6 [default = UNSAFE];</code> */ public com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety getLogSafety() { com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety result = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(logSafety_); return result == null ? com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.UNSAFE : result; }
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 4 [default = UNSAFE];</code> */ public com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety getLogSafety() { com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety result = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(logSafety_); return result == null ? com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.UNSAFE : result; } /**
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 4 [default = UNSAFE];</code> */ public com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety getLogSafety() { com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety result = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(logSafety_); return result == null ? com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.UNSAFE : result; }
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety nameLogSafety = 12 [default = UNSAFE];</code> */ public com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety getNameLogSafety() { com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety result = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(nameLogSafety_); return result == null ? com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.UNSAFE : result; }
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety logSafety = 6 [default = UNSAFE];</code> */ public com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety getLogSafety() { com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety result = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(logSafety_); return result == null ? com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.UNSAFE : result; } /**
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (componentName == null ? 0 : componentName.hashCode()); result = prime * result + (type == null ? 0 : type.hashCode()); result = prime * result + (order == null ? 0 : order.hashCode()); result = prime * result + logSafety.hashCode(); return result; }
/** * <code>optional .com.palantir.atlasdb.protos.generated.LogSafety nameLogSafety = 12 [default = UNSAFE];</code> */ public com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety getNameLogSafety() { com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety result = com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.valueOf(nameLogSafety_); return result == null ? com.palantir.atlasdb.protos.generated.TableMetadataPersistence.LogSafety.UNSAFE : result; } /**
public static LogSafety valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; }