Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* HTTP_HEADER_VALUE = 2;
*/
HTTP_HEADER_VALUE(2),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* HTTP header name as defined by RFC 7230.
*
*
* HTTP_HEADER_NAME = 1;
*/
public static final int HTTP_HEADER_NAME_VALUE = 1;
/**
*
* HTTP header value as defined by RFC 7230.
*
*
* HTTP_HEADER_VALUE = 2;
*/
public static final int HTTP_HEADER_VALUE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static KnownRegex valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static KnownRegex forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return HTTP_HEADER_NAME;
case 2: return HTTP_HEADER_VALUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
KnownRegex> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public KnownRegex findValueByNumber(int number) {
return KnownRegex.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.getDescriptor().getEnumTypes().get(0);
}
private static final KnownRegex[] VALUES = values();
public static KnownRegex 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()];
}
private final int value;
private KnownRegex(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:validate.KnownRegex)
}
public interface FieldRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.FieldRules)
com.google.protobuf.MessageOrBuilder {
/**
* optional .validate.MessageRules message = 17;
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* optional .validate.MessageRules message = 17;
* @return The message.
*/
io.envoyproxy.pgv.validate.Validate.MessageRules getMessage();
/**
* optional .validate.MessageRules message = 17;
*/
io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder getMessageOrBuilder();
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
* @return Whether the float field is set.
*/
boolean hasFloat();
/**
*
* FieldRules encapsulates the rules for each type of field. Depending on the
* field, the correct set should be used to ensure proper validations.
*
*
* Protobuf type {@code validate.FieldRules}
*/
public static final class FieldRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.FieldRules)
FieldRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldRules.newBuilder() to construct.
private FieldRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldRules() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.FieldRules.class, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder.class);
}
private int bitField0_;
private int typeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FLOAT(1),
DOUBLE(2),
INT32(3),
INT64(4),
UINT32(5),
UINT64(6),
SINT32(7),
SINT64(8),
FIXED32(9),
FIXED64(10),
SFIXED32(11),
SFIXED64(12),
BOOL(13),
STRING(14),
BYTES(15),
ENUM(16),
REPEATED(18),
MAP(19),
ANY(20),
DURATION(21),
TIMESTAMP(22),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(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 TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 1: return FLOAT;
case 2: return DOUBLE;
case 3: return INT32;
case 4: return INT64;
case 5: return UINT32;
case 6: return UINT64;
case 7: return SINT32;
case 8: return SINT64;
case 9: return FIXED32;
case 10: return FIXED64;
case 11: return SFIXED32;
case 12: return SFIXED64;
case 13: return BOOL;
case 14: return STRING;
case 15: return BYTES;
case 16: return ENUM;
case 18: return REPEATED;
case 19: return MAP;
case 20: return ANY;
case 21: return DURATION;
case 22: return TIMESTAMP;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int MESSAGE_FIELD_NUMBER = 17;
private io.envoyproxy.pgv.validate.Validate.MessageRules message_;
/**
* optional .validate.MessageRules message = 17;
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .validate.MessageRules message = 17;
* @return The message.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MessageRules getMessage() {
return message_ == null ? io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance() : message_;
}
/**
* optional .validate.MessageRules message = 17;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder getMessageOrBuilder() {
return message_ == null ? io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance() : message_;
}
public static final int FLOAT_FIELD_NUMBER = 1;
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
* @return Whether the float field is set.
*/
@java.lang.Override
public boolean hasFloat() {
return typeCase_ == 1;
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
* @return The float.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRules getFloat() {
if (typeCase_ == 1) {
return (io.envoyproxy.pgv.validate.Validate.FloatRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder getFloatOrBuilder() {
if (typeCase_ == 1) {
return (io.envoyproxy.pgv.validate.Validate.FloatRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
}
public static final int DOUBLE_FIELD_NUMBER = 2;
/**
* .validate.DoubleRules double = 2;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return typeCase_ == 2;
}
/**
* .validate.DoubleRules double = 2;
* @return The double.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DoubleRules getDouble() {
if (typeCase_ == 2) {
return (io.envoyproxy.pgv.validate.Validate.DoubleRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
/**
* .validate.DoubleRules double = 2;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder getDoubleOrBuilder() {
if (typeCase_ == 2) {
return (io.envoyproxy.pgv.validate.Validate.DoubleRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
public static final int INT32_FIELD_NUMBER = 3;
/**
* .validate.Int32Rules int32 = 3;
* @return Whether the int32 field is set.
*/
@java.lang.Override
public boolean hasInt32() {
return typeCase_ == 3;
}
/**
* .validate.Int32Rules int32 = 3;
* @return The int32.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int32Rules getInt32() {
if (typeCase_ == 3) {
return (io.envoyproxy.pgv.validate.Validate.Int32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
/**
* .validate.Int32Rules int32 = 3;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder getInt32OrBuilder() {
if (typeCase_ == 3) {
return (io.envoyproxy.pgv.validate.Validate.Int32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
public static final int INT64_FIELD_NUMBER = 4;
/**
* .validate.Int64Rules int64 = 4;
* @return Whether the int64 field is set.
*/
@java.lang.Override
public boolean hasInt64() {
return typeCase_ == 4;
}
/**
* .validate.Int64Rules int64 = 4;
* @return The int64.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int64Rules getInt64() {
if (typeCase_ == 4) {
return (io.envoyproxy.pgv.validate.Validate.Int64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
/**
* .validate.Int64Rules int64 = 4;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder getInt64OrBuilder() {
if (typeCase_ == 4) {
return (io.envoyproxy.pgv.validate.Validate.Int64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
public static final int UINT32_FIELD_NUMBER = 5;
/**
* .validate.UInt32Rules uint32 = 5;
* @return Whether the uint32 field is set.
*/
@java.lang.Override
public boolean hasUint32() {
return typeCase_ == 5;
}
/**
* .validate.UInt32Rules uint32 = 5;
* @return The uint32.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt32Rules getUint32() {
if (typeCase_ == 5) {
return (io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder getUint32OrBuilder() {
if (typeCase_ == 5) {
return (io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
public static final int UINT64_FIELD_NUMBER = 6;
/**
* .validate.UInt64Rules uint64 = 6;
* @return Whether the uint64 field is set.
*/
@java.lang.Override
public boolean hasUint64() {
return typeCase_ == 6;
}
/**
* .validate.UInt64Rules uint64 = 6;
* @return The uint64.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt64Rules getUint64() {
if (typeCase_ == 6) {
return (io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder getUint64OrBuilder() {
if (typeCase_ == 6) {
return (io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
public static final int SINT32_FIELD_NUMBER = 7;
/**
* .validate.SInt32Rules sint32 = 7;
* @return Whether the sint32 field is set.
*/
@java.lang.Override
public boolean hasSint32() {
return typeCase_ == 7;
}
/**
* .validate.SInt32Rules sint32 = 7;
* @return The sint32.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt32Rules getSint32() {
if (typeCase_ == 7) {
return (io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder getSint32OrBuilder() {
if (typeCase_ == 7) {
return (io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
public static final int SINT64_FIELD_NUMBER = 8;
/**
* .validate.SInt64Rules sint64 = 8;
* @return Whether the sint64 field is set.
*/
@java.lang.Override
public boolean hasSint64() {
return typeCase_ == 8;
}
/**
* .validate.SInt64Rules sint64 = 8;
* @return The sint64.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt64Rules getSint64() {
if (typeCase_ == 8) {
return (io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder getSint64OrBuilder() {
if (typeCase_ == 8) {
return (io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
public static final int FIXED32_FIELD_NUMBER = 9;
/**
* .validate.Fixed32Rules fixed32 = 9;
* @return Whether the fixed32 field is set.
*/
@java.lang.Override
public boolean hasFixed32() {
return typeCase_ == 9;
}
/**
* .validate.Fixed32Rules fixed32 = 9;
* @return The fixed32.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules getFixed32() {
if (typeCase_ == 9) {
return (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder getFixed32OrBuilder() {
if (typeCase_ == 9) {
return (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
public static final int FIXED64_FIELD_NUMBER = 10;
/**
* .validate.Fixed64Rules fixed64 = 10;
* @return Whether the fixed64 field is set.
*/
@java.lang.Override
public boolean hasFixed64() {
return typeCase_ == 10;
}
/**
* .validate.Fixed64Rules fixed64 = 10;
* @return The fixed64.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules getFixed64() {
if (typeCase_ == 10) {
return (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder getFixed64OrBuilder() {
if (typeCase_ == 10) {
return (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
public static final int SFIXED32_FIELD_NUMBER = 11;
/**
* .validate.SFixed32Rules sfixed32 = 11;
* @return Whether the sfixed32 field is set.
*/
@java.lang.Override
public boolean hasSfixed32() {
return typeCase_ == 11;
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
* @return The sfixed32.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules getSfixed32() {
if (typeCase_ == 11) {
return (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder getSfixed32OrBuilder() {
if (typeCase_ == 11) {
return (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
public static final int SFIXED64_FIELD_NUMBER = 12;
/**
* .validate.SFixed64Rules sfixed64 = 12;
* @return Whether the sfixed64 field is set.
*/
@java.lang.Override
public boolean hasSfixed64() {
return typeCase_ == 12;
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
* @return The sfixed64.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules getSfixed64() {
if (typeCase_ == 12) {
return (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder getSfixed64OrBuilder() {
if (typeCase_ == 12) {
return (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
public static final int BOOL_FIELD_NUMBER = 13;
/**
* .validate.BoolRules bool = 13;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return typeCase_ == 13;
}
/**
* .validate.BoolRules bool = 13;
* @return The bool.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BoolRules getBool() {
if (typeCase_ == 13) {
return (io.envoyproxy.pgv.validate.Validate.BoolRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
}
/**
* .validate.BoolRules bool = 13;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder getBoolOrBuilder() {
if (typeCase_ == 13) {
return (io.envoyproxy.pgv.validate.Validate.BoolRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
}
public static final int STRING_FIELD_NUMBER = 14;
/**
* .validate.StringRules string = 14;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return typeCase_ == 14;
}
/**
* .validate.StringRules string = 14;
* @return The string.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.StringRules getString() {
if (typeCase_ == 14) {
return (io.envoyproxy.pgv.validate.Validate.StringRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
}
/**
* .validate.StringRules string = 14;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder getStringOrBuilder() {
if (typeCase_ == 14) {
return (io.envoyproxy.pgv.validate.Validate.StringRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
}
public static final int BYTES_FIELD_NUMBER = 15;
/**
* .validate.BytesRules bytes = 15;
* @return Whether the bytes field is set.
*/
@java.lang.Override
public boolean hasBytes() {
return typeCase_ == 15;
}
/**
* .validate.BytesRules bytes = 15;
* @return The bytes.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BytesRules getBytes() {
if (typeCase_ == 15) {
return (io.envoyproxy.pgv.validate.Validate.BytesRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
}
/**
* .validate.BytesRules bytes = 15;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder getBytesOrBuilder() {
if (typeCase_ == 15) {
return (io.envoyproxy.pgv.validate.Validate.BytesRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
}
public static final int ENUM_FIELD_NUMBER = 16;
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
* @return Whether the enum field is set.
*/
@java.lang.Override
public boolean hasEnum() {
return typeCase_ == 16;
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
* @return The enum.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.EnumRules getEnum() {
if (typeCase_ == 16) {
return (io.envoyproxy.pgv.validate.Validate.EnumRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance();
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder getEnumOrBuilder() {
if (typeCase_ == 16) {
return (io.envoyproxy.pgv.validate.Validate.EnumRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance();
}
public static final int REPEATED_FIELD_NUMBER = 18;
/**
* .validate.RepeatedRules repeated = 18;
* @return Whether the repeated field is set.
*/
@java.lang.Override
public boolean hasRepeated() {
return typeCase_ == 18;
}
/**
* .validate.RepeatedRules repeated = 18;
* @return The repeated.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.RepeatedRules getRepeated() {
if (typeCase_ == 18) {
return (io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
}
/**
* .validate.RepeatedRules repeated = 18;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder getRepeatedOrBuilder() {
if (typeCase_ == 18) {
return (io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
}
public static final int MAP_FIELD_NUMBER = 19;
/**
* .validate.MapRules map = 19;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return typeCase_ == 19;
}
/**
* .validate.MapRules map = 19;
* @return The map.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MapRules getMap() {
if (typeCase_ == 19) {
return (io.envoyproxy.pgv.validate.Validate.MapRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
}
/**
* .validate.MapRules map = 19;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder getMapOrBuilder() {
if (typeCase_ == 19) {
return (io.envoyproxy.pgv.validate.Validate.MapRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
}
public static final int ANY_FIELD_NUMBER = 20;
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
* @return Whether the any field is set.
*/
@java.lang.Override
public boolean hasAny() {
return typeCase_ == 20;
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
* @return The any.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRules getAny() {
if (typeCase_ == 20) {
return (io.envoyproxy.pgv.validate.Validate.AnyRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance();
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder getAnyOrBuilder() {
if (typeCase_ == 20) {
return (io.envoyproxy.pgv.validate.Validate.AnyRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance();
}
public static final int DURATION_FIELD_NUMBER = 21;
/**
* .validate.DurationRules duration = 21;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return typeCase_ == 21;
}
/**
* .validate.DurationRules duration = 21;
* @return The duration.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DurationRules getDuration() {
if (typeCase_ == 21) {
return (io.envoyproxy.pgv.validate.Validate.DurationRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
}
/**
* .validate.DurationRules duration = 21;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder getDurationOrBuilder() {
if (typeCase_ == 21) {
return (io.envoyproxy.pgv.validate.Validate.DurationRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
}
public static final int TIMESTAMP_FIELD_NUMBER = 22;
/**
* .validate.TimestampRules timestamp = 22;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return typeCase_ == 22;
}
/**
* .validate.TimestampRules timestamp = 22;
* @return The timestamp.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.TimestampRules getTimestamp() {
if (typeCase_ == 22) {
return (io.envoyproxy.pgv.validate.Validate.TimestampRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
}
/**
* .validate.TimestampRules timestamp = 22;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder getTimestampOrBuilder() {
if (typeCase_ == 22) {
return (io.envoyproxy.pgv.validate.Validate.TimestampRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (typeCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.pgv.validate.Validate.FloatRules) type_);
}
if (typeCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.pgv.validate.Validate.DoubleRules) type_);
}
if (typeCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.pgv.validate.Validate.Int32Rules) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.pgv.validate.Validate.Int64Rules) type_);
}
if (typeCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_);
}
if (typeCase_ == 6) {
output.writeMessage(6, (io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_);
}
if (typeCase_ == 7) {
output.writeMessage(7, (io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_);
}
if (typeCase_ == 8) {
output.writeMessage(8, (io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_);
}
if (typeCase_ == 9) {
output.writeMessage(9, (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_);
}
if (typeCase_ == 10) {
output.writeMessage(10, (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_);
}
if (typeCase_ == 11) {
output.writeMessage(11, (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_);
}
if (typeCase_ == 12) {
output.writeMessage(12, (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_);
}
if (typeCase_ == 13) {
output.writeMessage(13, (io.envoyproxy.pgv.validate.Validate.BoolRules) type_);
}
if (typeCase_ == 14) {
output.writeMessage(14, (io.envoyproxy.pgv.validate.Validate.StringRules) type_);
}
if (typeCase_ == 15) {
output.writeMessage(15, (io.envoyproxy.pgv.validate.Validate.BytesRules) type_);
}
if (typeCase_ == 16) {
output.writeMessage(16, (io.envoyproxy.pgv.validate.Validate.EnumRules) type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(17, getMessage());
}
if (typeCase_ == 18) {
output.writeMessage(18, (io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_);
}
if (typeCase_ == 19) {
output.writeMessage(19, (io.envoyproxy.pgv.validate.Validate.MapRules) type_);
}
if (typeCase_ == 20) {
output.writeMessage(20, (io.envoyproxy.pgv.validate.Validate.AnyRules) type_);
}
if (typeCase_ == 21) {
output.writeMessage(21, (io.envoyproxy.pgv.validate.Validate.DurationRules) type_);
}
if (typeCase_ == 22) {
output.writeMessage(22, (io.envoyproxy.pgv.validate.Validate.TimestampRules) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.pgv.validate.Validate.FloatRules) type_);
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.pgv.validate.Validate.DoubleRules) type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.pgv.validate.Validate.Int32Rules) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.pgv.validate.Validate.Int64Rules) type_);
}
if (typeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_);
}
if (typeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_);
}
if (typeCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_);
}
if (typeCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_);
}
if (typeCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_);
}
if (typeCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_);
}
if (typeCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_);
}
if (typeCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_);
}
if (typeCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (io.envoyproxy.pgv.validate.Validate.BoolRules) type_);
}
if (typeCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (io.envoyproxy.pgv.validate.Validate.StringRules) type_);
}
if (typeCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (io.envoyproxy.pgv.validate.Validate.BytesRules) type_);
}
if (typeCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (io.envoyproxy.pgv.validate.Validate.EnumRules) type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getMessage());
}
if (typeCase_ == 18) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, (io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_);
}
if (typeCase_ == 19) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, (io.envoyproxy.pgv.validate.Validate.MapRules) type_);
}
if (typeCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, (io.envoyproxy.pgv.validate.Validate.AnyRules) type_);
}
if (typeCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, (io.envoyproxy.pgv.validate.Validate.DurationRules) type_);
}
if (typeCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, (io.envoyproxy.pgv.validate.Validate.TimestampRules) type_);
}
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 io.envoyproxy.pgv.validate.Validate.FieldRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.FieldRules other = (io.envoyproxy.pgv.validate.Validate.FieldRules) obj;
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) return false;
}
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (!getFloat()
.equals(other.getFloat())) return false;
break;
case 2:
if (!getDouble()
.equals(other.getDouble())) return false;
break;
case 3:
if (!getInt32()
.equals(other.getInt32())) return false;
break;
case 4:
if (!getInt64()
.equals(other.getInt64())) return false;
break;
case 5:
if (!getUint32()
.equals(other.getUint32())) return false;
break;
case 6:
if (!getUint64()
.equals(other.getUint64())) return false;
break;
case 7:
if (!getSint32()
.equals(other.getSint32())) return false;
break;
case 8:
if (!getSint64()
.equals(other.getSint64())) return false;
break;
case 9:
if (!getFixed32()
.equals(other.getFixed32())) return false;
break;
case 10:
if (!getFixed64()
.equals(other.getFixed64())) return false;
break;
case 11:
if (!getSfixed32()
.equals(other.getSfixed32())) return false;
break;
case 12:
if (!getSfixed64()
.equals(other.getSfixed64())) return false;
break;
case 13:
if (!getBool()
.equals(other.getBool())) return false;
break;
case 14:
if (!getString()
.equals(other.getString())) return false;
break;
case 15:
if (!getBytes()
.equals(other.getBytes())) return false;
break;
case 16:
if (!getEnum()
.equals(other.getEnum())) return false;
break;
case 18:
if (!getRepeated()
.equals(other.getRepeated())) return false;
break;
case 19:
if (!getMap()
.equals(other.getMap())) return false;
break;
case 20:
if (!getAny()
.equals(other.getAny())) return false;
break;
case 21:
if (!getDuration()
.equals(other.getDuration())) return false;
break;
case 22:
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
switch (typeCase_) {
case 1:
hash = (37 * hash) + FLOAT_FIELD_NUMBER;
hash = (53 * hash) + getFloat().hashCode();
break;
case 2:
hash = (37 * hash) + DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + getDouble().hashCode();
break;
case 3:
hash = (37 * hash) + INT32_FIELD_NUMBER;
hash = (53 * hash) + getInt32().hashCode();
break;
case 4:
hash = (37 * hash) + INT64_FIELD_NUMBER;
hash = (53 * hash) + getInt64().hashCode();
break;
case 5:
hash = (37 * hash) + UINT32_FIELD_NUMBER;
hash = (53 * hash) + getUint32().hashCode();
break;
case 6:
hash = (37 * hash) + UINT64_FIELD_NUMBER;
hash = (53 * hash) + getUint64().hashCode();
break;
case 7:
hash = (37 * hash) + SINT32_FIELD_NUMBER;
hash = (53 * hash) + getSint32().hashCode();
break;
case 8:
hash = (37 * hash) + SINT64_FIELD_NUMBER;
hash = (53 * hash) + getSint64().hashCode();
break;
case 9:
hash = (37 * hash) + FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getFixed32().hashCode();
break;
case 10:
hash = (37 * hash) + FIXED64_FIELD_NUMBER;
hash = (53 * hash) + getFixed64().hashCode();
break;
case 11:
hash = (37 * hash) + SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getSfixed32().hashCode();
break;
case 12:
hash = (37 * hash) + SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + getSfixed64().hashCode();
break;
case 13:
hash = (37 * hash) + BOOL_FIELD_NUMBER;
hash = (53 * hash) + getBool().hashCode();
break;
case 14:
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
break;
case 15:
hash = (37 * hash) + BYTES_FIELD_NUMBER;
hash = (53 * hash) + getBytes().hashCode();
break;
case 16:
hash = (37 * hash) + ENUM_FIELD_NUMBER;
hash = (53 * hash) + getEnum().hashCode();
break;
case 18:
hash = (37 * hash) + REPEATED_FIELD_NUMBER;
hash = (53 * hash) + getRepeated().hashCode();
break;
case 19:
hash = (37 * hash) + MAP_FIELD_NUMBER;
hash = (53 * hash) + getMap().hashCode();
break;
case 20:
hash = (37 * hash) + ANY_FIELD_NUMBER;
hash = (53 * hash) + getAny().hashCode();
break;
case 21:
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + getDuration().hashCode();
break;
case 22:
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.FieldRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* FieldRules encapsulates the rules for each type of field. Depending on the
* field, the correct set should be used to ensure proper validations.
*
*
* Protobuf type {@code validate.FieldRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.FieldRules)
io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.FieldRules.class, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.FieldRules.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMessageFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
message_ = null;
if (messageBuilder_ != null) {
messageBuilder_.dispose();
messageBuilder_ = null;
}
if (floatBuilder_ != null) {
floatBuilder_.clear();
}
if (doubleBuilder_ != null) {
doubleBuilder_.clear();
}
if (int32Builder_ != null) {
int32Builder_.clear();
}
if (int64Builder_ != null) {
int64Builder_.clear();
}
if (uint32Builder_ != null) {
uint32Builder_.clear();
}
if (uint64Builder_ != null) {
uint64Builder_.clear();
}
if (sint32Builder_ != null) {
sint32Builder_.clear();
}
if (sint64Builder_ != null) {
sint64Builder_.clear();
}
if (fixed32Builder_ != null) {
fixed32Builder_.clear();
}
if (fixed64Builder_ != null) {
fixed64Builder_.clear();
}
if (sfixed32Builder_ != null) {
sfixed32Builder_.clear();
}
if (sfixed64Builder_ != null) {
sfixed64Builder_.clear();
}
if (boolBuilder_ != null) {
boolBuilder_.clear();
}
if (stringBuilder_ != null) {
stringBuilder_.clear();
}
if (bytesBuilder_ != null) {
bytesBuilder_.clear();
}
if (enumBuilder_ != null) {
enumBuilder_.clear();
}
if (repeatedBuilder_ != null) {
repeatedBuilder_.clear();
}
if (mapBuilder_ != null) {
mapBuilder_.clear();
}
if (anyBuilder_ != null) {
anyBuilder_.clear();
}
if (durationBuilder_ != null) {
durationBuilder_.clear();
}
if (timestampBuilder_ != null) {
timestampBuilder_.clear();
}
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRules build() {
io.envoyproxy.pgv.validate.Validate.FieldRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.FieldRules result = new io.envoyproxy.pgv.validate.Validate.FieldRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.FieldRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.message_ = messageBuilder_ == null
? message_
: messageBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.pgv.validate.Validate.FieldRules result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 1 &&
floatBuilder_ != null) {
result.type_ = floatBuilder_.build();
}
if (typeCase_ == 2 &&
doubleBuilder_ != null) {
result.type_ = doubleBuilder_.build();
}
if (typeCase_ == 3 &&
int32Builder_ != null) {
result.type_ = int32Builder_.build();
}
if (typeCase_ == 4 &&
int64Builder_ != null) {
result.type_ = int64Builder_.build();
}
if (typeCase_ == 5 &&
uint32Builder_ != null) {
result.type_ = uint32Builder_.build();
}
if (typeCase_ == 6 &&
uint64Builder_ != null) {
result.type_ = uint64Builder_.build();
}
if (typeCase_ == 7 &&
sint32Builder_ != null) {
result.type_ = sint32Builder_.build();
}
if (typeCase_ == 8 &&
sint64Builder_ != null) {
result.type_ = sint64Builder_.build();
}
if (typeCase_ == 9 &&
fixed32Builder_ != null) {
result.type_ = fixed32Builder_.build();
}
if (typeCase_ == 10 &&
fixed64Builder_ != null) {
result.type_ = fixed64Builder_.build();
}
if (typeCase_ == 11 &&
sfixed32Builder_ != null) {
result.type_ = sfixed32Builder_.build();
}
if (typeCase_ == 12 &&
sfixed64Builder_ != null) {
result.type_ = sfixed64Builder_.build();
}
if (typeCase_ == 13 &&
boolBuilder_ != null) {
result.type_ = boolBuilder_.build();
}
if (typeCase_ == 14 &&
stringBuilder_ != null) {
result.type_ = stringBuilder_.build();
}
if (typeCase_ == 15 &&
bytesBuilder_ != null) {
result.type_ = bytesBuilder_.build();
}
if (typeCase_ == 16 &&
enumBuilder_ != null) {
result.type_ = enumBuilder_.build();
}
if (typeCase_ == 18 &&
repeatedBuilder_ != null) {
result.type_ = repeatedBuilder_.build();
}
if (typeCase_ == 19 &&
mapBuilder_ != null) {
result.type_ = mapBuilder_.build();
}
if (typeCase_ == 20 &&
anyBuilder_ != null) {
result.type_ = anyBuilder_.build();
}
if (typeCase_ == 21 &&
durationBuilder_ != null) {
result.type_ = durationBuilder_.build();
}
if (typeCase_ == 22 &&
timestampBuilder_ != null) {
result.type_ = timestampBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.FieldRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.FieldRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.FieldRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance()) return this;
if (other.hasMessage()) {
mergeMessage(other.getMessage());
}
switch (other.getTypeCase()) {
case FLOAT: {
mergeFloat(other.getFloat());
break;
}
case DOUBLE: {
mergeDouble(other.getDouble());
break;
}
case INT32: {
mergeInt32(other.getInt32());
break;
}
case INT64: {
mergeInt64(other.getInt64());
break;
}
case UINT32: {
mergeUint32(other.getUint32());
break;
}
case UINT64: {
mergeUint64(other.getUint64());
break;
}
case SINT32: {
mergeSint32(other.getSint32());
break;
}
case SINT64: {
mergeSint64(other.getSint64());
break;
}
case FIXED32: {
mergeFixed32(other.getFixed32());
break;
}
case FIXED64: {
mergeFixed64(other.getFixed64());
break;
}
case SFIXED32: {
mergeSfixed32(other.getSfixed32());
break;
}
case SFIXED64: {
mergeSfixed64(other.getSfixed64());
break;
}
case BOOL: {
mergeBool(other.getBool());
break;
}
case STRING: {
mergeString(other.getString());
break;
}
case BYTES: {
mergeBytes(other.getBytes());
break;
}
case ENUM: {
mergeEnum(other.getEnum());
break;
}
case REPEATED: {
mergeRepeated(other.getRepeated());
break;
}
case MAP: {
mergeMap(other.getMap());
break;
}
case ANY: {
mergeAny(other.getAny());
break;
}
case DURATION: {
mergeDuration(other.getDuration());
break;
}
case TIMESTAMP: {
mergeTimestamp(other.getTimestamp());
break;
}
case TYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 10: {
input.readMessage(
getFloatFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getDoubleFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getInt32FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getInt64FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getUint32FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getUint64FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getSint32FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getSint64FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getFixed32FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getFixed64FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getSfixed32FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getSfixed64FieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getBoolFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 13;
break;
} // case 106
case 114: {
input.readMessage(
getStringFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 14;
break;
} // case 114
case 122: {
input.readMessage(
getBytesFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 15;
break;
} // case 122
case 130: {
input.readMessage(
getEnumFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 16;
break;
} // case 130
case 138: {
input.readMessage(
getMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 138
case 146: {
input.readMessage(
getRepeatedFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 18;
break;
} // case 146
case 154: {
input.readMessage(
getMapFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 19;
break;
} // case 154
case 162: {
input.readMessage(
getAnyFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 20;
break;
} // case 162
case 170: {
input.readMessage(
getDurationFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 21;
break;
} // case 170
case 178: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 22;
break;
} // case 178
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 typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private int bitField0_;
private io.envoyproxy.pgv.validate.Validate.MessageRules message_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.MessageRules, io.envoyproxy.pgv.validate.Validate.MessageRules.Builder, io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder> messageBuilder_;
/**
* optional .validate.MessageRules message = 17;
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .validate.MessageRules message = 17;
* @return The message.
*/
public io.envoyproxy.pgv.validate.Validate.MessageRules getMessage() {
if (messageBuilder_ == null) {
return message_ == null ? io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance() : message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder setMessage(io.envoyproxy.pgv.validate.Validate.MessageRules value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
} else {
messageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder setMessage(
io.envoyproxy.pgv.validate.Validate.MessageRules.Builder builderForValue) {
if (messageBuilder_ == null) {
message_ = builderForValue.build();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder mergeMessage(io.envoyproxy.pgv.validate.Validate.MessageRules value) {
if (messageBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
message_ != null &&
message_ != io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance()) {
getMessageBuilder().mergeFrom(value);
} else {
message_ = value;
}
} else {
messageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000001);
message_ = null;
if (messageBuilder_ != null) {
messageBuilder_.dispose();
messageBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRules.Builder getMessageBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder getMessageOrBuilder() {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
return message_ == null ?
io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance() : message_;
}
}
/**
* optional .validate.MessageRules message = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.MessageRules, io.envoyproxy.pgv.validate.Validate.MessageRules.Builder, io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.MessageRules, io.envoyproxy.pgv.validate.Validate.MessageRules.Builder, io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder>(
getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FloatRules, io.envoyproxy.pgv.validate.Validate.FloatRules.Builder, io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder> floatBuilder_;
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
* @return Whether the float field is set.
*/
@java.lang.Override
public boolean hasFloat() {
return typeCase_ == 1;
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
* @return The float.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRules getFloat() {
if (floatBuilder_ == null) {
if (typeCase_ == 1) {
return (io.envoyproxy.pgv.validate.Validate.FloatRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
} else {
if (typeCase_ == 1) {
return floatBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
}
}
/**
*
*
* .validate.AnyRules any = 20;
* @return Whether the any field is set.
*/
@java.lang.Override
public boolean hasAny() {
return typeCase_ == 20;
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
* @return The any.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRules getAny() {
if (anyBuilder_ == null) {
if (typeCase_ == 20) {
return (io.envoyproxy.pgv.validate.Validate.AnyRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance();
} else {
if (typeCase_ == 20) {
return anyBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance();
}
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
public Builder setAny(io.envoyproxy.pgv.validate.Validate.AnyRules value) {
if (anyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
anyBuilder_.setMessage(value);
}
typeCase_ = 20;
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional float gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional float gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
float getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
float getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* FloatRules describes the constraints applied to `float` values
*
*
* Protobuf type {@code validate.FloatRules}
*/
public static final class FloatRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.FloatRules)
FloatRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use FloatRules.newBuilder() to construct.
private FloatRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FloatRules() {
in_ = emptyFloatList();
notIn_ = emptyFloatList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FloatRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.FloatRules.class, io.envoyproxy.pgv.validate.Validate.FloatRules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private float const_ = 0F;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @return The const.
*/
@java.lang.Override
public float getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private float lt_ = 0F;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
* @return The lt.
*/
@java.lang.Override
public float getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private float lte_ = 0F;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
* @return The lte.
*/
@java.lang.Override
public float getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private float gt_ = 0F;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional float gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional float gt = 4;
* @return The gt.
*/
@java.lang.Override
public float getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private float gte_ = 0F;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional float gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional float gte = 5;
* @return The gte.
*/
@java.lang.Override
public float getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.FloatList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public float getIn(int index) {
return in_.getFloat(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.FloatList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public float getNotIn(int index) {
return notIn_.getFloat(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeFloat(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeFloat(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFloat(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeFloat(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeFloat(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeFloat(6, in_.getFloat(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeFloat(7, notIn_.getFloat(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeFloatSize(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, gte_);
}
{
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();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.FloatRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.FloatRules other = (io.envoyproxy.pgv.validate.Validate.FloatRules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (java.lang.Float.floatToIntBits(getConst())
!= java.lang.Float.floatToIntBits(
other.getConst())) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (java.lang.Float.floatToIntBits(getLt())
!= java.lang.Float.floatToIntBits(
other.getLt())) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (java.lang.Float.floatToIntBits(getLte())
!= java.lang.Float.floatToIntBits(
other.getLte())) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (java.lang.Float.floatToIntBits(getGt())
!= java.lang.Float.floatToIntBits(
other.getGt())) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (java.lang.Float.floatToIntBits(getGte())
!= java.lang.Float.floatToIntBits(
other.getGte())) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + java.lang.Float.floatToIntBits(
getConst());
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLt());
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLte());
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getGt());
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getGte());
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.FloatRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* FloatRules describes the constraints applied to `float` values
*
*
* Protobuf type {@code validate.FloatRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.FloatRules)
io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.FloatRules.class, io.envoyproxy.pgv.validate.Validate.FloatRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.FloatRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0F;
lt_ = 0F;
lte_ = 0F;
gt_ = 0F;
gte_ = 0F;
in_ = emptyFloatList();
notIn_ = emptyFloatList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRules build() {
io.envoyproxy.pgv.validate.Validate.FloatRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.FloatRules result = new io.envoyproxy.pgv.validate.Validate.FloatRules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.FloatRules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.FloatRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.FloatRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.FloatRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.FloatRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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.readFloat();
bitField0_ |= 0x00000001;
break;
} // case 13
case 21: {
lt_ = input.readFloat();
bitField0_ |= 0x00000002;
break;
} // case 21
case 29: {
lte_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 29
case 37: {
gt_ = input.readFloat();
bitField0_ |= 0x00000008;
break;
} // case 37
case 45: {
gte_ = input.readFloat();
bitField0_ |= 0x00000010;
break;
} // case 45
case 53: {
float v = input.readFloat();
ensureInIsMutable();
in_.addFloat(v);
break;
} // case 53
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
} // case 50
case 61: {
float v = input.readFloat();
ensureNotInIsMutable();
notIn_.addFloat(v);
break;
} // case 61
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private float const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional float gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional float gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(float value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional float gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional float gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(float value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public float getIn(int index) {
return in_.getFloat(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @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, float value) {
ensureInIsMutable();
in_.setFloat(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(float value) {
ensureInIsMutable();
in_.addFloat(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Float> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public float getNotIn(int index) {
return notIn_.getFloat(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @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, float value) {
ensureNotInIsMutable();
notIn_.setFloat(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(float value) {
ensureNotInIsMutable();
notIn_.addFloat(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Float> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional double gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional double gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
double getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
double getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* DoubleRules describes the constraints applied to `double` values
*
*
* Protobuf type {@code validate.DoubleRules}
*/
public static final class DoubleRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.DoubleRules)
DoubleRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use DoubleRules.newBuilder() to construct.
private DoubleRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DoubleRules() {
in_ = emptyDoubleList();
notIn_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DoubleRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.DoubleRules.class, io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private double const_ = 0D;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @return The const.
*/
@java.lang.Override
public double getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private double lt_ = 0D;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
* @return The lt.
*/
@java.lang.Override
public double getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private double lte_ = 0D;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
* @return The lte.
*/
@java.lang.Override
public double getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private double gt_ = 0D;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional double gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional double gt = 4;
* @return The gt.
*/
@java.lang.Override
public double getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private double gte_ = 0D;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional double gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional double gte = 5;
* @return The gte.
*/
@java.lang.Override
public double getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public double getIn(int index) {
return in_.getDouble(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public double getNotIn(int index) {
return notIn_.getDouble(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeDouble(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeDouble(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeDouble(6, in_.getDouble(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeDouble(7, notIn_.getDouble(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeDoubleSize(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, gte_);
}
{
int dataSize = 0;
dataSize = 8 * getInList().size();
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
dataSize = 8 * getNotInList().size();
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.DoubleRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.DoubleRules other = (io.envoyproxy.pgv.validate.Validate.DoubleRules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (java.lang.Double.doubleToLongBits(getConst())
!= java.lang.Double.doubleToLongBits(
other.getConst())) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (java.lang.Double.doubleToLongBits(getLt())
!= java.lang.Double.doubleToLongBits(
other.getLt())) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (java.lang.Double.doubleToLongBits(getLte())
!= java.lang.Double.doubleToLongBits(
other.getLte())) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (java.lang.Double.doubleToLongBits(getGt())
!= java.lang.Double.doubleToLongBits(
other.getGt())) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (java.lang.Double.doubleToLongBits(getGte())
!= java.lang.Double.doubleToLongBits(
other.getGte())) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getConst()));
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLt()));
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLte()));
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGt()));
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGte()));
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.DoubleRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* DoubleRules describes the constraints applied to `double` values
*
*
* Protobuf type {@code validate.DoubleRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.DoubleRules)
io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.DoubleRules.class, io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.DoubleRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0D;
lt_ = 0D;
lte_ = 0D;
gt_ = 0D;
gte_ = 0D;
in_ = emptyDoubleList();
notIn_ = emptyDoubleList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DoubleRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DoubleRules build() {
io.envoyproxy.pgv.validate.Validate.DoubleRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DoubleRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.DoubleRules result = new io.envoyproxy.pgv.validate.Validate.DoubleRules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.DoubleRules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.DoubleRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.DoubleRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.DoubleRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.DoubleRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 9: {
const_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
lt_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
lte_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
gt_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
gte_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
double v = input.readDouble();
ensureInIsMutable();
in_.addDouble(v);
break;
} // case 49
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 50
case 57: {
double v = input.readDouble();
ensureNotInIsMutable();
notIn_.addDouble(v);
break;
} // case 57
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private double const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional double gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional double gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(double value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional double gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional double gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(double value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public double getIn(int index) {
return in_.getDouble(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @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, double value) {
ensureInIsMutable();
in_.setDouble(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(double value) {
ensureInIsMutable();
in_.addDouble(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Double> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public double getNotIn(int index) {
return notIn_.getDouble(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @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, double value) {
ensureNotInIsMutable();
notIn_.setDouble(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(double value) {
ensureNotInIsMutable();
notIn_.addDouble(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Double> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.DoubleRules)
}
// @@protoc_insertion_point(class_scope:validate.DoubleRules)
private static final io.envoyproxy.pgv.validate.Validate.DoubleRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.DoubleRules();
}
public static io.envoyproxy.pgv.validate.Validate.DoubleRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DoubleRules 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 io.envoyproxy.pgv.validate.Validate.DoubleRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Int32RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.Int32Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return The const.
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return The lt.
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return The lte.
*/
int getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return The gt.
*/
int getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @return The gte.
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
int getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* Int32Rules describes the constraints applied to `int32` values
*
*
* Protobuf type {@code validate.Int32Rules}
*/
public static final class Int32Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.Int32Rules)
Int32RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Int32Rules.newBuilder() to construct.
private Int32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Int32Rules() {
in_ = emptyIntList();
notIn_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Int32Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Int32Rules.class, io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private int const_ = 0;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_ = 0;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_ = 0;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private int gt_ = 0;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private int gte_ = 0;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @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_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @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 IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeInt32(6, in_.getInt(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeInt32(7, notIn_.getInt(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, gte_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(in_.getInt(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(notIn_.getInt(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.Int32Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.Int32Rules other = (io.envoyproxy.pgv.validate.Validate.Int32Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + getLt();
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + getLte();
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + getGt();
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + getGte();
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.Int32Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Int32Rules describes the constraints applied to `int32` values
*
*
* Protobuf type {@code validate.Int32Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.Int32Rules)
io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Int32Rules.class, io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.Int32Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = emptyIntList();
notIn_ = emptyIntList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int32Rules build() {
io.envoyproxy.pgv.validate.Validate.Int32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Int32Rules result = new io.envoyproxy.pgv.validate.Validate.Int32Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.Int32Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.Int32Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.Int32Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.Int32Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.Int32Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lt_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lte_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
gt_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
gte_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
int v = input.readInt32();
ensureInIsMutable();
in_.addInt(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
int v = input.readInt32();
ensureNotInIsMutable();
notIn_.addInt(v);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(int value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0;
onChanged();
return this;
}
private int lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(int value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0;
onChanged();
return this;
}
private int lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(int value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0;
onChanged();
return this;
}
private int gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(int value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int32 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0;
onChanged();
return this;
}
private int gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int32 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(int value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @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 specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @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);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.addInt(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @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);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @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);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.addInt(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.Int32Rules)
}
// @@protoc_insertion_point(class_scope:validate.Int32Rules)
private static final io.envoyproxy.pgv.validate.Validate.Int32Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.Int32Rules();
}
public static io.envoyproxy.pgv.validate.Validate.Int32Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Int32Rules 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 io.envoyproxy.pgv.validate.Validate.Int32Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Int64RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.Int64Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return The const.
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return The lt.
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return The lte.
*/
long getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return The gt.
*/
long getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @return The gte.
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
long getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* Int64Rules describes the constraints applied to `int64` values
*
*
* Protobuf type {@code validate.Int64Rules}
*/
public static final class Int64Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.Int64Rules)
Int64RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Int64Rules.newBuilder() to construct.
private Int64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Int64Rules() {
in_ = emptyLongList();
notIn_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Int64Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Int64Rules.class, io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private long const_ = 0L;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_ = 0L;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_ = 0L;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private long gt_ = 0L;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private long gte_ = 0L;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeInt64(6, in_.getLong(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeInt64(7, notIn_.getLong(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeInt64Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, gte_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(in_.getLong(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(notIn_.getLong(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.Int64Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.Int64Rules other = (io.envoyproxy.pgv.validate.Validate.Int64Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + com.google.protobuf.Internal.hashLong(
getConst());
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLt());
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLte());
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGt());
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGte());
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.Int64Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Int64Rules describes the constraints applied to `int64` values
*
*
* Protobuf type {@code validate.Int64Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.Int64Rules)
io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Int64Rules.class, io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.Int64Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = emptyLongList();
notIn_ = emptyLongList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int64Rules build() {
io.envoyproxy.pgv.validate.Validate.Int64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Int64Rules result = new io.envoyproxy.pgv.validate.Validate.Int64Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.Int64Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.Int64Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.Int64Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.Int64Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.Int64Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lt_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lte_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
gt_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
gte_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
long v = input.readInt64();
ensureInIsMutable();
in_.addLong(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
long v = input.readInt64();
ensureNotInIsMutable();
notIn_.addLong(v);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(long value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0L;
onChanged();
return this;
}
private long lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(long value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0L;
onChanged();
return this;
}
private long lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(long value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0L;
onChanged();
return this;
}
private long gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(long value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional int64 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0L;
onChanged();
return this;
}
private long gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional int64 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(long value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @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, long value) {
ensureInIsMutable();
in_.setLong(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.addLong(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @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, long value) {
ensureNotInIsMutable();
notIn_.setLong(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.addLong(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.Int64Rules)
}
// @@protoc_insertion_point(class_scope:validate.Int64Rules)
private static final io.envoyproxy.pgv.validate.Validate.Int64Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.Int64Rules();
}
public static io.envoyproxy.pgv.validate.Validate.Int64Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Int64Rules 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 io.envoyproxy.pgv.validate.Validate.Int64Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UInt32RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.UInt32Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return The const.
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return The lt.
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return The lte.
*/
int getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return The gt.
*/
int getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @return The gte.
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
int getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* UInt32Rules describes the constraints applied to `uint32` values
*
*
* Protobuf type {@code validate.UInt32Rules}
*/
public static final class UInt32Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.UInt32Rules)
UInt32RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use UInt32Rules.newBuilder() to construct.
private UInt32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UInt32Rules() {
in_ = emptyIntList();
notIn_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UInt32Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.UInt32Rules.class, io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private int const_ = 0;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_ = 0;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_ = 0;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private int gt_ = 0;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private int gte_ = 0;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @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_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @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 IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeUInt32(6, in_.getInt(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeUInt32(7, notIn_.getInt(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeUInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, gte_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(in_.getInt(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(notIn_.getInt(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.UInt32Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.UInt32Rules other = (io.envoyproxy.pgv.validate.Validate.UInt32Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + getLt();
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + getLte();
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + getGt();
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + getGte();
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.UInt32Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* UInt32Rules describes the constraints applied to `uint32` values
*
*
* Protobuf type {@code validate.UInt32Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.UInt32Rules)
io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.UInt32Rules.class, io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.UInt32Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = emptyIntList();
notIn_ = emptyIntList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt32Rules build() {
io.envoyproxy.pgv.validate.Validate.UInt32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.UInt32Rules result = new io.envoyproxy.pgv.validate.Validate.UInt32Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.UInt32Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.UInt32Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.UInt32Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.UInt32Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.UInt32Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lt_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lte_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
gt_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
gte_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
int v = input.readUInt32();
ensureInIsMutable();
in_.addInt(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
int v = input.readUInt32();
ensureNotInIsMutable();
notIn_.addInt(v);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(int value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0;
onChanged();
return this;
}
private int lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(int value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0;
onChanged();
return this;
}
private int lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(int value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0;
onChanged();
return this;
}
private int gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(int value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint32 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0;
onChanged();
return this;
}
private int gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint32 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(int value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @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 specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @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);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.addInt(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @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);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @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);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.addInt(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.UInt32Rules)
}
// @@protoc_insertion_point(class_scope:validate.UInt32Rules)
private static final io.envoyproxy.pgv.validate.Validate.UInt32Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.UInt32Rules();
}
public static io.envoyproxy.pgv.validate.Validate.UInt32Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UInt32Rules 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 io.envoyproxy.pgv.validate.Validate.UInt32Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UInt64RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.UInt64Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return The const.
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return The lt.
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return The lte.
*/
long getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return The gt.
*/
long getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @return The gte.
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
long getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* UInt64Rules describes the constraints applied to `uint64` values
*
*
* Protobuf type {@code validate.UInt64Rules}
*/
public static final class UInt64Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.UInt64Rules)
UInt64RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use UInt64Rules.newBuilder() to construct.
private UInt64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UInt64Rules() {
in_ = emptyLongList();
notIn_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UInt64Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.UInt64Rules.class, io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private long const_ = 0L;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_ = 0L;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_ = 0L;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private long gt_ = 0L;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private long gte_ = 0L;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt64(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt64(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeUInt64(6, in_.getLong(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeUInt64(7, notIn_.getLong(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeUInt64Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, gte_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(in_.getLong(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(notIn_.getLong(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.UInt64Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.UInt64Rules other = (io.envoyproxy.pgv.validate.Validate.UInt64Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + com.google.protobuf.Internal.hashLong(
getConst());
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLt());
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLte());
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGt());
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGte());
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.UInt64Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* UInt64Rules describes the constraints applied to `uint64` values
*
*
* Protobuf type {@code validate.UInt64Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.UInt64Rules)
io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.UInt64Rules.class, io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.UInt64Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = emptyLongList();
notIn_ = emptyLongList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt64Rules build() {
io.envoyproxy.pgv.validate.Validate.UInt64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.UInt64Rules result = new io.envoyproxy.pgv.validate.Validate.UInt64Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.UInt64Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.UInt64Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.UInt64Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.UInt64Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.UInt64Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lt_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lte_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
gt_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
gte_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
long v = input.readUInt64();
ensureInIsMutable();
in_.addLong(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
long v = input.readUInt64();
ensureNotInIsMutable();
notIn_.addLong(v);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(long value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0L;
onChanged();
return this;
}
private long lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(long value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0L;
onChanged();
return this;
}
private long lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(long value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0L;
onChanged();
return this;
}
private long gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(long value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional uint64 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0L;
onChanged();
return this;
}
private long gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional uint64 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(long value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @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, long value) {
ensureInIsMutable();
in_.setLong(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.addLong(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @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, long value) {
ensureNotInIsMutable();
notIn_.setLong(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.addLong(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.UInt64Rules)
}
// @@protoc_insertion_point(class_scope:validate.UInt64Rules)
private static final io.envoyproxy.pgv.validate.Validate.UInt64Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.UInt64Rules();
}
public static io.envoyproxy.pgv.validate.Validate.UInt64Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UInt64Rules 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 io.envoyproxy.pgv.validate.Validate.UInt64Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SInt32RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.SInt32Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return The const.
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return The lt.
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return The lte.
*/
int getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return The gt.
*/
int getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @return The gte.
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
int getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* SInt32Rules describes the constraints applied to `sint32` values
*
*
* Protobuf type {@code validate.SInt32Rules}
*/
public static final class SInt32Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.SInt32Rules)
SInt32RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SInt32Rules.newBuilder() to construct.
private SInt32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SInt32Rules() {
in_ = emptyIntList();
notIn_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SInt32Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SInt32Rules.class, io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private int const_ = 0;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_ = 0;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_ = 0;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private int gt_ = 0;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private int gte_ = 0;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @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_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @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 IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeSInt32(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeSInt32(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeSInt32(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeSInt32(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeSInt32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSInt32(6, in_.getInt(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSInt32(7, notIn_.getInt(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeSInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(5, gte_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(in_.getInt(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(notIn_.getInt(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.SInt32Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.SInt32Rules other = (io.envoyproxy.pgv.validate.Validate.SInt32Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + getLt();
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + getLte();
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + getGt();
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + getGte();
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.SInt32Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* SInt32Rules describes the constraints applied to `sint32` values
*
*
* Protobuf type {@code validate.SInt32Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.SInt32Rules)
io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SInt32Rules.class, io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.SInt32Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = emptyIntList();
notIn_ = emptyIntList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt32Rules build() {
io.envoyproxy.pgv.validate.Validate.SInt32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SInt32Rules result = new io.envoyproxy.pgv.validate.Validate.SInt32Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.SInt32Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.SInt32Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.SInt32Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.SInt32Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.SInt32Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lt_ = input.readSInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lte_ = input.readSInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
gt_ = input.readSInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
gte_ = input.readSInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
int v = input.readSInt32();
ensureInIsMutable();
in_.addInt(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addInt(input.readSInt32());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
int v = input.readSInt32();
ensureNotInIsMutable();
notIn_.addInt(v);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addInt(input.readSInt32());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(int value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0;
onChanged();
return this;
}
private int lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(int value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0;
onChanged();
return this;
}
private int lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(int value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0;
onChanged();
return this;
}
private int gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(int value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint32 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0;
onChanged();
return this;
}
private int gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint32 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(int value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @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 specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @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);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.addInt(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @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);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @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);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.addInt(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.SInt32Rules)
}
// @@protoc_insertion_point(class_scope:validate.SInt32Rules)
private static final io.envoyproxy.pgv.validate.Validate.SInt32Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.SInt32Rules();
}
public static io.envoyproxy.pgv.validate.Validate.SInt32Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SInt32Rules 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 io.envoyproxy.pgv.validate.Validate.SInt32Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SInt64RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.SInt64Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return The const.
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return The lt.
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return The lte.
*/
long getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return The gt.
*/
long getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @return The gte.
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
long getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* SInt64Rules describes the constraints applied to `sint64` values
*
*
* Protobuf type {@code validate.SInt64Rules}
*/
public static final class SInt64Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.SInt64Rules)
SInt64RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SInt64Rules.newBuilder() to construct.
private SInt64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SInt64Rules() {
in_ = emptyLongList();
notIn_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SInt64Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SInt64Rules.class, io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private long const_ = 0L;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_ = 0L;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_ = 0L;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private long gt_ = 0L;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private long gte_ = 0L;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeSInt64(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeSInt64(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeSInt64(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeSInt64(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeSInt64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSInt64(6, in_.getLong(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSInt64(7, notIn_.getLong(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeSInt64Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(5, gte_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(in_.getLong(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(notIn_.getLong(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.SInt64Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.SInt64Rules other = (io.envoyproxy.pgv.validate.Validate.SInt64Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + com.google.protobuf.Internal.hashLong(
getConst());
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLt());
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLte());
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGt());
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGte());
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.SInt64Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* SInt64Rules describes the constraints applied to `sint64` values
*
*
* Protobuf type {@code validate.SInt64Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.SInt64Rules)
io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SInt64Rules.class, io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.SInt64Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = emptyLongList();
notIn_ = emptyLongList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt64Rules build() {
io.envoyproxy.pgv.validate.Validate.SInt64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SInt64Rules result = new io.envoyproxy.pgv.validate.Validate.SInt64Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.SInt64Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.SInt64Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.SInt64Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.SInt64Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.SInt64Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lt_ = input.readSInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lte_ = input.readSInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
gt_ = input.readSInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
gte_ = input.readSInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
long v = input.readSInt64();
ensureInIsMutable();
in_.addLong(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addLong(input.readSInt64());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
long v = input.readSInt64();
ensureNotInIsMutable();
notIn_.addLong(v);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addLong(input.readSInt64());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(long value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0L;
onChanged();
return this;
}
private long lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(long value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0L;
onChanged();
return this;
}
private long lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(long value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0L;
onChanged();
return this;
}
private long gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(long value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sint64 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0L;
onChanged();
return this;
}
private long gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sint64 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(long value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @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, long value) {
ensureInIsMutable();
in_.setLong(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.addLong(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @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, long value) {
ensureNotInIsMutable();
notIn_.setLong(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.addLong(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.SInt64Rules)
}
// @@protoc_insertion_point(class_scope:validate.SInt64Rules)
private static final io.envoyproxy.pgv.validate.Validate.SInt64Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.SInt64Rules();
}
public static io.envoyproxy.pgv.validate.Validate.SInt64Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SInt64Rules 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 io.envoyproxy.pgv.validate.Validate.SInt64Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Fixed32RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.Fixed32Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return The const.
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return The lt.
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return The lte.
*/
int getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return The gt.
*/
int getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @return The gte.
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
int getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* Fixed32Rules describes the constraints applied to `fixed32` values
*
*
* Protobuf type {@code validate.Fixed32Rules}
*/
public static final class Fixed32Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.Fixed32Rules)
Fixed32RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Fixed32Rules.newBuilder() to construct.
private Fixed32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fixed32Rules() {
in_ = emptyIntList();
notIn_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Fixed32Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Fixed32Rules.class, io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private int const_ = 0;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_ = 0;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_ = 0;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private int gt_ = 0;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private int gte_ = 0;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @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_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @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 IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeFixed32(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeFixed32(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFixed32(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeFixed32(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeFixed32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeFixed32(6, in_.getInt(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeFixed32(7, notIn_.getInt(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeFixed32Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(5, gte_);
}
{
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();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.Fixed32Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.Fixed32Rules other = (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + getLt();
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + getLte();
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + getGt();
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + getGte();
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.Fixed32Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Fixed32Rules describes the constraints applied to `fixed32` values
*
*
* Protobuf type {@code validate.Fixed32Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.Fixed32Rules)
io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Fixed32Rules.class, io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.Fixed32Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = emptyIntList();
notIn_ = emptyIntList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules build() {
io.envoyproxy.pgv.validate.Validate.Fixed32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Fixed32Rules result = new io.envoyproxy.pgv.validate.Validate.Fixed32Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.Fixed32Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.Fixed32Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.Fixed32Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.Fixed32Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.Fixed32Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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.readFixed32();
bitField0_ |= 0x00000001;
break;
} // case 13
case 21: {
lt_ = input.readFixed32();
bitField0_ |= 0x00000002;
break;
} // case 21
case 29: {
lte_ = input.readFixed32();
bitField0_ |= 0x00000004;
break;
} // case 29
case 37: {
gt_ = input.readFixed32();
bitField0_ |= 0x00000008;
break;
} // case 37
case 45: {
gte_ = input.readFixed32();
bitField0_ |= 0x00000010;
break;
} // case 45
case 53: {
int v = input.readFixed32();
ensureInIsMutable();
in_.addInt(v);
break;
} // case 53
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addInt(input.readFixed32());
}
input.popLimit(limit);
break;
} // case 50
case 61: {
int v = input.readFixed32();
ensureNotInIsMutable();
notIn_.addInt(v);
break;
} // case 61
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addInt(input.readFixed32());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(int value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0;
onChanged();
return this;
}
private int lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(int value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0;
onChanged();
return this;
}
private int lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(int value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0;
onChanged();
return this;
}
private int gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(int value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed32 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0;
onChanged();
return this;
}
private int gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed32 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(int value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @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 specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @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);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.addInt(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @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);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @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);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.addInt(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.Fixed32Rules)
}
// @@protoc_insertion_point(class_scope:validate.Fixed32Rules)
private static final io.envoyproxy.pgv.validate.Validate.Fixed32Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.Fixed32Rules();
}
public static io.envoyproxy.pgv.validate.Validate.Fixed32Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Fixed32Rules 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 io.envoyproxy.pgv.validate.Validate.Fixed32Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Fixed64RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.Fixed64Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return The const.
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return The lt.
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return The lte.
*/
long getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return The gt.
*/
long getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @return The gte.
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
long getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* Fixed64Rules describes the constraints applied to `fixed64` values
*
*
* Protobuf type {@code validate.Fixed64Rules}
*/
public static final class Fixed64Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.Fixed64Rules)
Fixed64RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Fixed64Rules.newBuilder() to construct.
private Fixed64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fixed64Rules() {
in_ = emptyLongList();
notIn_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Fixed64Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Fixed64Rules.class, io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private long const_ = 0L;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_ = 0L;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_ = 0L;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private long gt_ = 0L;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private long gte_ = 0L;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeFixed64(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeFixed64(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFixed64(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeFixed64(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeFixed64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeFixed64(6, in_.getLong(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeFixed64(7, notIn_.getLong(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeFixed64Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(5, gte_);
}
{
int dataSize = 0;
dataSize = 8 * getInList().size();
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
dataSize = 8 * getNotInList().size();
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.Fixed64Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.Fixed64Rules other = (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + com.google.protobuf.Internal.hashLong(
getConst());
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLt());
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLte());
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGt());
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGte());
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.Fixed64Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Fixed64Rules describes the constraints applied to `fixed64` values
*
*
* Protobuf type {@code validate.Fixed64Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.Fixed64Rules)
io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.Fixed64Rules.class, io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.Fixed64Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = emptyLongList();
notIn_ = emptyLongList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules build() {
io.envoyproxy.pgv.validate.Validate.Fixed64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Fixed64Rules result = new io.envoyproxy.pgv.validate.Validate.Fixed64Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.Fixed64Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.Fixed64Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.Fixed64Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.Fixed64Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.Fixed64Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 9: {
const_ = input.readFixed64();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
lt_ = input.readFixed64();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
lte_ = input.readFixed64();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
gt_ = input.readFixed64();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
gte_ = input.readFixed64();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
long v = input.readFixed64();
ensureInIsMutable();
in_.addLong(v);
break;
} // case 49
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addLong(input.readFixed64());
}
input.popLimit(limit);
break;
} // case 50
case 57: {
long v = input.readFixed64();
ensureNotInIsMutable();
notIn_.addLong(v);
break;
} // case 57
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addLong(input.readFixed64());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(long value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0L;
onChanged();
return this;
}
private long lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(long value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0L;
onChanged();
return this;
}
private long lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(long value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0L;
onChanged();
return this;
}
private long gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(long value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional fixed64 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0L;
onChanged();
return this;
}
private long gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional fixed64 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(long value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @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, long value) {
ensureInIsMutable();
in_.setLong(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.addLong(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @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, long value) {
ensureNotInIsMutable();
notIn_.setLong(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.addLong(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.Fixed64Rules)
}
// @@protoc_insertion_point(class_scope:validate.Fixed64Rules)
private static final io.envoyproxy.pgv.validate.Validate.Fixed64Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.Fixed64Rules();
}
public static io.envoyproxy.pgv.validate.Validate.Fixed64Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Fixed64Rules 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 io.envoyproxy.pgv.validate.Validate.Fixed64Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SFixed32RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.SFixed32Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return The const.
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return The lt.
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return The lte.
*/
int getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return The gt.
*/
int getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @return The gte.
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
int getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* SFixed32Rules describes the constraints applied to `sfixed32` values
*
*
* Protobuf type {@code validate.SFixed32Rules}
*/
public static final class SFixed32Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.SFixed32Rules)
SFixed32RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SFixed32Rules.newBuilder() to construct.
private SFixed32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SFixed32Rules() {
in_ = emptyIntList();
notIn_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SFixed32Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SFixed32Rules.class, io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private int const_ = 0;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_ = 0;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_ = 0;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private int gt_ = 0;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private int gte_ = 0;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @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_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @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 IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeSFixed32(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeSFixed32(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeSFixed32(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeSFixed32(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeSFixed32(5, gte_);
}
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));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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 (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(5, gte_);
}
{
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();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.SFixed32Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.SFixed32Rules other = (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + getLt();
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + getLte();
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + getGt();
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + getGte();
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.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 io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* SFixed32Rules describes the constraints applied to `sfixed32` values
*
*
* Protobuf type {@code validate.SFixed32Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.SFixed32Rules)
io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SFixed32Rules.class, io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.SFixed32Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = emptyIntList();
notIn_ = emptyIntList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules build() {
io.envoyproxy.pgv.validate.Validate.SFixed32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SFixed32Rules result = new io.envoyproxy.pgv.validate.Validate.SFixed32Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.SFixed32Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.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_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.SFixed32Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.SFixed32Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.SFixed32Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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: {
lt_ = input.readSFixed32();
bitField0_ |= 0x00000002;
break;
} // case 21
case 29: {
lte_ = input.readSFixed32();
bitField0_ |= 0x00000004;
break;
} // case 29
case 37: {
gt_ = input.readSFixed32();
bitField0_ |= 0x00000008;
break;
} // case 37
case 45: {
gte_ = input.readSFixed32();
bitField0_ |= 0x00000010;
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);
ensureInIsMutable();
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);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addInt(input.readSFixed32());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(int value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0;
onChanged();
return this;
}
private int lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return The lt.
*/
@java.lang.Override
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(int value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0;
onChanged();
return this;
}
private int lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return The lte.
*/
@java.lang.Override
public int getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(int value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0;
onChanged();
return this;
}
private int gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return The gt.
*/
@java.lang.Override
public int getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(int value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed32 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0;
onChanged();
return this;
}
private int gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @return The gte.
*/
@java.lang.Override
public int getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed32 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(int value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @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 specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @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);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.addInt(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @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);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @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);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.addInt(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
ignoreEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.SFixed32Rules)
}
// @@protoc_insertion_point(class_scope:validate.SFixed32Rules)
private static final io.envoyproxy.pgv.validate.Validate.SFixed32Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.SFixed32Rules();
}
public static io.envoyproxy.pgv.validate.Validate.SFixed32Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public 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 io.envoyproxy.pgv.validate.Validate.SFixed32Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SFixed64RulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.SFixed64Rules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return The const.
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return The lt.
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return The lte.
*/
long getLte();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return The gt.
*/
long getGt();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @return The gte.
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
long getNotIn(int index);
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
boolean hasIgnoreEmpty();
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* SFixed64Rules describes the constraints applied to `sfixed64` values
*
*
* Protobuf type {@code validate.SFixed64Rules}
*/
public static final class SFixed64Rules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.SFixed64Rules)
SFixed64RulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SFixed64Rules.newBuilder() to construct.
private SFixed64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SFixed64Rules() {
in_ = emptyLongList();
notIn_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SFixed64Rules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SFixed64Rules.class, io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private long const_ = 0L;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_ = 0L;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_ = 0L;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
private long gt_ = 0L;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
private long gte_ = 0L;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 8;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeSFixed64(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeSFixed64(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeSFixed64(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeSFixed64(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeSFixed64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSFixed64(6, in_.getLong(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSFixed64(7, notIn_.getLong(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, ignoreEmpty_);
}
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
.computeSFixed64Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(5, gte_);
}
{
int dataSize = 0;
dataSize = 8 * getInList().size();
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
dataSize = 8 * getNotInList().size();
size += dataSize;
size += 1 * getNotInList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.SFixed64Rules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.SFixed64Rules other = (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (getLt()
!= other.getLt()) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (getLte()
!= other.getLte()) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (getGt()
!= other.getGt()) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (getGte()
!= other.getGte()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + com.google.protobuf.Internal.hashLong(
getConst());
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLt());
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLte());
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGt());
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGte());
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.SFixed64Rules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* SFixed64Rules describes the constraints applied to `sfixed64` values
*
*
* Protobuf type {@code validate.SFixed64Rules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.SFixed64Rules)
io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.SFixed64Rules.class, io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.SFixed64Rules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = emptyLongList();
notIn_ = emptyLongList();
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules build() {
io.envoyproxy.pgv.validate.Validate.SFixed64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SFixed64Rules result = new io.envoyproxy.pgv.validate.Validate.SFixed64Rules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.SFixed64Rules result) {
if (((bitField0_ & 0x00000020) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.SFixed64Rules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lt_ = lt_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lte_ = lte_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gt_ = gt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gte_ = gte_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.SFixed64Rules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.SFixed64Rules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.SFixed64Rules other) {
if (other == io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLt()) {
setLt(other.getLt());
}
if (other.hasLte()) {
setLte(other.getLte());
}
if (other.hasGt()) {
setGt(other.getGt());
}
if (other.hasGte()) {
setGte(other.getGte());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 9: {
const_ = input.readSFixed64();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
lt_ = input.readSFixed64();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
lte_ = input.readSFixed64();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
gt_ = input.readSFixed64();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
gte_ = input.readSFixed64();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
long v = input.readSFixed64();
ensureInIsMutable();
in_.addLong(v);
break;
} // case 49
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addLong(input.readSFixed64());
}
input.popLimit(limit);
break;
} // case 50
case 57: {
long v = input.readSFixed64();
ensureNotInIsMutable();
notIn_.addLong(v);
break;
} // case 57
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addLong(input.readSFixed64());
}
input.popLimit(limit);
break;
} // case 58
case 64: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return The const.
*/
@java.lang.Override
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(long value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0L;
onChanged();
return this;
}
private long lt_ ;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return The lt.
*/
@java.lang.Override
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(long value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0L;
onChanged();
return this;
}
private long lte_ ;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return The lte.
*/
@java.lang.Override
public long getLte() {
return lte_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(long value) {
lte_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0L;
onChanged();
return this;
}
private long gt_ ;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return The gt.
*/
@java.lang.Override
public long getGt() {
return gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @param value The gt to set.
* @return This builder for chaining.
*/
public Builder setGt(long value) {
gt_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*
*
* optional sfixed64 gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0L;
onChanged();
return this;
}
private long gte_ ;
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @return The gte.
*/
@java.lang.Override
public long getGte() {
return gte_;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
*
* optional sfixed64 gte = 5;
* @param value The gte to set.
* @return This builder for chaining.
*/
public Builder setGte(long value) {
gte_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public long getIn(int index) {
return in_.getLong(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @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, long value) {
ensureInIsMutable();
in_.setLong(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.addLong(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public long getNotIn(int index) {
return notIn_.getLong(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @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, long value) {
ensureNotInIsMutable();
notIn_.setLong(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.addLong(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Long> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return The bytes for const.
*/
com.google.protobuf.ByteString
getConstBytes();
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return Whether the len field is set.
*/
boolean hasLen();
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return The len.
*/
long getLen();
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return Whether the minLen field is set.
*/
boolean hasMinLen();
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return The minLen.
*/
long getMinLen();
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return Whether the maxLen field is set.
*/
boolean hasMaxLen();
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return The maxLen.
*/
long getMaxLen();
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return Whether the lenBytes field is set.
*/
boolean hasLenBytes();
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return The lenBytes.
*/
long getLenBytes();
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return Whether the minBytes field is set.
*/
boolean hasMinBytes();
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return The minBytes.
*/
long getMinBytes();
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @return Whether the maxBytes field is set.
*/
boolean hasMaxBytes();
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @return The maxBytes.
*/
long getMaxBytes();
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return Whether the pattern field is set.
*/
boolean hasPattern();
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return The bytes for pattern.
*/
com.google.protobuf.ByteString
getPatternBytes();
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return Whether the prefix field is set.
*/
boolean hasPrefix();
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return The bytes for notContains.
*/
com.google.protobuf.ByteString
getNotContainsBytes();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return A list containing the in.
*/
java.util.List
getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param index The index of the element to return.
* @return The in at the given index.
*/
java.lang.String getIn(int index);
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param index The index of the value to return.
* @return The bytes of the in at the given index.
*/
com.google.protobuf.ByteString
getInBytes(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @return A list containing the notIn.
*/
java.util.List
getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
java.lang.String getNotIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param index The index of the value to return.
* @return The bytes of the notIn at the given index.
*/
com.google.protobuf.ByteString
getNotInBytes(int index);
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @return Whether the email field is set.
*/
boolean hasEmail();
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @return Whether the hostname field is set.
*/
boolean hasHostname();
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @return Whether the address field is set.
*/
boolean hasAddress();
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
*
* optional bool strict = 25 [default = true];
* @return Whether the strict field is set.
*/
boolean hasStrict();
/**
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return The bytes for const.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConstBytes() {
java.lang.Object ref = const_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
const_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEN_FIELD_NUMBER = 19;
private long len_ = 0L;
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return Whether the len field is set.
*/
@java.lang.Override
public boolean hasLen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return The len.
*/
@java.lang.Override
public long getLen() {
return len_;
}
public static final int MIN_LEN_FIELD_NUMBER = 2;
private long minLen_ = 0L;
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return Whether the minLen field is set.
*/
@java.lang.Override
public boolean hasMinLen() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return The minLen.
*/
@java.lang.Override
public long getMinLen() {
return minLen_;
}
public static final int MAX_LEN_FIELD_NUMBER = 3;
private long maxLen_ = 0L;
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return Whether the maxLen field is set.
*/
@java.lang.Override
public boolean hasMaxLen() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return The maxLen.
*/
@java.lang.Override
public long getMaxLen() {
return maxLen_;
}
public static final int LEN_BYTES_FIELD_NUMBER = 20;
private long lenBytes_ = 0L;
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return Whether the lenBytes field is set.
*/
@java.lang.Override
public boolean hasLenBytes() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return The lenBytes.
*/
@java.lang.Override
public long getLenBytes() {
return lenBytes_;
}
public static final int MIN_BYTES_FIELD_NUMBER = 4;
private long minBytes_ = 0L;
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return Whether the minBytes field is set.
*/
@java.lang.Override
public boolean hasMinBytes() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return The minBytes.
*/
@java.lang.Override
public long getMinBytes() {
return minBytes_;
}
public static final int MAX_BYTES_FIELD_NUMBER = 5;
private long maxBytes_ = 0L;
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @return Whether the maxBytes field is set.
*/
@java.lang.Override
public boolean hasMaxBytes() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @return The maxBytes.
*/
@java.lang.Override
public long getMaxBytes() {
return maxBytes_;
}
public static final int PATTERN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object pattern_ = "";
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return Whether the pattern field is set.
*/
@java.lang.Override
public boolean hasPattern() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return The bytes for pattern.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PREFIX_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object prefix_ = "";
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return Whether the prefix field is set.
*/
@java.lang.Override
public boolean hasPrefix() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return The bytes for notContains.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNotContainsBytes() {
java.lang.Object ref = notContains_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notContains_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IN_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return A list containing the in.
*/
public com.google.protobuf.ProtocolStringList
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public java.lang.String getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param index The index of the value to return.
* @return The bytes of the in at the given index.
*/
public com.google.protobuf.ByteString
getInBytes(int index) {
return in_.getByteString(index);
}
public static final int NOT_IN_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @return A list containing the notIn.
*/
public com.google.protobuf.ProtocolStringList
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public java.lang.String getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param index The index of the value to return.
* @return The bytes of the notIn at the given index.
*/
public com.google.protobuf.ByteString
getNotInBytes(int index) {
return notIn_.getByteString(index);
}
public static final int EMAIL_FIELD_NUMBER = 12;
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @return Whether the email field is set.
*/
@java.lang.Override
public boolean hasEmail() {
return wellKnownCase_ == 12;
}
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @return The email.
*/
@java.lang.Override
public boolean getEmail() {
if (wellKnownCase_ == 12) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int HOSTNAME_FIELD_NUMBER = 13;
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @return Whether the hostname field is set.
*/
@java.lang.Override
public boolean hasHostname() {
return wellKnownCase_ == 13;
}
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @return The hostname.
*/
@java.lang.Override
public boolean getHostname() {
if (wellKnownCase_ == 13) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int IP_FIELD_NUMBER = 14;
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*
*
* bool ip = 14;
* @return Whether the ip field is set.
*/
@java.lang.Override
public boolean hasIp() {
return wellKnownCase_ == 14;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*
*
* bool ip = 14;
* @return The ip.
*/
@java.lang.Override
public boolean getIp() {
if (wellKnownCase_ == 14) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int IPV4_FIELD_NUMBER = 15;
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return Whether the ipv4 field is set.
*/
@java.lang.Override
public boolean hasIpv4() {
return wellKnownCase_ == 15;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return The ipv4.
*/
@java.lang.Override
public boolean getIpv4() {
if (wellKnownCase_ == 15) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int IPV6_FIELD_NUMBER = 16;
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*
*
* bool ipv6 = 16;
* @return Whether the ipv6 field is set.
*/
@java.lang.Override
public boolean hasIpv6() {
return wellKnownCase_ == 16;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*
*
* bool ipv6 = 16;
* @return The ipv6.
*/
@java.lang.Override
public boolean getIpv6() {
if (wellKnownCase_ == 16) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int URI_FIELD_NUMBER = 17;
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @return Whether the uri field is set.
*/
@java.lang.Override
public boolean hasUri() {
return wellKnownCase_ == 17;
}
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @return The uri.
*/
@java.lang.Override
public boolean getUri() {
if (wellKnownCase_ == 17) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int URI_REF_FIELD_NUMBER = 18;
/**
*
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*
*
* bool uri_ref = 18;
* @return Whether the uriRef field is set.
*/
@java.lang.Override
public boolean hasUriRef() {
return wellKnownCase_ == 18;
}
/**
*
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*
*
* bool uri_ref = 18;
* @return The uriRef.
*/
@java.lang.Override
public boolean getUriRef() {
if (wellKnownCase_ == 18) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int ADDRESS_FIELD_NUMBER = 21;
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @return Whether the address field is set.
*/
@java.lang.Override
public boolean hasAddress() {
return wellKnownCase_ == 21;
}
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @return The address.
*/
@java.lang.Override
public boolean getAddress() {
if (wellKnownCase_ == 21) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int UUID_FIELD_NUMBER = 22;
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @return Whether the uuid field is set.
*/
@java.lang.Override
public boolean hasUuid() {
return wellKnownCase_ == 22;
}
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @return The uuid.
*/
@java.lang.Override
public boolean getUuid() {
if (wellKnownCase_ == 22) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int WELL_KNOWN_REGEX_FIELD_NUMBER = 24;
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return Whether the wellKnownRegex field is set.
*/
public boolean hasWellKnownRegex() {
return wellKnownCase_ == 24;
}
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return The wellKnownRegex.
*/
public io.envoyproxy.pgv.validate.Validate.KnownRegex getWellKnownRegex() {
if (wellKnownCase_ == 24) {
io.envoyproxy.pgv.validate.Validate.KnownRegex result = io.envoyproxy.pgv.validate.Validate.KnownRegex.forNumber(
(java.lang.Integer) wellKnown_);
return result == null ? io.envoyproxy.pgv.validate.Validate.KnownRegex.UNKNOWN : result;
}
return io.envoyproxy.pgv.validate.Validate.KnownRegex.UNKNOWN;
}
public static final int STRICT_FIELD_NUMBER = 25;
private boolean strict_ = true;
/**
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
*
* optional bool strict = 25 [default = true];
* @return Whether the strict field is set.
*/
@java.lang.Override
public boolean hasStrict() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
*
* optional bool strict = 25 [default = true];
* @return The strict.
*/
@java.lang.Override
public boolean getStrict() {
return strict_;
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 26;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 26;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 26;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, const_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(2, minLen_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt64(3, maxLen_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt64(4, minBytes_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt64(5, maxBytes_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pattern_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, prefix_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, suffix_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, contains_);
}
for (int i = 0; i < in_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, in_.getRaw(i));
}
for (int i = 0; i < notIn_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, notIn_.getRaw(i));
}
if (wellKnownCase_ == 12) {
output.writeBool(
12, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 13) {
output.writeBool(
13, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 14) {
output.writeBool(
14, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 15) {
output.writeBool(
15, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 16) {
output.writeBool(
16, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 17) {
output.writeBool(
17, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 18) {
output.writeBool(
18, (boolean)((java.lang.Boolean) wellKnown_));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(19, len_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt64(20, lenBytes_);
}
if (wellKnownCase_ == 21) {
output.writeBool(
21, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 22) {
output.writeBool(
22, (boolean)((java.lang.Boolean) wellKnown_));
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, notContains_);
}
if (wellKnownCase_ == 24) {
output.writeEnum(24, ((java.lang.Integer) wellKnown_));
}
if (((bitField0_ & 0x00400000) != 0)) {
output.writeBool(25, strict_);
}
if (((bitField0_ & 0x00800000) != 0)) {
output.writeBool(26, ignoreEmpty_);
}
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.GeneratedMessageV3.computeStringSize(1, const_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, minLen_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, maxLen_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, minBytes_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, maxBytes_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pattern_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, prefix_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, suffix_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, contains_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += computeStringSizeNoTag(in_.getRaw(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += computeStringSizeNoTag(notIn_.getRaw(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (wellKnownCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
12, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
13, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
14, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
15, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
16, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
17, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 18) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
18, (boolean)((java.lang.Boolean) wellKnown_));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(19, len_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(20, lenBytes_);
}
if (wellKnownCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
21, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
22, (boolean)((java.lang.Boolean) wellKnown_));
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notContains_);
}
if (wellKnownCase_ == 24) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(24, ((java.lang.Integer) wellKnown_));
}
if (((bitField0_ & 0x00400000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, strict_);
}
if (((bitField0_ & 0x00800000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(26, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.StringRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.StringRules other = (io.envoyproxy.pgv.validate.Validate.StringRules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (!getConst()
.equals(other.getConst())) return false;
}
if (hasLen() != other.hasLen()) return false;
if (hasLen()) {
if (getLen()
!= other.getLen()) return false;
}
if (hasMinLen() != other.hasMinLen()) return false;
if (hasMinLen()) {
if (getMinLen()
!= other.getMinLen()) return false;
}
if (hasMaxLen() != other.hasMaxLen()) return false;
if (hasMaxLen()) {
if (getMaxLen()
!= other.getMaxLen()) return false;
}
if (hasLenBytes() != other.hasLenBytes()) return false;
if (hasLenBytes()) {
if (getLenBytes()
!= other.getLenBytes()) return false;
}
if (hasMinBytes() != other.hasMinBytes()) return false;
if (hasMinBytes()) {
if (getMinBytes()
!= other.getMinBytes()) return false;
}
if (hasMaxBytes() != other.hasMaxBytes()) return false;
if (hasMaxBytes()) {
if (getMaxBytes()
!= other.getMaxBytes()) return false;
}
if (hasPattern() != other.hasPattern()) return false;
if (hasPattern()) {
if (!getPattern()
.equals(other.getPattern())) return false;
}
if (hasPrefix() != other.hasPrefix()) return false;
if (hasPrefix()) {
if (!getPrefix()
.equals(other.getPrefix())) return false;
}
if (hasSuffix() != other.hasSuffix()) return false;
if (hasSuffix()) {
if (!getSuffix()
.equals(other.getSuffix())) return false;
}
if (hasContains() != other.hasContains()) return false;
if (hasContains()) {
if (!getContains()
.equals(other.getContains())) return false;
}
if (hasNotContains() != other.hasNotContains()) return false;
if (hasNotContains()) {
if (!getNotContains()
.equals(other.getNotContains())) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasStrict() != other.hasStrict()) return false;
if (hasStrict()) {
if (getStrict()
!= other.getStrict()) return false;
}
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getWellKnownCase().equals(other.getWellKnownCase())) return false;
switch (wellKnownCase_) {
case 12:
if (getEmail()
!= other.getEmail()) return false;
break;
case 13:
if (getHostname()
!= other.getHostname()) return false;
break;
case 14:
if (getIp()
!= other.getIp()) return false;
break;
case 15:
if (getIpv4()
!= other.getIpv4()) return false;
break;
case 16:
if (getIpv6()
!= other.getIpv6()) return false;
break;
case 17:
if (getUri()
!= other.getUri()) return false;
break;
case 18:
if (getUriRef()
!= other.getUriRef()) return false;
break;
case 21:
if (getAddress()
!= other.getAddress()) return false;
break;
case 22:
if (getUuid()
!= other.getUuid()) return false;
break;
case 24:
if (!getWellKnownRegex()
.equals(other.getWellKnownRegex())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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().hashCode();
}
if (hasLen()) {
hash = (37 * hash) + LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLen());
}
if (hasMinLen()) {
hash = (37 * hash) + MIN_LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinLen());
}
if (hasMaxLen()) {
hash = (37 * hash) + MAX_LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxLen());
}
if (hasLenBytes()) {
hash = (37 * hash) + LEN_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLenBytes());
}
if (hasMinBytes()) {
hash = (37 * hash) + MIN_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinBytes());
}
if (hasMaxBytes()) {
hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxBytes());
}
if (hasPattern()) {
hash = (37 * hash) + PATTERN_FIELD_NUMBER;
hash = (53 * hash) + getPattern().hashCode();
}
if (hasPrefix()) {
hash = (37 * hash) + PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPrefix().hashCode();
}
if (hasSuffix()) {
hash = (37 * hash) + SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getSuffix().hashCode();
}
if (hasContains()) {
hash = (37 * hash) + CONTAINS_FIELD_NUMBER;
hash = (53 * hash) + getContains().hashCode();
}
if (hasNotContains()) {
hash = (37 * hash) + NOT_CONTAINS_FIELD_NUMBER;
hash = (53 * hash) + getNotContains().hashCode();
}
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 (hasStrict()) {
hash = (37 * hash) + STRICT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStrict());
}
if (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
switch (wellKnownCase_) {
case 12:
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEmail());
break;
case 13:
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHostname());
break;
case 14:
hash = (37 * hash) + IP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIp());
break;
case 15:
hash = (37 * hash) + IPV4_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIpv4());
break;
case 16:
hash = (37 * hash) + IPV6_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIpv6());
break;
case 17:
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUri());
break;
case 18:
hash = (37 * hash) + URI_REF_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUriRef());
break;
case 21:
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAddress());
break;
case 22:
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUuid());
break;
case 24:
hash = (37 * hash) + WELL_KNOWN_REGEX_FIELD_NUMBER;
hash = (53 * hash) + getWellKnownRegex().getNumber();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.StringRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.StringRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* StringRules describe the constraints applied to `string` values
*
*
* Protobuf type {@code validate.StringRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.StringRules)
io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_StringRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_StringRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.StringRules.class, io.envoyproxy.pgv.validate.Validate.StringRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.StringRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = "";
len_ = 0L;
minLen_ = 0L;
maxLen_ = 0L;
lenBytes_ = 0L;
minBytes_ = 0L;
maxBytes_ = 0L;
pattern_ = "";
prefix_ = "";
suffix_ = "";
contains_ = "";
notContains_ = "";
in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
strict_ = true;
ignoreEmpty_ = false;
wellKnownCase_ = 0;
wellKnown_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_StringRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.StringRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.StringRules build() {
io.envoyproxy.pgv.validate.Validate.StringRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.StringRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.StringRules result = new io.envoyproxy.pgv.validate.Validate.StringRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.StringRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.len_ = len_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.minLen_ = minLen_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxLen_ = maxLen_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lenBytes_ = lenBytes_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.minBytes_ = minBytes_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.maxBytes_ = maxBytes_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.pattern_ = pattern_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.prefix_ = prefix_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.suffix_ = suffix_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.contains_ = contains_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.notContains_ = notContains_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
in_.makeImmutable();
result.in_ = in_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
notIn_.makeImmutable();
result.notIn_ = notIn_;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.strict_ = strict_;
to_bitField0_ |= 0x00400000;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00800000;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.pgv.validate.Validate.StringRules result) {
result.wellKnownCase_ = wellKnownCase_;
result.wellKnown_ = this.wellKnown_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.StringRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.StringRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.StringRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance()) return this;
if (other.hasConst()) {
const_ = other.const_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLen()) {
setLen(other.getLen());
}
if (other.hasMinLen()) {
setMinLen(other.getMinLen());
}
if (other.hasMaxLen()) {
setMaxLen(other.getMaxLen());
}
if (other.hasLenBytes()) {
setLenBytes(other.getLenBytes());
}
if (other.hasMinBytes()) {
setMinBytes(other.getMinBytes());
}
if (other.hasMaxBytes()) {
setMaxBytes(other.getMaxBytes());
}
if (other.hasPattern()) {
pattern_ = other.pattern_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasPrefix()) {
prefix_ = other.prefix_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasSuffix()) {
suffix_ = other.suffix_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasContains()) {
contains_ = other.contains_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.hasNotContains()) {
notContains_ = other.notContains_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ |= 0x00001000;
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ |= 0x00002000;
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasStrict()) {
setStrict(other.getStrict());
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
switch (other.getWellKnownCase()) {
case EMAIL: {
setEmail(other.getEmail());
break;
}
case HOSTNAME: {
setHostname(other.getHostname());
break;
}
case IP: {
setIp(other.getIp());
break;
}
case IPV4: {
setIpv4(other.getIpv4());
break;
}
case IPV6: {
setIpv6(other.getIpv6());
break;
}
case URI: {
setUri(other.getUri());
break;
}
case URI_REF: {
setUriRef(other.getUriRef());
break;
}
case ADDRESS: {
setAddress(other.getAddress());
break;
}
case UUID: {
setUuid(other.getUuid());
break;
}
case WELL_KNOWN_REGEX: {
setWellKnownRegex(other.getWellKnownRegex());
break;
}
case WELLKNOWN_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 10: {
const_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
minLen_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 16
case 24: {
maxLen_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 24
case 32: {
minBytes_ = input.readUInt64();
bitField0_ |= 0x00000020;
break;
} // case 32
case 40: {
maxBytes_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 40
case 50: {
pattern_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 50
case 58: {
prefix_ = input.readBytes();
bitField0_ |= 0x00000100;
break;
} // case 58
case 66: {
suffix_ = input.readBytes();
bitField0_ |= 0x00000200;
break;
} // case 66
case 74: {
contains_ = input.readBytes();
bitField0_ |= 0x00000400;
break;
} // case 74
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureInIsMutable();
in_.add(bs);
break;
} // case 82
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureNotInIsMutable();
notIn_.add(bs);
break;
} // case 90
case 96: {
wellKnown_ = input.readBool();
wellKnownCase_ = 12;
break;
} // case 96
case 104: {
wellKnown_ = input.readBool();
wellKnownCase_ = 13;
break;
} // case 104
case 112: {
wellKnown_ = input.readBool();
wellKnownCase_ = 14;
break;
} // case 112
case 120: {
wellKnown_ = input.readBool();
wellKnownCase_ = 15;
break;
} // case 120
case 128: {
wellKnown_ = input.readBool();
wellKnownCase_ = 16;
break;
} // case 128
case 136: {
wellKnown_ = input.readBool();
wellKnownCase_ = 17;
break;
} // case 136
case 144: {
wellKnown_ = input.readBool();
wellKnownCase_ = 18;
break;
} // case 144
case 152: {
len_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 152
case 160: {
lenBytes_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 160
case 168: {
wellKnown_ = input.readBool();
wellKnownCase_ = 21;
break;
} // case 168
case 176: {
wellKnown_ = input.readBool();
wellKnownCase_ = 22;
break;
} // case 176
case 186: {
notContains_ = input.readBytes();
bitField0_ |= 0x00000800;
break;
} // case 186
case 192: {
int rawValue = input.readEnum();
io.envoyproxy.pgv.validate.Validate.KnownRegex value =
io.envoyproxy.pgv.validate.Validate.KnownRegex.forNumber(rawValue);
if (value == null) {
mergeUnknownVarintField(24, rawValue);
} else {
wellKnownCase_ = 24;
wellKnown_ = rawValue;
}
break;
} // case 192
case 200: {
strict_ = input.readBool();
bitField0_ |= 0x01000000;
break;
} // case 200
case 208: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x02000000;
break;
} // case 208
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 wellKnownCase_ = 0;
private java.lang.Object wellKnown_;
public WellKnownCase
getWellKnownCase() {
return WellKnownCase.forNumber(
wellKnownCase_);
}
public Builder clearWellKnown() {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object const_ = "";
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return Whether the const field is set.
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @param value The bytes for const to set.
* @return This builder for chaining.
*/
public Builder setConstBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long len_ ;
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return Whether the len field is set.
*/
@java.lang.Override
public boolean hasLen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return The len.
*/
@java.lang.Override
public long getLen() {
return len_;
}
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @param value The len to set.
* @return This builder for chaining.
*/
public Builder setLen(long value) {
len_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 len = 19;
* @return This builder for chaining.
*/
public Builder clearLen() {
bitField0_ = (bitField0_ & ~0x00000002);
len_ = 0L;
onChanged();
return this;
}
private long minLen_ ;
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return Whether the minLen field is set.
*/
@java.lang.Override
public boolean hasMinLen() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return The minLen.
*/
@java.lang.Override
public long getMinLen() {
return minLen_;
}
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @param value The minLen to set.
* @return This builder for chaining.
*/
public Builder setMinLen(long value) {
minLen_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 min_len = 2;
* @return This builder for chaining.
*/
public Builder clearMinLen() {
bitField0_ = (bitField0_ & ~0x00000004);
minLen_ = 0L;
onChanged();
return this;
}
private long maxLen_ ;
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return Whether the maxLen field is set.
*/
@java.lang.Override
public boolean hasMaxLen() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return The maxLen.
*/
@java.lang.Override
public long getMaxLen() {
return maxLen_;
}
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @param value The maxLen to set.
* @return This builder for chaining.
*/
public Builder setMaxLen(long value) {
maxLen_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*
*
* optional uint64 max_len = 3;
* @return This builder for chaining.
*/
public Builder clearMaxLen() {
bitField0_ = (bitField0_ & ~0x00000008);
maxLen_ = 0L;
onChanged();
return this;
}
private long lenBytes_ ;
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return Whether the lenBytes field is set.
*/
@java.lang.Override
public boolean hasLenBytes() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return The lenBytes.
*/
@java.lang.Override
public long getLenBytes() {
return lenBytes_;
}
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @param value The lenBytes to set.
* @return This builder for chaining.
*/
public Builder setLenBytes(long value) {
lenBytes_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* LenBytes specifies that this field must be the specified number of bytes
*
*
* optional uint64 len_bytes = 20;
* @return This builder for chaining.
*/
public Builder clearLenBytes() {
bitField0_ = (bitField0_ & ~0x00000010);
lenBytes_ = 0L;
onChanged();
return this;
}
private long minBytes_ ;
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return Whether the minBytes field is set.
*/
@java.lang.Override
public boolean hasMinBytes() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return The minBytes.
*/
@java.lang.Override
public long getMinBytes() {
return minBytes_;
}
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @param value The minBytes to set.
* @return This builder for chaining.
*/
public Builder setMinBytes(long value) {
minBytes_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_bytes = 4;
* @return This builder for chaining.
*/
public Builder clearMinBytes() {
bitField0_ = (bitField0_ & ~0x00000020);
minBytes_ = 0L;
onChanged();
return this;
}
private long maxBytes_ ;
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @return Whether the maxBytes field is set.
*/
@java.lang.Override
public boolean hasMaxBytes() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @return The maxBytes.
*/
@java.lang.Override
public long getMaxBytes() {
return maxBytes_;
}
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_bytes = 5;
* @param value The maxBytes to set.
* @return This builder for chaining.
*/
public Builder setMaxBytes(long value) {
maxBytes_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return Whether the pattern field is set.
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return The bytes for pattern.
*/
public com.google.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @param value The pattern to set.
* @return This builder for chaining.
*/
public Builder setPattern(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pattern_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @param value The bytes for pattern to set.
* @return This builder for chaining.
*/
public Builder setPatternBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
pattern_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object prefix_ = "";
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return Whether the prefix field is set.
*/
public boolean hasPrefix() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @param value The bytes for notContains to set.
* @return This builder for chaining.
*/
public Builder setNotContainsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
notContains_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureInIsMutable() {
if (!in_.isModifiable()) {
in_ = new com.google.protobuf.LazyStringArrayList(in_);
}
bitField0_ |= 0x00001000;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return A list containing the in.
*/
public com.google.protobuf.ProtocolStringList
getInList() {
in_.makeImmutable();
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public java.lang.String getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param index The index of the value to return.
* @return The bytes of the in at the given index.
*/
public com.google.protobuf.ByteString
getInBytes(int index) {
return in_.getByteString(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @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, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.set(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @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_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);;
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated string in = 10;
* @param value The bytes of the in to add.
* @return This builder for chaining.
*/
public Builder addInBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNotInIsMutable() {
if (!notIn_.isModifiable()) {
notIn_ = new com.google.protobuf.LazyStringArrayList(notIn_);
}
bitField0_ |= 0x00002000;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @return A list containing the notIn.
*/
public com.google.protobuf.ProtocolStringList
getNotInList() {
notIn_.makeImmutable();
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public java.lang.String getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param index The index of the value to return.
* @return The bytes of the notIn at the given index.
*/
public com.google.protobuf.ByteString
getNotInBytes(int index) {
return notIn_.getByteString(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @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, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.set(index, value);
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.add(value);
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @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_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated string not_in = 11;
* @param value The bytes of the notIn to add.
* @return This builder for chaining.
*/
public Builder addNotInBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.add(value);
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @return Whether the email field is set.
*/
public boolean hasEmail() {
return wellKnownCase_ == 12;
}
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @return The email.
*/
public boolean getEmail() {
if (wellKnownCase_ == 12) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @param value The email to set.
* @return This builder for chaining.
*/
public Builder setEmail(boolean value) {
wellKnownCase_ = 12;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*
*
* bool email = 12;
* @return This builder for chaining.
*/
public Builder clearEmail() {
if (wellKnownCase_ == 12) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @return Whether the hostname field is set.
*/
public boolean hasHostname() {
return wellKnownCase_ == 13;
}
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @return The hostname.
*/
public boolean getHostname() {
if (wellKnownCase_ == 13) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @param value The hostname to set.
* @return This builder for chaining.
*/
public Builder setHostname(boolean value) {
wellKnownCase_ = 13;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*
*
* bool hostname = 13;
* @return This builder for chaining.
*/
public Builder clearHostname() {
if (wellKnownCase_ == 13) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*
*
* bool ip = 14;
* @return Whether the ip field is set.
*/
public boolean hasIp() {
return wellKnownCase_ == 14;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*
*
* bool ip = 14;
* @return The ip.
*/
public boolean getIp() {
if (wellKnownCase_ == 14) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*
*
* bool ip = 14;
* @param value The ip to set.
* @return This builder for chaining.
*/
public Builder setIp(boolean value) {
wellKnownCase_ = 14;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*
*
* bool ip = 14;
* @return This builder for chaining.
*/
public Builder clearIp() {
if (wellKnownCase_ == 14) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return Whether the ipv4 field is set.
*/
public boolean hasIpv4() {
return wellKnownCase_ == 15;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return The ipv4.
*/
public boolean getIpv4() {
if (wellKnownCase_ == 15) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @param value The ipv4 to set.
* @return This builder for chaining.
*/
public Builder setIpv4(boolean value) {
wellKnownCase_ = 15;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return This builder for chaining.
*/
public Builder clearIpv4() {
if (wellKnownCase_ == 15) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*
*
* bool ipv6 = 16;
* @return Whether the ipv6 field is set.
*/
public boolean hasIpv6() {
return wellKnownCase_ == 16;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*
*
* bool ipv6 = 16;
* @return The ipv6.
*/
public boolean getIpv6() {
if (wellKnownCase_ == 16) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*
*
* bool ipv6 = 16;
* @param value The ipv6 to set.
* @return This builder for chaining.
*/
public Builder setIpv6(boolean value) {
wellKnownCase_ = 16;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*
*
* bool ipv6 = 16;
* @return This builder for chaining.
*/
public Builder clearIpv6() {
if (wellKnownCase_ == 16) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @return Whether the uri field is set.
*/
public boolean hasUri() {
return wellKnownCase_ == 17;
}
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @return The uri.
*/
public boolean getUri() {
if (wellKnownCase_ == 17) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(boolean value) {
wellKnownCase_ = 17;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @return This builder for chaining.
*/
public Builder clearUri() {
if (wellKnownCase_ == 17) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*
*
* bool uri_ref = 18;
* @return Whether the uriRef field is set.
*/
public boolean hasUriRef() {
return wellKnownCase_ == 18;
}
/**
*
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*
*
* bool uri_ref = 18;
* @return The uriRef.
*/
public boolean getUriRef() {
if (wellKnownCase_ == 18) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*
*
* bool uri_ref = 18;
* @param value The uriRef to set.
* @return This builder for chaining.
*/
public Builder setUriRef(boolean value) {
wellKnownCase_ = 18;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*
*
* bool uri_ref = 18;
* @return This builder for chaining.
*/
public Builder clearUriRef() {
if (wellKnownCase_ == 18) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @return Whether the address field is set.
*/
public boolean hasAddress() {
return wellKnownCase_ == 21;
}
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @return The address.
*/
public boolean getAddress() {
if (wellKnownCase_ == 21) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(boolean value) {
wellKnownCase_ = 21;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*
*
* bool address = 21;
* @return This builder for chaining.
*/
public Builder clearAddress() {
if (wellKnownCase_ == 21) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @return Whether the uuid field is set.
*/
public boolean hasUuid() {
return wellKnownCase_ == 22;
}
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @return The uuid.
*/
public boolean getUuid() {
if (wellKnownCase_ == 22) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(boolean value) {
wellKnownCase_ = 22;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @return This builder for chaining.
*/
public Builder clearUuid() {
if (wellKnownCase_ == 22) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return Whether the wellKnownRegex field is set.
*/
@java.lang.Override
public boolean hasWellKnownRegex() {
return wellKnownCase_ == 24;
}
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return The wellKnownRegex.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.KnownRegex getWellKnownRegex() {
if (wellKnownCase_ == 24) {
io.envoyproxy.pgv.validate.Validate.KnownRegex result = io.envoyproxy.pgv.validate.Validate.KnownRegex.forNumber(
(java.lang.Integer) wellKnown_);
return result == null ? io.envoyproxy.pgv.validate.Validate.KnownRegex.UNKNOWN : result;
}
return io.envoyproxy.pgv.validate.Validate.KnownRegex.UNKNOWN;
}
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @param value The wellKnownRegex to set.
* @return This builder for chaining.
*/
public Builder setWellKnownRegex(io.envoyproxy.pgv.validate.Validate.KnownRegex value) {
if (value == null) {
throw new NullPointerException();
}
wellKnownCase_ = 24;
wellKnown_ = value.getNumber();
onChanged();
return this;
}
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return This builder for chaining.
*/
public Builder clearWellKnownRegex() {
if (wellKnownCase_ == 24) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
private boolean strict_ = true;
/**
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
*
* optional bool strict = 25 [default = true];
* @return Whether the strict field is set.
*/
@java.lang.Override
public boolean hasStrict() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
*
* optional bool strict = 25 [default = true];
* @param value The strict to set.
* @return This builder for chaining.
*/
public Builder setStrict(boolean value) {
strict_ = value;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return Whether the len field is set.
*/
boolean hasLen();
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return The len.
*/
long getLen();
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return Whether the minLen field is set.
*/
boolean hasMinLen();
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return The minLen.
*/
long getMinLen();
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @return Whether the maxLen field is set.
*/
boolean hasMaxLen();
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @return The maxLen.
*/
long getMaxLen();
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return Whether the pattern field is set.
*/
boolean hasPattern();
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return The bytes for pattern.
*/
com.google.protobuf.ByteString
getPatternBytes();
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
*
* optional bytes prefix = 5;
* @return Whether the prefix field is set.
*/
boolean hasPrefix();
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @param index The index of the element to return.
* @return The in at the given index.
*/
com.google.protobuf.ByteString getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
com.google.protobuf.ByteString getNotIn(int index);
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return Whether the ip field is set.
*/
boolean hasIp();
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return The ip.
*/
boolean getIp();
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @return Whether the ipv4 field is set.
*/
boolean hasIpv4();
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
* BytesRules describe the constraints applied to `bytes` values
*
*
* Protobuf type {@code validate.BytesRules}
*/
public static final class BytesRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.BytesRules)
BytesRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use BytesRules.newBuilder() to construct.
private BytesRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BytesRules() {
const_ = com.google.protobuf.ByteString.EMPTY;
pattern_ = "";
prefix_ = com.google.protobuf.ByteString.EMPTY;
suffix_ = com.google.protobuf.ByteString.EMPTY;
contains_ = com.google.protobuf.ByteString.EMPTY;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BytesRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BytesRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BytesRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.BytesRules.class, io.envoyproxy.pgv.validate.Validate.BytesRules.Builder.class);
}
private int bitField0_;
private int wellKnownCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object wellKnown_;
public enum WellKnownCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
IP(10),
IPV4(11),
IPV6(12),
WELLKNOWN_NOT_SET(0);
private final int value;
private WellKnownCase(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 WellKnownCase valueOf(int value) {
return forNumber(value);
}
public static WellKnownCase forNumber(int value) {
switch (value) {
case 10: return IP;
case 11: return IPV4;
case 12: return IPV6;
case 0: return WELLKNOWN_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public WellKnownCase
getWellKnownCase() {
return WellKnownCase.forNumber(
wellKnownCase_);
}
public static final int CONST_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString const_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @return The const.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConst() {
return const_;
}
public static final int LEN_FIELD_NUMBER = 13;
private long len_ = 0L;
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return Whether the len field is set.
*/
@java.lang.Override
public boolean hasLen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return The len.
*/
@java.lang.Override
public long getLen() {
return len_;
}
public static final int MIN_LEN_FIELD_NUMBER = 2;
private long minLen_ = 0L;
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return Whether the minLen field is set.
*/
@java.lang.Override
public boolean hasMinLen() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return The minLen.
*/
@java.lang.Override
public long getMinLen() {
return minLen_;
}
public static final int MAX_LEN_FIELD_NUMBER = 3;
private long maxLen_ = 0L;
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @return Whether the maxLen field is set.
*/
@java.lang.Override
public boolean hasMaxLen() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @return The maxLen.
*/
@java.lang.Override
public long getMaxLen() {
return maxLen_;
}
public static final int PATTERN_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object pattern_ = "";
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return Whether the pattern field is set.
*/
@java.lang.Override
public boolean hasPattern() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return The bytes for pattern.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PREFIX_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
*
* optional bytes prefix = 5;
* @return Whether the prefix field is set.
*/
@java.lang.Override
public boolean hasPrefix() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
*
* optional bytes prefix = 5;
* @return The prefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrefix() {
return prefix_;
}
public static final int SUFFIX_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString suffix_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*
*
* optional bytes suffix = 6;
* @return Whether the suffix field is set.
*/
@java.lang.Override
public boolean hasSuffix() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*
*
* optional bytes suffix = 6;
* @return The suffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSuffix() {
return suffix_;
}
public static final int CONTAINS_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString contains_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*
*
* optional bytes contains = 7;
* @return Whether the contains field is set.
*/
@java.lang.Override
public boolean hasContains() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*
*
* optional bytes contains = 7;
* @return The contains.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContains() {
return contains_;
}
public static final int IN_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public com.google.protobuf.ByteString getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public com.google.protobuf.ByteString getNotIn(int index) {
return notIn_.get(index);
}
public static final int IP_FIELD_NUMBER = 10;
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return Whether the ip field is set.
*/
@java.lang.Override
public boolean hasIp() {
return wellKnownCase_ == 10;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return The ip.
*/
@java.lang.Override
public boolean getIp() {
if (wellKnownCase_ == 10) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int IPV4_FIELD_NUMBER = 11;
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @return Whether the ipv4 field is set.
*/
@java.lang.Override
public boolean hasIpv4() {
return wellKnownCase_ == 11;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @return The ipv4.
*/
@java.lang.Override
public boolean getIpv4() {
if (wellKnownCase_ == 11) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int IPV6_FIELD_NUMBER = 12;
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return Whether the ipv6 field is set.
*/
@java.lang.Override
public boolean hasIpv6() {
return wellKnownCase_ == 12;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return The ipv6.
*/
@java.lang.Override
public boolean getIpv6() {
if (wellKnownCase_ == 12) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 14;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 14;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 14;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, const_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(2, minLen_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt64(3, maxLen_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pattern_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBytes(5, prefix_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBytes(6, suffix_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBytes(7, contains_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeBytes(8, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeBytes(9, notIn_.get(i));
}
if (wellKnownCase_ == 10) {
output.writeBool(
10, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 11) {
output.writeBool(
11, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 12) {
output.writeBool(
12, (boolean)((java.lang.Boolean) wellKnown_));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(13, len_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeBool(14, ignoreEmpty_);
}
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
.computeBytesSize(1, const_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, minLen_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, maxLen_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pattern_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, prefix_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, suffix_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, contains_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(in_.get(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(notIn_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
if (wellKnownCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
10, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
11, (boolean)((java.lang.Boolean) wellKnown_));
}
if (wellKnownCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
12, (boolean)((java.lang.Boolean) wellKnown_));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, len_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.BytesRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.BytesRules other = (io.envoyproxy.pgv.validate.Validate.BytesRules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (!getConst()
.equals(other.getConst())) return false;
}
if (hasLen() != other.hasLen()) return false;
if (hasLen()) {
if (getLen()
!= other.getLen()) return false;
}
if (hasMinLen() != other.hasMinLen()) return false;
if (hasMinLen()) {
if (getMinLen()
!= other.getMinLen()) return false;
}
if (hasMaxLen() != other.hasMaxLen()) return false;
if (hasMaxLen()) {
if (getMaxLen()
!= other.getMaxLen()) return false;
}
if (hasPattern() != other.hasPattern()) return false;
if (hasPattern()) {
if (!getPattern()
.equals(other.getPattern())) return false;
}
if (hasPrefix() != other.hasPrefix()) return false;
if (hasPrefix()) {
if (!getPrefix()
.equals(other.getPrefix())) return false;
}
if (hasSuffix() != other.hasSuffix()) return false;
if (hasSuffix()) {
if (!getSuffix()
.equals(other.getSuffix())) return false;
}
if (hasContains() != other.hasContains()) return false;
if (hasContains()) {
if (!getContains()
.equals(other.getContains())) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getWellKnownCase().equals(other.getWellKnownCase())) return false;
switch (wellKnownCase_) {
case 10:
if (getIp()
!= other.getIp()) return false;
break;
case 11:
if (getIpv4()
!= other.getIpv4()) return false;
break;
case 12:
if (getIpv6()
!= other.getIpv6()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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().hashCode();
}
if (hasLen()) {
hash = (37 * hash) + LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLen());
}
if (hasMinLen()) {
hash = (37 * hash) + MIN_LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinLen());
}
if (hasMaxLen()) {
hash = (37 * hash) + MAX_LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxLen());
}
if (hasPattern()) {
hash = (37 * hash) + PATTERN_FIELD_NUMBER;
hash = (53 * hash) + getPattern().hashCode();
}
if (hasPrefix()) {
hash = (37 * hash) + PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPrefix().hashCode();
}
if (hasSuffix()) {
hash = (37 * hash) + SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getSuffix().hashCode();
}
if (hasContains()) {
hash = (37 * hash) + CONTAINS_FIELD_NUMBER;
hash = (53 * hash) + getContains().hashCode();
}
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 (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
switch (wellKnownCase_) {
case 10:
hash = (37 * hash) + IP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIp());
break;
case 11:
hash = (37 * hash) + IPV4_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIpv4());
break;
case 12:
hash = (37 * hash) + IPV6_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIpv6());
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.BytesRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* BytesRules describe the constraints applied to `bytes` values
*
*
* Protobuf type {@code validate.BytesRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.BytesRules)
io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BytesRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BytesRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.BytesRules.class, io.envoyproxy.pgv.validate.Validate.BytesRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.BytesRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = com.google.protobuf.ByteString.EMPTY;
len_ = 0L;
minLen_ = 0L;
maxLen_ = 0L;
pattern_ = "";
prefix_ = com.google.protobuf.ByteString.EMPTY;
suffix_ = com.google.protobuf.ByteString.EMPTY;
contains_ = com.google.protobuf.ByteString.EMPTY;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
ignoreEmpty_ = false;
wellKnownCase_ = 0;
wellKnown_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BytesRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BytesRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BytesRules build() {
io.envoyproxy.pgv.validate.Validate.BytesRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BytesRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.BytesRules result = new io.envoyproxy.pgv.validate.Validate.BytesRules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.BytesRules result) {
if (((bitField0_ & 0x00000100) != 0)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.in_ = in_;
if (((bitField0_ & 0x00000200) != 0)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.BytesRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.len_ = len_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.minLen_ = minLen_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxLen_ = maxLen_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.pattern_ = pattern_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.prefix_ = prefix_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.suffix_ = suffix_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.contains_ = contains_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000800;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.pgv.validate.Validate.BytesRules result) {
result.wellKnownCase_ = wellKnownCase_;
result.wellKnown_ = this.wellKnown_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.BytesRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.BytesRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.BytesRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasLen()) {
setLen(other.getLen());
}
if (other.hasMinLen()) {
setMinLen(other.getMinLen());
}
if (other.hasMaxLen()) {
setMaxLen(other.getMaxLen());
}
if (other.hasPattern()) {
pattern_ = other.pattern_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasPrefix()) {
setPrefix(other.getPrefix());
}
if (other.hasSuffix()) {
setSuffix(other.getSuffix());
}
if (other.hasContains()) {
setContains(other.getContains());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
switch (other.getWellKnownCase()) {
case IP: {
setIp(other.getIp());
break;
}
case IPV4: {
setIpv4(other.getIpv4());
break;
}
case IPV6: {
setIpv6(other.getIpv6());
break;
}
case WELLKNOWN_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 10: {
const_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
minLen_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 16
case 24: {
maxLen_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 24
case 34: {
pattern_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
prefix_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 42
case 50: {
suffix_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 50
case 58: {
contains_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 58
case 66: {
com.google.protobuf.ByteString v = input.readBytes();
ensureInIsMutable();
in_.add(v);
break;
} // case 66
case 74: {
com.google.protobuf.ByteString v = input.readBytes();
ensureNotInIsMutable();
notIn_.add(v);
break;
} // case 74
case 80: {
wellKnown_ = input.readBool();
wellKnownCase_ = 10;
break;
} // case 80
case 88: {
wellKnown_ = input.readBool();
wellKnownCase_ = 11;
break;
} // case 88
case 96: {
wellKnown_ = input.readBool();
wellKnownCase_ = 12;
break;
} // case 96
case 104: {
len_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 104
case 112: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 112
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 wellKnownCase_ = 0;
private java.lang.Object wellKnown_;
public WellKnownCase
getWellKnownCase() {
return WellKnownCase.forNumber(
wellKnownCase_);
}
public Builder clearWellKnown() {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString const_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = getDefaultInstance().getConst();
onChanged();
return this;
}
private long len_ ;
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return Whether the len field is set.
*/
@java.lang.Override
public boolean hasLen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return The len.
*/
@java.lang.Override
public long getLen() {
return len_;
}
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @param value The len to set.
* @return This builder for chaining.
*/
public Builder setLen(long value) {
len_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Len specifies that this field must be the specified number of bytes
*
*
* optional uint64 len = 13;
* @return This builder for chaining.
*/
public Builder clearLen() {
bitField0_ = (bitField0_ & ~0x00000002);
len_ = 0L;
onChanged();
return this;
}
private long minLen_ ;
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return Whether the minLen field is set.
*/
@java.lang.Override
public boolean hasMinLen() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return The minLen.
*/
@java.lang.Override
public long getMinLen() {
return minLen_;
}
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @param value The minLen to set.
* @return This builder for chaining.
*/
public Builder setMinLen(long value) {
minLen_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*
*
* optional uint64 min_len = 2;
* @return This builder for chaining.
*/
public Builder clearMinLen() {
bitField0_ = (bitField0_ & ~0x00000004);
minLen_ = 0L;
onChanged();
return this;
}
private long maxLen_ ;
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @return Whether the maxLen field is set.
*/
@java.lang.Override
public boolean hasMaxLen() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @return The maxLen.
*/
@java.lang.Override
public long getMaxLen() {
return maxLen_;
}
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
*
* optional uint64 max_len = 3;
* @param value The maxLen to set.
* @return This builder for chaining.
*/
public Builder setMaxLen(long value) {
maxLen_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return Whether the pattern field is set.
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return The bytes for pattern.
*/
public com.google.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @param value The pattern to set.
* @return This builder for chaining.
*/
public Builder setPattern(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pattern_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @param value The bytes for pattern to set.
* @return This builder for chaining.
*/
public Builder setPatternBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
pattern_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
*
* optional bytes prefix = 5;
* @return Whether the prefix field is set.
*/
@java.lang.Override
public boolean hasPrefix() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000100) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public com.google.protobuf.ByteString getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @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, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated bytes in = 8;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000200;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000200) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public com.google.protobuf.ByteString getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @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, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated bytes not_in = 9;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return Whether the ip field is set.
*/
public boolean hasIp() {
return wellKnownCase_ == 10;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return The ip.
*/
public boolean getIp() {
if (wellKnownCase_ == 10) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @param value The ip to set.
* @return This builder for chaining.
*/
public Builder setIp(boolean value) {
wellKnownCase_ = 10;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*
*
* bool ip = 10;
* @return This builder for chaining.
*/
public Builder clearIp() {
if (wellKnownCase_ == 10) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @return Whether the ipv4 field is set.
*/
public boolean hasIpv4() {
return wellKnownCase_ == 11;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @return The ipv4.
*/
public boolean getIpv4() {
if (wellKnownCase_ == 11) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @param value The ipv4 to set.
* @return This builder for chaining.
*/
public Builder setIpv4(boolean value) {
wellKnownCase_ = 11;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*
*
* bool ipv4 = 11;
* @return This builder for chaining.
*/
public Builder clearIpv4() {
if (wellKnownCase_ == 11) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return Whether the ipv6 field is set.
*/
public boolean hasIpv6() {
return wellKnownCase_ == 12;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return The ipv6.
*/
public boolean getIpv6() {
if (wellKnownCase_ == 12) {
return (java.lang.Boolean) wellKnown_;
}
return false;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @param value The ipv6 to set.
* @return This builder for chaining.
*/
public Builder setIpv6(boolean value) {
wellKnownCase_ = 12;
wellKnown_ = value;
onChanged();
return this;
}
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return This builder for chaining.
*/
public Builder clearIpv6() {
if (wellKnownCase_ == 12) {
wellKnownCase_ = 0;
wellKnown_ = null;
onChanged();
}
return this;
}
private boolean ignoreEmpty_ ;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 14;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @return A list containing the in.
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @param index The index of the element to return.
* @return The in at the given index.
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return A list containing the notIn.
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
int getNotIn(int index);
}
/**
*
* EnumRules describe the constraints applied to enum values
*
*
* Protobuf type {@code validate.EnumRules}
*/
public static final class EnumRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.EnumRules)
EnumRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnumRules.newBuilder() to construct.
private EnumRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnumRules() {
in_ = emptyIntList();
notIn_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnumRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_EnumRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_EnumRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.EnumRules.class, io.envoyproxy.pgv.validate.Validate.EnumRules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private int const_ = 0;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
public static final int DEFINED_ONLY_FIELD_NUMBER = 2;
private boolean definedOnly_ = false;
/**
*
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*
*
* optional bool defined_only = 2;
* @return Whether the definedOnly field is set.
*/
@java.lang.Override
public boolean hasDefinedOnly() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*
*
* optional bool defined_only = 2;
* @return The definedOnly.
*/
@java.lang.Override
public boolean getDefinedOnly() {
return definedOnly_;
}
public static final int IN_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @return A list containing the in.
*/
@java.lang.Override
public java.util.List
getInList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @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 = 4;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return A list containing the notIn.
*/
@java.lang.Override
public java.util.List
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @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);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, definedOnly_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeInt32(3, in_.getInt(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeInt32(4, notIn_.getInt(i));
}
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
.computeInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, definedOnly_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(in_.getInt(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(notIn_.getInt(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
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 io.envoyproxy.pgv.validate.Validate.EnumRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.EnumRules other = (io.envoyproxy.pgv.validate.Validate.EnumRules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) return false;
}
if (hasDefinedOnly() != other.hasDefinedOnly()) return false;
if (hasDefinedOnly()) {
if (getDefinedOnly()
!= other.getDefinedOnly()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasDefinedOnly()) {
hash = (37 * hash) + DEFINED_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDefinedOnly());
}
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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.EnumRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* EnumRules describe the constraints applied to enum values
*
*
* Protobuf type {@code validate.EnumRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.EnumRules)
io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_EnumRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_EnumRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.EnumRules.class, io.envoyproxy.pgv.validate.Validate.EnumRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.EnumRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = 0;
definedOnly_ = false;
in_ = emptyIntList();
notIn_ = emptyIntList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_EnumRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.EnumRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.EnumRules build() {
io.envoyproxy.pgv.validate.Validate.EnumRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.EnumRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.EnumRules result = new io.envoyproxy.pgv.validate.Validate.EnumRules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.EnumRules result) {
if (((bitField0_ & 0x00000004) != 0)) {
in_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.in_ = in_;
if (((bitField0_ & 0x00000008) != 0)) {
notIn_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.notIn_ = notIn_;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.EnumRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.definedOnly_ = definedOnly_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.EnumRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.EnumRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.EnumRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
if (other.hasDefinedOnly()) {
setDefinedOnly(other.getDefinedOnly());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
const_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
definedOnly_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
int v = input.readInt32();
ensureInIsMutable();
in_.addInt(v);
break;
} // case 24
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureInIsMutable();
while (input.getBytesUntilLimit() > 0) {
in_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 26
case 32: {
int v = input.readInt32();
ensureNotInIsMutable();
notIn_.addInt(v);
break;
} // case 32
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNotInIsMutable();
while (input.getBytesUntilLimit() > 0) {
notIn_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 34
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 bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return The const.
*/
@java.lang.Override
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(int value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @return A list containing the in.
*/
public java.util.List
getInList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(in_) : in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @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 specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @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);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.addInt(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @param values The in to add.
* @return This builder for chaining.
*/
public Builder addAllIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return A list containing the notIn.
*/
public java.util.List
getNotInList() {
return ((bitField0_ & 0x00000008) != 0) ?
java.util.Collections.unmodifiableList(notIn_) : notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @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);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @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);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.addInt(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @param values The notIn to add.
* @return This builder for chaining.
*/
public Builder addAllNotIn(
java.lang.Iterable extends java.lang.Integer> values) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.EnumRules)
}
// @@protoc_insertion_point(class_scope:validate.EnumRules)
private static final io.envoyproxy.pgv.validate.Validate.EnumRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.EnumRules();
}
public static io.envoyproxy.pgv.validate.Validate.EnumRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnumRules 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 io.envoyproxy.pgv.validate.Validate.EnumRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MessageRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.MessageRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @return Whether the skip field is set.
*/
boolean hasSkip();
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return This builder for chaining.
*/
public Builder clearRequired() {
bitField0_ = (bitField0_ & ~0x00000002);
required_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.MessageRules)
}
// @@protoc_insertion_point(class_scope:validate.MessageRules)
private static final io.envoyproxy.pgv.validate.Validate.MessageRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.MessageRules();
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MessageRules 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 io.envoyproxy.pgv.validate.Validate.MessageRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RepeatedRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.RepeatedRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return Whether the minItems field is set.
*/
boolean hasMinItems();
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return The minItems.
*/
long getMinItems();
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @return Whether the maxItems field is set.
*/
boolean hasMaxItems();
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @return The maxItems.
*/
long getMaxItems();
/**
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @return Whether the unique field is set.
*/
boolean hasUnique();
/**
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
*
* optional .validate.FieldRules items = 4;
* @return Whether the items field is set.
*/
boolean hasItems();
/**
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* RepeatedRules describe the constraints applied to `repeated` values
*
*
* Protobuf type {@code validate.RepeatedRules}
*/
public static final class RepeatedRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.RepeatedRules)
RepeatedRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use RepeatedRules.newBuilder() to construct.
private RepeatedRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RepeatedRules() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RepeatedRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_RepeatedRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_RepeatedRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.RepeatedRules.class, io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder.class);
}
private int bitField0_;
public static final int MIN_ITEMS_FIELD_NUMBER = 1;
private long minItems_ = 0L;
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return Whether the minItems field is set.
*/
@java.lang.Override
public boolean hasMinItems() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return The minItems.
*/
@java.lang.Override
public long getMinItems() {
return minItems_;
}
public static final int MAX_ITEMS_FIELD_NUMBER = 2;
private long maxItems_ = 0L;
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @return Whether the maxItems field is set.
*/
@java.lang.Override
public boolean hasMaxItems() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @return The maxItems.
*/
@java.lang.Override
public long getMaxItems() {
return maxItems_;
}
public static final int UNIQUE_FIELD_NUMBER = 3;
private boolean unique_ = false;
/**
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @return Whether the unique field is set.
*/
@java.lang.Override
public boolean hasUnique() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @return The unique.
*/
@java.lang.Override
public boolean getUnique() {
return unique_;
}
public static final int ITEMS_FIELD_NUMBER = 4;
private io.envoyproxy.pgv.validate.Validate.FieldRules items_;
/**
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
*
* optional .validate.FieldRules items = 4;
* @return Whether the items field is set.
*/
@java.lang.Override
public boolean hasItems() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
*
* optional .validate.FieldRules items = 4;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getItemsOrBuilder() {
return items_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : items_;
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 5;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 5;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 5;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt64(1, minItems_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(2, maxItems_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, unique_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getItems());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, ignoreEmpty_);
}
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
.computeUInt64Size(1, minItems_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, maxItems_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, unique_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getItems());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.RepeatedRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.RepeatedRules other = (io.envoyproxy.pgv.validate.Validate.RepeatedRules) obj;
if (hasMinItems() != other.hasMinItems()) return false;
if (hasMinItems()) {
if (getMinItems()
!= other.getMinItems()) return false;
}
if (hasMaxItems() != other.hasMaxItems()) return false;
if (hasMaxItems()) {
if (getMaxItems()
!= other.getMaxItems()) return false;
}
if (hasUnique() != other.hasUnique()) return false;
if (hasUnique()) {
if (getUnique()
!= other.getUnique()) return false;
}
if (hasItems() != other.hasItems()) return false;
if (hasItems()) {
if (!getItems()
.equals(other.getItems())) return false;
}
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMinItems()) {
hash = (37 * hash) + MIN_ITEMS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinItems());
}
if (hasMaxItems()) {
hash = (37 * hash) + MAX_ITEMS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxItems());
}
if (hasUnique()) {
hash = (37 * hash) + UNIQUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUnique());
}
if (hasItems()) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItems().hashCode();
}
if (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.RepeatedRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* RepeatedRules describe the constraints applied to `repeated` values
*
*
* Protobuf type {@code validate.RepeatedRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.RepeatedRules)
io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_RepeatedRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_RepeatedRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.RepeatedRules.class, io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.RepeatedRules.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
minItems_ = 0L;
maxItems_ = 0L;
unique_ = false;
items_ = null;
if (itemsBuilder_ != null) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
}
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_RepeatedRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.RepeatedRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.RepeatedRules build() {
io.envoyproxy.pgv.validate.Validate.RepeatedRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.RepeatedRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.RepeatedRules result = new io.envoyproxy.pgv.validate.Validate.RepeatedRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.RepeatedRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.minItems_ = minItems_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxItems_ = maxItems_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.unique_ = unique_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.items_ = itemsBuilder_ == null
? items_
: itemsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.RepeatedRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.RepeatedRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.RepeatedRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance()) return this;
if (other.hasMinItems()) {
setMinItems(other.getMinItems());
}
if (other.hasMaxItems()) {
setMaxItems(other.getMaxItems());
}
if (other.hasUnique()) {
setUnique(other.getUnique());
}
if (other.hasItems()) {
mergeItems(other.getItems());
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
minItems_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
maxItems_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
unique_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getItemsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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 bitField0_;
private long minItems_ ;
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return Whether the minItems field is set.
*/
@java.lang.Override
public boolean hasMinItems() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return The minItems.
*/
@java.lang.Override
public long getMinItems() {
return minItems_;
}
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @param value The minItems to set.
* @return This builder for chaining.
*/
public Builder setMinItems(long value) {
minItems_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* MinItems specifies that this field must have the specified number of
* items at a minimum
*
*
* optional uint64 min_items = 1;
* @return This builder for chaining.
*/
public Builder clearMinItems() {
bitField0_ = (bitField0_ & ~0x00000001);
minItems_ = 0L;
onChanged();
return this;
}
private long maxItems_ ;
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @return Whether the maxItems field is set.
*/
@java.lang.Override
public boolean hasMaxItems() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @return The maxItems.
*/
@java.lang.Override
public long getMaxItems() {
return maxItems_;
}
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
*
* optional uint64 max_items = 2;
* @param value The maxItems to set.
* @return This builder for chaining.
*/
public Builder setMaxItems(long value) {
maxItems_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @return Whether the unique field is set.
*/
@java.lang.Override
public boolean hasUnique() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @param value The unique to set.
* @return This builder for chaining.
*/
public Builder setUnique(boolean value) {
unique_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
*
* optional .validate.FieldRules items = 4;
* @return Whether the items field is set.
*/
public boolean hasItems() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
*
* optional .validate.FieldRules values = 5;
* @return Whether the values field is set.
*/
boolean hasValues();
/**
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* MapRules describe the constraints applied to `map` values
*
*
* Protobuf type {@code validate.MapRules}
*/
public static final class MapRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.MapRules)
MapRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use MapRules.newBuilder() to construct.
private MapRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MapRules() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MapRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MapRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MapRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.MapRules.class, io.envoyproxy.pgv.validate.Validate.MapRules.Builder.class);
}
private int bitField0_;
public static final int MIN_PAIRS_FIELD_NUMBER = 1;
private long minPairs_ = 0L;
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @return Whether the minPairs field is set.
*/
@java.lang.Override
public boolean hasMinPairs() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @return The minPairs.
*/
@java.lang.Override
public long getMinPairs() {
return minPairs_;
}
public static final int MAX_PAIRS_FIELD_NUMBER = 2;
private long maxPairs_ = 0L;
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
*
* optional uint64 max_pairs = 2;
* @return Whether the maxPairs field is set.
*/
@java.lang.Override
public boolean hasMaxPairs() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
*
* optional uint64 max_pairs = 2;
* @return The maxPairs.
*/
@java.lang.Override
public long getMaxPairs() {
return maxPairs_;
}
public static final int NO_SPARSE_FIELD_NUMBER = 3;
private boolean noSparse_ = false;
/**
*
* NoSparse specifies values in this field cannot be unset. This only
* applies to map's with message value types.
*
*
* optional bool no_sparse = 3;
* @return Whether the noSparse field is set.
*/
@java.lang.Override
public boolean hasNoSparse() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* NoSparse specifies values in this field cannot be unset. This only
* applies to map's with message value types.
*
*
* optional bool no_sparse = 3;
* @return The noSparse.
*/
@java.lang.Override
public boolean getNoSparse() {
return noSparse_;
}
public static final int KEYS_FIELD_NUMBER = 4;
private io.envoyproxy.pgv.validate.Validate.FieldRules keys_;
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
* @return Whether the keys field is set.
*/
@java.lang.Override
public boolean hasKeys() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getKeysOrBuilder() {
return keys_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : keys_;
}
public static final int VALUES_FIELD_NUMBER = 5;
private io.envoyproxy.pgv.validate.Validate.FieldRules values_;
/**
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
*
* optional .validate.FieldRules values = 5;
* @return Whether the values field is set.
*/
@java.lang.Override
public boolean hasValues() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
*
* optional .validate.FieldRules values = 5;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getValuesOrBuilder() {
return values_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : values_;
}
public static final int IGNORE_EMPTY_FIELD_NUMBER = 6;
private boolean ignoreEmpty_ = false;
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 6;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 6;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return ignoreEmpty_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt64(1, minPairs_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(2, maxPairs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, noSparse_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getKeys());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getValues());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(6, ignoreEmpty_);
}
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
.computeUInt64Size(1, minPairs_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, maxPairs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, noSparse_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getKeys());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getValues());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, ignoreEmpty_);
}
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 io.envoyproxy.pgv.validate.Validate.MapRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.MapRules other = (io.envoyproxy.pgv.validate.Validate.MapRules) obj;
if (hasMinPairs() != other.hasMinPairs()) return false;
if (hasMinPairs()) {
if (getMinPairs()
!= other.getMinPairs()) return false;
}
if (hasMaxPairs() != other.hasMaxPairs()) return false;
if (hasMaxPairs()) {
if (getMaxPairs()
!= other.getMaxPairs()) return false;
}
if (hasNoSparse() != other.hasNoSparse()) return false;
if (hasNoSparse()) {
if (getNoSparse()
!= other.getNoSparse()) return false;
}
if (hasKeys() != other.hasKeys()) return false;
if (hasKeys()) {
if (!getKeys()
.equals(other.getKeys())) return false;
}
if (hasValues() != other.hasValues()) return false;
if (hasValues()) {
if (!getValues()
.equals(other.getValues())) return false;
}
if (hasIgnoreEmpty() != other.hasIgnoreEmpty()) return false;
if (hasIgnoreEmpty()) {
if (getIgnoreEmpty()
!= other.getIgnoreEmpty()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMinPairs()) {
hash = (37 * hash) + MIN_PAIRS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinPairs());
}
if (hasMaxPairs()) {
hash = (37 * hash) + MAX_PAIRS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxPairs());
}
if (hasNoSparse()) {
hash = (37 * hash) + NO_SPARSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoSparse());
}
if (hasKeys()) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeys().hashCode();
}
if (hasValues()) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValues().hashCode();
}
if (hasIgnoreEmpty()) {
hash = (37 * hash) + IGNORE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.MapRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.MapRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* MapRules describe the constraints applied to `map` values
*
*
* Protobuf type {@code validate.MapRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.MapRules)
io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MapRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MapRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.MapRules.class, io.envoyproxy.pgv.validate.Validate.MapRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.MapRules.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeysFieldBuilder();
getValuesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
minPairs_ = 0L;
maxPairs_ = 0L;
noSparse_ = false;
keys_ = null;
if (keysBuilder_ != null) {
keysBuilder_.dispose();
keysBuilder_ = null;
}
values_ = null;
if (valuesBuilder_ != null) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
}
ignoreEmpty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MapRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MapRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MapRules build() {
io.envoyproxy.pgv.validate.Validate.MapRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MapRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.MapRules result = new io.envoyproxy.pgv.validate.Validate.MapRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.MapRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.minPairs_ = minPairs_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxPairs_ = maxPairs_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.noSparse_ = noSparse_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.keys_ = keysBuilder_ == null
? keys_
: keysBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.values_ = valuesBuilder_ == null
? values_
: valuesBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.ignoreEmpty_ = ignoreEmpty_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.MapRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.MapRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.MapRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance()) return this;
if (other.hasMinPairs()) {
setMinPairs(other.getMinPairs());
}
if (other.hasMaxPairs()) {
setMaxPairs(other.getMaxPairs());
}
if (other.hasNoSparse()) {
setNoSparse(other.getNoSparse());
}
if (other.hasKeys()) {
mergeKeys(other.getKeys());
}
if (other.hasValues()) {
mergeValues(other.getValues());
}
if (other.hasIgnoreEmpty()) {
setIgnoreEmpty(other.getIgnoreEmpty());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
minPairs_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
maxPairs_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
noSparse_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getKeysFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getValuesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
ignoreEmpty_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
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 bitField0_;
private long minPairs_ ;
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @return Whether the minPairs field is set.
*/
@java.lang.Override
public boolean hasMinPairs() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @return The minPairs.
*/
@java.lang.Override
public long getMinPairs() {
return minPairs_;
}
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @param value The minPairs to set.
* @return This builder for chaining.
*/
public Builder setMinPairs(long value) {
minPairs_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @return This builder for chaining.
*/
public Builder clearMinPairs() {
bitField0_ = (bitField0_ & ~0x00000001);
minPairs_ = 0L;
onChanged();
return this;
}
private long maxPairs_ ;
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
*
* optional uint64 max_pairs = 2;
* @return Whether the maxPairs field is set.
*/
@java.lang.Override
public boolean hasMaxPairs() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
*
* optional uint64 max_pairs = 2;
* @return The maxPairs.
*/
@java.lang.Override
public long getMaxPairs() {
return maxPairs_;
}
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
*
* optional uint64 max_pairs = 2;
* @param value The maxPairs to set.
* @return This builder for chaining.
*/
public Builder setMaxPairs(long value) {
maxPairs_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
*
* optional .validate.FieldRules values = 5;
* @return Whether the values field is set.
*/
public boolean hasValues() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return A list containing the in.
*/
java.util.List
getInList();
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return The count of in.
*/
int getInCount();
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param index The index of the element to return.
* @return The in at the given index.
*/
java.lang.String getIn(int index);
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param index The index of the value to return.
* @return The bytes of the in at the given index.
*/
com.google.protobuf.ByteString
getInBytes(int index);
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @return A list containing the notIn.
*/
java.util.List
getNotInList();
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @return The count of notIn.
*/
int getNotInCount();
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
java.lang.String getNotIn(int index);
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param index The index of the value to return.
* @return The bytes of the notIn at the given index.
*/
com.google.protobuf.ByteString
getNotInBytes(int index);
}
/**
*
* AnyRules describe constraints applied exclusively to the
* `google.protobuf.Any` well-known type
*
*
* Protobuf type {@code validate.AnyRules}
*/
public static final class AnyRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.AnyRules)
AnyRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use AnyRules.newBuilder() to construct.
private AnyRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AnyRules() {
in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AnyRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_AnyRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_AnyRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.AnyRules.class, io.envoyproxy.pgv.validate.Validate.AnyRules.Builder.class);
}
private int bitField0_;
public static final int REQUIRED_FIELD_NUMBER = 1;
private boolean required_ = false;
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
public static final int IN_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return A list containing the in.
*/
public com.google.protobuf.ProtocolStringList
getInList() {
return in_;
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public java.lang.String getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param index The index of the value to return.
* @return The bytes of the in at the given index.
*/
public com.google.protobuf.ByteString
getInBytes(int index) {
return in_.getByteString(index);
}
public static final int NOT_IN_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @return A list containing the notIn.
*/
public com.google.protobuf.ProtocolStringList
getNotInList() {
return notIn_;
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public java.lang.String getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param index The index of the value to return.
* @return The bytes of the notIn at the given index.
*/
public com.google.protobuf.ByteString
getNotInBytes(int index) {
return notIn_.getByteString(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;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, required_);
}
for (int i = 0; i < in_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, in_.getRaw(i));
}
for (int i = 0; i < notIn_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, notIn_.getRaw(i));
}
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
.computeBoolSize(1, required_);
}
{
int dataSize = 0;
for (int i = 0; i < in_.size(); i++) {
dataSize += computeStringSizeNoTag(in_.getRaw(i));
}
size += dataSize;
size += 1 * getInList().size();
}
{
int dataSize = 0;
for (int i = 0; i < notIn_.size(); i++) {
dataSize += computeStringSizeNoTag(notIn_.getRaw(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
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 io.envoyproxy.pgv.validate.Validate.AnyRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.AnyRules other = (io.envoyproxy.pgv.validate.Validate.AnyRules) obj;
if (hasRequired() != other.hasRequired()) return false;
if (hasRequired()) {
if (getRequired()
!= other.getRequired()) return false;
}
if (!getInList()
.equals(other.getInList())) return false;
if (!getNotInList()
.equals(other.getNotInList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRequired()) {
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequired());
}
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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.AnyRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AnyRules describe constraints applied exclusively to the
* `google.protobuf.Any` well-known type
*
*
* Protobuf type {@code validate.AnyRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.AnyRules)
io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_AnyRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_AnyRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.AnyRules.class, io.envoyproxy.pgv.validate.Validate.AnyRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.AnyRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
required_ = false;
in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_AnyRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRules build() {
io.envoyproxy.pgv.validate.Validate.AnyRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.AnyRules result = new io.envoyproxy.pgv.validate.Validate.AnyRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.AnyRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.required_ = required_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
in_.makeImmutable();
result.in_ = in_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
notIn_.makeImmutable();
result.notIn_ = notIn_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.AnyRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.AnyRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.AnyRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance()) return this;
if (other.hasRequired()) {
setRequired(other.getRequired());
}
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ |= 0x00000002;
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ |= 0x00000004;
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
required_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureInIsMutable();
in_.add(bs);
break;
} // case 18
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureNotInIsMutable();
notIn_.add(bs);
break;
} // case 26
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 bitField0_;
private boolean required_ ;
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required specifies that this field must be set
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return A list containing the in.
*/
public com.google.protobuf.ProtocolStringList
getInList() {
in_.makeImmutable();
return in_;
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return The count of in.
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param index The index of the element to return.
* @return The in at the given index.
*/
public java.lang.String getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param index The index of the value to return.
* @return The bytes of the in at the given index.
*/
public com.google.protobuf.ByteString
getInBytes(int index) {
return in_.getByteString(index);
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @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, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param value The in to add.
* @return This builder for chaining.
*/
public Builder addIn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*
*
* repeated string in = 2;
* @param value The bytes of the in to add.
* @return This builder for chaining.
*/
public Builder addInBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureInIsMutable();
in_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNotInIsMutable() {
if (!notIn_.isModifiable()) {
notIn_ = new com.google.protobuf.LazyStringArrayList(notIn_);
}
bitField0_ |= 0x00000004;
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @return A list containing the notIn.
*/
public com.google.protobuf.ProtocolStringList
getNotInList() {
notIn_.makeImmutable();
return notIn_;
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @return The count of notIn.
*/
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param index The index of the element to return.
* @return The notIn at the given index.
*/
public java.lang.String getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param index The index of the value to return.
* @return The bytes of the notIn at the given index.
*/
public com.google.protobuf.ByteString
getNotInBytes(int index) {
return notIn_.getByteString(index);
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @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, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @param value The notIn to add.
* @return This builder for chaining.
*/
public Builder addNotIn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNotInIsMutable();
notIn_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
*
* repeated string not_in = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
* @return Whether the within field is set.
*/
boolean hasWithin();
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
* @return The within.
*/
com.google.protobuf.Duration getWithin();
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() {
return gte_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : gte_;
}
public static final int LT_NOW_FIELD_NUMBER = 7;
private boolean ltNow_ = false;
/**
*
* LtNow specifies that this must be less than the current time. LtNow
* can only be used with the Within rule.
*
*
* optional bool lt_now = 7;
* @return Whether the ltNow field is set.
*/
@java.lang.Override
public boolean hasLtNow() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* LtNow specifies that this must be less than the current time. LtNow
* can only be used with the Within rule.
*
*
* optional bool lt_now = 7;
* @return The ltNow.
*/
@java.lang.Override
public boolean getLtNow() {
return ltNow_;
}
public static final int GT_NOW_FIELD_NUMBER = 8;
private boolean gtNow_ = false;
/**
*
* GtNow specifies that this must be greater than the current time. GtNow
* can only be used with the Within rule.
*
*
* optional bool gt_now = 8;
* @return Whether the gtNow field is set.
*/
@java.lang.Override
public boolean hasGtNow() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* GtNow specifies that this must be greater than the current time. GtNow
* can only be used with the Within rule.
*
*
* optional bool gt_now = 8;
* @return The gtNow.
*/
@java.lang.Override
public boolean getGtNow() {
return gtNow_;
}
public static final int WITHIN_FIELD_NUMBER = 9;
private com.google.protobuf.Duration within_;
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
* @return Whether the within field is set.
*/
@java.lang.Override
public boolean hasWithin() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
* @return The within.
*/
@java.lang.Override
public com.google.protobuf.Duration getWithin() {
return within_ == null ? com.google.protobuf.Duration.getDefaultInstance() : within_;
}
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getWithinOrBuilder() {
return within_ == null ? com.google.protobuf.Duration.getDefaultInstance() : within_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, required_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getConst());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getLt());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getLte());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getGt());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getGte());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, ltNow_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(8, gtNow_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(9, getWithin());
}
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
.computeBoolSize(1, required_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConst());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLt());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLte());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getGt());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getGte());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, ltNow_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, gtNow_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getWithin());
}
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 io.envoyproxy.pgv.validate.Validate.TimestampRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.TimestampRules other = (io.envoyproxy.pgv.validate.Validate.TimestampRules) obj;
if (hasRequired() != other.hasRequired()) return false;
if (hasRequired()) {
if (getRequired()
!= other.getRequired()) return false;
}
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (!getConst()
.equals(other.getConst())) return false;
}
if (hasLt() != other.hasLt()) return false;
if (hasLt()) {
if (!getLt()
.equals(other.getLt())) return false;
}
if (hasLte() != other.hasLte()) return false;
if (hasLte()) {
if (!getLte()
.equals(other.getLte())) return false;
}
if (hasGt() != other.hasGt()) return false;
if (hasGt()) {
if (!getGt()
.equals(other.getGt())) return false;
}
if (hasGte() != other.hasGte()) return false;
if (hasGte()) {
if (!getGte()
.equals(other.getGte())) return false;
}
if (hasLtNow() != other.hasLtNow()) return false;
if (hasLtNow()) {
if (getLtNow()
!= other.getLtNow()) return false;
}
if (hasGtNow() != other.hasGtNow()) return false;
if (hasGtNow()) {
if (getGtNow()
!= other.getGtNow()) return false;
}
if (hasWithin() != other.hasWithin()) return false;
if (hasWithin()) {
if (!getWithin()
.equals(other.getWithin())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRequired()) {
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequired());
}
if (hasConst()) {
hash = (37 * hash) + CONST_FIELD_NUMBER;
hash = (53 * hash) + getConst().hashCode();
}
if (hasLt()) {
hash = (37 * hash) + LT_FIELD_NUMBER;
hash = (53 * hash) + getLt().hashCode();
}
if (hasLte()) {
hash = (37 * hash) + LTE_FIELD_NUMBER;
hash = (53 * hash) + getLte().hashCode();
}
if (hasGt()) {
hash = (37 * hash) + GT_FIELD_NUMBER;
hash = (53 * hash) + getGt().hashCode();
}
if (hasGte()) {
hash = (37 * hash) + GTE_FIELD_NUMBER;
hash = (53 * hash) + getGte().hashCode();
}
if (hasLtNow()) {
hash = (37 * hash) + LT_NOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLtNow());
}
if (hasGtNow()) {
hash = (37 * hash) + GT_NOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGtNow());
}
if (hasWithin()) {
hash = (37 * hash) + WITHIN_FIELD_NUMBER;
hash = (53 * hash) + getWithin().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.pgv.validate.Validate.TimestampRules 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* TimestampRules describe the constraints applied exclusively to the
* `google.protobuf.Timestamp` well-known type
*
*
* Protobuf type {@code validate.TimestampRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.TimestampRules)
io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_TimestampRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_TimestampRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.TimestampRules.class, io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.TimestampRules.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConstFieldBuilder();
getLtFieldBuilder();
getLteFieldBuilder();
getGtFieldBuilder();
getGteFieldBuilder();
getWithinFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
required_ = false;
const_ = null;
if (constBuilder_ != null) {
constBuilder_.dispose();
constBuilder_ = null;
}
lt_ = null;
if (ltBuilder_ != null) {
ltBuilder_.dispose();
ltBuilder_ = null;
}
lte_ = null;
if (lteBuilder_ != null) {
lteBuilder_.dispose();
lteBuilder_ = null;
}
gt_ = null;
if (gtBuilder_ != null) {
gtBuilder_.dispose();
gtBuilder_ = null;
}
gte_ = null;
if (gteBuilder_ != null) {
gteBuilder_.dispose();
gteBuilder_ = null;
}
ltNow_ = false;
gtNow_ = false;
within_ = null;
if (withinBuilder_ != null) {
withinBuilder_.dispose();
withinBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_TimestampRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.TimestampRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.TimestampRules build() {
io.envoyproxy.pgv.validate.Validate.TimestampRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.TimestampRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.TimestampRules result = new io.envoyproxy.pgv.validate.Validate.TimestampRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.TimestampRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.required_ = required_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.const_ = constBuilder_ == null
? const_
: constBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lt_ = ltBuilder_ == null
? lt_
: ltBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lte_ = lteBuilder_ == null
? lte_
: lteBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gt_ = gtBuilder_ == null
? gt_
: gtBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.gte_ = gteBuilder_ == null
? gte_
: gteBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.ltNow_ = ltNow_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.gtNow_ = gtNow_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.within_ = withinBuilder_ == null
? within_
: withinBuilder_.build();
to_bitField0_ |= 0x00000100;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.TimestampRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.TimestampRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.TimestampRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance()) return this;
if (other.hasRequired()) {
setRequired(other.getRequired());
}
if (other.hasConst()) {
mergeConst(other.getConst());
}
if (other.hasLt()) {
mergeLt(other.getLt());
}
if (other.hasLte()) {
mergeLte(other.getLte());
}
if (other.hasGt()) {
mergeGt(other.getGt());
}
if (other.hasGte()) {
mergeGte(other.getGte());
}
if (other.hasLtNow()) {
setLtNow(other.getLtNow());
}
if (other.hasGtNow()) {
setGtNow(other.getGtNow());
}
if (other.hasWithin()) {
mergeWithin(other.getWithin());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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 8: {
required_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getConstFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getLtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getLteFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getGtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getGteFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
ltNow_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
gtNow_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74: {
input.readMessage(
getWithinFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
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 bitField0_;
private boolean required_ ;
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required specifies that this field must be set
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
* @return Whether the within field is set.
*/
public boolean hasWithin() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
* @return The within.
*/
public com.google.protobuf.Duration getWithin() {
if (withinBuilder_ == null) {
return within_ == null ? com.google.protobuf.Duration.getDefaultInstance() : within_;
} else {
return withinBuilder_.getMessage();
}
}
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
*/
public Builder setWithin(com.google.protobuf.Duration value) {
if (withinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
within_ = value;
} else {
withinBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*
*
* optional .google.protobuf.Duration within = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getWithinFieldBuilder() {
if (withinBuilder_ == null) {
withinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getWithin(),
getParentForChildren(),
isClean());
within_ = null;
}
return withinBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:validate.TimestampRules)
}
// @@protoc_insertion_point(class_scope:validate.TimestampRules)
private static final io.envoyproxy.pgv.validate.Validate.TimestampRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.TimestampRules();
}
public static io.envoyproxy.pgv.validate.Validate.TimestampRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TimestampRules 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 io.envoyproxy.pgv.validate.Validate.TimestampRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int DISABLED_FIELD_NUMBER = 1071;
/**
*
* Disabled nullifies any validation rules for this message, including any
* message fields associated with it that do support validation.
*
*
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
java.lang.Boolean> disabled = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Boolean.class,
null);
public static final int IGNORED_FIELD_NUMBER = 1072;
/**
*
* Ignore skips generation of validation methods for this message.
*
*
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
java.lang.Boolean> ignored = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Boolean.class,
null);
public static final int REQUIRED_FIELD_NUMBER = 1071;
/**
*
* Required ensures that exactly one the field options in a oneof is set;
* validation fails if no fields in the oneof are set.
*
*
* extend .google.protobuf.OneofOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.OneofOptions,
java.lang.Boolean> required = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Boolean.class,
null);
public static final int RULES_FIELD_NUMBER = 1071;
/**
*
* Rules specify the validations to be performed on this field. By default,
* no validation is performed against a field.
*