Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.envoyproxy.pgv.validate.Validate Maven / Gradle / Ivy
// 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.required);
registry.add(io.envoyproxy.pgv.validate.Validate.rules);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface FieldRulesOrBuilder extends
// @@protoc_insertion_point(interface_extends:validate.FieldRules)
com.google.protobuf.MessageOrBuilder {
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
boolean hasFloat();
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
io.envoyproxy.pgv.validate.Validate.FloatRules getFloat();
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
io.envoyproxy.pgv.validate.Validate.FloatRulesOrBuilder getFloatOrBuilder();
/**
* optional .validate.DoubleRules double = 2;
*/
boolean hasDouble();
/**
* optional .validate.DoubleRules double = 2;
*/
io.envoyproxy.pgv.validate.Validate.DoubleRules getDouble();
/**
* optional .validate.DoubleRules double = 2;
*/
io.envoyproxy.pgv.validate.Validate.DoubleRulesOrBuilder getDoubleOrBuilder();
/**
* optional .validate.Int32Rules int32 = 3;
*/
boolean hasInt32();
/**
* optional .validate.Int32Rules int32 = 3;
*/
io.envoyproxy.pgv.validate.Validate.Int32Rules getInt32();
/**
* optional .validate.Int32Rules int32 = 3;
*/
io.envoyproxy.pgv.validate.Validate.Int32RulesOrBuilder getInt32OrBuilder();
/**
* optional .validate.Int64Rules int64 = 4;
*/
boolean hasInt64();
/**
* optional .validate.Int64Rules int64 = 4;
*/
io.envoyproxy.pgv.validate.Validate.Int64Rules getInt64();
/**
* optional .validate.Int64Rules int64 = 4;
*/
io.envoyproxy.pgv.validate.Validate.Int64RulesOrBuilder getInt64OrBuilder();
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
boolean hasUint32();
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
io.envoyproxy.pgv.validate.Validate.UInt32Rules getUint32();
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
io.envoyproxy.pgv.validate.Validate.UInt32RulesOrBuilder getUint32OrBuilder();
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
boolean hasUint64();
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
io.envoyproxy.pgv.validate.Validate.UInt64Rules getUint64();
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
io.envoyproxy.pgv.validate.Validate.UInt64RulesOrBuilder getUint64OrBuilder();
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
boolean hasSint32();
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
io.envoyproxy.pgv.validate.Validate.SInt32Rules getSint32();
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
io.envoyproxy.pgv.validate.Validate.SInt32RulesOrBuilder getSint32OrBuilder();
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
boolean hasSint64();
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
io.envoyproxy.pgv.validate.Validate.SInt64Rules getSint64();
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
io.envoyproxy.pgv.validate.Validate.SInt64RulesOrBuilder getSint64OrBuilder();
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
boolean hasFixed32();
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
io.envoyproxy.pgv.validate.Validate.Fixed32Rules getFixed32();
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
io.envoyproxy.pgv.validate.Validate.Fixed32RulesOrBuilder getFixed32OrBuilder();
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
boolean hasFixed64();
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
io.envoyproxy.pgv.validate.Validate.Fixed64Rules getFixed64();
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
io.envoyproxy.pgv.validate.Validate.Fixed64RulesOrBuilder getFixed64OrBuilder();
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
boolean hasSfixed32();
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
io.envoyproxy.pgv.validate.Validate.SFixed32Rules getSfixed32();
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
io.envoyproxy.pgv.validate.Validate.SFixed32RulesOrBuilder getSfixed32OrBuilder();
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
boolean hasSfixed64();
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
io.envoyproxy.pgv.validate.Validate.SFixed64Rules getSfixed64();
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
io.envoyproxy.pgv.validate.Validate.SFixed64RulesOrBuilder getSfixed64OrBuilder();
/**
* optional .validate.BoolRules bool = 13;
*/
boolean hasBool();
/**
* optional .validate.BoolRules bool = 13;
*/
io.envoyproxy.pgv.validate.Validate.BoolRules getBool();
/**
* optional .validate.BoolRules bool = 13;
*/
io.envoyproxy.pgv.validate.Validate.BoolRulesOrBuilder getBoolOrBuilder();
/**
* optional .validate.StringRules string = 14;
*/
boolean hasString();
/**
* optional .validate.StringRules string = 14;
*/
io.envoyproxy.pgv.validate.Validate.StringRules getString();
/**
* optional .validate.StringRules string = 14;
*/
io.envoyproxy.pgv.validate.Validate.StringRulesOrBuilder getStringOrBuilder();
/**
* optional .validate.BytesRules bytes = 15;
*/
boolean hasBytes();
/**
* optional .validate.BytesRules bytes = 15;
*/
io.envoyproxy.pgv.validate.Validate.BytesRules getBytes();
/**
* optional .validate.BytesRules bytes = 15;
*/
io.envoyproxy.pgv.validate.Validate.BytesRulesOrBuilder getBytesOrBuilder();
/**
*
* Complex Field Types
*
*
* optional .validate.EnumRules enum = 16;
*/
boolean hasEnum();
/**
*
* Complex Field Types
*
*
* optional .validate.EnumRules enum = 16;
*/
io.envoyproxy.pgv.validate.Validate.EnumRules getEnum();
/**
*
* Complex Field Types
*
*
* optional .validate.EnumRules enum = 16;
*/
io.envoyproxy.pgv.validate.Validate.EnumRulesOrBuilder getEnumOrBuilder();
/**
* optional .validate.MessageRules message = 17;
*/
boolean hasMessage();
/**
* optional .validate.MessageRules message = 17;
*/
io.envoyproxy.pgv.validate.Validate.MessageRules getMessage();
/**
* optional .validate.MessageRules message = 17;
*/
io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder getMessageOrBuilder();
/**
* optional .validate.RepeatedRules repeated = 18;
*/
boolean hasRepeated();
/**
* optional .validate.RepeatedRules repeated = 18;
*/
io.envoyproxy.pgv.validate.Validate.RepeatedRules getRepeated();
/**
* optional .validate.RepeatedRules repeated = 18;
*/
io.envoyproxy.pgv.validate.Validate.RepeatedRulesOrBuilder getRepeatedOrBuilder();
/**
* optional .validate.MapRules map = 19;
*/
boolean hasMap();
/**
* optional .validate.MapRules map = 19;
*/
io.envoyproxy.pgv.validate.Validate.MapRules getMap();
/**
* optional .validate.MapRules map = 19;
*/
io.envoyproxy.pgv.validate.Validate.MapRulesOrBuilder getMapOrBuilder();
/**
*
* Well-Known Field Types
*
*
* optional .validate.AnyRules any = 20;
*/
boolean hasAny();
/**
*
* Well-Known Field Types
*
*
* optional .validate.AnyRules any = 20;
*/
io.envoyproxy.pgv.validate.Validate.AnyRules getAny();
/**
*
* Well-Known Field Types
*
*
* optional .validate.AnyRules any = 20;
*/
io.envoyproxy.pgv.validate.Validate.AnyRulesOrBuilder getAnyOrBuilder();
/**
* optional .validate.DurationRules duration = 21;
*/
boolean hasDuration();
/**
* optional .validate.DurationRules duration = 21;
*/
io.envoyproxy.pgv.validate.Validate.DurationRules getDuration();
/**
* optional .validate.DurationRules duration = 21;
*/
io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder getDurationOrBuilder();
/**
* optional .validate.TimestampRules timestamp = 22;
*/
boolean hasTimestamp();
/**
* optional .validate.TimestampRules timestamp = 22;
*/
io.envoyproxy.pgv.validate.Validate.TimestampRules getTimestamp();
/**
* optional .validate.TimestampRules timestamp = 22;
*/
io.envoyproxy.pgv.validate.Validate.TimestampRulesOrBuilder getTimestampOrBuilder();
public 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 {
// Use FieldRules.newBuilder() to construct.
private FieldRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldRules() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldRules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.envoyproxy.pgv.validate.Validate.FloatRules.Builder subBuilder = null;
if (typeCase_ == 1) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.FloatRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.FloatRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.FloatRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 1;
break;
}
case 18: {
io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder subBuilder = null;
if (typeCase_ == 2) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.DoubleRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.DoubleRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.DoubleRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 2;
break;
}
case 26: {
io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder subBuilder = null;
if (typeCase_ == 3) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.Int32Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.Int32Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.Int32Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 3;
break;
}
case 34: {
io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder subBuilder = null;
if (typeCase_ == 4) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.Int64Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.Int64Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.Int64Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 4;
break;
}
case 42: {
io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder subBuilder = null;
if (typeCase_ == 5) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.UInt32Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.UInt32Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 5;
break;
}
case 50: {
io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder subBuilder = null;
if (typeCase_ == 6) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.UInt64Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.UInt64Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 6;
break;
}
case 58: {
io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder subBuilder = null;
if (typeCase_ == 7) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.SInt32Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.SInt32Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 7;
break;
}
case 66: {
io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder subBuilder = null;
if (typeCase_ == 8) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.SInt64Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.SInt64Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 8;
break;
}
case 74: {
io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder subBuilder = null;
if (typeCase_ == 9) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.Fixed32Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.Fixed32Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 9;
break;
}
case 82: {
io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder subBuilder = null;
if (typeCase_ == 10) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.Fixed64Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.Fixed64Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 10;
break;
}
case 90: {
io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder subBuilder = null;
if (typeCase_ == 11) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.SFixed32Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.SFixed32Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 11;
break;
}
case 98: {
io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder subBuilder = null;
if (typeCase_ == 12) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.SFixed64Rules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.SFixed64Rules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 12;
break;
}
case 106: {
io.envoyproxy.pgv.validate.Validate.BoolRules.Builder subBuilder = null;
if (typeCase_ == 13) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.BoolRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.BoolRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.BoolRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 13;
break;
}
case 114: {
io.envoyproxy.pgv.validate.Validate.StringRules.Builder subBuilder = null;
if (typeCase_ == 14) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.StringRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.StringRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.StringRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 14;
break;
}
case 122: {
io.envoyproxy.pgv.validate.Validate.BytesRules.Builder subBuilder = null;
if (typeCase_ == 15) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.BytesRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.BytesRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.BytesRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 15;
break;
}
case 130: {
io.envoyproxy.pgv.validate.Validate.EnumRules.Builder subBuilder = null;
if (typeCase_ == 16) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.EnumRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.EnumRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.EnumRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 16;
break;
}
case 138: {
io.envoyproxy.pgv.validate.Validate.MessageRules.Builder subBuilder = null;
if (typeCase_ == 17) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.MessageRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.MessageRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.MessageRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 17;
break;
}
case 146: {
io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder subBuilder = null;
if (typeCase_ == 18) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.RepeatedRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.RepeatedRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 18;
break;
}
case 154: {
io.envoyproxy.pgv.validate.Validate.MapRules.Builder subBuilder = null;
if (typeCase_ == 19) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.MapRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.MapRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.MapRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 19;
break;
}
case 162: {
io.envoyproxy.pgv.validate.Validate.AnyRules.Builder subBuilder = null;
if (typeCase_ == 20) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.AnyRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.AnyRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.AnyRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 20;
break;
}
case 170: {
io.envoyproxy.pgv.validate.Validate.DurationRules.Builder subBuilder = null;
if (typeCase_ == 21) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.DurationRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.DurationRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.DurationRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 21;
break;
}
case 178: {
io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder subBuilder = null;
if (typeCase_ == 22) {
subBuilder = ((io.envoyproxy.pgv.validate.Validate.TimestampRules) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.pgv.validate.Validate.TimestampRules.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.pgv.validate.Validate.TimestampRules) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 22;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_descriptor;
}
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;
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite {
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),
MESSAGE(17),
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;
}
/**
* @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 17: return MESSAGE;
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 FLOAT_FIELD_NUMBER = 1;
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
public boolean hasFloat() {
return typeCase_ == 1;
}
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
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
*
*
* optional .validate.FloatRules float = 1;
*/
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;
/**
* optional .validate.DoubleRules double = 2;
*/
public boolean hasDouble() {
return typeCase_ == 2;
}
/**
* optional .validate.DoubleRules double = 2;
*/
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();
}
/**
* optional .validate.DoubleRules double = 2;
*/
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;
/**
* optional .validate.Int32Rules int32 = 3;
*/
public boolean hasInt32() {
return typeCase_ == 3;
}
/**
* optional .validate.Int32Rules int32 = 3;
*/
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();
}
/**
* optional .validate.Int32Rules int32 = 3;
*/
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;
/**
* optional .validate.Int64Rules int64 = 4;
*/
public boolean hasInt64() {
return typeCase_ == 4;
}
/**
* optional .validate.Int64Rules int64 = 4;
*/
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();
}
/**
* optional .validate.Int64Rules int64 = 4;
*/
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;
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
public boolean hasUint32() {
return typeCase_ == 5;
}
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
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();
}
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
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;
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
public boolean hasUint64() {
return typeCase_ == 6;
}
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
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();
}
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
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;
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
public boolean hasSint32() {
return typeCase_ == 7;
}
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
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();
}
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
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;
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
public boolean hasSint64() {
return typeCase_ == 8;
}
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
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();
}
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
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;
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
public boolean hasFixed32() {
return typeCase_ == 9;
}
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
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();
}
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
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;
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
public boolean hasFixed64() {
return typeCase_ == 10;
}
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
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();
}
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
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;
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
public boolean hasSfixed32() {
return typeCase_ == 11;
}
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
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();
}
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
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;
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
public boolean hasSfixed64() {
return typeCase_ == 12;
}
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
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();
}
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
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;
/**
* optional .validate.BoolRules bool = 13;
*/
public boolean hasBool() {
return typeCase_ == 13;
}
/**
* optional .validate.BoolRules bool = 13;
*/
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();
}
/**
* optional .validate.BoolRules bool = 13;
*/
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;
/**
* optional .validate.StringRules string = 14;
*/
public boolean hasString() {
return typeCase_ == 14;
}
/**
* optional .validate.StringRules string = 14;
*/
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();
}
/**
* optional .validate.StringRules string = 14;
*/
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;
/**
* optional .validate.BytesRules bytes = 15;
*/
public boolean hasBytes() {
return typeCase_ == 15;
}
/**
* optional .validate.BytesRules bytes = 15;
*/
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();
}
/**
* optional .validate.BytesRules bytes = 15;
*/
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
*
*
* optional .validate.EnumRules enum = 16;
*/
public boolean hasEnum() {
return typeCase_ == 16;
}
/**
*
* Complex Field Types
*
*
* optional .validate.EnumRules enum = 16;
*/
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
*
*
* optional .validate.EnumRules enum = 16;
*/
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 MESSAGE_FIELD_NUMBER = 17;
/**
* optional .validate.MessageRules message = 17;
*/
public boolean hasMessage() {
return typeCase_ == 17;
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRules getMessage() {
if (typeCase_ == 17) {
return (io.envoyproxy.pgv.validate.Validate.MessageRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder getMessageOrBuilder() {
if (typeCase_ == 17) {
return (io.envoyproxy.pgv.validate.Validate.MessageRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
}
public static final int REPEATED_FIELD_NUMBER = 18;
/**
* optional .validate.RepeatedRules repeated = 18;
*/
public boolean hasRepeated() {
return typeCase_ == 18;
}
/**
* optional .validate.RepeatedRules repeated = 18;
*/
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();
}
/**
* optional .validate.RepeatedRules repeated = 18;
*/
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;
/**
* optional .validate.MapRules map = 19;
*/
public boolean hasMap() {
return typeCase_ == 19;
}
/**
* optional .validate.MapRules map = 19;
*/
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();
}
/**
* optional .validate.MapRules map = 19;
*/
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
*
*
* optional .validate.AnyRules any = 20;
*/
public boolean hasAny() {
return typeCase_ == 20;
}
/**
*
* Well-Known Field Types
*
*
* optional .validate.AnyRules any = 20;
*/
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
*
*
* optional .validate.AnyRules any = 20;
*/
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;
/**
* optional .validate.DurationRules duration = 21;
*/
public boolean hasDuration() {
return typeCase_ == 21;
}
/**
* optional .validate.DurationRules duration = 21;
*/
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();
}
/**
* optional .validate.DurationRules duration = 21;
*/
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;
/**
* optional .validate.TimestampRules timestamp = 22;
*/
public boolean hasTimestamp() {
return typeCase_ == 22;
}
/**
* optional .validate.TimestampRules timestamp = 22;
*/
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();
}
/**
* optional .validate.TimestampRules timestamp = 22;
*/
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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 (typeCase_ == 17) {
output.writeMessage(17, (io.envoyproxy.pgv.validate.Validate.MessageRules) type_);
}
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_);
}
unknownFields.writeTo(output);
}
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 (typeCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, (io.envoyproxy.pgv.validate.Validate.MessageRules) type_);
}
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && getTypeCase().equals(
other.getTypeCase());
if (!result) return false;
switch (typeCase_) {
case 1:
result = result && getFloat()
.equals(other.getFloat());
break;
case 2:
result = result && getDouble()
.equals(other.getDouble());
break;
case 3:
result = result && getInt32()
.equals(other.getInt32());
break;
case 4:
result = result && getInt64()
.equals(other.getInt64());
break;
case 5:
result = result && getUint32()
.equals(other.getUint32());
break;
case 6:
result = result && getUint64()
.equals(other.getUint64());
break;
case 7:
result = result && getSint32()
.equals(other.getSint32());
break;
case 8:
result = result && getSint64()
.equals(other.getSint64());
break;
case 9:
result = result && getFixed32()
.equals(other.getFixed32());
break;
case 10:
result = result && getFixed64()
.equals(other.getFixed64());
break;
case 11:
result = result && getSfixed32()
.equals(other.getSfixed32());
break;
case 12:
result = result && getSfixed64()
.equals(other.getSfixed64());
break;
case 13:
result = result && getBool()
.equals(other.getBool());
break;
case 14:
result = result && getString()
.equals(other.getString());
break;
case 15:
result = result && getBytes()
.equals(other.getBytes());
break;
case 16:
result = result && getEnum()
.equals(other.getEnum());
break;
case 17:
result = result && getMessage()
.equals(other.getMessage());
break;
case 18:
result = result && getRepeated()
.equals(other.getRepeated());
break;
case 19:
result = result && getMap()
.equals(other.getMap());
break;
case 20:
result = result && getAny()
.equals(other.getAny());
break;
case 21:
result = result && getDuration()
.equals(other.getDuration());
break;
case 22:
result = result && getTimestamp()
.equals(other.getTimestamp());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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 17:
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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) {
}
}
public Builder clear() {
super.clear();
typeCase_ = 0;
type_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FieldRules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.FieldRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.FieldRules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.FieldRules build() {
io.envoyproxy.pgv.validate.Validate.FieldRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.FieldRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.FieldRules result = new io.envoyproxy.pgv.validate.Validate.FieldRules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (typeCase_ == 1) {
if (floatBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = floatBuilder_.build();
}
}
if (typeCase_ == 2) {
if (doubleBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = doubleBuilder_.build();
}
}
if (typeCase_ == 3) {
if (int32Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = int32Builder_.build();
}
}
if (typeCase_ == 4) {
if (int64Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = int64Builder_.build();
}
}
if (typeCase_ == 5) {
if (uint32Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = uint32Builder_.build();
}
}
if (typeCase_ == 6) {
if (uint64Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = uint64Builder_.build();
}
}
if (typeCase_ == 7) {
if (sint32Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = sint32Builder_.build();
}
}
if (typeCase_ == 8) {
if (sint64Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = sint64Builder_.build();
}
}
if (typeCase_ == 9) {
if (fixed32Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = fixed32Builder_.build();
}
}
if (typeCase_ == 10) {
if (fixed64Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = fixed64Builder_.build();
}
}
if (typeCase_ == 11) {
if (sfixed32Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = sfixed32Builder_.build();
}
}
if (typeCase_ == 12) {
if (sfixed64Builder_ == null) {
result.type_ = type_;
} else {
result.type_ = sfixed64Builder_.build();
}
}
if (typeCase_ == 13) {
if (boolBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = boolBuilder_.build();
}
}
if (typeCase_ == 14) {
if (stringBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = stringBuilder_.build();
}
}
if (typeCase_ == 15) {
if (bytesBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = bytesBuilder_.build();
}
}
if (typeCase_ == 16) {
if (enumBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = enumBuilder_.build();
}
}
if (typeCase_ == 17) {
if (messageBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = messageBuilder_.build();
}
}
if (typeCase_ == 18) {
if (repeatedBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = repeatedBuilder_.build();
}
}
if (typeCase_ == 19) {
if (mapBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = mapBuilder_.build();
}
}
if (typeCase_ == 20) {
if (anyBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = anyBuilder_.build();
}
}
if (typeCase_ == 21) {
if (durationBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = durationBuilder_.build();
}
}
if (typeCase_ == 22) {
if (timestampBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = timestampBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.typeCase_ = typeCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
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 MESSAGE: {
mergeMessage(other.getMessage());
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.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.FieldRules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.FieldRules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 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
*
*
* optional .validate.FloatRules float = 1;
*/
public boolean hasFloat() {
return typeCase_ == 1;
}
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
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
*
*
* optional .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
*
*
* optional .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
*
*
* optional .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);
}
floatBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
*
* Scalar Field Types
*
*
* optional .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
*
*
* optional .validate.FloatRules float = 1;
*/
public io.envoyproxy.pgv.validate.Validate.FloatRules.Builder getFloatBuilder() {
return getFloatFieldBuilder().getBuilder();
}
/**
*
* Scalar Field Types
*
*
* optional .validate.FloatRules float = 1;
*/
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
*
*
* optional .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_;
/**
* optional .validate.DoubleRules double = 2;
*/
public boolean hasDouble() {
return typeCase_ == 2;
}
/**
* optional .validate.DoubleRules double = 2;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
doubleBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.DoubleRules double = 2;
*/
public io.envoyproxy.pgv.validate.Validate.DoubleRules.Builder getDoubleBuilder() {
return getDoubleFieldBuilder().getBuilder();
}
/**
* optional .validate.DoubleRules double = 2;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.Int32Rules int32 = 3;
*/
public boolean hasInt32() {
return typeCase_ == 3;
}
/**
* optional .validate.Int32Rules int32 = 3;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
int32Builder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.Int32Rules int32 = 3;
*/
public io.envoyproxy.pgv.validate.Validate.Int32Rules.Builder getInt32Builder() {
return getInt32FieldBuilder().getBuilder();
}
/**
* optional .validate.Int32Rules int32 = 3;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.Int64Rules int64 = 4;
*/
public boolean hasInt64() {
return typeCase_ == 4;
}
/**
* optional .validate.Int64Rules int64 = 4;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
int64Builder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.Int64Rules int64 = 4;
*/
public io.envoyproxy.pgv.validate.Validate.Int64Rules.Builder getInt64Builder() {
return getInt64FieldBuilder().getBuilder();
}
/**
* optional .validate.Int64Rules int64 = 4;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
public boolean hasUint32() {
return typeCase_ == 5;
}
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
uint32Builder_.setMessage(value);
}
typeCase_ = 5;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
public io.envoyproxy.pgv.validate.Validate.UInt32Rules.Builder getUint32Builder() {
return getUint32FieldBuilder().getBuilder();
}
/**
* optional .validate.UInt32Rules uint32 = 5;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
public boolean hasUint64() {
return typeCase_ == 6;
}
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
uint64Builder_.setMessage(value);
}
typeCase_ = 6;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
public io.envoyproxy.pgv.validate.Validate.UInt64Rules.Builder getUint64Builder() {
return getUint64FieldBuilder().getBuilder();
}
/**
* optional .validate.UInt64Rules uint64 = 6;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
public boolean hasSint32() {
return typeCase_ == 7;
}
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
sint32Builder_.setMessage(value);
}
typeCase_ = 7;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
public io.envoyproxy.pgv.validate.Validate.SInt32Rules.Builder getSint32Builder() {
return getSint32FieldBuilder().getBuilder();
}
/**
* optional .validate.SInt32Rules sint32 = 7;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
public boolean hasSint64() {
return typeCase_ == 8;
}
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
sint64Builder_.setMessage(value);
}
typeCase_ = 8;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
public io.envoyproxy.pgv.validate.Validate.SInt64Rules.Builder getSint64Builder() {
return getSint64FieldBuilder().getBuilder();
}
/**
* optional .validate.SInt64Rules sint64 = 8;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
public boolean hasFixed32() {
return typeCase_ == 9;
}
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
fixed32Builder_.setMessage(value);
}
typeCase_ = 9;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules.Builder getFixed32Builder() {
return getFixed32FieldBuilder().getBuilder();
}
/**
* optional .validate.Fixed32Rules fixed32 = 9;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
public boolean hasFixed64() {
return typeCase_ == 10;
}
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
fixed64Builder_.setMessage(value);
}
typeCase_ = 10;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules.Builder getFixed64Builder() {
return getFixed64FieldBuilder().getBuilder();
}
/**
* optional .validate.Fixed64Rules fixed64 = 10;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
public boolean hasSfixed32() {
return typeCase_ == 11;
}
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
sfixed32Builder_.setMessage(value);
}
typeCase_ = 11;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules.Builder getSfixed32Builder() {
return getSfixed32FieldBuilder().getBuilder();
}
/**
* optional .validate.SFixed32Rules sfixed32 = 11;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
public boolean hasSfixed64() {
return typeCase_ == 12;
}
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
sfixed64Builder_.setMessage(value);
}
typeCase_ = 12;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules.Builder getSfixed64Builder() {
return getSfixed64FieldBuilder().getBuilder();
}
/**
* optional .validate.SFixed64Rules sfixed64 = 12;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.BoolRules bool = 13;
*/
public boolean hasBool() {
return typeCase_ == 13;
}
/**
* optional .validate.BoolRules bool = 13;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
boolBuilder_.setMessage(value);
}
typeCase_ = 13;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.BoolRules bool = 13;
*/
public io.envoyproxy.pgv.validate.Validate.BoolRules.Builder getBoolBuilder() {
return getBoolFieldBuilder().getBuilder();
}
/**
* optional .validate.BoolRules bool = 13;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.StringRules string = 14;
*/
public boolean hasString() {
return typeCase_ == 14;
}
/**
* optional .validate.StringRules string = 14;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
stringBuilder_.setMessage(value);
}
typeCase_ = 14;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.StringRules string = 14;
*/
public io.envoyproxy.pgv.validate.Validate.StringRules.Builder getStringBuilder() {
return getStringFieldBuilder().getBuilder();
}
/**
* optional .validate.StringRules string = 14;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.BytesRules bytes = 15;
*/
public boolean hasBytes() {
return typeCase_ == 15;
}
/**
* optional .validate.BytesRules bytes = 15;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
bytesBuilder_.setMessage(value);
}
typeCase_ = 15;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.BytesRules bytes = 15;
*/
public io.envoyproxy.pgv.validate.Validate.BytesRules.Builder getBytesBuilder() {
return getBytesFieldBuilder().getBuilder();
}
/**
* optional .validate.BytesRules bytes = 15;
*/
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();
}
}
/**
* optional .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
*
*
* optional .validate.EnumRules enum = 16;
*/
public boolean hasEnum() {
return typeCase_ == 16;
}
/**
*
* Complex Field Types
*
*
* optional .validate.EnumRules enum = 16;
*/
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
*
*
* optional .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
*
*
* optional .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
*
*
* optional .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);
}
enumBuilder_.setMessage(value);
}
typeCase_ = 16;
return this;
}
/**
*
* Complex Field Types
*
*
* optional .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
*
*
* optional .validate.EnumRules enum = 16;
*/
public io.envoyproxy.pgv.validate.Validate.EnumRules.Builder getEnumBuilder() {
return getEnumFieldBuilder().getBuilder();
}
/**
*
* Complex Field Types
*
*
* optional .validate.EnumRules enum = 16;
*/
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
*
*
* optional .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.MessageRules, io.envoyproxy.pgv.validate.Validate.MessageRules.Builder, io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder> messageBuilder_;
/**
* optional .validate.MessageRules message = 17;
*/
public boolean hasMessage() {
return typeCase_ == 17;
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRules getMessage() {
if (messageBuilder_ == null) {
if (typeCase_ == 17) {
return (io.envoyproxy.pgv.validate.Validate.MessageRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
} else {
if (typeCase_ == 17) {
return messageBuilder_.getMessage();
}
return io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
}
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder setMessage(io.envoyproxy.pgv.validate.Validate.MessageRules value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
typeCase_ = 17;
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder setMessage(
io.envoyproxy.pgv.validate.Validate.MessageRules.Builder builderForValue) {
if (messageBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 17;
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder mergeMessage(io.envoyproxy.pgv.validate.Validate.MessageRules value) {
if (messageBuilder_ == null) {
if (typeCase_ == 17 &&
type_ != io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance()) {
type_ = io.envoyproxy.pgv.validate.Validate.MessageRules.newBuilder((io.envoyproxy.pgv.validate.Validate.MessageRules) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 17) {
messageBuilder_.mergeFrom(value);
}
messageBuilder_.setMessage(value);
}
typeCase_ = 17;
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
if (typeCase_ == 17) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 17) {
typeCase_ = 0;
type_ = null;
}
messageBuilder_.clear();
}
return this;
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRules.Builder getMessageBuilder() {
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .validate.MessageRules message = 17;
*/
public io.envoyproxy.pgv.validate.Validate.MessageRulesOrBuilder getMessageOrBuilder() {
if ((typeCase_ == 17) && (messageBuilder_ != null)) {
return messageBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 17) {
return (io.envoyproxy.pgv.validate.Validate.MessageRules) type_;
}
return io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
}
}
/**
* 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) {
if (!(typeCase_ == 17)) {
type_ = io.envoyproxy.pgv.validate.Validate.MessageRules.getDefaultInstance();
}
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>(
(io.envoyproxy.pgv.validate.Validate.MessageRules) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 17;
onChanged();;
return messageBuilder_;
}
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_;
/**
* optional .validate.RepeatedRules repeated = 18;
*/
public boolean hasRepeated() {
return typeCase_ == 18;
}
/**
* optional .validate.RepeatedRules repeated = 18;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
repeatedBuilder_.setMessage(value);
}
typeCase_ = 18;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.RepeatedRules repeated = 18;
*/
public io.envoyproxy.pgv.validate.Validate.RepeatedRules.Builder getRepeatedBuilder() {
return getRepeatedFieldBuilder().getBuilder();
}
/**
* optional .validate.RepeatedRules repeated = 18;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.MapRules map = 19;
*/
public boolean hasMap() {
return typeCase_ == 19;
}
/**
* optional .validate.MapRules map = 19;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
mapBuilder_.setMessage(value);
}
typeCase_ = 19;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.MapRules map = 19;
*/
public io.envoyproxy.pgv.validate.Validate.MapRules.Builder getMapBuilder() {
return getMapFieldBuilder().getBuilder();
}
/**
* optional .validate.MapRules map = 19;
*/
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();
}
}
/**
* optional .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
*
*
* optional .validate.AnyRules any = 20;
*/
public boolean hasAny() {
return typeCase_ == 20;
}
/**
*
* Well-Known Field Types
*
*
* optional .validate.AnyRules any = 20;
*/
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
*
*
* optional .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
*
*
* optional .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
*
*
* optional .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);
}
anyBuilder_.setMessage(value);
}
typeCase_ = 20;
return this;
}
/**
*
* Well-Known Field Types
*
*
* optional .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
*
*
* optional .validate.AnyRules any = 20;
*/
public io.envoyproxy.pgv.validate.Validate.AnyRules.Builder getAnyBuilder() {
return getAnyFieldBuilder().getBuilder();
}
/**
*
* Well-Known Field Types
*
*
* optional .validate.AnyRules any = 20;
*/
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
*
*
* optional .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_;
/**
* optional .validate.DurationRules duration = 21;
*/
public boolean hasDuration() {
return typeCase_ == 21;
}
/**
* optional .validate.DurationRules duration = 21;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
durationBuilder_.setMessage(value);
}
typeCase_ = 21;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.DurationRules duration = 21;
*/
public io.envoyproxy.pgv.validate.Validate.DurationRules.Builder getDurationBuilder() {
return getDurationFieldBuilder().getBuilder();
}
/**
* optional .validate.DurationRules duration = 21;
*/
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();
}
}
/**
* optional .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_;
/**
* optional .validate.TimestampRules timestamp = 22;
*/
public boolean hasTimestamp() {
return typeCase_ == 22;
}
/**
* optional .validate.TimestampRules timestamp = 22;
*/
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();
}
}
/**
* optional .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;
}
/**
* optional .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;
}
/**
* optional .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);
}
timestampBuilder_.setMessage(value);
}
typeCase_ = 22;
return this;
}
/**
* optional .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;
}
/**
* optional .validate.TimestampRules timestamp = 22;
*/
public io.envoyproxy.pgv.validate.Validate.TimestampRules.Builder getTimestampBuilder() {
return getTimestampFieldBuilder().getBuilder();
}
/**
* optional .validate.TimestampRules timestamp = 22;
*/
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();
}
}
/**
* optional .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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public FieldRules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldRules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
float getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
float getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
float getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
float getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
float getNotIn(int index);
}
/**
*
* 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 {
// Use FloatRules.newBuilder() to construct.
private FloatRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FloatRules() {
const_ = 0F;
lt_ = 0F;
lte_ = 0F;
gt_ = 0F;
gte_ = 0F;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FloatRules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
const_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
lt_ = input.readFloat();
break;
}
case 29: {
bitField0_ |= 0x00000004;
lte_ = input.readFloat();
break;
}
case 37: {
bitField0_ |= 0x00000008;
gt_ = input.readFloat();
break;
}
case 45: {
bitField0_ |= 0x00000010;
gte_ = input.readFloat();
break;
}
case 53: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readFloat());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 61: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readFloat());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
public float getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private float lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
public float getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private float lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
*/
public float getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public float getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public float getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
public float getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
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;
*/
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;
*/
public float getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFloat(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeFloat(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeFloat(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (
java.lang.Float.floatToIntBits(getConst())
== java.lang.Float.floatToIntBits(
other.getConst()));
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (
java.lang.Float.floatToIntBits(getLt())
== java.lang.Float.floatToIntBits(
other.getLt()));
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (
java.lang.Float.floatToIntBits(getLte())
== java.lang.Float.floatToIntBits(
other.getLte()));
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (
java.lang.Float.floatToIntBits(getGt())
== java.lang.Float.floatToIntBits(
other.getGt()));
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (
java.lang.Float.floatToIntBits(getGte())
== java.lang.Float.floatToIntBits(
other.getGte()));
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_FloatRules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.FloatRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.FloatRules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.FloatRules build() {
io.envoyproxy.pgv.validate.Validate.FloatRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.FloatRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.FloatRules result = new io.envoyproxy.pgv.validate.Validate.FloatRules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.FloatRules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.FloatRules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private float const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
public float getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
public Builder setConst(float value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional float const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
public float getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
public Builder setLt(float value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional float lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
*/
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;
*/
public Builder setLte(float value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional float lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(float value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(float value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0F;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
public float getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
public Builder setIn(
int index, float value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
public Builder addIn(float value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated float in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
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;
*/
public float getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
public Builder setNotIn(
int index, float value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
public Builder addNotIn(float value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated float not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public FloatRules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FloatRules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
double getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
double getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
double getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
double getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
double getNotIn(int index);
}
/**
*
* 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 {
// Use DoubleRules.newBuilder() to construct.
private DoubleRules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DoubleRules() {
const_ = 0D;
lt_ = 0D;
lte_ = 0D;
gt_ = 0D;
gte_ = 0D;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DoubleRules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
const_ = input.readDouble();
break;
}
case 17: {
bitField0_ |= 0x00000002;
lt_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
lte_ = input.readDouble();
break;
}
case 33: {
bitField0_ |= 0x00000008;
gt_ = input.readDouble();
break;
}
case 41: {
bitField0_ |= 0x00000010;
gte_ = input.readDouble();
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readDouble());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 57: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readDouble());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
public double getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private double lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
public double getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private double lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
*/
public double getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public double getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public double getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
public double getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
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;
*/
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;
*/
public double getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeDouble(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeDouble(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeDouble(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeDouble(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (
java.lang.Double.doubleToLongBits(getConst())
== java.lang.Double.doubleToLongBits(
other.getConst()));
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (
java.lang.Double.doubleToLongBits(getLt())
== java.lang.Double.doubleToLongBits(
other.getLt()));
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (
java.lang.Double.doubleToLongBits(getLte())
== java.lang.Double.doubleToLongBits(
other.getLte()));
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (
java.lang.Double.doubleToLongBits(getGt())
== java.lang.Double.doubleToLongBits(
other.getGt()));
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (
java.lang.Double.doubleToLongBits(getGte())
== java.lang.Double.doubleToLongBits(
other.getGte()));
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_DoubleRules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.DoubleRules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.DoubleRules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.DoubleRules build() {
io.envoyproxy.pgv.validate.Validate.DoubleRules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.DoubleRules buildPartial() {
io.envoyproxy.pgv.validate.Validate.DoubleRules result = new io.envoyproxy.pgv.validate.Validate.DoubleRules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.DoubleRules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.DoubleRules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private double const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
public double getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
public Builder setConst(double value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional double const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
public double getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
public Builder setLt(double value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional double lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
*/
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;
*/
public Builder setLte(double value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional double lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(double value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(double value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0D;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
public double getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
public Builder setIn(
int index, double value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
public Builder addIn(double value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated double in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
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;
*/
public double getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
public Builder setNotIn(
int index, double value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
public Builder addNotIn(double value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated double not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public DoubleRules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DoubleRules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
int getNotIn(int index);
}
/**
*
* 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 {
// Use Int32Rules.newBuilder() to construct.
private Int32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Int32Rules() {
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Int32Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
const_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lt_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lte_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
gt_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
gte_ = input.readInt32();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readInt32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
*/
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
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;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeInt32(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeInt32(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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_.get(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_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int32Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.Int32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Int32Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.Int32Rules build() {
io.envoyproxy.pgv.validate.Validate.Int32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.Int32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Int32Rules result = new io.envoyproxy.pgv.validate.Validate.Int32Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.Int32Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.Int32Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public Builder setConst(int value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
public Builder setLt(int value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int32 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
*/
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;
*/
public Builder setLte(int value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int32 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(int value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(int value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
public Builder setIn(
int index, int value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
public Builder setNotIn(
int index, int value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public Int32Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Int32Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
long getNotIn(int index);
}
/**
*
* 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 {
// Use Int64Rules.newBuilder() to construct.
private Int64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Int64Rules() {
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Int64Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
const_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lt_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lte_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
gt_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
gte_ = input.readInt64();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readInt64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readInt64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
*/
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
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;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeInt64(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeInt64(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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_.get(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_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Int64Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.Int64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Int64Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.Int64Rules build() {
io.envoyproxy.pgv.validate.Validate.Int64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.Int64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Int64Rules result = new io.envoyproxy.pgv.validate.Validate.Int64Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.Int64Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.Int64Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
public Builder setConst(long value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int64 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
public Builder setLt(long value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional int64 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
*/
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;
*/
public Builder setLte(long value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional int64 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(long value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(long value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
public Builder setIn(
int index, long value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int64 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
public Builder setNotIn(
int index, long value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int64 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public Int64Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Int64Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
int getNotIn(int index);
}
/**
*
* 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 {
// Use UInt32Rules.newBuilder() to construct.
private UInt32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UInt32Rules() {
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UInt32Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
const_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lt_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lte_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
gt_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
gte_ = input.readUInt32();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readUInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readUInt32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
*/
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
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;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeUInt32(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeUInt32(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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_.get(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_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt32Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.UInt32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.UInt32Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.UInt32Rules build() {
io.envoyproxy.pgv.validate.Validate.UInt32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.UInt32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.UInt32Rules result = new io.envoyproxy.pgv.validate.Validate.UInt32Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.UInt32Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.UInt32Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
public Builder setConst(int value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint32 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
public Builder setLt(int value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint32 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
*/
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;
*/
public Builder setLte(int value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint32 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(int value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(int value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
public Builder setIn(
int index, int value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint32 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
public Builder setNotIn(
int index, int value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint32 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public UInt32Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UInt32Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
long getNotIn(int index);
}
/**
*
* 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 {
// Use UInt64Rules.newBuilder() to construct.
private UInt64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UInt64Rules() {
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UInt64Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
const_ = input.readUInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lt_ = input.readUInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lte_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
gt_ = input.readUInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
gte_ = input.readUInt64();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readUInt64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readUInt64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
*/
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
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;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt64(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeUInt64(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeUInt64(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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_.get(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_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_UInt64Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.UInt64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.UInt64Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.UInt64Rules build() {
io.envoyproxy.pgv.validate.Validate.UInt64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.UInt64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.UInt64Rules result = new io.envoyproxy.pgv.validate.Validate.UInt64Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.UInt64Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.UInt64Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
public Builder setConst(long value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional uint64 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
public Builder setLt(long value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional uint64 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
*/
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;
*/
public Builder setLte(long value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional uint64 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(long value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(long value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
public Builder setIn(
int index, long value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated uint64 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
public Builder setNotIn(
int index, long value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated uint64 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public UInt64Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UInt64Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
int getNotIn(int index);
}
/**
*
* 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 {
// Use SInt32Rules.newBuilder() to construct.
private SInt32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SInt32Rules() {
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SInt32Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
const_ = input.readSInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lt_ = input.readSInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lte_ = input.readSInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
gt_ = input.readSInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
gte_ = input.readSInt32();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readSInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readSInt32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readSInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
*/
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
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;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSInt32(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt32(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeSInt32(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeSInt32(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeSInt32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSInt32(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSInt32(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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_.get(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_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt32Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.SInt32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SInt32Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.SInt32Rules build() {
io.envoyproxy.pgv.validate.Validate.SInt32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.SInt32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SInt32Rules result = new io.envoyproxy.pgv.validate.Validate.SInt32Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.SInt32Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.SInt32Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
public Builder setConst(int value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint32 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
public Builder setLt(int value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint32 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
*/
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;
*/
public Builder setLte(int value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint32 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(int value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(int value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
public Builder setIn(
int index, int value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint32 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
public Builder setNotIn(
int index, int value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint32 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public SInt32Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SInt32Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
long getNotIn(int index);
}
/**
*
* 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 {
// Use SInt64Rules.newBuilder() to construct.
private SInt64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SInt64Rules() {
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SInt64Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
const_ = input.readSInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lt_ = input.readSInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lte_ = input.readSInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
gt_ = input.readSInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
gte_ = input.readSInt64();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readSInt64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readSInt64());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readSInt64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readSInt64());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
*/
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
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;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSInt64(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt64(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeSInt64(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeSInt64(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeSInt64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSInt64(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSInt64(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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_.get(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_.get(i));
}
size += dataSize;
size += 1 * getNotInList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SInt64Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.SInt64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SInt64Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.SInt64Rules build() {
io.envoyproxy.pgv.validate.Validate.SInt64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.SInt64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SInt64Rules result = new io.envoyproxy.pgv.validate.Validate.SInt64Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.SInt64Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.SInt64Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
public Builder setConst(long value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sint64 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
public Builder setLt(long value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sint64 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
*/
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;
*/
public Builder setLte(long value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sint64 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(long value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(long value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
public Builder setIn(
int index, long value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sint64 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
public Builder setNotIn(
int index, long value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sint64 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public SInt64Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SInt64Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
int getNotIn(int index);
}
/**
*
* 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 {
// Use Fixed32Rules.newBuilder() to construct.
private Fixed32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fixed32Rules() {
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Fixed32Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
const_ = input.readFixed32();
break;
}
case 21: {
bitField0_ |= 0x00000002;
lt_ = input.readFixed32();
break;
}
case 29: {
bitField0_ |= 0x00000004;
lte_ = input.readFixed32();
break;
}
case 37: {
bitField0_ |= 0x00000008;
gt_ = input.readFixed32();
break;
}
case 45: {
bitField0_ |= 0x00000010;
gte_ = input.readFixed32();
break;
}
case 53: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readFixed32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readFixed32());
}
input.popLimit(limit);
break;
}
case 61: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readFixed32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readFixed32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
*/
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
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;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFixed32(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed32(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed32(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed32(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFixed32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeFixed32(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeFixed32(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed32Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Fixed32Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules build() {
io.envoyproxy.pgv.validate.Validate.Fixed32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.Fixed32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Fixed32Rules result = new io.envoyproxy.pgv.validate.Validate.Fixed32Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.Fixed32Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.Fixed32Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
public Builder setConst(int value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed32 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
public Builder setLt(int value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed32 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
*/
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;
*/
public Builder setLte(int value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed32 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(int value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(int value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
public Builder setIn(
int index, int value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed32 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
public Builder setNotIn(
int index, int value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed32 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public Fixed32Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fixed32Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
long getNotIn(int index);
}
/**
*
* 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 {
// Use Fixed64Rules.newBuilder() to construct.
private Fixed64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fixed64Rules() {
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Fixed64Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
const_ = input.readFixed64();
break;
}
case 17: {
bitField0_ |= 0x00000002;
lt_ = input.readFixed64();
break;
}
case 25: {
bitField0_ |= 0x00000004;
lte_ = input.readFixed64();
break;
}
case 33: {
bitField0_ |= 0x00000008;
gt_ = input.readFixed64();
break;
}
case 41: {
bitField0_ |= 0x00000010;
gte_ = input.readFixed64();
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readFixed64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
case 57: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readFixed64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
*/
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
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;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFixed64(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed64(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFixed64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeFixed64(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeFixed64(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_Fixed64Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.Fixed64Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules build() {
io.envoyproxy.pgv.validate.Validate.Fixed64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.Fixed64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.Fixed64Rules result = new io.envoyproxy.pgv.validate.Validate.Fixed64Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.Fixed64Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.Fixed64Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
public Builder setConst(long value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional fixed64 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
public Builder setLt(long value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional fixed64 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
*/
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;
*/
public Builder setLte(long value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional fixed64 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(long value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(long value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
public Builder setIn(
int index, long value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated fixed64 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
public Builder setNotIn(
int index, long value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
public Builder addNotIn(long value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated fixed64 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public Fixed64Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fixed64Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
int getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
int getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
int getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
int getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
int getNotIn(int index);
}
/**
*
* 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 {
// Use SFixed32Rules.newBuilder() to construct.
private SFixed32Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SFixed32Rules() {
const_ = 0;
lt_ = 0;
lte_ = 0;
gt_ = 0;
gte_ = 0;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SFixed32Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
const_ = input.readSFixed32();
break;
}
case 21: {
bitField0_ |= 0x00000002;
lt_ = input.readSFixed32();
break;
}
case 29: {
bitField0_ |= 0x00000004;
lte_ = input.readSFixed32();
break;
}
case 37: {
bitField0_ |= 0x00000008;
gt_ = input.readSFixed32();
break;
}
case 45: {
bitField0_ |= 0x00000010;
gte_ = input.readSFixed32();
break;
}
case 53: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readSFixed32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readSFixed32());
}
input.popLimit(limit);
break;
}
case 61: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readSFixed32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readSFixed32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
public int getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private int lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
public int getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private int lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
*/
public int getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public int getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public int getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
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;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSFixed32(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSFixed32(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeSFixed32(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeSFixed32(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeSFixed32(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSFixed32(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSFixed32(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed32Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SFixed32Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules build() {
io.envoyproxy.pgv.validate.Validate.SFixed32Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.SFixed32Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SFixed32Rules result = new io.envoyproxy.pgv.validate.Validate.SFixed32Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.SFixed32Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.SFixed32Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
public int getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
public Builder setConst(int value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed32 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
public int getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
public Builder setLt(int value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed32 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
*/
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;
*/
public Builder setLte(int value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed32 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(int value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(int value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
public int getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
public Builder setIn(
int index, int value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
public Builder addIn(int value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed32 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList(notIn_);
bitField0_ |= 0x00000040;
}
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
public java.util.List
getNotInList() {
return java.util.Collections.unmodifiableList(notIn_);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
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;
*/
public int getNotIn(int index) {
return notIn_.get(index);
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
public Builder setNotIn(
int index, int value) {
ensureNotInIsMutable();
notIn_.set(index, value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
public Builder addNotIn(int value) {
ensureNotInIsMutable();
notIn_.add(value);
onChanged();
return this;
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed32 not_in = 7;
*/
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;
*/
public Builder clearNotIn() {
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
public SFixed32Rules parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SFixed32Rules(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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;
*/
boolean hasConst();
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
long getConst();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
boolean hasLt();
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
long getLt();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
*/
boolean hasLte();
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
long getGte();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
java.util.List getInList();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
int getInCount();
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
long getIn(int index);
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
*/
java.util.List getNotInList();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
*/
int getNotInCount();
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
*/
long getNotIn(int index);
}
/**
*
* 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 {
// Use SFixed64Rules.newBuilder() to construct.
private SFixed64Rules(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SFixed64Rules() {
const_ = 0L;
lt_ = 0L;
lte_ = 0L;
gt_ = 0L;
gte_ = 0L;
in_ = java.util.Collections.emptyList();
notIn_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SFixed64Rules(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
const_ = input.readSFixed64();
break;
}
case 17: {
bitField0_ |= 0x00000002;
lt_ = input.readSFixed64();
break;
}
case 25: {
bitField0_ |= 0x00000004;
lte_ = input.readSFixed64();
break;
}
case 33: {
bitField0_ |= 0x00000008;
gt_ = input.readSFixed64();
break;
}
case 41: {
bitField0_ |= 0x00000010;
gte_ = input.readSFixed64();
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
in_.add(input.readSFixed64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
in_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
in_.add(input.readSFixed64());
}
input.popLimit(limit);
break;
}
case 57: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
notIn_.add(input.readSFixed64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
notIn_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
notIn_.add(input.readSFixed64());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_descriptor;
}
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_;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
public long getConst() {
return const_;
}
public static final int LT_FIELD_NUMBER = 2;
private long lt_;
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
public long getLt() {
return lt_;
}
public static final int LTE_FIELD_NUMBER = 3;
private long lte_;
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
*/
public long getLte() {
return lte_;
}
public static final int GT_FIELD_NUMBER = 4;
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
public long getGt() {
return gt_;
}
public static final int GTE_FIELD_NUMBER = 5;
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
public long getGte() {
return gte_;
}
public static final int IN_FIELD_NUMBER = 6;
private java.util.List in_;
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
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;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
public static final int NOT_IN_FIELD_NUMBER = 7;
private java.util.List notIn_;
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated sfixed64 not_in = 7;
*/
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;
*/
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;
*/
public long getNotIn(int index) {
return notIn_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSFixed64(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSFixed64(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeSFixed64(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeSFixed64(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeSFixed64(5, gte_);
}
for (int i = 0; i < in_.size(); i++) {
output.writeSFixed64(6, in_.get(i));
}
for (int i = 0; i < notIn_.size(); i++) {
output.writeSFixed64(7, notIn_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(1, const_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(2, lt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(3, lte_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(4, gt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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;
boolean result = true;
result = result && (hasConst() == other.hasConst());
if (hasConst()) {
result = result && (getConst()
== other.getConst());
}
result = result && (hasLt() == other.hasLt());
if (hasLt()) {
result = result && (getLt()
== other.getLt());
}
result = result && (hasLte() == other.hasLte());
if (hasLte()) {
result = result && (getLte()
== other.getLte());
}
result = result && (hasGt() == other.hasGt());
if (hasGt()) {
result = result && (getGt()
== other.getGt());
}
result = result && (hasGte() == other.hasGte());
if (hasGte()) {
result = result && (getGte()
== other.getGte());
}
result = result && getInList()
.equals(other.getInList());
result = result && getNotInList()
.equals(other.getNotInList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
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);
}
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);
}
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;
}
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
const_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
lt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
lte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
gt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
gte_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
notIn_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.pgv.validate.Validate.internal_static_validate_SFixed64Rules_descriptor;
}
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules getDefaultInstanceForType() {
return io.envoyproxy.pgv.validate.Validate.SFixed64Rules.getDefaultInstance();
}
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules build() {
io.envoyproxy.pgv.validate.Validate.SFixed64Rules result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.pgv.validate.Validate.SFixed64Rules buildPartial() {
io.envoyproxy.pgv.validate.Validate.SFixed64Rules result = new io.envoyproxy.pgv.validate.Validate.SFixed64Rules(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.const_ = const_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lt_ = lt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lte_ = lte_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gt_ = gt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gte_ = gte_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = java.util.Collections.unmodifiableList(in_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.in_ = in_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = java.util.Collections.unmodifiableList(notIn_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.notIn_ = notIn_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.pgv.validate.Validate.SFixed64Rules parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.pgv.validate.Validate.SFixed64Rules) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long const_ ;
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
public boolean hasConst() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
public long getConst() {
return const_;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
public Builder setConst(long value) {
bitField0_ |= 0x00000001;
const_ = value;
onChanged();
return this;
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional sfixed64 const = 1;
*/
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;
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
public long getLt() {
return lt_;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
public Builder setLt(long value) {
bitField0_ |= 0x00000002;
lt_ = value;
onChanged();
return this;
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional sfixed64 lt = 2;
*/
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;
*/
public boolean hasLte() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
*/
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;
*/
public Builder setLte(long value) {
bitField0_ |= 0x00000004;
lte_ = value;
onChanged();
return this;
}
/**
*
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*
*
* optional sfixed64 lte = 3;
*/
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;
*/
public boolean hasGt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 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;
*/
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;
*/
public Builder setGt(long value) {
bitField0_ |= 0x00000008;
gt_ = value;
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;
*/
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;
*/
public boolean hasGte() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 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;
*/
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;
*/
public Builder setGte(long value) {
bitField0_ |= 0x00000010;
gte_ = value;
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;
*/
public Builder clearGte() {
bitField0_ = (bitField0_ & ~0x00000010);
gte_ = 0L;
onChanged();
return this;
}
private java.util.List in_ = java.util.Collections.emptyList();
private void ensureInIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
in_ = new java.util.ArrayList(in_);
bitField0_ |= 0x00000020;
}
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
public java.util.List
getInList() {
return java.util.Collections.unmodifiableList(in_);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
public int getInCount() {
return in_.size();
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
public long getIn(int index) {
return in_.get(index);
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
public Builder setIn(
int index, long value) {
ensureInIsMutable();
in_.set(index, value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
public Builder addIn(long value) {
ensureInIsMutable();
in_.add(value);
onChanged();
return this;
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated sfixed64 in = 6;
*/
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;
*/
public Builder clearIn() {
in_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List notIn_ = java.util.Collections.emptyList();
private void ensureNotInIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
notIn_ = new java.util.ArrayList