io.envoyproxy.pgv.validate.Validate Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: validate/validate.proto
package io.envoyproxy.pgv.validate;
public final class Validate {
private Validate() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(io.envoyproxy.pgv.validate.Validate.disabled);
registry.add(io.envoyproxy.pgv.validate.Validate.ignored);
registry.add(io.envoyproxy.pgv.validate.Validate.required);
registry.add(io.envoyproxy.pgv.validate.Validate.rules);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* WellKnownRegex contain some well-known patterns.
*
*
* Protobuf enum {@code validate.KnownRegex}
*/
public enum KnownRegex
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* HTTP header name as defined by RFC 7230.
*
*
* HTTP_HEADER_NAME = 1;
*/
HTTP_HEADER_NAME(1),
/**
*
* HTTP header value as defined by RFC 7230.
*
*
* 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();
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
* @return The float.
*/
io.envoyproxy.pgv.validate.Validate.FloatRules getFloat();
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder getFloatOrBuilder();
/**
* .validate.DoubleRules double = 2;
* @return Whether the double field is set.
*/
boolean hasDouble();
/**
* .validate.DoubleRules double = 2;
* @return The double.
*/
io.envoyproxy.pgv.validate.Validate.DoubleRules getDouble();
/**
* .validate.DoubleRules double = 2;
*/
io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder getDoubleOrBuilder();
/**
* .validate.Int32Rules int32 = 3;
* @return Whether the int32 field is set.
*/
boolean hasInt32();
/**
* .validate.Int32Rules int32 = 3;
* @return The int32.
*/
io.envoyproxy.pgv.validate.Validate.Int32Rules getInt32();
/**
* .validate.Int32Rules int32 = 3;
*/
io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder getInt32OrBuilder();
/**
* .validate.Int64Rules int64 = 4;
* @return Whether the int64 field is set.
*/
boolean hasInt64();
/**
* .validate.Int64Rules int64 = 4;
* @return The int64.
*/
io.envoyproxy.pgv.validate.Validate.Int64Rules getInt64();
/**
* .validate.Int64Rules int64 = 4;
*/
io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder getInt64OrBuilder();
/**
* .validate.UInt32Rules uint32 = 5;
* @return Whether the uint32 field is set.
*/
boolean hasUint32();
/**
* .validate.UInt32Rules uint32 = 5;
* @return The uint32.
*/
io.envoyproxy.pgv.validate.Validate.UInt32Rules getUint32();
/**
* .validate.UInt32Rules uint32 = 5;
*/
io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder getUint32OrBuilder();
/**
* .validate.UInt64Rules uint64 = 6;
* @return Whether the uint64 field is set.
*/
boolean hasUint64();
/**
* .validate.UInt64Rules uint64 = 6;
* @return The uint64.
*/
io.envoyproxy.pgv.validate.Validate.UInt64Rules getUint64();
/**
* .validate.UInt64Rules uint64 = 6;
*/
io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder getUint64OrBuilder();
/**
* .validate.SInt32Rules sint32 = 7;
* @return Whether the sint32 field is set.
*/
boolean hasSint32();
/**
* .validate.SInt32Rules sint32 = 7;
* @return The sint32.
*/
io.envoyproxy.pgv.validate.Validate.SInt32Rules getSint32();
/**
* .validate.SInt32Rules sint32 = 7;
*/
io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder getSint32OrBuilder();
/**
* .validate.SInt64Rules sint64 = 8;
* @return Whether the sint64 field is set.
*/
boolean hasSint64();
/**
* .validate.SInt64Rules sint64 = 8;
* @return The sint64.
*/
io.envoyproxy.pgv.validate.Validate.SInt64Rules getSint64();
/**
* .validate.SInt64Rules sint64 = 8;
*/
io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder getSint64OrBuilder();
/**
* .validate.Fixed32Rules fixed32 = 9;
* @return Whether the fixed32 field is set.
*/
boolean hasFixed32();
/**
* .validate.Fixed32Rules fixed32 = 9;
* @return The fixed32.
*/
io.envoyproxy.pgv.validate.Validate.Fixed32Rules getFixed32();
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder getFixed32OrBuilder();
/**
* .validate.Fixed64Rules fixed64 = 10;
* @return Whether the fixed64 field is set.
*/
boolean hasFixed64();
/**
* .validate.Fixed64Rules fixed64 = 10;
* @return The fixed64.
*/
io.envoyproxy.pgv.validate.Validate.Fixed64Rules getFixed64();
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder getFixed64OrBuilder();
/**
* .validate.SFixed32Rules sfixed32 = 11;
* @return Whether the sfixed32 field is set.
*/
boolean hasSfixed32();
/**
* .validate.SFixed32Rules sfixed32 = 11;
* @return The sfixed32.
*/
io.envoyproxy.pgv.validate.Validate.SFixed32Rules getSfixed32();
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder getSfixed32OrBuilder();
/**
* .validate.SFixed64Rules sfixed64 = 12;
* @return Whether the sfixed64 field is set.
*/
boolean hasSfixed64();
/**
* .validate.SFixed64Rules sfixed64 = 12;
* @return The sfixed64.
*/
io.envoyproxy.pgv.validate.Validate.SFixed64Rules getSfixed64();
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder getSfixed64OrBuilder();
/**
* .validate.BoolRules bool = 13;
* @return Whether the bool field is set.
*/
boolean hasBool();
/**
* .validate.BoolRules bool = 13;
* @return The bool.
*/
io.envoyproxy.pgv.validate.Validate.BoolRules getBool();
/**
* .validate.BoolRules bool = 13;
*/
io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder getBoolOrBuilder();
/**
* .validate.StringRules string = 14;
* @return Whether the string field is set.
*/
boolean hasString();
/**
* .validate.StringRules string = 14;
* @return The string.
*/
io.envoyproxy.pgv.validate.Validate.StringRules getString();
/**
* .validate.StringRules string = 14;
*/
io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder getStringOrBuilder();
/**
* .validate.BytesRules bytes = 15;
* @return Whether the bytes field is set.
*/
boolean hasBytes();
/**
* .validate.BytesRules bytes = 15;
* @return The bytes.
*/
io.envoyproxy.pgv.validate.Validate.BytesRules getBytes();
/**
* .validate.BytesRules bytes = 15;
*/
io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder getBytesOrBuilder();
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
* @return Whether the enum field is set.
*/
boolean hasEnum();
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
* @return The enum.
*/
io.envoyproxy.pgv.validate.Validate.EnumRules getEnum();
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder getEnumOrBuilder();
/**
* .validate.RepeatedRules repeated = 18;
* @return Whether the repeated field is set.
*/
boolean hasRepeated();
/**
* .validate.RepeatedRules repeated = 18;
* @return The repeated.
*/
io.envoyproxy.pgv.validate.Validate.RepeatedRules getRepeated();
/**
* .validate.RepeatedRules repeated = 18;
*/
io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder getRepeatedOrBuilder();
/**
* .validate.MapRules map = 19;
* @return Whether the map field is set.
*/
boolean hasMap();
/**
* .validate.MapRules map = 19;
* @return The map.
*/
io.envoyproxy.pgv.validate.Validate.MapRules getMap();
/**
* .validate.MapRules map = 19;
*/
io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder getMapOrBuilder();
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
* @return Whether the any field is set.
*/
boolean hasAny();
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
* @return The any.
*/
io.envoyproxy.pgv.validate.Validate.AnyRules getAny();
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder getAnyOrBuilder();
/**
* .validate.DurationRules duration = 21;
* @return Whether the duration field is set.
*/
boolean hasDuration();
/**
* .validate.DurationRules duration = 21;
* @return The duration.
*/
io.envoyproxy.pgv.validate.Validate.DurationRules getDuration();
/**
* .validate.DurationRules duration = 21;
*/
io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder getDurationOrBuilder();
/**
* .validate.TimestampRules timestamp = 22;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* .validate.TimestampRules timestamp = 22;
* @return The timestamp.
*/
io.envoyproxy.pgv.validate.Validate.TimestampRules getTimestamp();
/**
* .validate.TimestampRules timestamp = 22;
*/
io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder getTimestampOrBuilder();
io.envoyproxy.pgv.validate.Validate.FieldRules.TypeCase getTypeCase();
}
/**
*
* 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();
}
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
public Builder setFloat(io.envoyproxy.pgv.validate.Validate.FloatRules value) {
if (floatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
floatBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
public Builder setFloat(
io.envoyproxy.pgv.validate.Validate.FloatRules.Builder builderForValue) {
if (floatBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
floatBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 1;
return this;
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
public Builder mergeFloat(io.envoyproxy.pgv.validate.Validate.FloatRules value) {
if (floatBuilder_ == null) {
if (typeCase_ == 1 &&
type_ != io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.FloatRules.newBuilder((io.envoyproxy.pgv.validate.Validate.FloatRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 1) {
floatBuilder_.mergeFrom(value);
} else {
floatBuilder_.setMessage(value);
}
}
typeCase_ = 1;
return this;
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
public Builder clearFloat() {
if (floatBuilder_ == null) {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
}
floatBuilder_.clear();
}
return this;
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
public io.envoyproxy.pgv.validate.Validate.FloatRules.Builder getFloatBuilder() {
return getFloatFieldBuilder().getBuilder();
}
/**
*
* Scalar Field Types
*
*
* .validate.FloatRules float = 1;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder getFloatOrBuilder() {
if ((typeCase_ == 1) && (floatBuilder_ != null)) {
return floatBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FloatRules, io.envoyproxy.pgv.validate.Validate.FloatRules.Builder, io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder>
getFloatFieldBuilder() {
if (floatBuilder_ == null) {
if (!(typeCase_ == 1)) {
type_ = io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
}
floatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FloatRules, io.envoyproxy.pgv.validate.Validate.FloatRules.Builder, io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.FloatRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 1;
onChanged();
return floatBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.DoubleRules, io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder, io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder> doubleBuilder_;
/**
* .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 (doubleBuilder_ == null) {
if (typeCase_ == 2) {
return (io.envoyproxy.pgv.validate.Validate.DoubleRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return doubleBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
}
/**
* .validate.DoubleRules double = 2;
*/
public Builder setDouble(io.envoyproxy.pgv.validate.Validate.DoubleRules value) {
if (doubleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
doubleBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .validate.DoubleRules double = 2;
*/
public Builder setDouble(
io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder builderForValue) {
if (doubleBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
doubleBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .validate.DoubleRules double = 2;
*/
public Builder mergeDouble(io.envoyproxy.pgv.validate.Validate.DoubleRules value) {
if (doubleBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.DoubleRules.newBuilder((io.envoyproxy.pgv.validate.Validate.DoubleRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
doubleBuilder_.mergeFrom(value);
} else {
doubleBuilder_.setMessage(value);
}
}
typeCase_ = 2;
return this;
}
/**
* .validate.DoubleRules double = 2;
*/
public Builder clearDouble() {
if (doubleBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
doubleBuilder_.clear();
}
return this;
}
/**
* .validate.DoubleRules double = 2;
*/
public io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder getDoubleBuilder() {
return getDoubleFieldBuilder().getBuilder();
}
/**
* .validate.DoubleRules double = 2;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder getDoubleOrBuilder() {
if ((typeCase_ == 2) && (doubleBuilder_ != null)) {
return doubleBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (io.envoyproxy.pgv.validate.Validate.DoubleRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
}
/**
* .validate.DoubleRules double = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.DoubleRules, io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder, io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder>
getDoubleFieldBuilder() {
if (doubleBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
doubleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.DoubleRules, io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder, io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.DoubleRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();
return doubleBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Int32Rules, io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder, io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder> int32Builder_;
/**
* .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 (int32Builder_ == null) {
if (typeCase_ == 3) {
return (io.envoyproxy.pgv.validate.Validate.Int32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return int32Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
}
/**
* .validate.Int32Rules int32 = 3;
*/
public Builder setInt32(io.envoyproxy.pgv.validate.Validate.Int32Rules value) {
if (int32Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
int32Builder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .validate.Int32Rules int32 = 3;
*/
public Builder setInt32(
io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder builderForValue) {
if (int32Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
int32Builder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .validate.Int32Rules int32 = 3;
*/
public Builder mergeInt32(io.envoyproxy.pgv.validate.Validate.Int32Rules value) {
if (int32Builder_ == null) {
if (typeCase_ == 3 &&
type_ != io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.Int32Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.Int32Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
int32Builder_.mergeFrom(value);
} else {
int32Builder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .validate.Int32Rules int32 = 3;
*/
public Builder clearInt32() {
if (int32Builder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
int32Builder_.clear();
}
return this;
}
/**
* .validate.Int32Rules int32 = 3;
*/
public io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder getInt32Builder() {
return getInt32FieldBuilder().getBuilder();
}
/**
* .validate.Int32Rules int32 = 3;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder getInt32OrBuilder() {
if ((typeCase_ == 3) && (int32Builder_ != null)) {
return int32Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (io.envoyproxy.pgv.validate.Validate.Int32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
}
/**
* .validate.Int32Rules int32 = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Int32Rules, io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder, io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder>
getInt32FieldBuilder() {
if (int32Builder_ == null) {
if (!(typeCase_ == 3)) {
type_ = io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
int32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Int32Rules, io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder, io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.Int32Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();
return int32Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Int64Rules, io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder, io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder> int64Builder_;
/**
* .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 (int64Builder_ == null) {
if (typeCase_ == 4) {
return (io.envoyproxy.pgv.validate.Validate.Int64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return int64Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
}
/**
* .validate.Int64Rules int64 = 4;
*/
public Builder setInt64(io.envoyproxy.pgv.validate.Validate.Int64Rules value) {
if (int64Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
int64Builder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .validate.Int64Rules int64 = 4;
*/
public Builder setInt64(
io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder builderForValue) {
if (int64Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
int64Builder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .validate.Int64Rules int64 = 4;
*/
public Builder mergeInt64(io.envoyproxy.pgv.validate.Validate.Int64Rules value) {
if (int64Builder_ == null) {
if (typeCase_ == 4 &&
type_ != io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.Int64Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.Int64Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
int64Builder_.mergeFrom(value);
} else {
int64Builder_.setMessage(value);
}
}
typeCase_ = 4;
return this;
}
/**
* .validate.Int64Rules int64 = 4;
*/
public Builder clearInt64() {
if (int64Builder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
int64Builder_.clear();
}
return this;
}
/**
* .validate.Int64Rules int64 = 4;
*/
public io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder getInt64Builder() {
return getInt64FieldBuilder().getBuilder();
}
/**
* .validate.Int64Rules int64 = 4;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder getInt64OrBuilder() {
if ((typeCase_ == 4) && (int64Builder_ != null)) {
return int64Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (io.envoyproxy.pgv.validate.Validate.Int64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
}
/**
* .validate.Int64Rules int64 = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Int64Rules, io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder, io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder>
getInt64FieldBuilder() {
if (int64Builder_ == null) {
if (!(typeCase_ == 4)) {
type_ = io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
int64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Int64Rules, io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder, io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.Int64Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();
return int64Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.UInt32Rules, io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder, io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder> uint32Builder_;
/**
* .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 (uint32Builder_ == null) {
if (typeCase_ == 5) {
return (io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
} else {
if (typeCase_ == 5) {
return uint32Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
public Builder setUint32(io.envoyproxy.pgv.validate.Validate.UInt32Rules value) {
if (uint32Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
uint32Builder_.setMessage(value);
}
typeCase_ = 5;
return this;
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
public Builder setUint32(
io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder builderForValue) {
if (uint32Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
uint32Builder_.setMessage(builderForValue.build());
}
typeCase_ = 5;
return this;
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
public Builder mergeUint32(io.envoyproxy.pgv.validate.Validate.UInt32Rules value) {
if (uint32Builder_ == null) {
if (typeCase_ == 5 &&
type_ != io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.UInt32Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 5) {
uint32Builder_.mergeFrom(value);
} else {
uint32Builder_.setMessage(value);
}
}
typeCase_ = 5;
return this;
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
public Builder clearUint32() {
if (uint32Builder_ == null) {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
}
uint32Builder_.clear();
}
return this;
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
public io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder getUint32Builder() {
return getUint32FieldBuilder().getBuilder();
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder getUint32OrBuilder() {
if ((typeCase_ == 5) && (uint32Builder_ != null)) {
return uint32Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 5) {
return (io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
}
/**
* .validate.UInt32Rules uint32 = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.UInt32Rules, io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder, io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder>
getUint32FieldBuilder() {
if (uint32Builder_ == null) {
if (!(typeCase_ == 5)) {
type_ = io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
uint32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.UInt32Rules, io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder, io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 5;
onChanged();
return uint32Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.UInt64Rules, io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder, io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder> uint64Builder_;
/**
* .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 (uint64Builder_ == null) {
if (typeCase_ == 6) {
return (io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
} else {
if (typeCase_ == 6) {
return uint64Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
public Builder setUint64(io.envoyproxy.pgv.validate.Validate.UInt64Rules value) {
if (uint64Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
uint64Builder_.setMessage(value);
}
typeCase_ = 6;
return this;
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
public Builder setUint64(
io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder builderForValue) {
if (uint64Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
uint64Builder_.setMessage(builderForValue.build());
}
typeCase_ = 6;
return this;
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
public Builder mergeUint64(io.envoyproxy.pgv.validate.Validate.UInt64Rules value) {
if (uint64Builder_ == null) {
if (typeCase_ == 6 &&
type_ != io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.UInt64Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 6) {
uint64Builder_.mergeFrom(value);
} else {
uint64Builder_.setMessage(value);
}
}
typeCase_ = 6;
return this;
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
public Builder clearUint64() {
if (uint64Builder_ == null) {
if (typeCase_ == 6) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 6) {
typeCase_ = 0;
type_ = null;
}
uint64Builder_.clear();
}
return this;
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
public io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder getUint64Builder() {
return getUint64FieldBuilder().getBuilder();
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder getUint64OrBuilder() {
if ((typeCase_ == 6) && (uint64Builder_ != null)) {
return uint64Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 6) {
return (io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
}
/**
* .validate.UInt64Rules uint64 = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.UInt64Rules, io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder, io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder>
getUint64FieldBuilder() {
if (uint64Builder_ == null) {
if (!(typeCase_ == 6)) {
type_ = io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
uint64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.UInt64Rules, io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder, io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 6;
onChanged();
return uint64Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SInt32Rules, io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder, io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder> sint32Builder_;
/**
* .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 (sint32Builder_ == null) {
if (typeCase_ == 7) {
return (io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
} else {
if (typeCase_ == 7) {
return sint32Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
public Builder setSint32(io.envoyproxy.pgv.validate.Validate.SInt32Rules value) {
if (sint32Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
sint32Builder_.setMessage(value);
}
typeCase_ = 7;
return this;
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
public Builder setSint32(
io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder builderForValue) {
if (sint32Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
sint32Builder_.setMessage(builderForValue.build());
}
typeCase_ = 7;
return this;
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
public Builder mergeSint32(io.envoyproxy.pgv.validate.Validate.SInt32Rules value) {
if (sint32Builder_ == null) {
if (typeCase_ == 7 &&
type_ != io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.SInt32Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 7) {
sint32Builder_.mergeFrom(value);
} else {
sint32Builder_.setMessage(value);
}
}
typeCase_ = 7;
return this;
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
public Builder clearSint32() {
if (sint32Builder_ == null) {
if (typeCase_ == 7) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 7) {
typeCase_ = 0;
type_ = null;
}
sint32Builder_.clear();
}
return this;
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
public io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder getSint32Builder() {
return getSint32FieldBuilder().getBuilder();
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder getSint32OrBuilder() {
if ((typeCase_ == 7) && (sint32Builder_ != null)) {
return sint32Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 7) {
return (io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
}
/**
* .validate.SInt32Rules sint32 = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SInt32Rules, io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder, io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder>
getSint32FieldBuilder() {
if (sint32Builder_ == null) {
if (!(typeCase_ == 7)) {
type_ = io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
sint32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SInt32Rules, io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder, io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 7;
onChanged();
return sint32Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SInt64Rules, io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder, io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder> sint64Builder_;
/**
* .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 (sint64Builder_ == null) {
if (typeCase_ == 8) {
return (io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
} else {
if (typeCase_ == 8) {
return sint64Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
public Builder setSint64(io.envoyproxy.pgv.validate.Validate.SInt64Rules value) {
if (sint64Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
sint64Builder_.setMessage(value);
}
typeCase_ = 8;
return this;
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
public Builder setSint64(
io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder builderForValue) {
if (sint64Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
sint64Builder_.setMessage(builderForValue.build());
}
typeCase_ = 8;
return this;
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
public Builder mergeSint64(io.envoyproxy.pgv.validate.Validate.SInt64Rules value) {
if (sint64Builder_ == null) {
if (typeCase_ == 8 &&
type_ != io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.SInt64Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 8) {
sint64Builder_.mergeFrom(value);
} else {
sint64Builder_.setMessage(value);
}
}
typeCase_ = 8;
return this;
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
public Builder clearSint64() {
if (sint64Builder_ == null) {
if (typeCase_ == 8) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 8) {
typeCase_ = 0;
type_ = null;
}
sint64Builder_.clear();
}
return this;
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
public io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder getSint64Builder() {
return getSint64FieldBuilder().getBuilder();
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder getSint64OrBuilder() {
if ((typeCase_ == 8) && (sint64Builder_ != null)) {
return sint64Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 8) {
return (io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
}
/**
* .validate.SInt64Rules sint64 = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SInt64Rules, io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder, io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder>
getSint64FieldBuilder() {
if (sint64Builder_ == null) {
if (!(typeCase_ == 8)) {
type_ = io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
sint64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SInt64Rules, io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder, io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 8;
onChanged();
return sint64Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Fixed32Rules, io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder, io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder> fixed32Builder_;
/**
* .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 (fixed32Builder_ == null) {
if (typeCase_ == 9) {
return (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
} else {
if (typeCase_ == 9) {
return fixed32Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
public Builder setFixed32(io.envoyproxy.pgv.validate.Validate.Fixed32Rules value) {
if (fixed32Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
fixed32Builder_.setMessage(value);
}
typeCase_ = 9;
return this;
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
public Builder setFixed32(
io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder builderForValue) {
if (fixed32Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
fixed32Builder_.setMessage(builderForValue.build());
}
typeCase_ = 9;
return this;
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
public Builder mergeFixed32(io.envoyproxy.pgv.validate.Validate.Fixed32Rules value) {
if (fixed32Builder_ == null) {
if (typeCase_ == 9 &&
type_ != io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.Fixed32Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 9) {
fixed32Builder_.mergeFrom(value);
} else {
fixed32Builder_.setMessage(value);
}
}
typeCase_ = 9;
return this;
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
public Builder clearFixed32() {
if (fixed32Builder_ == null) {
if (typeCase_ == 9) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 9) {
typeCase_ = 0;
type_ = null;
}
fixed32Builder_.clear();
}
return this;
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder getFixed32Builder() {
return getFixed32FieldBuilder().getBuilder();
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder getFixed32OrBuilder() {
if ((typeCase_ == 9) && (fixed32Builder_ != null)) {
return fixed32Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 9) {
return (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
}
/**
* .validate.Fixed32Rules fixed32 = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Fixed32Rules, io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder, io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder>
getFixed32FieldBuilder() {
if (fixed32Builder_ == null) {
if (!(typeCase_ == 9)) {
type_ = io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
fixed32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Fixed32Rules, io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder, io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 9;
onChanged();
return fixed32Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Fixed64Rules, io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder, io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder> fixed64Builder_;
/**
* .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 (fixed64Builder_ == null) {
if (typeCase_ == 10) {
return (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
} else {
if (typeCase_ == 10) {
return fixed64Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
public Builder setFixed64(io.envoyproxy.pgv.validate.Validate.Fixed64Rules value) {
if (fixed64Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
fixed64Builder_.setMessage(value);
}
typeCase_ = 10;
return this;
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
public Builder setFixed64(
io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder builderForValue) {
if (fixed64Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
fixed64Builder_.setMessage(builderForValue.build());
}
typeCase_ = 10;
return this;
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
public Builder mergeFixed64(io.envoyproxy.pgv.validate.Validate.Fixed64Rules value) {
if (fixed64Builder_ == null) {
if (typeCase_ == 10 &&
type_ != io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.Fixed64Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 10) {
fixed64Builder_.mergeFrom(value);
} else {
fixed64Builder_.setMessage(value);
}
}
typeCase_ = 10;
return this;
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
public Builder clearFixed64() {
if (fixed64Builder_ == null) {
if (typeCase_ == 10) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 10) {
typeCase_ = 0;
type_ = null;
}
fixed64Builder_.clear();
}
return this;
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder getFixed64Builder() {
return getFixed64FieldBuilder().getBuilder();
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder getFixed64OrBuilder() {
if ((typeCase_ == 10) && (fixed64Builder_ != null)) {
return fixed64Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 10) {
return (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
}
/**
* .validate.Fixed64Rules fixed64 = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Fixed64Rules, io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder, io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder>
getFixed64FieldBuilder() {
if (fixed64Builder_ == null) {
if (!(typeCase_ == 10)) {
type_ = io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
fixed64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.Fixed64Rules, io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder, io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 10;
onChanged();
return fixed64Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SFixed32Rules, io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder, io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder> sfixed32Builder_;
/**
* .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 (sfixed32Builder_ == null) {
if (typeCase_ == 11) {
return (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
} else {
if (typeCase_ == 11) {
return sfixed32Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
public Builder setSfixed32(io.envoyproxy.pgv.validate.Validate.SFixed32Rules value) {
if (sfixed32Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
sfixed32Builder_.setMessage(value);
}
typeCase_ = 11;
return this;
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
public Builder setSfixed32(
io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder builderForValue) {
if (sfixed32Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
sfixed32Builder_.setMessage(builderForValue.build());
}
typeCase_ = 11;
return this;
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
public Builder mergeSfixed32(io.envoyproxy.pgv.validate.Validate.SFixed32Rules value) {
if (sfixed32Builder_ == null) {
if (typeCase_ == 11 &&
type_ != io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.SFixed32Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 11) {
sfixed32Builder_.mergeFrom(value);
} else {
sfixed32Builder_.setMessage(value);
}
}
typeCase_ = 11;
return this;
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
public Builder clearSfixed32() {
if (sfixed32Builder_ == null) {
if (typeCase_ == 11) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 11) {
typeCase_ = 0;
type_ = null;
}
sfixed32Builder_.clear();
}
return this;
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder getSfixed32Builder() {
return getSfixed32FieldBuilder().getBuilder();
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder getSfixed32OrBuilder() {
if ((typeCase_ == 11) && (sfixed32Builder_ != null)) {
return sfixed32Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 11) {
return (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
}
/**
* .validate.SFixed32Rules sfixed32 = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SFixed32Rules, io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder, io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder>
getSfixed32FieldBuilder() {
if (sfixed32Builder_ == null) {
if (!(typeCase_ == 11)) {
type_ = io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
sfixed32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SFixed32Rules, io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder, io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 11;
onChanged();
return sfixed32Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SFixed64Rules, io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder, io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder> sfixed64Builder_;
/**
* .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 (sfixed64Builder_ == null) {
if (typeCase_ == 12) {
return (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
} else {
if (typeCase_ == 12) {
return sfixed64Builder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
public Builder setSfixed64(io.envoyproxy.pgv.validate.Validate.SFixed64Rules value) {
if (sfixed64Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
sfixed64Builder_.setMessage(value);
}
typeCase_ = 12;
return this;
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
public Builder setSfixed64(
io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder builderForValue) {
if (sfixed64Builder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
sfixed64Builder_.setMessage(builderForValue.build());
}
typeCase_ = 12;
return this;
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
public Builder mergeSfixed64(io.envoyproxy.pgv.validate.Validate.SFixed64Rules value) {
if (sfixed64Builder_ == null) {
if (typeCase_ == 12 &&
type_ != io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.SFixed64Rules.newBuilder((io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 12) {
sfixed64Builder_.mergeFrom(value);
} else {
sfixed64Builder_.setMessage(value);
}
}
typeCase_ = 12;
return this;
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
public Builder clearSfixed64() {
if (sfixed64Builder_ == null) {
if (typeCase_ == 12) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 12) {
typeCase_ = 0;
type_ = null;
}
sfixed64Builder_.clear();
}
return this;
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder getSfixed64Builder() {
return getSfixed64FieldBuilder().getBuilder();
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder getSfixed64OrBuilder() {
if ((typeCase_ == 12) && (sfixed64Builder_ != null)) {
return sfixed64Builder_.getMessageOrBuilder();
} else {
if (typeCase_ == 12) {
return (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_;
}
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
}
/**
* .validate.SFixed64Rules sfixed64 = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SFixed64Rules, io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder, io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder>
getSfixed64FieldBuilder() {
if (sfixed64Builder_ == null) {
if (!(typeCase_ == 12)) {
type_ = io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
sfixed64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.SFixed64Rules, io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder, io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 12;
onChanged();
return sfixed64Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.BoolRules, io.envoyproxy.pgv.validate.Validate.BoolRules.Builder, io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder> boolBuilder_;
/**
* .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 (boolBuilder_ == null) {
if (typeCase_ == 13) {
return (io.envoyproxy.pgv.validate.Validate.BoolRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
} else {
if (typeCase_ == 13) {
return boolBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
}
}
/**
* .validate.BoolRules bool = 13;
*/
public Builder setBool(io.envoyproxy.pgv.validate.Validate.BoolRules value) {
if (boolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
boolBuilder_.setMessage(value);
}
typeCase_ = 13;
return this;
}
/**
* .validate.BoolRules bool = 13;
*/
public Builder setBool(
io.envoyproxy.pgv.validate.Validate.BoolRules.Builder builderForValue) {
if (boolBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
boolBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 13;
return this;
}
/**
* .validate.BoolRules bool = 13;
*/
public Builder mergeBool(io.envoyproxy.pgv.validate.Validate.BoolRules value) {
if (boolBuilder_ == null) {
if (typeCase_ == 13 &&
type_ != io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.BoolRules.newBuilder((io.envoyproxy.pgv.validate.Validate.BoolRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 13) {
boolBuilder_.mergeFrom(value);
} else {
boolBuilder_.setMessage(value);
}
}
typeCase_ = 13;
return this;
}
/**
* .validate.BoolRules bool = 13;
*/
public Builder clearBool() {
if (boolBuilder_ == null) {
if (typeCase_ == 13) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 13) {
typeCase_ = 0;
type_ = null;
}
boolBuilder_.clear();
}
return this;
}
/**
* .validate.BoolRules bool = 13;
*/
public io.envoyproxy.pgv.validate.Validate.BoolRules.Builder getBoolBuilder() {
return getBoolFieldBuilder().getBuilder();
}
/**
* .validate.BoolRules bool = 13;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder getBoolOrBuilder() {
if ((typeCase_ == 13) && (boolBuilder_ != null)) {
return boolBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 13) {
return (io.envoyproxy.pgv.validate.Validate.BoolRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
}
}
/**
* .validate.BoolRules bool = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.BoolRules, io.envoyproxy.pgv.validate.Validate.BoolRules.Builder, io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder>
getBoolFieldBuilder() {
if (boolBuilder_ == null) {
if (!(typeCase_ == 13)) {
type_ = io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
}
boolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.BoolRules, io.envoyproxy.pgv.validate.Validate.BoolRules.Builder, io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.BoolRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 13;
onChanged();
return boolBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.StringRules, io.envoyproxy.pgv.validate.Validate.StringRules.Builder, io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder> stringBuilder_;
/**
* .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 (stringBuilder_ == null) {
if (typeCase_ == 14) {
return (io.envoyproxy.pgv.validate.Validate.StringRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
} else {
if (typeCase_ == 14) {
return stringBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
}
}
/**
* .validate.StringRules string = 14;
*/
public Builder setString(io.envoyproxy.pgv.validate.Validate.StringRules value) {
if (stringBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
stringBuilder_.setMessage(value);
}
typeCase_ = 14;
return this;
}
/**
* .validate.StringRules string = 14;
*/
public Builder setString(
io.envoyproxy.pgv.validate.Validate.StringRules.Builder builderForValue) {
if (stringBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
stringBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 14;
return this;
}
/**
* .validate.StringRules string = 14;
*/
public Builder mergeString(io.envoyproxy.pgv.validate.Validate.StringRules value) {
if (stringBuilder_ == null) {
if (typeCase_ == 14 &&
type_ != io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.StringRules.newBuilder((io.envoyproxy.pgv.validate.Validate.StringRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 14) {
stringBuilder_.mergeFrom(value);
} else {
stringBuilder_.setMessage(value);
}
}
typeCase_ = 14;
return this;
}
/**
* .validate.StringRules string = 14;
*/
public Builder clearString() {
if (stringBuilder_ == null) {
if (typeCase_ == 14) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 14) {
typeCase_ = 0;
type_ = null;
}
stringBuilder_.clear();
}
return this;
}
/**
* .validate.StringRules string = 14;
*/
public io.envoyproxy.pgv.validate.Validate.StringRules.Builder getStringBuilder() {
return getStringFieldBuilder().getBuilder();
}
/**
* .validate.StringRules string = 14;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder getStringOrBuilder() {
if ((typeCase_ == 14) && (stringBuilder_ != null)) {
return stringBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 14) {
return (io.envoyproxy.pgv.validate.Validate.StringRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
}
}
/**
* .validate.StringRules string = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.StringRules, io.envoyproxy.pgv.validate.Validate.StringRules.Builder, io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder>
getStringFieldBuilder() {
if (stringBuilder_ == null) {
if (!(typeCase_ == 14)) {
type_ = io.envoyproxy.pgv.validate.Validate.StringRules.getDefaultInstance();
}
stringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.StringRules, io.envoyproxy.pgv.validate.Validate.StringRules.Builder, io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.StringRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 14;
onChanged();
return stringBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.BytesRules, io.envoyproxy.pgv.validate.Validate.BytesRules.Builder, io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder> bytesBuilder_;
/**
* .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 (bytesBuilder_ == null) {
if (typeCase_ == 15) {
return (io.envoyproxy.pgv.validate.Validate.BytesRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
} else {
if (typeCase_ == 15) {
return bytesBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
}
}
/**
* .validate.BytesRules bytes = 15;
*/
public Builder setBytes(io.envoyproxy.pgv.validate.Validate.BytesRules value) {
if (bytesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
bytesBuilder_.setMessage(value);
}
typeCase_ = 15;
return this;
}
/**
* .validate.BytesRules bytes = 15;
*/
public Builder setBytes(
io.envoyproxy.pgv.validate.Validate.BytesRules.Builder builderForValue) {
if (bytesBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
bytesBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 15;
return this;
}
/**
* .validate.BytesRules bytes = 15;
*/
public Builder mergeBytes(io.envoyproxy.pgv.validate.Validate.BytesRules value) {
if (bytesBuilder_ == null) {
if (typeCase_ == 15 &&
type_ != io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.BytesRules.newBuilder((io.envoyproxy.pgv.validate.Validate.BytesRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 15) {
bytesBuilder_.mergeFrom(value);
} else {
bytesBuilder_.setMessage(value);
}
}
typeCase_ = 15;
return this;
}
/**
* .validate.BytesRules bytes = 15;
*/
public Builder clearBytes() {
if (bytesBuilder_ == null) {
if (typeCase_ == 15) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 15) {
typeCase_ = 0;
type_ = null;
}
bytesBuilder_.clear();
}
return this;
}
/**
* .validate.BytesRules bytes = 15;
*/
public io.envoyproxy.pgv.validate.Validate.BytesRules.Builder getBytesBuilder() {
return getBytesFieldBuilder().getBuilder();
}
/**
* .validate.BytesRules bytes = 15;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder getBytesOrBuilder() {
if ((typeCase_ == 15) && (bytesBuilder_ != null)) {
return bytesBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 15) {
return (io.envoyproxy.pgv.validate.Validate.BytesRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
}
}
/**
* .validate.BytesRules bytes = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.BytesRules, io.envoyproxy.pgv.validate.Validate.BytesRules.Builder, io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder>
getBytesFieldBuilder() {
if (bytesBuilder_ == null) {
if (!(typeCase_ == 15)) {
type_ = io.envoyproxy.pgv.validate.Validate.BytesRules.getDefaultInstance();
}
bytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.BytesRules, io.envoyproxy.pgv.validate.Validate.BytesRules.Builder, io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.BytesRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 15;
onChanged();
return bytesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.EnumRules, io.envoyproxy.pgv.validate.Validate.EnumRules.Builder, io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder> enumBuilder_;
/**
*
* 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 (enumBuilder_ == null) {
if (typeCase_ == 16) {
return (io.envoyproxy.pgv.validate.Validate.EnumRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance();
} else {
if (typeCase_ == 16) {
return enumBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance();
}
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
public Builder setEnum(io.envoyproxy.pgv.validate.Validate.EnumRules value) {
if (enumBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
enumBuilder_.setMessage(value);
}
typeCase_ = 16;
return this;
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
public Builder setEnum(
io.envoyproxy.pgv.validate.Validate.EnumRules.Builder builderForValue) {
if (enumBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
enumBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 16;
return this;
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
public Builder mergeEnum(io.envoyproxy.pgv.validate.Validate.EnumRules value) {
if (enumBuilder_ == null) {
if (typeCase_ == 16 &&
type_ != io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.EnumRules.newBuilder((io.envoyproxy.pgv.validate.Validate.EnumRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 16) {
enumBuilder_.mergeFrom(value);
} else {
enumBuilder_.setMessage(value);
}
}
typeCase_ = 16;
return this;
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
public Builder clearEnum() {
if (enumBuilder_ == null) {
if (typeCase_ == 16) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 16) {
typeCase_ = 0;
type_ = null;
}
enumBuilder_.clear();
}
return this;
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
public io.envoyproxy.pgv.validate.Validate.EnumRules.Builder getEnumBuilder() {
return getEnumFieldBuilder().getBuilder();
}
/**
*
* Complex Field Types
*
*
* .validate.EnumRules enum = 16;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder getEnumOrBuilder() {
if ((typeCase_ == 16) && (enumBuilder_ != null)) {
return enumBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.EnumRules, io.envoyproxy.pgv.validate.Validate.EnumRules.Builder, io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder>
getEnumFieldBuilder() {
if (enumBuilder_ == null) {
if (!(typeCase_ == 16)) {
type_ = io.envoyproxy.pgv.validate.Validate.EnumRules.getDefaultInstance();
}
enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.EnumRules, io.envoyproxy.pgv.validate.Validate.EnumRules.Builder, io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.EnumRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 16;
onChanged();
return enumBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.RepeatedRules, io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder, io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder> repeatedBuilder_;
/**
* .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 (repeatedBuilder_ == null) {
if (typeCase_ == 18) {
return (io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
} else {
if (typeCase_ == 18) {
return repeatedBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
}
}
/**
* .validate.RepeatedRules repeated = 18;
*/
public Builder setRepeated(io.envoyproxy.pgv.validate.Validate.RepeatedRules value) {
if (repeatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
repeatedBuilder_.setMessage(value);
}
typeCase_ = 18;
return this;
}
/**
* .validate.RepeatedRules repeated = 18;
*/
public Builder setRepeated(
io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder builderForValue) {
if (repeatedBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
repeatedBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 18;
return this;
}
/**
* .validate.RepeatedRules repeated = 18;
*/
public Builder mergeRepeated(io.envoyproxy.pgv.validate.Validate.RepeatedRules value) {
if (repeatedBuilder_ == null) {
if (typeCase_ == 18 &&
type_ != io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.RepeatedRules.newBuilder((io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 18) {
repeatedBuilder_.mergeFrom(value);
} else {
repeatedBuilder_.setMessage(value);
}
}
typeCase_ = 18;
return this;
}
/**
* .validate.RepeatedRules repeated = 18;
*/
public Builder clearRepeated() {
if (repeatedBuilder_ == null) {
if (typeCase_ == 18) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 18) {
typeCase_ = 0;
type_ = null;
}
repeatedBuilder_.clear();
}
return this;
}
/**
* .validate.RepeatedRules repeated = 18;
*/
public io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder getRepeatedBuilder() {
return getRepeatedFieldBuilder().getBuilder();
}
/**
* .validate.RepeatedRules repeated = 18;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder getRepeatedOrBuilder() {
if ((typeCase_ == 18) && (repeatedBuilder_ != null)) {
return repeatedBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 18) {
return (io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
}
}
/**
* .validate.RepeatedRules repeated = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.RepeatedRules, io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder, io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder>
getRepeatedFieldBuilder() {
if (repeatedBuilder_ == null) {
if (!(typeCase_ == 18)) {
type_ = io.envoyproxy.pgv.validate.Validate.RepeatedRules.getDefaultInstance();
}
repeatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.RepeatedRules, io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder, io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 18;
onChanged();
return repeatedBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.MapRules, io.envoyproxy.pgv.validate.Validate.MapRules.Builder, io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder> mapBuilder_;
/**
* .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 (mapBuilder_ == null) {
if (typeCase_ == 19) {
return (io.envoyproxy.pgv.validate.Validate.MapRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
} else {
if (typeCase_ == 19) {
return mapBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
}
}
/**
* .validate.MapRules map = 19;
*/
public Builder setMap(io.envoyproxy.pgv.validate.Validate.MapRules value) {
if (mapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
mapBuilder_.setMessage(value);
}
typeCase_ = 19;
return this;
}
/**
* .validate.MapRules map = 19;
*/
public Builder setMap(
io.envoyproxy.pgv.validate.Validate.MapRules.Builder builderForValue) {
if (mapBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
mapBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 19;
return this;
}
/**
* .validate.MapRules map = 19;
*/
public Builder mergeMap(io.envoyproxy.pgv.validate.Validate.MapRules value) {
if (mapBuilder_ == null) {
if (typeCase_ == 19 &&
type_ != io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.MapRules.newBuilder((io.envoyproxy.pgv.validate.Validate.MapRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 19) {
mapBuilder_.mergeFrom(value);
} else {
mapBuilder_.setMessage(value);
}
}
typeCase_ = 19;
return this;
}
/**
* .validate.MapRules map = 19;
*/
public Builder clearMap() {
if (mapBuilder_ == null) {
if (typeCase_ == 19) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 19) {
typeCase_ = 0;
type_ = null;
}
mapBuilder_.clear();
}
return this;
}
/**
* .validate.MapRules map = 19;
*/
public io.envoyproxy.pgv.validate.Validate.MapRules.Builder getMapBuilder() {
return getMapFieldBuilder().getBuilder();
}
/**
* .validate.MapRules map = 19;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder getMapOrBuilder() {
if ((typeCase_ == 19) && (mapBuilder_ != null)) {
return mapBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 19) {
return (io.envoyproxy.pgv.validate.Validate.MapRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
}
}
/**
* .validate.MapRules map = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.MapRules, io.envoyproxy.pgv.validate.Validate.MapRules.Builder, io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder>
getMapFieldBuilder() {
if (mapBuilder_ == null) {
if (!(typeCase_ == 19)) {
type_ = io.envoyproxy.pgv.validate.Validate.MapRules.getDefaultInstance();
}
mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.MapRules, io.envoyproxy.pgv.validate.Validate.MapRules.Builder, io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.MapRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 19;
onChanged();
return mapBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.AnyRules, io.envoyproxy.pgv.validate.Validate.AnyRules.Builder, io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder> anyBuilder_;
/**
*
* 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 (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;
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
public Builder setAny(
io.envoyproxy.pgv.validate.Validate.AnyRules.Builder builderForValue) {
if (anyBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
anyBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 20;
return this;
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
public Builder mergeAny(io.envoyproxy.pgv.validate.Validate.AnyRules value) {
if (anyBuilder_ == null) {
if (typeCase_ == 20 &&
type_ != io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.AnyRules.newBuilder((io.envoyproxy.pgv.validate.Validate.AnyRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 20) {
anyBuilder_.mergeFrom(value);
} else {
anyBuilder_.setMessage(value);
}
}
typeCase_ = 20;
return this;
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
public Builder clearAny() {
if (anyBuilder_ == null) {
if (typeCase_ == 20) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 20) {
typeCase_ = 0;
type_ = null;
}
anyBuilder_.clear();
}
return this;
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
public io.envoyproxy.pgv.validate.Validate.AnyRules.Builder getAnyBuilder() {
return getAnyFieldBuilder().getBuilder();
}
/**
*
* Well-Known Field Types
*
*
* .validate.AnyRules any = 20;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder getAnyOrBuilder() {
if ((typeCase_ == 20) && (anyBuilder_ != null)) {
return anyBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.AnyRules, io.envoyproxy.pgv.validate.Validate.AnyRules.Builder, io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder>
getAnyFieldBuilder() {
if (anyBuilder_ == null) {
if (!(typeCase_ == 20)) {
type_ = io.envoyproxy.pgv.validate.Validate.AnyRules.getDefaultInstance();
}
anyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.AnyRules, io.envoyproxy.pgv.validate.Validate.AnyRules.Builder, io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.AnyRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 20;
onChanged();
return anyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.DurationRules, io.envoyproxy.pgv.validate.Validate.DurationRules.Builder, io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder> durationBuilder_;
/**
* .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 (durationBuilder_ == null) {
if (typeCase_ == 21) {
return (io.envoyproxy.pgv.validate.Validate.DurationRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
} else {
if (typeCase_ == 21) {
return durationBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
}
}
/**
* .validate.DurationRules duration = 21;
*/
public Builder setDuration(io.envoyproxy.pgv.validate.Validate.DurationRules value) {
if (durationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
durationBuilder_.setMessage(value);
}
typeCase_ = 21;
return this;
}
/**
* .validate.DurationRules duration = 21;
*/
public Builder setDuration(
io.envoyproxy.pgv.validate.Validate.DurationRules.Builder builderForValue) {
if (durationBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
durationBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 21;
return this;
}
/**
* .validate.DurationRules duration = 21;
*/
public Builder mergeDuration(io.envoyproxy.pgv.validate.Validate.DurationRules value) {
if (durationBuilder_ == null) {
if (typeCase_ == 21 &&
type_ != io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.DurationRules.newBuilder((io.envoyproxy.pgv.validate.Validate.DurationRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 21) {
durationBuilder_.mergeFrom(value);
} else {
durationBuilder_.setMessage(value);
}
}
typeCase_ = 21;
return this;
}
/**
* .validate.DurationRules duration = 21;
*/
public Builder clearDuration() {
if (durationBuilder_ == null) {
if (typeCase_ == 21) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 21) {
typeCase_ = 0;
type_ = null;
}
durationBuilder_.clear();
}
return this;
}
/**
* .validate.DurationRules duration = 21;
*/
public io.envoyproxy.pgv.validate.Validate.DurationRules.Builder getDurationBuilder() {
return getDurationFieldBuilder().getBuilder();
}
/**
* .validate.DurationRules duration = 21;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder getDurationOrBuilder() {
if ((typeCase_ == 21) && (durationBuilder_ != null)) {
return durationBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 21) {
return (io.envoyproxy.pgv.validate.Validate.DurationRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
}
}
/**
* .validate.DurationRules duration = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.DurationRules, io.envoyproxy.pgv.validate.Validate.DurationRules.Builder, io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder>
getDurationFieldBuilder() {
if (durationBuilder_ == null) {
if (!(typeCase_ == 21)) {
type_ = io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
}
durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.DurationRules, io.envoyproxy.pgv.validate.Validate.DurationRules.Builder, io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.DurationRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 21;
onChanged();
return durationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.TimestampRules, io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder, io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder> timestampBuilder_;
/**
* .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 (timestampBuilder_ == null) {
if (typeCase_ == 22) {
return (io.envoyproxy.pgv.validate.Validate.TimestampRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
} else {
if (typeCase_ == 22) {
return timestampBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
}
}
/**
* .validate.TimestampRules timestamp = 22;
*/
public Builder setTimestamp(io.envoyproxy.pgv.validate.Validate.TimestampRules value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
typeCase_ = 22;
return this;
}
/**
* .validate.TimestampRules timestamp = 22;
*/
public Builder setTimestamp(
io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder builderForValue) {
if (timestampBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 22;
return this;
}
/**
* .validate.TimestampRules timestamp = 22;
*/
public Builder mergeTimestamp(io.envoyproxy.pgv.validate.Validate.TimestampRules value) {
if (timestampBuilder_ == null) {
if (typeCase_ == 22 &&
type_ != io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.TimestampRules.newBuilder((io.envoyproxy.pgv.validate.Validate.TimestampRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 22) {
timestampBuilder_.mergeFrom(value);
} else {
timestampBuilder_.setMessage(value);
}
}
typeCase_ = 22;
return this;
}
/**
* .validate.TimestampRules timestamp = 22;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
if (typeCase_ == 22) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 22) {
typeCase_ = 0;
type_ = null;
}
timestampBuilder_.clear();
}
return this;
}
/**
* .validate.TimestampRules timestamp = 22;
*/
public io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder getTimestampBuilder() {
return getTimestampFieldBuilder().getBuilder();
}
/**
* .validate.TimestampRules timestamp = 22;
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder getTimestampOrBuilder() {
if ((typeCase_ == 22) && (timestampBuilder_ != null)) {
return timestampBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 22) {
return (io.envoyproxy.pgv.validate.Validate.TimestampRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
}
}
/**
* .validate.TimestampRules timestamp = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.TimestampRules, io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder, io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
if (!(typeCase_ == 22)) {
type_ = io.envoyproxy.pgv.validate.Validate.TimestampRules.getDefaultInstance();
}
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.TimestampRules, io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder, io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder>(
(io.envoyproxy.pgv.validate.Validate.TimestampRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 22;
onChanged();
return timestampBuilder_;
}
@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.FieldRules)
}
// @@protoc_insertion_point(class_scope:validate.FieldRules)
private static final io.envoyproxy.pgv.validate.Validate.FieldRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.FieldRules();
}
public static io.envoyproxy.pgv.validate.Validate.FieldRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldRules 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.FieldRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FloatRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.FloatRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @return The const.
*/
float getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float 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 float lt = 2;
* @return The lt.
*/
float getLt();
/**
*
* 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.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
* @return The lte.
*/
float 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 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.
*
*
* optional float gt = 4;
* @return The gt.
*/
float 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 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.
*
*
* optional float gte = 5;
* @return The gte.
*/
float getGte();
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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
*
*
* optional float const = 1;
* @return The const.
*/
@java.lang.Override
public float getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(float value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0F;
onChanged();
return this;
}
private float lt_ ;
/**
*
* 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_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(float value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0F;
onChanged();
return this;
}
private float lte_ ;
/**
*
* 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_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(float 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 float lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0F;
onChanged();
return this;
}
private float 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 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_;
}
/**
*
* 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.
*
*
* optional float gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0F;
onChanged();
return this;
}
private float 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 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_;
}
/**
*
* 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.
*
*
* optional float gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0F;
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList in_ = emptyFloatList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated float in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList notIn_ = emptyFloatList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated float not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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.FloatRules)
}
// @@protoc_insertion_point(class_scope:validate.FloatRules)
private static final io.envoyproxy.pgv.validate.Validate.FloatRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.FloatRules();
}
public static io.envoyproxy.pgv.validate.Validate.FloatRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FloatRules 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.FloatRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DoubleRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.DoubleRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @return The const.
*/
double getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double 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 double lt = 2;
* @return The lt.
*/
double getLt();
/**
*
* 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.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
* @return The lte.
*/
double 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 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.
*
*
* optional double gt = 4;
* @return The gt.
*/
double 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 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.
*
*
* optional double gte = 5;
* @return The gte.
*/
double getGte();
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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
*
*
* optional double const = 1;
* @return The const.
*/
@java.lang.Override
public double getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(double value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0D;
onChanged();
return this;
}
private double lt_ ;
/**
*
* 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_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
* @param value The lt to set.
* @return This builder for chaining.
*/
public Builder setLt(double value) {
lt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
* @return This builder for chaining.
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000002);
lt_ = 0D;
onChanged();
return this;
}
private double lte_ ;
/**
*
* 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_;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
* @param value The lte to set.
* @return This builder for chaining.
*/
public Builder setLte(double 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 double lte = 3;
* @return This builder for chaining.
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000004);
lte_ = 0D;
onChanged();
return this;
}
private double 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 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_;
}
/**
*
* 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.
*
*
* optional double gt = 4;
* @return This builder for chaining.
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000008);
gt_ = 0D;
onChanged();
return this;
}
private double 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 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_;
}
/**
*
* 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.
*
*
* optional double gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0D;
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList in_ = emptyDoubleList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated double in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList notIn_ = emptyDoubleList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated double not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional int32 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList in_ = emptyIntList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated int32 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList notIn_ = emptyIntList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated int32 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional int64 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList in_ = emptyLongList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated int64 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList notIn_ = emptyLongList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated int64 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional uint32 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList in_ = emptyIntList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated uint32 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList notIn_ = emptyIntList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated uint32 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional uint64 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList in_ = emptyLongList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated uint64 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList notIn_ = emptyLongList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated uint64 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional sint32 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList in_ = emptyIntList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated sint32 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList notIn_ = emptyIntList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated sint32 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional sint64 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList in_ = emptyLongList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated sint64 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList notIn_ = emptyLongList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated sint64 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional fixed32 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList in_ = emptyIntList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated fixed32 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList notIn_ = emptyIntList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated fixed32 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional fixed64 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList in_ = emptyLongList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated fixed64 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList notIn_ = emptyLongList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated fixed64 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional sfixed32 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList in_ = emptyIntList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated sfixed32 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList notIn_ = emptyIntList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated sfixed32 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 8;
* @return The ignoreEmpty.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional sfixed64 gte = 5;
* @return This builder for chaining.
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList in_ = emptyLongList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* 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
*
*
* repeated sfixed64 in = 6;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList notIn_ = emptyLongList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* 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
*
*
* repeated sfixed64 not_in = 7;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 8;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x00000080) != 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_;
}
/**
*
* 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.SFixed64Rules)
}
// @@protoc_insertion_point(class_scope:validate.SFixed64Rules)
private static final io.envoyproxy.pgv.validate.Validate.SFixed64Rules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.SFixed64Rules();
}
public static io.envoyproxy.pgv.validate.Validate.SFixed64Rules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SFixed64Rules 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.SFixed64Rules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BoolRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.BoolRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bool const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bool const = 1;
* @return The const.
*/
boolean getConst();
}
/**
*
* BoolRules describes the constraints applied to `bool` values
*
*
* Protobuf type {@code validate.BoolRules}
*/
public static final class BoolRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.BoolRules)
BoolRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use BoolRules.newBuilder() to construct.
private BoolRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BoolRules() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BoolRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BoolRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BoolRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.BoolRules.class, io.envoyproxy.pgv.validate.Validate.BoolRules.Builder.class);
}
private int bitField0_;
public static final int CONST_FIELD_NUMBER = 1;
private boolean const_ = false;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bool 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 bool const = 1;
* @return The const.
*/
@java.lang.Override
public boolean getConst() {
return const_;
}
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, const_);
}
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, const_);
}
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.BoolRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.BoolRules other = (io.envoyproxy.pgv.validate.Validate.BoolRules) obj;
if (hasConst() != other.hasConst()) return false;
if (hasConst()) {
if (getConst()
!= other.getConst()) 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.hashBoolean(
getConst());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules 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.BoolRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules 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.BoolRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules 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.BoolRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules 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.BoolRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules 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.BoolRules 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.BoolRules 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.BoolRules 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;
}
/**
*
* BoolRules describes the constraints applied to `bool` values
*
*
* Protobuf type {@code validate.BoolRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.BoolRules)
io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BoolRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BoolRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.BoolRules.class, io.envoyproxy.pgv.validate.Validate.BoolRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.BoolRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
const_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_BoolRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BoolRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BoolRules build() {
io.envoyproxy.pgv.validate.Validate.BoolRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.BoolRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.BoolRules result = new io.envoyproxy.pgv.validate.Validate.BoolRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.BoolRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.const_ = const_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.BoolRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.BoolRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.BoolRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.BoolRules.getDefaultInstance()) return this;
if (other.hasConst()) {
setConst(other.getConst());
}
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.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
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 const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bool 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 bool const = 1;
* @return The const.
*/
@java.lang.Override
public boolean getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bool const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(boolean value) {
const_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bool const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 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.BoolRules)
}
// @@protoc_insertion_point(class_scope:validate.BoolRules)
private static final io.envoyproxy.pgv.validate.Validate.BoolRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.BoolRules();
}
public static io.envoyproxy.pgv.validate.Validate.BoolRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BoolRules 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.BoolRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.StringRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return The const.
*/
java.lang.String getConst();
/**
*
* 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 specifies 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 specifies 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 pattern.
*/
java.lang.String getPattern();
/**
*
* Pattern specifies 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.
*
*
* optional string prefix = 7;
* @return The prefix.
*/
java.lang.String getPrefix();
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return The bytes for prefix.
*/
com.google.protobuf.ByteString
getPrefixBytes();
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return Whether the suffix field is set.
*/
boolean hasSuffix();
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return The suffix.
*/
java.lang.String getSuffix();
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return The bytes for suffix.
*/
com.google.protobuf.ByteString
getSuffixBytes();
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return Whether the contains field is set.
*/
boolean hasContains();
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return The contains.
*/
java.lang.String getContains();
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return The bytes for contains.
*/
com.google.protobuf.ByteString
getContainsBytes();
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return Whether the notContains field is set.
*/
boolean hasNotContains();
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return The notContains.
*/
java.lang.String getNotContains();
/**
*
* 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
*
*
* bool email = 12;
* @return The email.
*/
boolean getEmail();
/**
*
* 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).
*
*
* bool hostname = 13;
* @return The hostname.
*/
boolean getHostname();
/**
*
* 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.
*/
boolean hasIp();
/**
*
* 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.
*/
boolean getIp();
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return Whether the ipv4 field is set.
*/
boolean hasIpv4();
/**
*
* Ipv4 specifies that the field must be a valid IPv4 address.
*
*
* bool ipv4 = 15;
* @return The ipv4.
*/
boolean getIpv4();
/**
*
* 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.
*/
boolean hasIpv6();
/**
*
* 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.
*/
boolean getIpv6();
/**
*
* 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.
*/
boolean hasUri();
/**
*
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*
*
* bool uri = 17;
* @return The uri.
*/
boolean getUri();
/**
*
* 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.
*/
boolean hasUriRef();
/**
*
* 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.
*/
boolean getUriRef();
/**
*
* 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).
*
*
* bool address = 21;
* @return The address.
*/
boolean getAddress();
/**
*
* 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.
*/
boolean hasUuid();
/**
*
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*
*
* bool uuid = 22;
* @return The uuid.
*/
boolean getUuid();
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return Whether the wellKnownRegex field is set.
*/
boolean hasWellKnownRegex();
/**
*
* WellKnownRegex specifies a common well known pattern defined as a regex.
*
*
* .validate.KnownRegex well_known_regex = 24;
* @return The wellKnownRegex.
*/
io.envoyproxy.pgv.validate.Validate.KnownRegex getWellKnownRegex();
/**
*
* 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.
*
*
* optional bool strict = 25 [default = true];
* @return The strict.
*/
boolean getStrict();
/**
*
* 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.
*/
boolean hasIgnoreEmpty();
/**
*
* 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.
*/
boolean getIgnoreEmpty();
io.envoyproxy.pgv.validate.Validate.StringRules.WellKnownCase getWellKnownCase();
}
/**
*
* StringRules describe the constraints applied to `string` values
*
*
* Protobuf type {@code validate.StringRules}
*/
public static final class StringRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.StringRules)
StringRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringRules.newBuilder() to construct.
private StringRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringRules() {
const_ = "";
pattern_ = "";
prefix_ = "";
suffix_ = "";
contains_ = "";
notContains_ = "";
in_ =
com.google.protobuf.LazyStringArrayList.emptyList();
notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
strict_ = true;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StringRules();
}
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);
}
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 {
EMAIL(12),
HOSTNAME(13),
IP(14),
IPV4(15),
IPV6(16),
URI(17),
URI_REF(18),
ADDRESS(21),
UUID(22),
WELL_KNOWN_REGEX(24),
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 12: return EMAIL;
case 13: return HOSTNAME;
case 14: return IP;
case 15: return IPV4;
case 16: return IPV6;
case 17: return URI;
case 18: return URI_REF;
case 21: return ADDRESS;
case 22: return UUID;
case 24: return WELL_KNOWN_REGEX;
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;
@SuppressWarnings("serial")
private volatile 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.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return The const.
*/
@java.lang.Override
public java.lang.String getConst() {
java.lang.Object ref = const_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
const_ = s;
}
return s;
}
}
/**
*
* 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 specifies 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 specifies 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 pattern.
*/
@java.lang.Override
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pattern_ = s;
}
return s;
}
}
/**
*
* Pattern specifies 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.
*
*
* optional string prefix = 7;
* @return The prefix.
*/
@java.lang.Override
public java.lang.String getPrefix() {
java.lang.Object ref = prefix_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
prefix_ = s;
}
return s;
}
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return The bytes for prefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrefixBytes() {
java.lang.Object ref = prefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUFFIX_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object suffix_ = "";
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return Whether the suffix field is set.
*/
@java.lang.Override
public boolean hasSuffix() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return The suffix.
*/
@java.lang.Override
public java.lang.String getSuffix() {
java.lang.Object ref = suffix_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
suffix_ = s;
}
return s;
}
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return The bytes for suffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSuffixBytes() {
java.lang.Object ref = suffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTAINS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object contains_ = "";
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return Whether the contains field is set.
*/
@java.lang.Override
public boolean hasContains() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return The contains.
*/
@java.lang.Override
public java.lang.String getContains() {
java.lang.Object ref = contains_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
contains_ = s;
}
return s;
}
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return The bytes for contains.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContainsBytes() {
java.lang.Object ref = contains_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contains_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NOT_CONTAINS_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private volatile java.lang.Object notContains_ = "";
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return Whether the notContains field is set.
*/
@java.lang.Override
public boolean hasNotContains() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return The notContains.
*/
@java.lang.Override
public java.lang.String getNotContains() {
java.lang.Object ref = notContains_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
notContains_ = s;
}
return s;
}
}
/**
*
* 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
*
*
* optional string const = 1;
* @return The const.
*/
public java.lang.String getConst() {
java.lang.Object ref = const_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
const_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @return The bytes for const.
*/
public com.google.protobuf.ByteString
getConstBytes() {
java.lang.Object ref = const_;
if (ref instanceof 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;
}
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional string const = 1;
* @param value The const to set.
* @return This builder for chaining.
*/
public Builder setConst(
java.lang.String 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 string const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
const_ = getDefaultInstance().getConst();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* 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
*
*
* optional uint64 max_bytes = 5;
* @return This builder for chaining.
*/
public Builder clearMaxBytes() {
bitField0_ = (bitField0_ & ~0x00000040);
maxBytes_ = 0L;
onChanged();
return this;
}
private java.lang.Object pattern_ = "";
/**
*
* Pattern specifies 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 specifies 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 pattern.
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pattern_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Pattern specifies 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 specifies 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 specifies that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 6;
* @return This builder for chaining.
*/
public Builder clearPattern() {
pattern_ = getDefaultInstance().getPattern();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Pattern specifies 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.
*
*
* optional string prefix = 7;
* @return The prefix.
*/
public java.lang.String getPrefix() {
java.lang.Object ref = prefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
prefix_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return The bytes for prefix.
*/
public com.google.protobuf.ByteString
getPrefixBytes() {
java.lang.Object ref = prefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @param value The prefix to set.
* @return This builder for chaining.
*/
public Builder setPrefix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
prefix_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @return This builder for chaining.
*/
public Builder clearPrefix() {
prefix_ = getDefaultInstance().getPrefix();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*
*
* optional string prefix = 7;
* @param value The bytes for prefix to set.
* @return This builder for chaining.
*/
public Builder setPrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
prefix_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object suffix_ = "";
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return Whether the suffix field is set.
*/
public boolean hasSuffix() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return The suffix.
*/
public java.lang.String getSuffix() {
java.lang.Object ref = suffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
suffix_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return The bytes for suffix.
*/
public com.google.protobuf.ByteString
getSuffixBytes() {
java.lang.Object ref = suffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @param value The suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
suffix_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @return This builder for chaining.
*/
public Builder clearSuffix() {
suffix_ = getDefaultInstance().getSuffix();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*
*
* optional string suffix = 8;
* @param value The bytes for suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
suffix_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object contains_ = "";
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return Whether the contains field is set.
*/
public boolean hasContains() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return The contains.
*/
public java.lang.String getContains() {
java.lang.Object ref = contains_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
contains_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return The bytes for contains.
*/
public com.google.protobuf.ByteString
getContainsBytes() {
java.lang.Object ref = contains_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contains_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @param value The contains to set.
* @return This builder for chaining.
*/
public Builder setContains(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
contains_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @return This builder for chaining.
*/
public Builder clearContains() {
contains_ = getDefaultInstance().getContains();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*
*
* optional string contains = 9;
* @param value The bytes for contains to set.
* @return This builder for chaining.
*/
public Builder setContainsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contains_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object notContains_ = "";
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return Whether the notContains field is set.
*/
public boolean hasNotContains() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return The notContains.
*/
public java.lang.String getNotContains() {
java.lang.Object ref = notContains_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
notContains_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return The bytes for notContains.
*/
public com.google.protobuf.ByteString
getNotContainsBytes() {
java.lang.Object ref = notContains_;
if (ref instanceof 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;
}
}
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @param value The notContains to set.
* @return This builder for chaining.
*/
public Builder setNotContains(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
notContains_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*
*
* optional string not_contains = 23;
* @return This builder for chaining.
*/
public Builder clearNotContains() {
notContains_ = getDefaultInstance().getNotContains();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
* 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
*
*
* repeated string not_in = 11;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (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 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.
*
*
* optional bool strict = 25 [default = true];
* @return The strict.
*/
@java.lang.Override
public boolean getStrict() {
return strict_;
}
/**
*
* 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.
*
*
* optional bool strict = 25 [default = true];
* @return This builder for chaining.
*/
public Builder clearStrict() {
bitField0_ = (bitField0_ & ~0x01000000);
strict_ = true;
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 = 26;
* @return Whether the ignoreEmpty field is set.
*/
@java.lang.Override
public boolean hasIgnoreEmpty() {
return ((bitField0_ & 0x02000000) != 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_;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 26;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x02000000;
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 = 26;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x02000000);
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.StringRules)
}
// @@protoc_insertion_point(class_scope:validate.StringRules)
private static final io.envoyproxy.pgv.validate.Validate.StringRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.StringRules();
}
public static io.envoyproxy.pgv.validate.Validate.StringRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StringRules 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.StringRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BytesRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.BytesRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional bytes const = 1;
* @return The const.
*/
com.google.protobuf.ByteString getConst();
/**
*
* 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 specifies 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 specifies 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 pattern.
*/
java.lang.String getPattern();
/**
*
* Pattern specifies 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.
*
*
* optional bytes prefix = 5;
* @return The prefix.
*/
com.google.protobuf.ByteString getPrefix();
/**
*
* 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.
*/
boolean hasSuffix();
/**
*
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*
*
* optional bytes suffix = 6;
* @return The suffix.
*/
com.google.protobuf.ByteString getSuffix();
/**
*
* 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.
*/
boolean hasContains();
/**
*
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*
*
* optional bytes contains = 7;
* @return The contains.
*/
com.google.protobuf.ByteString getContains();
/**
*
* 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
*
*
* bool ipv4 = 11;
* @return The ipv4.
*/
boolean getIpv4();
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return Whether the ipv6 field is set.
*/
boolean hasIpv6();
/**
*
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*
*
* bool ipv6 = 12;
* @return The ipv6.
*/
boolean getIpv6();
/**
*
* 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.
*/
boolean hasIgnoreEmpty();
/**
*
* 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.
*/
boolean getIgnoreEmpty();
io.envoyproxy.pgv.validate.Validate.BytesRules.WellKnownCase getWellKnownCase();
}
/**
*
* 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 specifies 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 specifies 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 pattern.
*/
@java.lang.Override
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pattern_ = s;
}
return s;
}
}
/**
*
* Pattern specifies 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
*
*
* optional bytes const = 1;
* @return The const.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConst() {
return const_;
}
/**
*
* 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
*
*
* optional uint64 max_len = 3;
* @return This builder for chaining.
*/
public Builder clearMaxLen() {
bitField0_ = (bitField0_ & ~0x00000008);
maxLen_ = 0L;
onChanged();
return this;
}
private java.lang.Object pattern_ = "";
/**
*
* Pattern specifies 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 specifies 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 pattern.
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pattern_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Pattern specifies 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 specifies 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 specifies that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*
*
* optional string pattern = 4;
* @return This builder for chaining.
*/
public Builder clearPattern() {
pattern_ = getDefaultInstance().getPattern();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Pattern specifies 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.
*
*
* optional bytes prefix = 5;
* @return The prefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrefix() {
return prefix_;
}
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
*
* optional bytes prefix = 5;
* @param value The prefix to set.
* @return This builder for chaining.
*/
public Builder setPrefix(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
prefix_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*
*
* optional bytes prefix = 5;
* @return This builder for chaining.
*/
public Builder clearPrefix() {
bitField0_ = (bitField0_ & ~0x00000020);
prefix_ = getDefaultInstance().getPrefix();
onChanged();
return this;
}
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_;
}
/**
*
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*
*
* optional bytes suffix = 6;
* @param value The suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffix(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
suffix_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*
*
* optional bytes suffix = 6;
* @return This builder for chaining.
*/
public Builder clearSuffix() {
bitField0_ = (bitField0_ & ~0x00000040);
suffix_ = getDefaultInstance().getSuffix();
onChanged();
return this;
}
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_;
}
/**
*
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*
*
* optional bytes contains = 7;
* @param value The contains to set.
* @return This builder for chaining.
*/
public Builder setContains(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contains_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*
*
* optional bytes contains = 7;
* @return This builder for chaining.
*/
public Builder clearContains() {
bitField0_ = (bitField0_ & ~0x00000080);
contains_ = getDefaultInstance().getContains();
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000100;
}
}
/**
*
* 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
*
*
* repeated bytes not_in = 9;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* 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
*
*
* optional bool ignore_empty = 14;
* @return The ignoreEmpty.
*/
@java.lang.Override
public boolean getIgnoreEmpty() {
return 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;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00002000;
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 = 14;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00002000);
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.BytesRules)
}
// @@protoc_insertion_point(class_scope:validate.BytesRules)
private static final io.envoyproxy.pgv.validate.Validate.BytesRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.BytesRules();
}
public static io.envoyproxy.pgv.validate.Validate.BytesRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BytesRules 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.BytesRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnumRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.EnumRules)
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();
/**
*
* 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.
*/
boolean hasDefinedOnly();
/**
*
* 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.
*/
boolean getDefinedOnly();
/**
*
* 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
*
*
* optional int32 const = 1;
* @return This builder for chaining.
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000001);
const_ = 0;
onChanged();
return this;
}
private boolean definedOnly_ ;
/**
*
* 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_;
}
/**
*
* 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;
* @param value The definedOnly to set.
* @return This builder for chaining.
*/
public Builder setDefinedOnly(boolean value) {
definedOnly_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearDefinedOnly() {
bitField0_ = (bitField0_ & ~0x00000002);
definedOnly_ = false;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList in_ = emptyIntList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
in_ = mutableCopy(in_);
bitField0_ |= 0x00000004;
}
}
/**
*
* 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
*
*
* repeated int32 in = 3;
* @return This builder for chaining.
*/
public Builder clearIn() {
in_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList notIn_ = emptyIntList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
notIn_ = mutableCopy(notIn_);
bitField0_ |= 0x00000008;
}
}
/**
*
* 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
*
*
* optional bool skip = 1;
* @return The skip.
*/
boolean getSkip();
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return Whether the required field is set.
*/
boolean hasRequired();
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return The required.
*/
boolean getRequired();
}
/**
*
* MessageRules describe the constraints applied to embedded message values.
* For message-type fields, validation is performed recursively.
*
*
* Protobuf type {@code validate.MessageRules}
*/
public static final class MessageRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.MessageRules)
MessageRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use MessageRules.newBuilder() to construct.
private MessageRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MessageRules() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MessageRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MessageRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MessageRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.MessageRules.class, io.envoyproxy.pgv.validate.Validate.MessageRules.Builder.class);
}
private int bitField0_;
public static final int SKIP_FIELD_NUMBER = 1;
private boolean skip_ = false;
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @return Whether the skip field is set.
*/
@java.lang.Override
public boolean hasSkip() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @return The skip.
*/
@java.lang.Override
public boolean getSkip() {
return skip_;
}
public static final int REQUIRED_FIELD_NUMBER = 2;
private boolean required_ = false;
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
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, skip_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, required_);
}
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, skip_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, required_);
}
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.MessageRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.MessageRules other = (io.envoyproxy.pgv.validate.Validate.MessageRules) obj;
if (hasSkip() != other.hasSkip()) return false;
if (hasSkip()) {
if (getSkip()
!= other.getSkip()) return false;
}
if (hasRequired() != other.hasRequired()) return false;
if (hasRequired()) {
if (getRequired()
!= other.getRequired()) 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 (hasSkip()) {
hash = (37 * hash) + SKIP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSkip());
}
if (hasRequired()) {
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequired());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules 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.MessageRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules 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.MessageRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules 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.MessageRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules 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.MessageRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.MessageRules 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.MessageRules 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.MessageRules 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.MessageRules 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;
}
/**
*
* MessageRules describe the constraints applied to embedded message values.
* For message-type fields, validation is performed recursively.
*
*
* Protobuf type {@code validate.MessageRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.MessageRules)
io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MessageRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MessageRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.MessageRules.class, io.envoyproxy.pgv.validate.Validate.MessageRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.MessageRules.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
skip_ = false;
required_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_MessageRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MessageRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MessageRules build() {
io.envoyproxy.pgv.validate.Validate.MessageRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.MessageRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.MessageRules result = new io.envoyproxy.pgv.validate.Validate.MessageRules(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.MessageRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.skip_ = skip_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.required_ = required_;
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.MessageRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.MessageRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.MessageRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance()) return this;
if (other.hasSkip()) {
setSkip(other.getSkip());
}
if (other.hasRequired()) {
setRequired(other.getRequired());
}
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: {
skip_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
required_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
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 skip_ ;
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @return Whether the skip field is set.
*/
@java.lang.Override
public boolean hasSkip() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @return The skip.
*/
@java.lang.Override
public boolean getSkip() {
return skip_;
}
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @param value The skip to set.
* @return This builder for chaining.
*/
public Builder setSkip(boolean value) {
skip_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Skip specifies that the validation rules of this field should not be
* evaluated
*
*
* optional bool skip = 1;
* @return This builder for chaining.
*/
public Builder clearSkip() {
bitField0_ = (bitField0_ & ~0x00000001);
skip_ = false;
onChanged();
return this;
}
private boolean required_ ;
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 2;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
*
* 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
* constraint 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
* constraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @return The unique.
*/
boolean getUnique();
/**
*
* Items specifies the constraints 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 constraints 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 The items.
*/
io.envoyproxy.pgv.validate.Validate.FieldRules getItems();
/**
*
* Items specifies the constraints 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;
*/
io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getItemsOrBuilder();
/**
*
* 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.
*/
boolean hasIgnoreEmpty();
/**
*
* 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.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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
* constraint 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
* constraint 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 constraints 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 constraints 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 The items.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRules getItems() {
return items_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : items_;
}
/**
*
* Items specifies the constraints 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
*
*
* optional uint64 max_items = 2;
* @return This builder for chaining.
*/
public Builder clearMaxItems() {
bitField0_ = (bitField0_ & ~0x00000002);
maxItems_ = 0L;
onChanged();
return this;
}
private boolean unique_ ;
/**
*
* Unique specifies that all elements in this field must be unique. This
* constraint 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
* constraint 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_;
}
/**
*
* Unique specifies that all elements in this field must be unique. This
* constraint 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
* constraint is only applicable to scalar and enum types (messages are not
* supported).
*
*
* optional bool unique = 3;
* @return This builder for chaining.
*/
public Builder clearUnique() {
bitField0_ = (bitField0_ & ~0x00000004);
unique_ = false;
onChanged();
return this;
}
private io.envoyproxy.pgv.validate.Validate.FieldRules items_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder> itemsBuilder_;
/**
*
* Items specifies the constraints 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 constraints 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 The items.
*/
public io.envoyproxy.pgv.validate.Validate.FieldRules getItems() {
if (itemsBuilder_ == null) {
return items_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : items_;
} else {
return itemsBuilder_.getMessage();
}
}
/**
*
* Items specifies the constraints 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;
*/
public Builder setItems(io.envoyproxy.pgv.validate.Validate.FieldRules value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
items_ = value;
} else {
itemsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Items specifies the constraints 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;
*/
public Builder setItems(
io.envoyproxy.pgv.validate.Validate.FieldRules.Builder builderForValue) {
if (itemsBuilder_ == null) {
items_ = builderForValue.build();
} else {
itemsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Items specifies the constraints 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;
*/
public Builder mergeItems(io.envoyproxy.pgv.validate.Validate.FieldRules value) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
items_ != null &&
items_ != io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance()) {
getItemsBuilder().mergeFrom(value);
} else {
items_ = value;
}
} else {
itemsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Items specifies the constraints 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;
*/
public Builder clearItems() {
bitField0_ = (bitField0_ & ~0x00000008);
items_ = null;
if (itemsBuilder_ != null) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Items specifies the constraints 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;
*/
public io.envoyproxy.pgv.validate.Validate.FieldRules.Builder getItemsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getItemsFieldBuilder().getBuilder();
}
/**
*
* Items specifies the constraints 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;
*/
public io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getItemsOrBuilder() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilder();
} else {
return items_ == null ?
io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : items_;
}
}
/**
*
* Items specifies the constraints 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder>(
getItems(),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
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 = 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_;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 5;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000010;
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 = 5;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000010);
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.RepeatedRules)
}
// @@protoc_insertion_point(class_scope:validate.RepeatedRules)
private static final io.envoyproxy.pgv.validate.Validate.RepeatedRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.RepeatedRules();
}
public static io.envoyproxy.pgv.validate.Validate.RepeatedRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RepeatedRules 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.RepeatedRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MapRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.MapRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* 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.
*/
boolean hasMinPairs();
/**
*
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*
*
* optional uint64 min_pairs = 1;
* @return The minPairs.
*/
long getMinPairs();
/**
*
* 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.
*/
boolean hasMaxPairs();
/**
*
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*
*
* optional uint64 max_pairs = 2;
* @return The maxPairs.
*/
long getMaxPairs();
/**
*
* 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.
*/
boolean hasNoSparse();
/**
*
* 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.
*/
boolean getNoSparse();
/**
*
* 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.
*/
boolean hasKeys();
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
* @return The keys.
*/
io.envoyproxy.pgv.validate.Validate.FieldRules getKeys();
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getKeysOrBuilder();
/**
*
* 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.
*
*
* optional .validate.FieldRules values = 5;
* @return The values.
*/
io.envoyproxy.pgv.validate.Validate.FieldRules getValues();
/**
*
* 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;
*/
io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getValuesOrBuilder();
/**
*
* 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.
*/
boolean hasIgnoreEmpty();
/**
*
* 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.
*/
boolean getIgnoreEmpty();
}
/**
*
* 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.
*
*
* optional .validate.FieldRules keys = 4;
* @return The keys.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRules getKeys() {
return keys_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : keys_;
}
/**
*
* 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.
*
*
* optional .validate.FieldRules values = 5;
* @return The values.
*/
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.FieldRules getValues() {
return values_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : 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;
*/
@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
*
*
* optional uint64 max_pairs = 2;
* @return This builder for chaining.
*/
public Builder clearMaxPairs() {
bitField0_ = (bitField0_ & ~0x00000002);
maxPairs_ = 0L;
onChanged();
return this;
}
private boolean noSparse_ ;
/**
*
* 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_;
}
/**
*
* NoSparse specifies values in this field cannot be unset. This only
* applies to map's with message value types.
*
*
* optional bool no_sparse = 3;
* @param value The noSparse to set.
* @return This builder for chaining.
*/
public Builder setNoSparse(boolean value) {
noSparse_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearNoSparse() {
bitField0_ = (bitField0_ & ~0x00000004);
noSparse_ = false;
onChanged();
return this;
}
private io.envoyproxy.pgv.validate.Validate.FieldRules keys_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder> keysBuilder_;
/**
*
* 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.
*/
public boolean hasKeys() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
* @return The keys.
*/
public io.envoyproxy.pgv.validate.Validate.FieldRules getKeys() {
if (keysBuilder_ == null) {
return keys_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : keys_;
} else {
return keysBuilder_.getMessage();
}
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
public Builder setKeys(io.envoyproxy.pgv.validate.Validate.FieldRules value) {
if (keysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keys_ = value;
} else {
keysBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
public Builder setKeys(
io.envoyproxy.pgv.validate.Validate.FieldRules.Builder builderForValue) {
if (keysBuilder_ == null) {
keys_ = builderForValue.build();
} else {
keysBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
public Builder mergeKeys(io.envoyproxy.pgv.validate.Validate.FieldRules value) {
if (keysBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
keys_ != null &&
keys_ != io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance()) {
getKeysBuilder().mergeFrom(value);
} else {
keys_ = value;
}
} else {
keysBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
public Builder clearKeys() {
bitField0_ = (bitField0_ & ~0x00000008);
keys_ = null;
if (keysBuilder_ != null) {
keysBuilder_.dispose();
keysBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
public io.envoyproxy.pgv.validate.Validate.FieldRules.Builder getKeysBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getKeysFieldBuilder().getBuilder();
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
public io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getKeysOrBuilder() {
if (keysBuilder_ != null) {
return keysBuilder_.getMessageOrBuilder();
} else {
return keys_ == null ?
io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : keys_;
}
}
/**
*
* Keys specifies the constraints to be applied to each key in the field.
*
*
* optional .validate.FieldRules keys = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder>
getKeysFieldBuilder() {
if (keysBuilder_ == null) {
keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder>(
getKeys(),
getParentForChildren(),
isClean());
keys_ = null;
}
return keysBuilder_;
}
private io.envoyproxy.pgv.validate.Validate.FieldRules values_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder> valuesBuilder_;
/**
*
* 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.
*
*
* optional .validate.FieldRules values = 5;
* @return The values.
*/
public io.envoyproxy.pgv.validate.Validate.FieldRules getValues() {
if (valuesBuilder_ == null) {
return values_ == null ? io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : values_;
} else {
return valuesBuilder_.getMessage();
}
}
/**
*
* 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;
*/
public Builder setValues(io.envoyproxy.pgv.validate.Validate.FieldRules value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
values_ = value;
} else {
valuesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder setValues(
io.envoyproxy.pgv.validate.Validate.FieldRules.Builder builderForValue) {
if (valuesBuilder_ == null) {
values_ = builderForValue.build();
} else {
valuesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder mergeValues(io.envoyproxy.pgv.validate.Validate.FieldRules value) {
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
values_ != null &&
values_ != io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance()) {
getValuesBuilder().mergeFrom(value);
} else {
values_ = value;
}
} else {
valuesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder clearValues() {
bitField0_ = (bitField0_ & ~0x00000010);
values_ = null;
if (valuesBuilder_ != null) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* 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;
*/
public io.envoyproxy.pgv.validate.Validate.FieldRules.Builder getValuesBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getValuesFieldBuilder().getBuilder();
}
/**
*
* 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;
*/
public io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder getValuesOrBuilder() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilder();
} else {
return values_ == null ?
io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance() : 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.pgv.validate.Validate.FieldRules, io.envoyproxy.pgv.validate.Validate.FieldRules.Builder, io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder>(
getValues(),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
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 = 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_;
}
/**
*
* IgnoreEmpty specifies that the validation rules of this field should be
* evaluated only if the field is not empty
*
*
* optional bool ignore_empty = 6;
* @param value The ignoreEmpty to set.
* @return This builder for chaining.
*/
public Builder setIgnoreEmpty(boolean value) {
ignoreEmpty_ = value;
bitField0_ |= 0x00000020;
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 = 6;
* @return This builder for chaining.
*/
public Builder clearIgnoreEmpty() {
bitField0_ = (bitField0_ & ~0x00000020);
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.MapRules)
}
// @@protoc_insertion_point(class_scope:validate.MapRules)
private static final io.envoyproxy.pgv.validate.Validate.MapRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.MapRules();
}
public static io.envoyproxy.pgv.validate.Validate.MapRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MapRules 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.MapRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AnyRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.AnyRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
boolean hasRequired();
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return The required.
*/
boolean getRequired();
/**
*
* 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
*
*
* optional bool required = 1;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return This builder for chaining.
*/
public Builder clearRequired() {
bitField0_ = (bitField0_ & ~0x00000001);
required_ = false;
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_ |= 0x00000002;
}
/**
*
* 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.
*
*
* repeated string not_in = 3;
* @return This builder for chaining.
*/
public Builder clearNotIn() {
notIn_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (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 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_ |= 0x00000004;
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.AnyRules)
}
// @@protoc_insertion_point(class_scope:validate.AnyRules)
private static final io.envoyproxy.pgv.validate.Validate.AnyRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.AnyRules();
}
public static io.envoyproxy.pgv.validate.Validate.AnyRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AnyRules 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.AnyRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DurationRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.DurationRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
boolean hasRequired();
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return The required.
*/
boolean getRequired();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return The const.
*/
com.google.protobuf.Duration getConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
com.google.protobuf.DurationOrBuilder getConstOrBuilder();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return The lt.
*/
com.google.protobuf.Duration getLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
com.google.protobuf.DurationOrBuilder getLtOrBuilder();
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return The lte.
*/
com.google.protobuf.Duration getLte();
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
com.google.protobuf.DurationOrBuilder getLteOrBuilder();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return The gt.
*/
com.google.protobuf.Duration getGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
com.google.protobuf.DurationOrBuilder getGtOrBuilder();
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return The gte.
*/
com.google.protobuf.Duration getGte();
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
com.google.protobuf.DurationOrBuilder getGteOrBuilder();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
java.util.List
getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
com.google.protobuf.Duration getIn(int index);
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
java.util.List extends com.google.protobuf.DurationOrBuilder>
getInOrBuilderList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
com.google.protobuf.DurationOrBuilder getInOrBuilder(
int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
java.util.List
getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
com.google.protobuf.Duration getNotIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
java.util.List extends com.google.protobuf.DurationOrBuilder>
getNotInOrBuilderList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
com.google.protobuf.DurationOrBuilder getNotInOrBuilder(
int index);
}
/**
*
* DurationRules describe the constraints applied exclusively to the
* `google.protobuf.Duration` well-known type
*
*
* Protobuf type {@code validate.DurationRules}
*/
public static final class DurationRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.DurationRules)
DurationRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use DurationRules.newBuilder() to construct.
private DurationRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DurationRules() {
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DurationRules();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DurationRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DurationRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.DurationRules.class, io.envoyproxy.pgv.validate.Validate.DurationRules.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 CONST_FIELD_NUMBER = 2;
private com.google.protobuf.Duration const_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return The const.
*/
@java.lang.Override
public com.google.protobuf.Duration getConst() {
return const_ == null ? com.google.protobuf.Duration.getDefaultInstance() : const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getConstOrBuilder() {
return const_ == null ? com.google.protobuf.Duration.getDefaultInstance() : const_;
}
public static final int LT_FIELD_NUMBER = 3;
private com.google.protobuf.Duration lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return The lt.
*/
@java.lang.Override
public com.google.protobuf.Duration getLt() {
return lt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getLtOrBuilder() {
return lt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lt_;
}
public static final int LTE_FIELD_NUMBER = 4;
private com.google.protobuf.Duration lte_;
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return The lte.
*/
@java.lang.Override
public com.google.protobuf.Duration getLte() {
return lte_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lte_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getLteOrBuilder() {
return lte_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lte_;
}
public static final int GT_FIELD_NUMBER = 5;
private com.google.protobuf.Duration gt_;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return The gt.
*/
@java.lang.Override
public com.google.protobuf.Duration getGt() {
return gt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getGtOrBuilder() {
return gt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gt_;
}
public static final int GTE_FIELD_NUMBER = 6;
private com.google.protobuf.Duration gte_;
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return The gte.
*/
@java.lang.Override
public com.google.protobuf.Duration getGte() {
return gte_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gte_;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getGteOrBuilder() {
return gte_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gte_;
}
public static final int IN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
@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 .google.protobuf.Duration in = 7;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.DurationOrBuilder>
getInOrBuilderList() {
return in_;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
@java.lang.Override
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
@java.lang.Override
public com.google.protobuf.Duration getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getInOrBuilder(
int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
@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 .google.protobuf.Duration not_in = 8;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.DurationOrBuilder>
getNotInOrBuilderList() {
return notIn_;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
@java.lang.Override
public int getNotInCount() {
return notIn_.size();
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
@java.lang.Override
public com.google.protobuf.Duration getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getNotInOrBuilder(
int index) {
return notIn_.get(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_);
}
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());
}
for (int i = 0; i < in_.size(); i++) {
output.writeMessage(7, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeMessage(8, notIn_.get(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_);
}
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());
}
for (int i = 0; i < in_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, notIn_.get(i));
}
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.DurationRules)) {
return super.equals(obj);
}
io.envoyproxy.pgv.validate.Validate.DurationRules other = (io.envoyproxy.pgv.validate.Validate.DurationRules) 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 (!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 (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 (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.DurationRules parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.DurationRules 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.DurationRules parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.DurationRules 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.DurationRules parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.pgv.validate.Validate.DurationRules 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.DurationRules parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.DurationRules 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.DurationRules parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.pgv.validate.Validate.DurationRules 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.DurationRules 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.DurationRules 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.DurationRules 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;
}
/**
*
* DurationRules describe the constraints applied exclusively to the
* `google.protobuf.Duration` well-known type
*
*
* Protobuf type {@code validate.DurationRules}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:validate.DurationRules)
io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DurationRules_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DurationRules_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.pgv.validate.Validate.DurationRules.class, io.envoyproxy.pgv.validate.Validate.DurationRules.Builder.class);
}
// Construct using io.envoyproxy.pgv.validate.Validate.DurationRules.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();
getInFieldBuilder();
getNotInFieldBuilder();
}
}
@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;
}
if (inBuilder_ == null) {
in_ = java.util.Collections.emptyList();
} else {
in_ = null;
inBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (notInBuilder_ == null) {
notIn_ = java.util.Collections.emptyList();
} else {
notIn_ = null;
notInBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DurationRules_descriptor;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DurationRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.DurationRules.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DurationRules build() {
io.envoyproxy.pgv.validate.Validate.DurationRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.pgv.validate.Validate.DurationRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.DurationRules result = new io.envoyproxy.pgv.validate.Validate.DurationRules(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.pgv.validate.Validate.DurationRules result) {
if (inBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.in_ = in_;
} else {
result.in_ = inBuilder_.build();
}
if (notInBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.notIn_ = notIn_;
} else {
result.notIn_ = notInBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.pgv.validate.Validate.DurationRules 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;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.pgv.validate.Validate.DurationRules) {
return mergeFrom((io.envoyproxy.pgv.validate.Validate.DurationRules)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.pgv.validate.Validate.DurationRules other) {
if (other == io.envoyproxy.pgv.validate.Validate.DurationRules.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 (inBuilder_ == null) {
if (!other.in_.isEmpty()) {
if (in_.isEmpty()) {
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureInIsMutable();
in_.addAll(other.in_);
}
onChanged();
}
} else {
if (!other.in_.isEmpty()) {
if (inBuilder_.isEmpty()) {
inBuilder_.dispose();
inBuilder_ = null;
in_ = other.in_;
bitField0_ = (bitField0_ & ~0x00000040);
inBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInFieldBuilder() : null;
} else {
inBuilder_.addAllMessages(other.in_);
}
}
}
if (notInBuilder_ == null) {
if (!other.notIn_.isEmpty()) {
if (notIn_.isEmpty()) {
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureNotInIsMutable();
notIn_.addAll(other.notIn_);
}
onChanged();
}
} else {
if (!other.notIn_.isEmpty()) {
if (notInBuilder_.isEmpty()) {
notInBuilder_.dispose();
notInBuilder_ = null;
notIn_ = other.notIn_;
bitField0_ = (bitField0_ & ~0x00000080);
notInBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNotInFieldBuilder() : null;
} else {
notInBuilder_.addAllMessages(other.notIn_);
}
}
}
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 58: {
com.google.protobuf.Duration m =
input.readMessage(
com.google.protobuf.Duration.parser(),
extensionRegistry);
if (inBuilder_ == null) {
ensureInIsMutable();
in_.add(m);
} else {
inBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
com.google.protobuf.Duration m =
input.readMessage(
com.google.protobuf.Duration.parser(),
extensionRegistry);
if (notInBuilder_ == null) {
ensureNotInIsMutable();
notIn_.add(m);
} else {
notInBuilder_.addMessage(m);
}
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int 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
*
*
* optional bool required = 1;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return This builder for chaining.
*/
public Builder clearRequired() {
bitField0_ = (bitField0_ & ~0x00000001);
required_ = false;
onChanged();
return this;
}
private com.google.protobuf.Duration const_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> constBuilder_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return Whether the const field is set.
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return The const.
*/
public com.google.protobuf.Duration getConst() {
if (constBuilder_ == null) {
return const_ == null ? com.google.protobuf.Duration.getDefaultInstance() : const_;
} else {
return constBuilder_.getMessage();
}
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public Builder setConst(com.google.protobuf.Duration value) {
if (constBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
const_ = value;
} else {
constBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public Builder setConst(
com.google.protobuf.Duration.Builder builderForValue) {
if (constBuilder_ == null) {
const_ = builderForValue.build();
} else {
constBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public Builder mergeConst(com.google.protobuf.Duration value) {
if (constBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
const_ != null &&
const_ != com.google.protobuf.Duration.getDefaultInstance()) {
getConstBuilder().mergeFrom(value);
} else {
const_ = value;
}
} else {
constBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000002);
const_ = null;
if (constBuilder_ != null) {
constBuilder_.dispose();
constBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public com.google.protobuf.Duration.Builder getConstBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getConstFieldBuilder().getBuilder();
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public com.google.protobuf.DurationOrBuilder getConstOrBuilder() {
if (constBuilder_ != null) {
return constBuilder_.getMessageOrBuilder();
} else {
return const_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : const_;
}
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getConstFieldBuilder() {
if (constBuilder_ == null) {
constBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getConst(),
getParentForChildren(),
isClean());
const_ = null;
}
return constBuilder_;
}
private com.google.protobuf.Duration lt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ltBuilder_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return Whether the lt field is set.
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return The lt.
*/
public com.google.protobuf.Duration getLt() {
if (ltBuilder_ == null) {
return lt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lt_;
} else {
return ltBuilder_.getMessage();
}
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public Builder setLt(com.google.protobuf.Duration value) {
if (ltBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lt_ = value;
} else {
ltBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public Builder setLt(
com.google.protobuf.Duration.Builder builderForValue) {
if (ltBuilder_ == null) {
lt_ = builderForValue.build();
} else {
ltBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public Builder mergeLt(com.google.protobuf.Duration value) {
if (ltBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
lt_ != null &&
lt_ != com.google.protobuf.Duration.getDefaultInstance()) {
getLtBuilder().mergeFrom(value);
} else {
lt_ = value;
}
} else {
ltBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000004);
lt_ = null;
if (ltBuilder_ != null) {
ltBuilder_.dispose();
ltBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public com.google.protobuf.Duration.Builder getLtBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLtFieldBuilder().getBuilder();
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public com.google.protobuf.DurationOrBuilder getLtOrBuilder() {
if (ltBuilder_ != null) {
return ltBuilder_.getMessageOrBuilder();
} else {
return lt_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : lt_;
}
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getLtFieldBuilder() {
if (ltBuilder_ == null) {
ltBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getLt(),
getParentForChildren(),
isClean());
lt_ = null;
}
return ltBuilder_;
}
private com.google.protobuf.Duration lte_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lteBuilder_;
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return Whether the lte field is set.
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return The lte.
*/
public com.google.protobuf.Duration getLte() {
if (lteBuilder_ == null) {
return lte_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lte_;
} else {
return lteBuilder_.getMessage();
}
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public Builder setLte(com.google.protobuf.Duration value) {
if (lteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lte_ = value;
} else {
lteBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public Builder setLte(
com.google.protobuf.Duration.Builder builderForValue) {
if (lteBuilder_ == null) {
lte_ = builderForValue.build();
} else {
lteBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public Builder mergeLte(com.google.protobuf.Duration value) {
if (lteBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
lte_ != null &&
lte_ != com.google.protobuf.Duration.getDefaultInstance()) {
getLteBuilder().mergeFrom(value);
} else {
lte_ = value;
}
} else {
lteBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000008);
lte_ = null;
if (lteBuilder_ != null) {
lteBuilder_.dispose();
lteBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public com.google.protobuf.Duration.Builder getLteBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLteFieldBuilder().getBuilder();
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public com.google.protobuf.DurationOrBuilder getLteOrBuilder() {
if (lteBuilder_ != null) {
return lteBuilder_.getMessageOrBuilder();
} else {
return lte_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : lte_;
}
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getLteFieldBuilder() {
if (lteBuilder_ == null) {
lteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getLte(),
getParentForChildren(),
isClean());
lte_ = null;
}
return lteBuilder_;
}
private com.google.protobuf.Duration gt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gtBuilder_;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return Whether the gt field is set.
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return The gt.
*/
public com.google.protobuf.Duration getGt() {
if (gtBuilder_ == null) {
return gt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gt_;
} else {
return gtBuilder_.getMessage();
}
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public Builder setGt(com.google.protobuf.Duration value) {
if (gtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gt_ = value;
} else {
gtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public Builder setGt(
com.google.protobuf.Duration.Builder builderForValue) {
if (gtBuilder_ == null) {
gt_ = builderForValue.build();
} else {
gtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public Builder mergeGt(com.google.protobuf.Duration value) {
if (gtBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
gt_ != null &&
gt_ != com.google.protobuf.Duration.getDefaultInstance()) {
getGtBuilder().mergeFrom(value);
} else {
gt_ = value;
}
} else {
gtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000010);
gt_ = null;
if (gtBuilder_ != null) {
gtBuilder_.dispose();
gtBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public com.google.protobuf.Duration.Builder getGtBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getGtFieldBuilder().getBuilder();
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public com.google.protobuf.DurationOrBuilder getGtOrBuilder() {
if (gtBuilder_ != null) {
return gtBuilder_.getMessageOrBuilder();
} else {
return gt_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : gt_;
}
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getGtFieldBuilder() {
if (gtBuilder_ == null) {
gtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getGt(),
getParentForChildren(),
isClean());
gt_ = null;
}
return gtBuilder_;
}
private com.google.protobuf.Duration gte_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gteBuilder_;
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return Whether the gte field is set.
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return The gte.
*/
public com.google.protobuf.Duration getGte() {
if (gteBuilder_ == null) {
return gte_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gte_;
} else {
return gteBuilder_.getMessage();
}
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public Builder setGte(com.google.protobuf.Duration value) {
if (gteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gte_ = value;
} else {
gteBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public Builder setGte(
com.google.protobuf.Duration.Builder builderForValue) {
if (gteBuilder_ == null) {
gte_ = builderForValue.build();
} else {
gteBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public Builder mergeGte(com.google.protobuf.Duration value) {
if (gteBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
gte_ != null &&
gte_ != com.google.protobuf.Duration.getDefaultInstance()) {
getGteBuilder().mergeFrom(value);
} else {
gte_ = value;
}
} else {
gteBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000020);
gte_ = null;
if (gteBuilder_ != null) {
gteBuilder_.dispose();
gteBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public com.google.protobuf.Duration.Builder getGteBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getGteFieldBuilder().getBuilder();
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public com.google.protobuf.DurationOrBuilder getGteOrBuilder() {
if (gteBuilder_ != null) {
return gteBuilder_.getMessageOrBuilder();
} else {
return gte_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : gte_;
}
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getGteFieldBuilder() {
if (gteBuilder_ == null) {
gteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getGte(),
getParentForChildren(),
isClean());
gte_ = null;
}
return gteBuilder_;
}
private java.util.List in_ =
java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inBuilder_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public java.util.List getInList() {
if (inBuilder_ == null) {
return java.util.Collections.unmodifiableList(in_);
} else {
return inBuilder_.getMessageList();
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public int getInCount() {
if (inBuilder_ == null) {
return in_.size();
} else {
return inBuilder_.getCount();
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public com.google.protobuf.Duration getIn(int index) {
if (inBuilder_ == null) {
return in_.get(index);
} else {
return inBuilder_.getMessage(index);
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder setIn(
int index, com.google.protobuf.Duration value) {
if (inBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInIsMutable();
in_.set(index, value);
onChanged();
} else {
inBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder setIn(
int index, com.google.protobuf.Duration.Builder builderForValue) {
if (inBuilder_ == null) {
ensureInIsMutable();
in_.set(index, builderForValue.build());
onChanged();
} else {
inBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder addIn(com.google.protobuf.Duration value) {
if (inBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInIsMutable();
in_.add(value);
onChanged();
} else {
inBuilder_.addMessage(value);
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder addIn(
int index, com.google.protobuf.Duration value) {
if (inBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInIsMutable();
in_.add(index, value);
onChanged();
} else {
inBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder addIn(
com.google.protobuf.Duration.Builder builderForValue) {
if (inBuilder_ == null) {
ensureInIsMutable();
in_.add(builderForValue.build());
onChanged();
} else {
inBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder addIn(
int index, com.google.protobuf.Duration.Builder builderForValue) {
if (inBuilder_ == null) {
ensureInIsMutable();
in_.add(index, builderForValue.build());
onChanged();
} else {
inBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder addAllIn(
java.lang.Iterable extends com.google.protobuf.Duration> values) {
if (inBuilder_ == null) {
ensureInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, in_);
onChanged();
} else {
inBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder clearIn() {
if (inBuilder_ == null) {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
inBuilder_.clear();
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public Builder removeIn(int index) {
if (inBuilder_ == null) {
ensureInIsMutable();
in_.remove(index);
onChanged();
} else {
inBuilder_.remove(index);
}
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public com.google.protobuf.Duration.Builder getInBuilder(
int index) {
return getInFieldBuilder().getBuilder(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public com.google.protobuf.DurationOrBuilder getInOrBuilder(
int index) {
if (inBuilder_ == null) {
return in_.get(index); } else {
return inBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public java.util.List extends com.google.protobuf.DurationOrBuilder>
getInOrBuilderList() {
if (inBuilder_ != null) {
return inBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(in_);
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public com.google.protobuf.Duration.Builder addInBuilder() {
return getInFieldBuilder().addBuilder(
com.google.protobuf.Duration.getDefaultInstance());
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public com.google.protobuf.Duration.Builder addInBuilder(
int index) {
return getInFieldBuilder().addBuilder(
index, com.google.protobuf.Duration.getDefaultInstance());
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public java.util.List
getInBuilderList() {
return getInFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getInFieldBuilder() {
if (inBuilder_ == null) {
inBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
in_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
in_ = null;
}
return inBuilder_;
}
private java.util.List notIn_ =
java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> notInBuilder_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public java.util.List getNotInList() {
if (notInBuilder_ == null) {
return java.util.Collections.unmodifiableList(notIn_);
} else {
return notInBuilder_.getMessageList();
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public int getNotInCount() {
if (notInBuilder_ == null) {
return notIn_.size();
} else {
return notInBuilder_.getCount();
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public com.google.protobuf.Duration getNotIn(int index) {
if (notInBuilder_ == null) {
return notIn_.get(index);
} else {
return notInBuilder_.getMessage(index);
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder setNotIn(
int index, com.google.protobuf.Duration value) {
if (notInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
} else {
notInBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder setNotIn(
int index, com.google.protobuf.Duration.Builder builderForValue) {
if (notInBuilder_ == null) {
ensureNotInIsMutable();
notIn_.set(index, builderForValue.build());
onChanged();
} else {
notInBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder addNotIn(com.google.protobuf.Duration value) {
if (notInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
} else {
notInBuilder_.addMessage(value);
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder addNotIn(
int index, com.google.protobuf.Duration value) {
if (notInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotInIsMutable();
notIn_.add(index, value);
onChanged();
} else {
notInBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder addNotIn(
com.google.protobuf.Duration.Builder builderForValue) {
if (notInBuilder_ == null) {
ensureNotInIsMutable();
notIn_.add(builderForValue.build());
onChanged();
} else {
notInBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder addNotIn(
int index, com.google.protobuf.Duration.Builder builderForValue) {
if (notInBuilder_ == null) {
ensureNotInIsMutable();
notIn_.add(index, builderForValue.build());
onChanged();
} else {
notInBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder addAllNotIn(
java.lang.Iterable extends com.google.protobuf.Duration> values) {
if (notInBuilder_ == null) {
ensureNotInIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notIn_);
onChanged();
} else {
notInBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder clearNotIn() {
if (notInBuilder_ == null) {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
notInBuilder_.clear();
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public Builder removeNotIn(int index) {
if (notInBuilder_ == null) {
ensureNotInIsMutable();
notIn_.remove(index);
onChanged();
} else {
notInBuilder_.remove(index);
}
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public com.google.protobuf.Duration.Builder getNotInBuilder(
int index) {
return getNotInFieldBuilder().getBuilder(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public com.google.protobuf.DurationOrBuilder getNotInOrBuilder(
int index) {
if (notInBuilder_ == null) {
return notIn_.get(index); } else {
return notInBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public java.util.List extends com.google.protobuf.DurationOrBuilder>
getNotInOrBuilderList() {
if (notInBuilder_ != null) {
return notInBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(notIn_);
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public com.google.protobuf.Duration.Builder addNotInBuilder() {
return getNotInFieldBuilder().addBuilder(
com.google.protobuf.Duration.getDefaultInstance());
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public com.google.protobuf.Duration.Builder addNotInBuilder(
int index) {
return getNotInFieldBuilder().addBuilder(
index, com.google.protobuf.Duration.getDefaultInstance());
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public java.util.List
getNotInBuilderList() {
return getNotInFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getNotInFieldBuilder() {
if (notInBuilder_ == null) {
notInBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
notIn_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
notIn_ = null;
}
return notInBuilder_;
}
@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.DurationRules)
}
// @@protoc_insertion_point(class_scope:validate.DurationRules)
private static final io.envoyproxy.pgv.validate.Validate.DurationRules DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.pgv.validate.Validate.DurationRules();
}
public static io.envoyproxy.pgv.validate.Validate.DurationRules getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DurationRules 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.DurationRules getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TimestampRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.TimestampRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
boolean hasRequired();
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return The required.
*/
boolean getRequired();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
* @return Whether the const field is set.
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
* @return The const.
*/
com.google.protobuf.Timestamp getConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
com.google.protobuf.TimestampOrBuilder getConstOrBuilder();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
* @return Whether the lt field is set.
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
* @return The lt.
*/
com.google.protobuf.Timestamp getLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
com.google.protobuf.TimestampOrBuilder getLtOrBuilder();
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
* @return Whether the lte field is set.
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
* @return The lte.
*/
com.google.protobuf.Timestamp getLte();
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
com.google.protobuf.TimestampOrBuilder getLteOrBuilder();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
* @return Whether the gt field is set.
*/
boolean hasGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
* @return The gt.
*/
com.google.protobuf.Timestamp getGt();
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
com.google.protobuf.TimestampOrBuilder getGtOrBuilder();
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
* @return Whether the gte field is set.
*/
boolean hasGte();
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
* @return The gte.
*/
com.google.protobuf.Timestamp getGte();
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
com.google.protobuf.TimestampOrBuilder getGteOrBuilder();
/**
*
* 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.
*/
boolean hasLtNow();
/**
*
* 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.
*/
boolean getLtNow();
/**
*
* 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.
*/
boolean hasGtNow();
/**
*
* 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.
*/
boolean getGtNow();
/**
*
* 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.
*
*
* optional .google.protobuf.Duration within = 9;
*/
com.google.protobuf.DurationOrBuilder getWithinOrBuilder();
}
/**
*
* TimestampRules describe the constraints applied exclusively to the
* `google.protobuf.Timestamp` well-known type
*
*
* Protobuf type {@code validate.TimestampRules}
*/
public static final class TimestampRules extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:validate.TimestampRules)
TimestampRulesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimestampRules.newBuilder() to construct.
private TimestampRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TimestampRules() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TimestampRules();
}
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);
}
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 CONST_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp const_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
* @return Whether the const field is set.
*/
@java.lang.Override
public boolean hasConst() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
* @return The const.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getConst() {
return const_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() {
return const_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : const_;
}
public static final int LT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
* @return Whether the lt field is set.
*/
@java.lang.Override
public boolean hasLt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
* @return The lt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLt() {
return lt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() {
return lt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lt_;
}
public static final int LTE_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp lte_;
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
* @return Whether the lte field is set.
*/
@java.lang.Override
public boolean hasLte() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
* @return The lte.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLte() {
return lte_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lte_;
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() {
return lte_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lte_;
}
public static final int GT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp gt_;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
* @return Whether the gt field is set.
*/
@java.lang.Override
public boolean hasGt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
* @return The gt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getGt() {
return gt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : gt_;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() {
return gt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : gt_;
}
public static final int GTE_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp gte_;
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
* @return Whether the gte field is set.
*/
@java.lang.Override
public boolean hasGte() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
* @return The gte.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getGte() {
return gte_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : gte_;
}
/**
*
* 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
*
*
* optional bool required = 1;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return This builder for chaining.
*/
public Builder clearRequired() {
bitField0_ = (bitField0_ & ~0x00000001);
required_ = false;
onChanged();
return this;
}
private com.google.protobuf.Timestamp const_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> constBuilder_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
* @return Whether the const field is set.
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
* @return The const.
*/
public com.google.protobuf.Timestamp getConst() {
if (constBuilder_ == null) {
return const_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : const_;
} else {
return constBuilder_.getMessage();
}
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
public Builder setConst(com.google.protobuf.Timestamp value) {
if (constBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
const_ = value;
} else {
constBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
public Builder setConst(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (constBuilder_ == null) {
const_ = builderForValue.build();
} else {
constBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
public Builder mergeConst(com.google.protobuf.Timestamp value) {
if (constBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
const_ != null &&
const_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getConstBuilder().mergeFrom(value);
} else {
const_ = value;
}
} else {
constBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
public Builder clearConst() {
bitField0_ = (bitField0_ & ~0x00000002);
const_ = null;
if (constBuilder_ != null) {
constBuilder_.dispose();
constBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
public com.google.protobuf.Timestamp.Builder getConstBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getConstFieldBuilder().getBuilder();
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() {
if (constBuilder_ != null) {
return constBuilder_.getMessageOrBuilder();
} else {
return const_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : const_;
}
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Timestamp const = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getConstFieldBuilder() {
if (constBuilder_ == null) {
constBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getConst(),
getParentForChildren(),
isClean());
const_ = null;
}
return constBuilder_;
}
private com.google.protobuf.Timestamp lt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ltBuilder_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
* @return Whether the lt field is set.
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
* @return The lt.
*/
public com.google.protobuf.Timestamp getLt() {
if (ltBuilder_ == null) {
return lt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lt_;
} else {
return ltBuilder_.getMessage();
}
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
public Builder setLt(com.google.protobuf.Timestamp value) {
if (ltBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lt_ = value;
} else {
ltBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
public Builder setLt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (ltBuilder_ == null) {
lt_ = builderForValue.build();
} else {
ltBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
public Builder mergeLt(com.google.protobuf.Timestamp value) {
if (ltBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
lt_ != null &&
lt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLtBuilder().mergeFrom(value);
} else {
lt_ = value;
}
} else {
ltBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000004);
lt_ = null;
if (ltBuilder_ != null) {
ltBuilder_.dispose();
ltBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
public com.google.protobuf.Timestamp.Builder getLtBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLtFieldBuilder().getBuilder();
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() {
if (ltBuilder_ != null) {
return ltBuilder_.getMessageOrBuilder();
} else {
return lt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lt_;
}
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp lt = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLtFieldBuilder() {
if (ltBuilder_ == null) {
ltBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLt(),
getParentForChildren(),
isClean());
lt_ = null;
}
return ltBuilder_;
}
private com.google.protobuf.Timestamp lte_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lteBuilder_;
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
* @return Whether the lte field is set.
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
* @return The lte.
*/
public com.google.protobuf.Timestamp getLte() {
if (lteBuilder_ == null) {
return lte_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lte_;
} else {
return lteBuilder_.getMessage();
}
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
public Builder setLte(com.google.protobuf.Timestamp value) {
if (lteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lte_ = value;
} else {
lteBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
public Builder setLte(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lteBuilder_ == null) {
lte_ = builderForValue.build();
} else {
lteBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
public Builder mergeLte(com.google.protobuf.Timestamp value) {
if (lteBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
lte_ != null &&
lte_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLteBuilder().mergeFrom(value);
} else {
lte_ = value;
}
} else {
lteBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
public Builder clearLte() {
bitField0_ = (bitField0_ & ~0x00000008);
lte_ = null;
if (lteBuilder_ != null) {
lteBuilder_.dispose();
lteBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
public com.google.protobuf.Timestamp.Builder getLteBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLteFieldBuilder().getBuilder();
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() {
if (lteBuilder_ != null) {
return lteBuilder_.getMessageOrBuilder();
} else {
return lte_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lte_;
}
}
/**
*
* Lte specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp lte = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLteFieldBuilder() {
if (lteBuilder_ == null) {
lteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLte(),
getParentForChildren(),
isClean());
lte_ = null;
}
return lteBuilder_;
}
private com.google.protobuf.Timestamp gt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> gtBuilder_;
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
* @return Whether the gt field is set.
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
* @return The gt.
*/
public com.google.protobuf.Timestamp getGt() {
if (gtBuilder_ == null) {
return gt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : gt_;
} else {
return gtBuilder_.getMessage();
}
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
public Builder setGt(com.google.protobuf.Timestamp value) {
if (gtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gt_ = value;
} else {
gtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
public Builder setGt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (gtBuilder_ == null) {
gt_ = builderForValue.build();
} else {
gtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
public Builder mergeGt(com.google.protobuf.Timestamp value) {
if (gtBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
gt_ != null &&
gt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getGtBuilder().mergeFrom(value);
} else {
gt_ = value;
}
} else {
gtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
public Builder clearGt() {
bitField0_ = (bitField0_ & ~0x00000010);
gt_ = null;
if (gtBuilder_ != null) {
gtBuilder_.dispose();
gtBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
public com.google.protobuf.Timestamp.Builder getGtBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getGtFieldBuilder().getBuilder();
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() {
if (gtBuilder_ != null) {
return gtBuilder_.getMessageOrBuilder();
} else {
return gt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : gt_;
}
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Timestamp gt = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getGtFieldBuilder() {
if (gtBuilder_ == null) {
gtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getGt(),
getParentForChildren(),
isClean());
gt_ = null;
}
return gtBuilder_;
}
private com.google.protobuf.Timestamp gte_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> gteBuilder_;
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
* @return Whether the gte field is set.
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
* @return The gte.
*/
public com.google.protobuf.Timestamp getGte() {
if (gteBuilder_ == null) {
return gte_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : gte_;
} else {
return gteBuilder_.getMessage();
}
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
public Builder setGte(com.google.protobuf.Timestamp value) {
if (gteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gte_ = value;
} else {
gteBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
public Builder setGte(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (gteBuilder_ == null) {
gte_ = builderForValue.build();
} else {
gteBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
public Builder mergeGte(com.google.protobuf.Timestamp value) {
if (gteBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
gte_ != null &&
gte_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getGteBuilder().mergeFrom(value);
} else {
gte_ = value;
}
} else {
gteBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000020);
gte_ = null;
if (gteBuilder_ != null) {
gteBuilder_.dispose();
gteBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
public com.google.protobuf.Timestamp.Builder getGteBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getGteFieldBuilder().getBuilder();
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() {
if (gteBuilder_ != null) {
return gteBuilder_.getMessageOrBuilder();
} else {
return gte_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : gte_;
}
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Timestamp gte = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getGteFieldBuilder() {
if (gteBuilder_ == null) {
gteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getGte(),
getParentForChildren(),
isClean());
gte_ = null;
}
return gteBuilder_;
}
private boolean ltNow_ ;
/**
*
* 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_;
}
/**
*
* 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;
* @param value The ltNow to set.
* @return This builder for chaining.
*/
public Builder setLtNow(boolean value) {
ltNow_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearLtNow() {
bitField0_ = (bitField0_ & ~0x00000040);
ltNow_ = false;
onChanged();
return this;
}
private boolean gtNow_ ;
/**
*
* 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_;
}
/**
*
* 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;
* @param value The gtNow to set.
* @return This builder for chaining.
*/
public Builder setGtNow(boolean value) {
gtNow_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearGtNow() {
bitField0_ = (bitField0_ & ~0x00000080);
gtNow_ = false;
onChanged();
return this;
}
private com.google.protobuf.Duration within_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> withinBuilder_;
/**
*
* 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.
*
*
* optional .google.protobuf.Duration within = 9;
*/
public Builder setWithin(
com.google.protobuf.Duration.Builder builderForValue) {
if (withinBuilder_ == null) {
within_ = builderForValue.build();
} else {
withinBuilder_.setMessage(builderForValue.build());
}
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.
*
*
* optional .google.protobuf.Duration within = 9;
*/
public Builder mergeWithin(com.google.protobuf.Duration value) {
if (withinBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
within_ != null &&
within_ != com.google.protobuf.Duration.getDefaultInstance()) {
getWithinBuilder().mergeFrom(value);
} else {
within_ = value;
}
} else {
withinBuilder_.mergeFrom(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.
*
*
* optional .google.protobuf.Duration within = 9;
*/
public Builder clearWithin() {
bitField0_ = (bitField0_ & ~0x00000100);
within_ = null;
if (withinBuilder_ != null) {
withinBuilder_.dispose();
withinBuilder_ = null;
}
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.
*
*
* optional .google.protobuf.Duration within = 9;
*/
public com.google.protobuf.Duration.Builder getWithinBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getWithinFieldBuilder().getBuilder();
}
/**
*
* 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 com.google.protobuf.DurationOrBuilder getWithinOrBuilder() {
if (withinBuilder_ != null) {
return withinBuilder_.getMessageOrBuilder();
} else {
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;
*/
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.
*
*
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
io.envoyproxy.pgv.validate.Validate.FieldRules> rules = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
io.envoyproxy.pgv.validate.Validate.FieldRules.class,
io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance());
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_FieldRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_FieldRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_FloatRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_FloatRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_DoubleRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_DoubleRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_Int32Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_Int32Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_Int64Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_Int64Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_UInt32Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_UInt32Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_UInt64Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_UInt64Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_SInt32Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_SInt32Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_SInt64Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_SInt64Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_Fixed32Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_Fixed32Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_Fixed64Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_Fixed64Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_SFixed32Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_SFixed32Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_SFixed64Rules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_SFixed64Rules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_BoolRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_BoolRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_StringRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_StringRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_BytesRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_BytesRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_EnumRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_EnumRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_MessageRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_MessageRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_RepeatedRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_RepeatedRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_MapRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_MapRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_AnyRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_AnyRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_DurationRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_DurationRules_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_validate_TimestampRules_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_validate_TimestampRules_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027validate/validate.proto\022\010validate\032 goo" +
"gle/protobuf/descriptor.proto\032\036google/pr" +
"otobuf/duration.proto\032\037google/protobuf/t" +
"imestamp.proto\"\230\007\n\nFieldRules\022\'\n\007message" +
"\030\021 \001(\0132\026.validate.MessageRules\022%\n\005float\030" +
"\001 \001(\0132\024.validate.FloatRulesH\000\022\'\n\006double\030" +
"\002 \001(\0132\025.validate.DoubleRulesH\000\022%\n\005int32\030" +
"\003 \001(\0132\024.validate.Int32RulesH\000\022%\n\005int64\030\004" +
" \001(\0132\024.validate.Int64RulesH\000\022\'\n\006uint32\030\005" +
" \001(\0132\025.validate.UInt32RulesH\000\022\'\n\006uint64\030" +
"\006 \001(\0132\025.validate.UInt64RulesH\000\022\'\n\006sint32" +
"\030\007 \001(\0132\025.validate.SInt32RulesH\000\022\'\n\006sint6" +
"4\030\010 \001(\0132\025.validate.SInt64RulesH\000\022)\n\007fixe" +
"d32\030\t \001(\0132\026.validate.Fixed32RulesH\000\022)\n\007f" +
"ixed64\030\n \001(\0132\026.validate.Fixed64RulesH\000\022+" +
"\n\010sfixed32\030\013 \001(\0132\027.validate.SFixed32Rule" +
"sH\000\022+\n\010sfixed64\030\014 \001(\0132\027.validate.SFixed6" +
"4RulesH\000\022#\n\004bool\030\r \001(\0132\023.validate.BoolRu" +
"lesH\000\022\'\n\006string\030\016 \001(\0132\025.validate.StringR" +
"ulesH\000\022%\n\005bytes\030\017 \001(\0132\024.validate.BytesRu" +
"lesH\000\022#\n\004enum\030\020 \001(\0132\023.validate.EnumRules" +
"H\000\022+\n\010repeated\030\022 \001(\0132\027.validate.Repeated" +
"RulesH\000\022!\n\003map\030\023 \001(\0132\022.validate.MapRules" +
"H\000\022!\n\003any\030\024 \001(\0132\022.validate.AnyRulesH\000\022+\n" +
"\010duration\030\025 \001(\0132\027.validate.DurationRules" +
"H\000\022-\n\ttimestamp\030\026 \001(\0132\030.validate.Timesta" +
"mpRulesH\000B\006\n\004type\"\177\n\nFloatRules\022\r\n\005const" +
"\030\001 \001(\002\022\n\n\002lt\030\002 \001(\002\022\013\n\003lte\030\003 \001(\002\022\n\n\002gt\030\004 " +
"\001(\002\022\013\n\003gte\030\005 \001(\002\022\n\n\002in\030\006 \003(\002\022\016\n\006not_in\030\007" +
" \003(\002\022\024\n\014ignore_empty\030\010 \001(\010\"\200\001\n\013DoubleRul" +
"es\022\r\n\005const\030\001 \001(\001\022\n\n\002lt\030\002 \001(\001\022\013\n\003lte\030\003 \001" +
"(\001\022\n\n\002gt\030\004 \001(\001\022\013\n\003gte\030\005 \001(\001\022\n\n\002in\030\006 \003(\001\022" +
"\016\n\006not_in\030\007 \003(\001\022\024\n\014ignore_empty\030\010 \001(\010\"\177\n" +
"\nInt32Rules\022\r\n\005const\030\001 \001(\005\022\n\n\002lt\030\002 \001(\005\022\013" +
"\n\003lte\030\003 \001(\005\022\n\n\002gt\030\004 \001(\005\022\013\n\003gte\030\005 \001(\005\022\n\n\002" +
"in\030\006 \003(\005\022\016\n\006not_in\030\007 \003(\005\022\024\n\014ignore_empty" +
"\030\010 \001(\010\"\177\n\nInt64Rules\022\r\n\005const\030\001 \001(\003\022\n\n\002l" +
"t\030\002 \001(\003\022\013\n\003lte\030\003 \001(\003\022\n\n\002gt\030\004 \001(\003\022\013\n\003gte\030" +
"\005 \001(\003\022\n\n\002in\030\006 \003(\003\022\016\n\006not_in\030\007 \003(\003\022\024\n\014ign" +
"ore_empty\030\010 \001(\010\"\200\001\n\013UInt32Rules\022\r\n\005const" +
"\030\001 \001(\r\022\n\n\002lt\030\002 \001(\r\022\013\n\003lte\030\003 \001(\r\022\n\n\002gt\030\004 " +
"\001(\r\022\013\n\003gte\030\005 \001(\r\022\n\n\002in\030\006 \003(\r\022\016\n\006not_in\030\007" +
" \003(\r\022\024\n\014ignore_empty\030\010 \001(\010\"\200\001\n\013UInt64Rul" +
"es\022\r\n\005const\030\001 \001(\004\022\n\n\002lt\030\002 \001(\004\022\013\n\003lte\030\003 \001" +
"(\004\022\n\n\002gt\030\004 \001(\004\022\013\n\003gte\030\005 \001(\004\022\n\n\002in\030\006 \003(\004\022" +
"\016\n\006not_in\030\007 \003(\004\022\024\n\014ignore_empty\030\010 \001(\010\"\200\001" +
"\n\013SInt32Rules\022\r\n\005const\030\001 \001(\021\022\n\n\002lt\030\002 \001(\021" +
"\022\013\n\003lte\030\003 \001(\021\022\n\n\002gt\030\004 \001(\021\022\013\n\003gte\030\005 \001(\021\022\n" +
"\n\002in\030\006 \003(\021\022\016\n\006not_in\030\007 \003(\021\022\024\n\014ignore_emp" +
"ty\030\010 \001(\010\"\200\001\n\013SInt64Rules\022\r\n\005const\030\001 \001(\022\022" +
"\n\n\002lt\030\002 \001(\022\022\013\n\003lte\030\003 \001(\022\022\n\n\002gt\030\004 \001(\022\022\013\n\003" +
"gte\030\005 \001(\022\022\n\n\002in\030\006 \003(\022\022\016\n\006not_in\030\007 \003(\022\022\024\n" +
"\014ignore_empty\030\010 \001(\010\"\201\001\n\014Fixed32Rules\022\r\n\005" +
"const\030\001 \001(\007\022\n\n\002lt\030\002 \001(\007\022\013\n\003lte\030\003 \001(\007\022\n\n\002" +
"gt\030\004 \001(\007\022\013\n\003gte\030\005 \001(\007\022\n\n\002in\030\006 \003(\007\022\016\n\006not" +
"_in\030\007 \003(\007\022\024\n\014ignore_empty\030\010 \001(\010\"\201\001\n\014Fixe" +
"d64Rules\022\r\n\005const\030\001 \001(\006\022\n\n\002lt\030\002 \001(\006\022\013\n\003l" +
"te\030\003 \001(\006\022\n\n\002gt\030\004 \001(\006\022\013\n\003gte\030\005 \001(\006\022\n\n\002in\030" +
"\006 \003(\006\022\016\n\006not_in\030\007 \003(\006\022\024\n\014ignore_empty\030\010 " +
"\001(\010\"\202\001\n\rSFixed32Rules\022\r\n\005const\030\001 \001(\017\022\n\n\002" +
"lt\030\002 \001(\017\022\013\n\003lte\030\003 \001(\017\022\n\n\002gt\030\004 \001(\017\022\013\n\003gte" +
"\030\005 \001(\017\022\n\n\002in\030\006 \003(\017\022\016\n\006not_in\030\007 \003(\017\022\024\n\014ig" +
"nore_empty\030\010 \001(\010\"\202\001\n\rSFixed64Rules\022\r\n\005co" +
"nst\030\001 \001(\020\022\n\n\002lt\030\002 \001(\020\022\013\n\003lte\030\003 \001(\020\022\n\n\002gt" +
"\030\004 \001(\020\022\013\n\003gte\030\005 \001(\020\022\n\n\002in\030\006 \003(\020\022\016\n\006not_i" +
"n\030\007 \003(\020\022\024\n\014ignore_empty\030\010 \001(\010\"\032\n\tBoolRul" +
"es\022\r\n\005const\030\001 \001(\010\"\375\003\n\013StringRules\022\r\n\005con" +
"st\030\001 \001(\t\022\013\n\003len\030\023 \001(\004\022\017\n\007min_len\030\002 \001(\004\022\017" +
"\n\007max_len\030\003 \001(\004\022\021\n\tlen_bytes\030\024 \001(\004\022\021\n\tmi" +
"n_bytes\030\004 \001(\004\022\021\n\tmax_bytes\030\005 \001(\004\022\017\n\007patt" +
"ern\030\006 \001(\t\022\016\n\006prefix\030\007 \001(\t\022\016\n\006suffix\030\010 \001(" +
"\t\022\020\n\010contains\030\t \001(\t\022\024\n\014not_contains\030\027 \001(" +
"\t\022\n\n\002in\030\n \003(\t\022\016\n\006not_in\030\013 \003(\t\022\017\n\005email\030\014" +
" \001(\010H\000\022\022\n\010hostname\030\r \001(\010H\000\022\014\n\002ip\030\016 \001(\010H\000" +
"\022\016\n\004ipv4\030\017 \001(\010H\000\022\016\n\004ipv6\030\020 \001(\010H\000\022\r\n\003uri\030" +
"\021 \001(\010H\000\022\021\n\007uri_ref\030\022 \001(\010H\000\022\021\n\007address\030\025 " +
"\001(\010H\000\022\016\n\004uuid\030\026 \001(\010H\000\0220\n\020well_known_rege" +
"x\030\030 \001(\0162\024.validate.KnownRegexH\000\022\024\n\006stric" +
"t\030\031 \001(\010:\004true\022\024\n\014ignore_empty\030\032 \001(\010B\014\n\nw" +
"ell_known\"\373\001\n\nBytesRules\022\r\n\005const\030\001 \001(\014\022" +
"\013\n\003len\030\r \001(\004\022\017\n\007min_len\030\002 \001(\004\022\017\n\007max_len" +
"\030\003 \001(\004\022\017\n\007pattern\030\004 \001(\t\022\016\n\006prefix\030\005 \001(\014\022" +
"\016\n\006suffix\030\006 \001(\014\022\020\n\010contains\030\007 \001(\014\022\n\n\002in\030" +
"\010 \003(\014\022\016\n\006not_in\030\t \003(\014\022\014\n\002ip\030\n \001(\010H\000\022\016\n\004i" +
"pv4\030\013 \001(\010H\000\022\016\n\004ipv6\030\014 \001(\010H\000\022\024\n\014ignore_em" +
"pty\030\016 \001(\010B\014\n\nwell_known\"L\n\tEnumRules\022\r\n\005" +
"const\030\001 \001(\005\022\024\n\014defined_only\030\002 \001(\010\022\n\n\002in\030" +
"\003 \003(\005\022\016\n\006not_in\030\004 \003(\005\".\n\014MessageRules\022\014\n" +
"\004skip\030\001 \001(\010\022\020\n\010required\030\002 \001(\010\"\200\001\n\rRepeat" +
"edRules\022\021\n\tmin_items\030\001 \001(\004\022\021\n\tmax_items\030" +
"\002 \001(\004\022\016\n\006unique\030\003 \001(\010\022#\n\005items\030\004 \001(\0132\024.v" +
"alidate.FieldRules\022\024\n\014ignore_empty\030\005 \001(\010" +
"\"\243\001\n\010MapRules\022\021\n\tmin_pairs\030\001 \001(\004\022\021\n\tmax_" +
"pairs\030\002 \001(\004\022\021\n\tno_sparse\030\003 \001(\010\022\"\n\004keys\030\004" +
" \001(\0132\024.validate.FieldRules\022$\n\006values\030\005 \001" +
"(\0132\024.validate.FieldRules\022\024\n\014ignore_empty" +
"\030\006 \001(\010\"8\n\010AnyRules\022\020\n\010required\030\001 \001(\010\022\n\n\002" +
"in\030\002 \003(\t\022\016\n\006not_in\030\003 \003(\t\"\273\002\n\rDurationRul" +
"es\022\020\n\010required\030\001 \001(\010\022(\n\005const\030\002 \001(\0132\031.go" +
"ogle.protobuf.Duration\022%\n\002lt\030\003 \001(\0132\031.goo" +
"gle.protobuf.Duration\022&\n\003lte\030\004 \001(\0132\031.goo" +
"gle.protobuf.Duration\022%\n\002gt\030\005 \001(\0132\031.goog" +
"le.protobuf.Duration\022&\n\003gte\030\006 \001(\0132\031.goog" +
"le.protobuf.Duration\022%\n\002in\030\007 \003(\0132\031.googl" +
"e.protobuf.Duration\022)\n\006not_in\030\010 \003(\0132\031.go" +
"ogle.protobuf.Duration\"\272\002\n\016TimestampRule" +
"s\022\020\n\010required\030\001 \001(\010\022)\n\005const\030\002 \001(\0132\032.goo" +
"gle.protobuf.Timestamp\022&\n\002lt\030\003 \001(\0132\032.goo" +
"gle.protobuf.Timestamp\022\'\n\003lte\030\004 \001(\0132\032.go" +
"ogle.protobuf.Timestamp\022&\n\002gt\030\005 \001(\0132\032.go" +
"ogle.protobuf.Timestamp\022\'\n\003gte\030\006 \001(\0132\032.g" +
"oogle.protobuf.Timestamp\022\016\n\006lt_now\030\007 \001(\010" +
"\022\016\n\006gt_now\030\010 \001(\010\022)\n\006within\030\t \001(\0132\031.googl" +
"e.protobuf.Duration*F\n\nKnownRegex\022\013\n\007UNK" +
"NOWN\020\000\022\024\n\020HTTP_HEADER_NAME\020\001\022\025\n\021HTTP_HEA" +
"DER_VALUE\020\002:2\n\010disabled\022\037.google.protobu" +
"f.MessageOptions\030\257\010 \001(\010:1\n\007ignored\022\037.goo" +
"gle.protobuf.MessageOptions\030\260\010 \001(\010:0\n\010re" +
"quired\022\035.google.protobuf.OneofOptions\030\257\010" +
" \001(\010:C\n\005rules\022\035.google.protobuf.FieldOpt" +
"ions\030\257\010 \001(\0132\024.validate.FieldRulesBP\n\032io." +
"envoyproxy.pgv.validateZ2github.com/envo" +
"yproxy/protoc-gen-validate/validate"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_validate_FieldRules_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_validate_FieldRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_FieldRules_descriptor,
new java.lang.String[] { "Message", "Float", "Double", "Int32", "Int64", "Uint32", "Uint64", "Sint32", "Sint64", "Fixed32", "Fixed64", "Sfixed32", "Sfixed64", "Bool", "String", "Bytes", "Enum", "Repeated", "Map", "Any", "Duration", "Timestamp", "Type", });
internal_static_validate_FloatRules_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_validate_FloatRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_FloatRules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_DoubleRules_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_validate_DoubleRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_DoubleRules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_Int32Rules_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_validate_Int32Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_Int32Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_Int64Rules_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_validate_Int64Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_Int64Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_UInt32Rules_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_validate_UInt32Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_UInt32Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_UInt64Rules_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_validate_UInt64Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_UInt64Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_SInt32Rules_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_validate_SInt32Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_SInt32Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_SInt64Rules_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_validate_SInt64Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_SInt64Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_Fixed32Rules_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_validate_Fixed32Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_Fixed32Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_Fixed64Rules_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_validate_Fixed64Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_Fixed64Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_SFixed32Rules_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_validate_SFixed32Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_SFixed32Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_SFixed64Rules_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_validate_SFixed64Rules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_SFixed64Rules_descriptor,
new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "IgnoreEmpty", });
internal_static_validate_BoolRules_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_validate_BoolRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_BoolRules_descriptor,
new java.lang.String[] { "Const", });
internal_static_validate_StringRules_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_validate_StringRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_StringRules_descriptor,
new java.lang.String[] { "Const", "Len", "MinLen", "MaxLen", "LenBytes", "MinBytes", "MaxBytes", "Pattern", "Prefix", "Suffix", "Contains", "NotContains", "In", "NotIn", "Email", "Hostname", "Ip", "Ipv4", "Ipv6", "Uri", "UriRef", "Address", "Uuid", "WellKnownRegex", "Strict", "IgnoreEmpty", "WellKnown", });
internal_static_validate_BytesRules_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_validate_BytesRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_BytesRules_descriptor,
new java.lang.String[] { "Const", "Len", "MinLen", "MaxLen", "Pattern", "Prefix", "Suffix", "Contains", "In", "NotIn", "Ip", "Ipv4", "Ipv6", "IgnoreEmpty", "WellKnown", });
internal_static_validate_EnumRules_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_validate_EnumRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_EnumRules_descriptor,
new java.lang.String[] { "Const", "DefinedOnly", "In", "NotIn", });
internal_static_validate_MessageRules_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_validate_MessageRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_MessageRules_descriptor,
new java.lang.String[] { "Skip", "Required", });
internal_static_validate_RepeatedRules_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_validate_RepeatedRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_RepeatedRules_descriptor,
new java.lang.String[] { "MinItems", "MaxItems", "Unique", "Items", "IgnoreEmpty", });
internal_static_validate_MapRules_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_validate_MapRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_MapRules_descriptor,
new java.lang.String[] { "MinPairs", "MaxPairs", "NoSparse", "Keys", "Values", "IgnoreEmpty", });
internal_static_validate_AnyRules_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_validate_AnyRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_AnyRules_descriptor,
new java.lang.String[] { "Required", "In", "NotIn", });
internal_static_validate_DurationRules_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_validate_DurationRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_DurationRules_descriptor,
new java.lang.String[] { "Required", "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", });
internal_static_validate_TimestampRules_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_validate_TimestampRules_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_validate_TimestampRules_descriptor,
new java.lang.String[] { "Required", "Const", "Lt", "Lte", "Gt", "Gte", "LtNow", "GtNow", "Within", });
disabled.internalInit(descriptor.getExtensions().get(0));
ignored.internalInit(descriptor.getExtensions().get(1));
required.internalInit(descriptor.getExtensions().get(2));
rules.internalInit(descriptor.getExtensions().get(3));
com.google.protobuf.DescriptorProtos.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}