All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.buf.validate.SFixed32Rules Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: buf/validate/validate.proto
// Protobuf Java Version: 4.28.1

package build.buf.validate;

/**
 * 
 * SFixed32Rules describes the constraints applied to `fixed32` values.
 * 
* * Protobuf type {@code buf.validate.SFixed32Rules} */ public final class SFixed32Rules extends com.google.protobuf.GeneratedMessage.ExtendableMessage< SFixed32Rules> implements // @@protoc_insertion_point(message_implements:buf.validate.SFixed32Rules) SFixed32RulesOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 1, /* suffix= */ "", SFixed32Rules.class.getName()); } // Use SFixed32Rules.newBuilder() to construct. private SFixed32Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); } private SFixed32Rules() { in_ = emptyIntList(); notIn_ = emptyIntList(); example_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( build.buf.validate.SFixed32Rules.class, build.buf.validate.SFixed32Rules.Builder.class); } private int bitField0_; private int lessThanCase_ = 0; @SuppressWarnings("serial") private java.lang.Object lessThan_; public enum LessThanCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LT(2), LTE(3), LESSTHAN_NOT_SET(0); private final int value; private LessThanCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LessThanCase valueOf(int value) { return forNumber(value); } public static LessThanCase forNumber(int value) { switch (value) { case 2: return LT; case 3: return LTE; case 0: return LESSTHAN_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public LessThanCase getLessThanCase() { return LessThanCase.forNumber( lessThanCase_); } private int greaterThanCase_ = 0; @SuppressWarnings("serial") private java.lang.Object greaterThan_; public enum GreaterThanCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GT(4), GTE(5), GREATERTHAN_NOT_SET(0); private final int value; private GreaterThanCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static GreaterThanCase valueOf(int value) { return forNumber(value); } public static GreaterThanCase forNumber(int value) { switch (value) { case 4: return GT; case 5: return GTE; case 0: return GREATERTHAN_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public GreaterThanCase getGreaterThanCase() { return GreaterThanCase.forNumber( greaterThanCase_); } public static final int CONST_FIELD_NUMBER = 1; private int const_ = 0; /** *
   * `const` requires the field value to exactly match the specified value. If
   * the field value doesn't match, an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must equal 42
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
   * }
   * ```
   * 
* * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } * @return Whether the const field is set. */ @java.lang.Override public boolean hasConst() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * `const` requires the field value to exactly match the specified value. If
   * the field value doesn't match, an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must equal 42
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
   * }
   * ```
   * 
* * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } * @return The const. */ @java.lang.Override public int getConst() { return const_; } public static final int LT_FIELD_NUMBER = 2; /** *
   * `lt` requires the field value to be less than the specified value (field <
   * value). If the field value is equal to or greater than the specified value,
   * an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be less than 10
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
   * }
   * ```
   * 
* * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } * @return Whether the lt field is set. */ @java.lang.Override public boolean hasLt() { return lessThanCase_ == 2; } /** *
   * `lt` requires the field value to be less than the specified value (field <
   * value). If the field value is equal to or greater than the specified value,
   * an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be less than 10
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
   * }
   * ```
   * 
* * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } * @return The lt. */ @java.lang.Override public int getLt() { if (lessThanCase_ == 2) { return (java.lang.Integer) lessThan_; } return 0; } public static final int LTE_FIELD_NUMBER = 3; /** *
   * `lte` requires the field value to be less than or equal to the specified
   * value (field <= value). If the field value is greater than the specified
   * value, an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be less than or equal to 10
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
   * }
   * ```
   * 
* * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } * @return Whether the lte field is set. */ @java.lang.Override public boolean hasLte() { return lessThanCase_ == 3; } /** *
   * `lte` requires the field value to be less than or equal to the specified
   * value (field <= value). If the field value is greater than the specified
   * value, an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be less than or equal to 10
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
   * }
   * ```
   * 
* * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } * @return The lte. */ @java.lang.Override public int getLte() { if (lessThanCase_ == 3) { return (java.lang.Integer) lessThan_; } return 0; } public static final int GT_FIELD_NUMBER = 4; /** *
   * `gt` requires the field value to be greater than the specified value
   * (exclusive). If the value of `gt` is larger than a specified `lt` or
   * `lte`, the range is reversed, and the field value must be outside the
   * specified range. If the field value doesn't meet the required conditions,
   * an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be greater than 5 [sfixed32.gt]
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
   *
   * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
   *
   * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
   * }
   * ```
   * 
* * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } * @return Whether the gt field is set. */ @java.lang.Override public boolean hasGt() { return greaterThanCase_ == 4; } /** *
   * `gt` requires the field value to be greater than the specified value
   * (exclusive). If the value of `gt` is larger than a specified `lt` or
   * `lte`, the range is reversed, and the field value must be outside the
   * specified range. If the field value doesn't meet the required conditions,
   * an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be greater than 5 [sfixed32.gt]
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
   *
   * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
   *
   * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
   * }
   * ```
   * 
* * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } * @return The gt. */ @java.lang.Override public int getGt() { if (greaterThanCase_ == 4) { return (java.lang.Integer) greaterThan_; } return 0; } public static final int GTE_FIELD_NUMBER = 5; /** *
   * `gte` requires the field value to be greater than or equal to the specified
   * value (exclusive). If the value of `gte` is larger than a specified `lt`
   * or `lte`, the range is reversed, and the field value must be outside the
   * specified range. If the field value doesn't meet the required conditions,
   * an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be greater than or equal to 5 [sfixed32.gte]
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
   *
   * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
   *
   * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
   * }
   * ```
   * 
* * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } * @return Whether the gte field is set. */ @java.lang.Override public boolean hasGte() { return greaterThanCase_ == 5; } /** *
   * `gte` requires the field value to be greater than or equal to the specified
   * value (exclusive). If the value of `gte` is larger than a specified `lt`
   * or `lte`, the range is reversed, and the field value must be outside the
   * specified range. If the field value doesn't meet the required conditions,
   * an error message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be greater than or equal to 5 [sfixed32.gte]
   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
   *
   * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
   *
   * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
   * }
   * ```
   * 
* * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } * @return The gte. */ @java.lang.Override public int getGte() { if (greaterThanCase_ == 5) { return (java.lang.Integer) greaterThan_; } return 0; } public static final int IN_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList in_ = emptyIntList(); /** *
   * `in` requires the field value to be equal to one of the specified values.
   * If the field value isn't one of the specified values, an error message is
   * generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be in list [1, 2, 3]
   * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
   * }
   * ```
   * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @return A list containing the in. */ @java.lang.Override public java.util.List getInList() { return in_; } /** *
   * `in` requires the field value to be equal to one of the specified values.
   * If the field value isn't one of the specified values, an error message is
   * generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be in list [1, 2, 3]
   * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
   * }
   * ```
   * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @return The count of in. */ public int getInCount() { return in_.size(); } /** *
   * `in` requires the field value to be equal to one of the specified values.
   * If the field value isn't one of the specified values, an error message is
   * generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must be in list [1, 2, 3]
   * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
   * }
   * ```
   * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @param index The index of the element to return. * @return The in at the given index. */ public int getIn(int index) { return in_.getInt(index); } public static final int NOT_IN_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); /** *
   * `not_in` requires the field value to not be equal to any of the specified
   * values. If the field value is one of the specified values, an error
   * message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must not be in list [1, 2, 3]
   * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
   * }
   * ```
   * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @return A list containing the notIn. */ @java.lang.Override public java.util.List getNotInList() { return notIn_; } /** *
   * `not_in` requires the field value to not be equal to any of the specified
   * values. If the field value is one of the specified values, an error
   * message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must not be in list [1, 2, 3]
   * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
   * }
   * ```
   * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @return The count of notIn. */ public int getNotInCount() { return notIn_.size(); } /** *
   * `not_in` requires the field value to not be equal to any of the specified
   * values. If the field value is one of the specified values, an error
   * message is generated.
   *
   * ```proto
   * message MySFixed32 {
   * // value must not be in list [1, 2, 3]
   * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
   * }
   * ```
   * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @param index The index of the element to return. * @return The notIn at the given index. */ public int getNotIn(int index) { return notIn_.getInt(index); } public static final int EXAMPLE_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList example_ = emptyIntList(); /** *
   * `example` specifies values that the field may have. These values SHOULD
   * conform to other constraints. `example` values will not impact validation
   * but may be used as helpful guidance on how to populate the given field.
   *
   * ```proto
   * message MySFixed32 {
   * sfixed32 value = 1 [
   * (buf.validate.field).sfixed32.example = 1,
   * (buf.validate.field).sfixed32.example = 2
   * ];
   * }
   * ```
   * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @return A list containing the example. */ @java.lang.Override public java.util.List getExampleList() { return example_; } /** *
   * `example` specifies values that the field may have. These values SHOULD
   * conform to other constraints. `example` values will not impact validation
   * but may be used as helpful guidance on how to populate the given field.
   *
   * ```proto
   * message MySFixed32 {
   * sfixed32 value = 1 [
   * (buf.validate.field).sfixed32.example = 1,
   * (buf.validate.field).sfixed32.example = 2
   * ];
   * }
   * ```
   * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @return The count of example. */ public int getExampleCount() { return example_.size(); } /** *
   * `example` specifies values that the field may have. These values SHOULD
   * conform to other constraints. `example` values will not impact validation
   * but may be used as helpful guidance on how to populate the given field.
   *
   * ```proto
   * message MySFixed32 {
   * sfixed32 value = 1 [
   * (buf.validate.field).sfixed32.example = 1,
   * (buf.validate.field).sfixed32.example = 2
   * ];
   * }
   * ```
   * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @param index The index of the element to return. * @return The example at the given index. */ public int getExample(int index) { return example_.getInt(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionSerializer extensionWriter = newExtensionSerializer(); if (((bitField0_ & 0x00000001) != 0)) { output.writeSFixed32(1, const_); } if (lessThanCase_ == 2) { output.writeSFixed32( 2, (int)((java.lang.Integer) lessThan_)); } if (lessThanCase_ == 3) { output.writeSFixed32( 3, (int)((java.lang.Integer) lessThan_)); } if (greaterThanCase_ == 4) { output.writeSFixed32( 4, (int)((java.lang.Integer) greaterThan_)); } if (greaterThanCase_ == 5) { output.writeSFixed32( 5, (int)((java.lang.Integer) greaterThan_)); } for (int i = 0; i < in_.size(); i++) { output.writeSFixed32(6, in_.getInt(i)); } for (int i = 0; i < notIn_.size(); i++) { output.writeSFixed32(7, notIn_.getInt(i)); } for (int i = 0; i < example_.size(); i++) { output.writeSFixed32(8, example_.getInt(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(1, const_); } if (lessThanCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size( 2, (int)((java.lang.Integer) lessThan_)); } if (lessThanCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size( 3, (int)((java.lang.Integer) lessThan_)); } if (greaterThanCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size( 4, (int)((java.lang.Integer) greaterThan_)); } if (greaterThanCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size( 5, (int)((java.lang.Integer) greaterThan_)); } { int dataSize = 0; dataSize = 4 * getInList().size(); size += dataSize; size += 1 * getInList().size(); } { int dataSize = 0; dataSize = 4 * getNotInList().size(); size += dataSize; size += 1 * getNotInList().size(); } { int dataSize = 0; dataSize = 4 * getExampleList().size(); size += dataSize; size += 1 * getExampleList().size(); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof build.buf.validate.SFixed32Rules)) { return super.equals(obj); } build.buf.validate.SFixed32Rules other = (build.buf.validate.SFixed32Rules) obj; if (hasConst() != other.hasConst()) return false; if (hasConst()) { if (getConst() != other.getConst()) return false; } if (!getInList() .equals(other.getInList())) return false; if (!getNotInList() .equals(other.getNotInList())) return false; if (!getExampleList() .equals(other.getExampleList())) return false; if (!getLessThanCase().equals(other.getLessThanCase())) return false; switch (lessThanCase_) { case 2: if (getLt() != other.getLt()) return false; break; case 3: if (getLte() != other.getLte()) return false; break; case 0: default: } if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; switch (greaterThanCase_) { case 4: if (getGt() != other.getGt()) return false; break; case 5: if (getGte() != other.getGte()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConst()) { hash = (37 * hash) + CONST_FIELD_NUMBER; hash = (53 * hash) + getConst(); } if (getInCount() > 0) { hash = (37 * hash) + IN_FIELD_NUMBER; hash = (53 * hash) + getInList().hashCode(); } if (getNotInCount() > 0) { hash = (37 * hash) + NOT_IN_FIELD_NUMBER; hash = (53 * hash) + getNotInList().hashCode(); } if (getExampleCount() > 0) { hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; hash = (53 * hash) + getExampleList().hashCode(); } switch (lessThanCase_) { case 2: hash = (37 * hash) + LT_FIELD_NUMBER; hash = (53 * hash) + getLt(); break; case 3: hash = (37 * hash) + LTE_FIELD_NUMBER; hash = (53 * hash) + getLte(); break; case 0: default: } switch (greaterThanCase_) { case 4: hash = (37 * hash) + GT_FIELD_NUMBER; hash = (53 * hash) + getGt(); break; case 5: hash = (37 * hash) + GTE_FIELD_NUMBER; hash = (53 * hash) + getGte(); break; case 0: default: } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.buf.validate.SFixed32Rules parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.buf.validate.SFixed32Rules parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.buf.validate.SFixed32Rules parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.buf.validate.SFixed32Rules parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.buf.validate.SFixed32Rules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.buf.validate.SFixed32Rules parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.buf.validate.SFixed32Rules parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.SFixed32Rules parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.SFixed32Rules parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static build.buf.validate.SFixed32Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.SFixed32Rules parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.SFixed32Rules parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(build.buf.validate.SFixed32Rules prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * SFixed32Rules describes the constraints applied to `fixed32` values.
   * 
* * Protobuf type {@code buf.validate.SFixed32Rules} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< build.buf.validate.SFixed32Rules, Builder> implements // @@protoc_insertion_point(builder_implements:buf.validate.SFixed32Rules) build.buf.validate.SFixed32RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( build.buf.validate.SFixed32Rules.class, build.buf.validate.SFixed32Rules.Builder.class); } // Construct using build.buf.validate.SFixed32Rules.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; const_ = 0; in_ = emptyIntList(); notIn_ = emptyIntList(); example_ = emptyIntList(); lessThanCase_ = 0; lessThan_ = null; greaterThanCase_ = 0; greaterThan_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_descriptor; } @java.lang.Override public build.buf.validate.SFixed32Rules getDefaultInstanceForType() { return build.buf.validate.SFixed32Rules.getDefaultInstance(); } @java.lang.Override public build.buf.validate.SFixed32Rules build() { build.buf.validate.SFixed32Rules result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.buf.validate.SFixed32Rules buildPartial() { build.buf.validate.SFixed32Rules result = new build.buf.validate.SFixed32Rules(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(build.buf.validate.SFixed32Rules result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.const_ = const_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { in_.makeImmutable(); result.in_ = in_; } if (((from_bitField0_ & 0x00000040) != 0)) { notIn_.makeImmutable(); result.notIn_ = notIn_; } if (((from_bitField0_ & 0x00000080) != 0)) { example_.makeImmutable(); result.example_ = example_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(build.buf.validate.SFixed32Rules result) { result.lessThanCase_ = lessThanCase_; result.lessThan_ = this.lessThan_; result.greaterThanCase_ = greaterThanCase_; result.greaterThan_ = this.greaterThan_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.SFixed32Rules) { return mergeFrom((build.buf.validate.SFixed32Rules)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.buf.validate.SFixed32Rules other) { if (other == build.buf.validate.SFixed32Rules.getDefaultInstance()) return this; if (other.hasConst()) { setConst(other.getConst()); } if (!other.in_.isEmpty()) { if (in_.isEmpty()) { in_ = other.in_; in_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureInIsMutable(); in_.addAll(other.in_); } onChanged(); } if (!other.notIn_.isEmpty()) { if (notIn_.isEmpty()) { notIn_ = other.notIn_; notIn_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureNotInIsMutable(); notIn_.addAll(other.notIn_); } onChanged(); } if (!other.example_.isEmpty()) { if (example_.isEmpty()) { example_ = other.example_; example_.makeImmutable(); bitField0_ |= 0x00000080; } else { ensureExampleIsMutable(); example_.addAll(other.example_); } onChanged(); } switch (other.getLessThanCase()) { case LT: { setLt(other.getLt()); break; } case LTE: { setLte(other.getLte()); break; } case LESSTHAN_NOT_SET: { break; } } switch (other.getGreaterThanCase()) { case GT: { setGt(other.getGt()); break; } case GTE: { setGte(other.getGte()); break; } case GREATERTHAN_NOT_SET: { break; } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { const_ = input.readSFixed32(); bitField0_ |= 0x00000001; break; } // case 13 case 21: { lessThan_ = input.readSFixed32(); lessThanCase_ = 2; break; } // case 21 case 29: { lessThan_ = input.readSFixed32(); lessThanCase_ = 3; break; } // case 29 case 37: { greaterThan_ = input.readSFixed32(); greaterThanCase_ = 4; break; } // case 37 case 45: { greaterThan_ = input.readSFixed32(); greaterThanCase_ = 5; break; } // case 45 case 53: { int v = input.readSFixed32(); ensureInIsMutable(); in_.addInt(v); break; } // case 53 case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureInIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { in_.addInt(input.readSFixed32()); } input.popLimit(limit); break; } // case 50 case 61: { int v = input.readSFixed32(); ensureNotInIsMutable(); notIn_.addInt(v); break; } // case 61 case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureNotInIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { notIn_.addInt(input.readSFixed32()); } input.popLimit(limit); break; } // case 58 case 69: { int v = input.readSFixed32(); ensureExampleIsMutable(); example_.addInt(v); break; } // case 69 case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureExampleIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { example_.addInt(input.readSFixed32()); } input.popLimit(limit); break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int lessThanCase_ = 0; private java.lang.Object lessThan_; public LessThanCase getLessThanCase() { return LessThanCase.forNumber( lessThanCase_); } public Builder clearLessThan() { lessThanCase_ = 0; lessThan_ = null; onChanged(); return this; } private int greaterThanCase_ = 0; private java.lang.Object greaterThan_; public GreaterThanCase getGreaterThanCase() { return GreaterThanCase.forNumber( greaterThanCase_); } public Builder clearGreaterThan() { greaterThanCase_ = 0; greaterThan_ = null; onChanged(); return this; } private int bitField0_; private int const_ ; /** *
     * `const` requires the field value to exactly match the specified value. If
     * the field value doesn't match, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must equal 42
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
     * }
     * ```
     * 
* * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } * @return Whether the const field is set. */ @java.lang.Override public boolean hasConst() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * `const` requires the field value to exactly match the specified value. If
     * the field value doesn't match, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must equal 42
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
     * }
     * ```
     * 
* * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } * @return The const. */ @java.lang.Override public int getConst() { return const_; } /** *
     * `const` requires the field value to exactly match the specified value. If
     * the field value doesn't match, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must equal 42
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
     * }
     * ```
     * 
* * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } * @param value The const to set. * @return This builder for chaining. */ public Builder setConst(int value) { const_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * `const` requires the field value to exactly match the specified value. If
     * the field value doesn't match, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must equal 42
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
     * }
     * ```
     * 
* * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearConst() { bitField0_ = (bitField0_ & ~0x00000001); const_ = 0; onChanged(); return this; } /** *
     * `lt` requires the field value to be less than the specified value (field <
     * value). If the field value is equal to or greater than the specified value,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
     * }
     * ```
     * 
* * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } * @return Whether the lt field is set. */ public boolean hasLt() { return lessThanCase_ == 2; } /** *
     * `lt` requires the field value to be less than the specified value (field <
     * value). If the field value is equal to or greater than the specified value,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
     * }
     * ```
     * 
* * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } * @return The lt. */ public int getLt() { if (lessThanCase_ == 2) { return (java.lang.Integer) lessThan_; } return 0; } /** *
     * `lt` requires the field value to be less than the specified value (field <
     * value). If the field value is equal to or greater than the specified value,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
     * }
     * ```
     * 
* * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } * @param value The lt to set. * @return This builder for chaining. */ public Builder setLt(int value) { lessThanCase_ = 2; lessThan_ = value; onChanged(); return this; } /** *
     * `lt` requires the field value to be less than the specified value (field <
     * value). If the field value is equal to or greater than the specified value,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
     * }
     * ```
     * 
* * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearLt() { if (lessThanCase_ == 2) { lessThanCase_ = 0; lessThan_ = null; onChanged(); } return this; } /** *
     * `lte` requires the field value to be less than or equal to the specified
     * value (field <= value). If the field value is greater than the specified
     * value, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than or equal to 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
     * }
     * ```
     * 
* * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } * @return Whether the lte field is set. */ public boolean hasLte() { return lessThanCase_ == 3; } /** *
     * `lte` requires the field value to be less than or equal to the specified
     * value (field <= value). If the field value is greater than the specified
     * value, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than or equal to 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
     * }
     * ```
     * 
* * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } * @return The lte. */ public int getLte() { if (lessThanCase_ == 3) { return (java.lang.Integer) lessThan_; } return 0; } /** *
     * `lte` requires the field value to be less than or equal to the specified
     * value (field <= value). If the field value is greater than the specified
     * value, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than or equal to 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
     * }
     * ```
     * 
* * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } * @param value The lte to set. * @return This builder for chaining. */ public Builder setLte(int value) { lessThanCase_ = 3; lessThan_ = value; onChanged(); return this; } /** *
     * `lte` requires the field value to be less than or equal to the specified
     * value (field <= value). If the field value is greater than the specified
     * value, an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be less than or equal to 10
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
     * }
     * ```
     * 
* * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearLte() { if (lessThanCase_ == 3) { lessThanCase_ = 0; lessThan_ = null; onChanged(); } return this; } /** *
     * `gt` requires the field value to be greater than the specified value
     * (exclusive). If the value of `gt` is larger than a specified `lt` or
     * `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than 5 [sfixed32.gt]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
     *
     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
     *
     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } * @return Whether the gt field is set. */ public boolean hasGt() { return greaterThanCase_ == 4; } /** *
     * `gt` requires the field value to be greater than the specified value
     * (exclusive). If the value of `gt` is larger than a specified `lt` or
     * `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than 5 [sfixed32.gt]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
     *
     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
     *
     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } * @return The gt. */ public int getGt() { if (greaterThanCase_ == 4) { return (java.lang.Integer) greaterThan_; } return 0; } /** *
     * `gt` requires the field value to be greater than the specified value
     * (exclusive). If the value of `gt` is larger than a specified `lt` or
     * `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than 5 [sfixed32.gt]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
     *
     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
     *
     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } * @param value The gt to set. * @return This builder for chaining. */ public Builder setGt(int value) { greaterThanCase_ = 4; greaterThan_ = value; onChanged(); return this; } /** *
     * `gt` requires the field value to be greater than the specified value
     * (exclusive). If the value of `gt` is larger than a specified `lt` or
     * `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than 5 [sfixed32.gt]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
     *
     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
     *
     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearGt() { if (greaterThanCase_ == 4) { greaterThanCase_ = 0; greaterThan_ = null; onChanged(); } return this; } /** *
     * `gte` requires the field value to be greater than or equal to the specified
     * value (exclusive). If the value of `gte` is larger than a specified `lt`
     * or `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than or equal to 5 [sfixed32.gte]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
     *
     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
     *
     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } * @return Whether the gte field is set. */ public boolean hasGte() { return greaterThanCase_ == 5; } /** *
     * `gte` requires the field value to be greater than or equal to the specified
     * value (exclusive). If the value of `gte` is larger than a specified `lt`
     * or `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than or equal to 5 [sfixed32.gte]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
     *
     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
     *
     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } * @return The gte. */ public int getGte() { if (greaterThanCase_ == 5) { return (java.lang.Integer) greaterThan_; } return 0; } /** *
     * `gte` requires the field value to be greater than or equal to the specified
     * value (exclusive). If the value of `gte` is larger than a specified `lt`
     * or `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than or equal to 5 [sfixed32.gte]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
     *
     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
     *
     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } * @param value The gte to set. * @return This builder for chaining. */ public Builder setGte(int value) { greaterThanCase_ = 5; greaterThan_ = value; onChanged(); return this; } /** *
     * `gte` requires the field value to be greater than or equal to the specified
     * value (exclusive). If the value of `gte` is larger than a specified `lt`
     * or `lte`, the range is reversed, and the field value must be outside the
     * specified range. If the field value doesn't meet the required conditions,
     * an error message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be greater than or equal to 5 [sfixed32.gte]
     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
     *
     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
     *
     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
     * }
     * ```
     * 
* * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearGte() { if (greaterThanCase_ == 5) { greaterThanCase_ = 0; greaterThan_ = null; onChanged(); } return this; } private com.google.protobuf.Internal.IntList in_ = emptyIntList(); private void ensureInIsMutable() { if (!in_.isModifiable()) { in_ = makeMutableCopy(in_); } bitField0_ |= 0x00000020; } private void ensureInIsMutable(int capacity) { if (!in_.isModifiable()) { in_ = makeMutableCopy(in_, capacity); } bitField0_ |= 0x00000020; } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @return A list containing the in. */ public java.util.List getInList() { in_.makeImmutable(); return in_; } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @return The count of in. */ public int getInCount() { return in_.size(); } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @param index The index of the element to return. * @return The in at the given index. */ public int getIn(int index) { return in_.getInt(index); } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @param index The index to set the value at. * @param value The in to set. * @return This builder for chaining. */ public Builder setIn( int index, int value) { ensureInIsMutable(); in_.setInt(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @param value The in to add. * @return This builder for chaining. */ public Builder addIn(int value) { ensureInIsMutable(); in_.addInt(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @param values The in to add. * @return This builder for chaining. */ public Builder addAllIn( java.lang.Iterable values) { ensureInIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, in_); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * `in` requires the field value to be equal to one of the specified values.
     * If the field value isn't one of the specified values, an error message is
     * generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearIn() { in_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); private void ensureNotInIsMutable() { if (!notIn_.isModifiable()) { notIn_ = makeMutableCopy(notIn_); } bitField0_ |= 0x00000040; } private void ensureNotInIsMutable(int capacity) { if (!notIn_.isModifiable()) { notIn_ = makeMutableCopy(notIn_, capacity); } bitField0_ |= 0x00000040; } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @return A list containing the notIn. */ public java.util.List getNotInList() { notIn_.makeImmutable(); return notIn_; } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @return The count of notIn. */ public int getNotInCount() { return notIn_.size(); } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @param index The index of the element to return. * @return The notIn at the given index. */ public int getNotIn(int index) { return notIn_.getInt(index); } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @param index The index to set the value at. * @param value The notIn to set. * @return This builder for chaining. */ public Builder setNotIn( int index, int value) { ensureNotInIsMutable(); notIn_.setInt(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @param value The notIn to add. * @return This builder for chaining. */ public Builder addNotIn(int value) { ensureNotInIsMutable(); notIn_.addInt(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @param values The notIn to add. * @return This builder for chaining. */ public Builder addAllNotIn( java.lang.Iterable values) { ensureNotInIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, notIn_); bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * `not_in` requires the field value to not be equal to any of the specified
     * values. If the field value is one of the specified values, an error
     * message is generated.
     *
     * ```proto
     * message MySFixed32 {
     * // value must not be in list [1, 2, 3]
     * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
     * }
     * ```
     * 
* * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearNotIn() { notIn_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.Internal.IntList example_ = emptyIntList(); private void ensureExampleIsMutable() { if (!example_.isModifiable()) { example_ = makeMutableCopy(example_); } bitField0_ |= 0x00000080; } private void ensureExampleIsMutable(int capacity) { if (!example_.isModifiable()) { example_ = makeMutableCopy(example_, capacity); } bitField0_ |= 0x00000080; } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @return A list containing the example. */ public java.util.List getExampleList() { example_.makeImmutable(); return example_; } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @return The count of example. */ public int getExampleCount() { return example_.size(); } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @param index The index of the element to return. * @return The example at the given index. */ public int getExample(int index) { return example_.getInt(index); } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @param index The index to set the value at. * @param value The example to set. * @return This builder for chaining. */ public Builder setExample( int index, int value) { ensureExampleIsMutable(); example_.setInt(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @param value The example to add. * @return This builder for chaining. */ public Builder addExample(int value) { ensureExampleIsMutable(); example_.addInt(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @param values The example to add. * @return This builder for chaining. */ public Builder addAllExample( java.lang.Iterable values) { ensureExampleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, example_); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * `example` specifies values that the field may have. These values SHOULD
     * conform to other constraints. `example` values will not impact validation
     * but may be used as helpful guidance on how to populate the given field.
     *
     * ```proto
     * message MySFixed32 {
     * sfixed32 value = 1 [
     * (buf.validate.field).sfixed32.example = 1,
     * (buf.validate.field).sfixed32.example = 2
     * ];
     * }
     * ```
     * 
* * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } * @return This builder for chaining. */ public Builder clearExample() { example_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:buf.validate.SFixed32Rules) } // @@protoc_insertion_point(class_scope:buf.validate.SFixed32Rules) private static final build.buf.validate.SFixed32Rules DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.buf.validate.SFixed32Rules(); } public static build.buf.validate.SFixed32Rules getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SFixed32Rules parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public build.buf.validate.SFixed32Rules getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy