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

io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/discovery/v3/discovery.proto

package io.envoyproxy.envoy.service.discovery.v3;

/**
 * 
 * A set of dynamic parameter constraints associated with a variant of an individual xDS resource.
 * These constraints determine whether the resource matches a subscription based on the set of
 * dynamic parameters in the subscription, as specified in the
 * :ref:`ResourceLocator.dynamic_parameters<envoy_v3_api_field_service.discovery.v3.ResourceLocator.dynamic_parameters>`
 * field. This allows xDS implementations (clients, servers, and caching proxies) to determine
 * which variant of a resource is appropriate for a given client.
 * 
* * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints} */ public final class DynamicParameterConstraints extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.DynamicParameterConstraints) DynamicParameterConstraintsOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicParameterConstraints.newBuilder() to construct. private DynamicParameterConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicParameterConstraints() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicParameterConstraints(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DynamicParameterConstraints( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder subBuilder = null; if (typeCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_).toBuilder(); } type_ = input.readMessage(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 1; break; } case 18: { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder subBuilder = null; if (typeCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_).toBuilder(); } type_ = input.readMessage(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 2; break; } case 26: { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder subBuilder = null; if (typeCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_).toBuilder(); } type_ = input.readMessage(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 3; break; } case 34: { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder subBuilder = null; if (typeCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_).toBuilder(); } type_ = input.readMessage(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 4; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder.class); } public interface SingleConstraintOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) com.google.protobuf.MessageOrBuilder { /** *
     * The key to match against.
     * 
* * string key = 1; * @return The key. */ java.lang.String getKey(); /** *
     * The key to match against.
     * 
* * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * Matches this exact value.
     * 
* * string value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** *
     * Matches this exact value.
     * 
* * string value = 2; * @return The value. */ java.lang.String getValue(); /** *
     * Matches this exact value.
     * 
* * string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** *
     * Key is present (matches any value except for the key being absent).
     * This allows setting a default constraint for clients that do
     * not send a key at all, while there may be other clients that need
     * special configuration based on that key.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; * @return Whether the exists field is set. */ boolean hasExists(); /** *
     * Key is present (matches any value except for the key being absent).
     * This allows setting a default constraint for clients that do
     * not send a key at all, while there may be other clients that need
     * special configuration based on that key.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; * @return The exists. */ io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists getExists(); /** *
     * Key is present (matches any value except for the key being absent).
     * This allows setting a default constraint for clients that do
     * not send a key at all, while there may be other clients that need
     * special configuration based on that key.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder getExistsOrBuilder(); public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ConstraintTypeCase getConstraintTypeCase(); } /** *
   * A single constraint for a given key.
   * 
* * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint} */ public static final class SingleConstraint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) SingleConstraintOrBuilder { private static final long serialVersionUID = 0L; // Use SingleConstraint.newBuilder() to construct. private SingleConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SingleConstraint() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SingleConstraint(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SingleConstraint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); constraintTypeCase_ = 2; constraintType_ = s; break; } case 26: { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder subBuilder = null; if (constraintTypeCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_).toBuilder(); } constraintType_ = input.readMessage(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_); constraintType_ = subBuilder.buildPartial(); } constraintTypeCase_ = 3; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder.class); } public interface ExistsOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists} */ public static final class Exists extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) ExistsOrBuilder { private static final long serialVersionUID = 0L; // Use Exists.newBuilder() to construct. private Exists(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Exists() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Exists(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Exists( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_Exists_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_Exists_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists other = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists 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.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists 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.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists 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.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_Exists_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_Exists_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_Exists_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists build() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists buildPartial() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists result = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists other) { if (other == io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) private static final io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists(); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Exists parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Exists(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int constraintTypeCase_ = 0; private java.lang.Object constraintType_; public enum ConstraintTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(2), EXISTS(3), CONSTRAINTTYPE_NOT_SET(0); private final int value; private ConstraintTypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConstraintTypeCase valueOf(int value) { return forNumber(value); } public static ConstraintTypeCase forNumber(int value) { switch (value) { case 2: return VALUE; case 3: return EXISTS; case 0: return CONSTRAINTTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ConstraintTypeCase getConstraintTypeCase() { return ConstraintTypeCase.forNumber( constraintTypeCase_); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** *
     * The key to match against.
     * 
* * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** *
     * The key to match against.
     * 
* * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; /** *
     * Matches this exact value.
     * 
* * string value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return constraintTypeCase_ == 2; } /** *
     * Matches this exact value.
     * 
* * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = ""; if (constraintTypeCase_ == 2) { ref = constraintType_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (constraintTypeCase_ == 2) { constraintType_ = s; } return s; } } /** *
     * Matches this exact value.
     * 
* * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = ""; if (constraintTypeCase_ == 2) { ref = constraintType_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (constraintTypeCase_ == 2) { constraintType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXISTS_FIELD_NUMBER = 3; /** *
     * Key is present (matches any value except for the key being absent).
     * This allows setting a default constraint for clients that do
     * not send a key at all, while there may be other clients that need
     * special configuration based on that key.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; * @return Whether the exists field is set. */ @java.lang.Override public boolean hasExists() { return constraintTypeCase_ == 3; } /** *
     * Key is present (matches any value except for the key being absent).
     * This allows setting a default constraint for clients that do
     * not send a key at all, while there may be other clients that need
     * special configuration based on that key.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; * @return The exists. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists getExists() { if (constraintTypeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } /** *
     * Key is present (matches any value except for the key being absent).
     * This allows setting a default constraint for clients that do
     * not send a key at all, while there may be other clients that need
     * special configuration based on that key.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder getExistsOrBuilder() { if (constraintTypeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (constraintTypeCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintType_); } if (constraintTypeCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (constraintTypeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintType_); } if (constraintTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint other = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) obj; if (!getKey() .equals(other.getKey())) return false; if (!getConstraintTypeCase().equals(other.getConstraintTypeCase())) return false; switch (constraintTypeCase_) { case 2: if (!getValue() .equals(other.getValue())) return false; break; case 3: if (!getExists() .equals(other.getExists())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); switch (constraintTypeCase_) { case 2: hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); break; case 3: hash = (37 * hash) + EXISTS_FIELD_NUMBER; hash = (53 * hash) + getExists().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint 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.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint 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.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint 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.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A single constraint for a given key.
     * 
* * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraintOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; constraintTypeCase_ = 0; constraintType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_SingleConstraint_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint build() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint buildPartial() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint result = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint(this); result.key_ = key_; if (constraintTypeCase_ == 2) { result.constraintType_ = constraintType_; } if (constraintTypeCase_ == 3) { if (existsBuilder_ == null) { result.constraintType_ = constraintType_; } else { result.constraintType_ = existsBuilder_.build(); } } result.constraintTypeCase_ = constraintTypeCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint other) { if (other == io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } switch (other.getConstraintTypeCase()) { case VALUE: { constraintTypeCase_ = 2; constraintType_ = other.constraintType_; onChanged(); break; } case EXISTS: { mergeExists(other.getExists()); break; } case CONSTRAINTTYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int constraintTypeCase_ = 0; private java.lang.Object constraintType_; public ConstraintTypeCase getConstraintTypeCase() { return ConstraintTypeCase.forNumber( constraintTypeCase_); } public Builder clearConstraintType() { constraintTypeCase_ = 0; constraintType_ = null; onChanged(); return this; } private java.lang.Object key_ = ""; /** *
       * The key to match against.
       * 
* * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The key to match against.
       * 
* * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The key to match against.
       * 
* * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * The key to match against.
       * 
* * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * The key to match against.
       * 
* * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } /** *
       * Matches this exact value.
       * 
* * string value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return constraintTypeCase_ == 2; } /** *
       * Matches this exact value.
       * 
* * string value = 2; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = ""; if (constraintTypeCase_ == 2) { ref = constraintType_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (constraintTypeCase_ == 2) { constraintType_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Matches this exact value.
       * 
* * string value = 2; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = ""; if (constraintTypeCase_ == 2) { ref = constraintType_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (constraintTypeCase_ == 2) { constraintType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Matches this exact value.
       * 
* * string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } constraintTypeCase_ = 2; constraintType_ = value; onChanged(); return this; } /** *
       * Matches this exact value.
       * 
* * string value = 2; * @return This builder for chaining. */ public Builder clearValue() { if (constraintTypeCase_ == 2) { constraintTypeCase_ = 0; constraintType_ = null; onChanged(); } return this; } /** *
       * Matches this exact value.
       * 
* * string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); constraintTypeCase_ = 2; constraintType_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder> existsBuilder_; /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; * @return Whether the exists field is set. */ @java.lang.Override public boolean hasExists() { return constraintTypeCase_ == 3; } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; * @return The exists. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists getExists() { if (existsBuilder_ == null) { if (constraintTypeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } else { if (constraintTypeCase_ == 3) { return existsBuilder_.getMessage(); } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ public Builder setExists(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists value) { if (existsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } constraintType_ = value; onChanged(); } else { existsBuilder_.setMessage(value); } constraintTypeCase_ = 3; return this; } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ public Builder setExists( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder builderForValue) { if (existsBuilder_ == null) { constraintType_ = builderForValue.build(); onChanged(); } else { existsBuilder_.setMessage(builderForValue.build()); } constraintTypeCase_ = 3; return this; } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ public Builder mergeExists(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists value) { if (existsBuilder_ == null) { if (constraintTypeCase_ == 3 && constraintType_ != io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance()) { constraintType_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.newBuilder((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_) .mergeFrom(value).buildPartial(); } else { constraintType_ = value; } onChanged(); } else { if (constraintTypeCase_ == 3) { existsBuilder_.mergeFrom(value); } else { existsBuilder_.setMessage(value); } } constraintTypeCase_ = 3; return this; } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ public Builder clearExists() { if (existsBuilder_ == null) { if (constraintTypeCase_ == 3) { constraintTypeCase_ = 0; constraintType_ = null; onChanged(); } } else { if (constraintTypeCase_ == 3) { constraintTypeCase_ = 0; constraintType_ = null; } existsBuilder_.clear(); } return this; } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder getExistsBuilder() { return getExistsFieldBuilder().getBuilder(); } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder getExistsOrBuilder() { if ((constraintTypeCase_ == 3) && (existsBuilder_ != null)) { return existsBuilder_.getMessageOrBuilder(); } else { if (constraintTypeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } } /** *
       * Key is present (matches any value except for the key being absent).
       * This allows setting a default constraint for clients that do
       * not send a key at all, while there may be other clients that need
       * special configuration based on that key.
       * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists exists = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder> getExistsFieldBuilder() { if (existsBuilder_ == null) { if (!(constraintTypeCase_ == 3)) { constraintType_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.getDefaultInstance(); } existsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder>( (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists) constraintType_, getParentForChildren(), isClean()); constraintType_ = null; } constraintTypeCase_ = 3; onChanged();; return existsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) private static final io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint(); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SingleConstraint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SingleConstraint(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConstraintListOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) com.google.protobuf.MessageOrBuilder { /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ java.util.List getConstraintsList(); /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getConstraints(int index); /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ int getConstraintsCount(); /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ java.util.List getConstraintsOrBuilderList(); /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder getConstraintsOrBuilder( int index); } /** * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList} */ public static final class ConstraintList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) ConstraintListOrBuilder { private static final long serialVersionUID = 0L; // Use ConstraintList.newBuilder() to construct. private ConstraintList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConstraintList() { constraints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConstraintList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConstraintList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { constraints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } constraints_.add( input.readMessage(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { constraints_ = java.util.Collections.unmodifiableList(constraints_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_ConstraintList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_ConstraintList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder.class); } public static final int CONSTRAINTS_FIELD_NUMBER = 1; private java.util.List constraints_; /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ @java.lang.Override public java.util.List getConstraintsList() { return constraints_; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ @java.lang.Override public java.util.List getConstraintsOrBuilderList() { return constraints_; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ @java.lang.Override public int getConstraintsCount() { return constraints_.size(); } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getConstraints(int index) { return constraints_.get(index); } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder getConstraintsOrBuilder( int index) { return constraints_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < constraints_.size(); i++) { output.writeMessage(1, constraints_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < constraints_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, constraints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList other = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) obj; if (!getConstraintsList() .equals(other.getConstraintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConstraintsCount() > 0) { hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER; hash = (53 * hash) + getConstraintsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList 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.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList 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.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList 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.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_ConstraintList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_ConstraintList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConstraintsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (constraintsBuilder_ == null) { constraints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { constraintsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_ConstraintList_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList build() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList buildPartial() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList result = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList(this); int from_bitField0_ = bitField0_; if (constraintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { constraints_ = java.util.Collections.unmodifiableList(constraints_); bitField0_ = (bitField0_ & ~0x00000001); } result.constraints_ = constraints_; } else { result.constraints_ = constraintsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList other) { if (other == io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance()) return this; if (constraintsBuilder_ == null) { if (!other.constraints_.isEmpty()) { if (constraints_.isEmpty()) { constraints_ = other.constraints_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConstraintsIsMutable(); constraints_.addAll(other.constraints_); } onChanged(); } } else { if (!other.constraints_.isEmpty()) { if (constraintsBuilder_.isEmpty()) { constraintsBuilder_.dispose(); constraintsBuilder_ = null; constraints_ = other.constraints_; bitField0_ = (bitField0_ & ~0x00000001); constraintsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConstraintsFieldBuilder() : null; } else { constraintsBuilder_.addAllMessages(other.constraints_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List constraints_ = java.util.Collections.emptyList(); private void ensureConstraintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { constraints_ = new java.util.ArrayList(constraints_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder> constraintsBuilder_; /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public java.util.List getConstraintsList() { if (constraintsBuilder_ == null) { return java.util.Collections.unmodifiableList(constraints_); } else { return constraintsBuilder_.getMessageList(); } } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public int getConstraintsCount() { if (constraintsBuilder_ == null) { return constraints_.size(); } else { return constraintsBuilder_.getCount(); } } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getConstraints(int index) { if (constraintsBuilder_ == null) { return constraints_.get(index); } else { return constraintsBuilder_.getMessage(index); } } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder setConstraints( int index, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints value) { if (constraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConstraintsIsMutable(); constraints_.set(index, value); onChanged(); } else { constraintsBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder setConstraints( int index, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder builderForValue) { if (constraintsBuilder_ == null) { ensureConstraintsIsMutable(); constraints_.set(index, builderForValue.build()); onChanged(); } else { constraintsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder addConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints value) { if (constraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConstraintsIsMutable(); constraints_.add(value); onChanged(); } else { constraintsBuilder_.addMessage(value); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder addConstraints( int index, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints value) { if (constraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConstraintsIsMutable(); constraints_.add(index, value); onChanged(); } else { constraintsBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder addConstraints( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder builderForValue) { if (constraintsBuilder_ == null) { ensureConstraintsIsMutable(); constraints_.add(builderForValue.build()); onChanged(); } else { constraintsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder addConstraints( int index, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder builderForValue) { if (constraintsBuilder_ == null) { ensureConstraintsIsMutable(); constraints_.add(index, builderForValue.build()); onChanged(); } else { constraintsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder addAllConstraints( java.lang.Iterable values) { if (constraintsBuilder_ == null) { ensureConstraintsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, constraints_); onChanged(); } else { constraintsBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder clearConstraints() { if (constraintsBuilder_ == null) { constraints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { constraintsBuilder_.clear(); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public Builder removeConstraints(int index) { if (constraintsBuilder_ == null) { ensureConstraintsIsMutable(); constraints_.remove(index); onChanged(); } else { constraintsBuilder_.remove(index); } return this; } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder getConstraintsBuilder( int index) { return getConstraintsFieldBuilder().getBuilder(index); } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder getConstraintsOrBuilder( int index) { if (constraintsBuilder_ == null) { return constraints_.get(index); } else { return constraintsBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public java.util.List getConstraintsOrBuilderList() { if (constraintsBuilder_ != null) { return constraintsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(constraints_); } } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder addConstraintsBuilder() { return getConstraintsFieldBuilder().addBuilder( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance()); } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder addConstraintsBuilder( int index) { return getConstraintsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance()); } /** * repeated .envoy.service.discovery.v3.DynamicParameterConstraints constraints = 1; */ public java.util.List getConstraintsBuilderList() { return getConstraintsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder> getConstraintsFieldBuilder() { if (constraintsBuilder_ == null) { constraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder>( constraints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); constraints_ = null; } return constraintsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) private static final io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList(); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConstraintList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConstraintList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONSTRAINT(1), OR_CONSTRAINTS(2), AND_CONSTRAINTS(3), NOT_CONSTRAINTS(4), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return CONSTRAINT; case 2: return OR_CONSTRAINTS; case 3: return AND_CONSTRAINTS; case 4: return NOT_CONSTRAINTS; 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 CONSTRAINT_FIELD_NUMBER = 1; /** *
   * A single constraint to evaluate.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; * @return Whether the constraint field is set. */ @java.lang.Override public boolean hasConstraint() { return typeCase_ == 1; } /** *
   * A single constraint to evaluate.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; * @return The constraint. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint getConstraint() { if (typeCase_ == 1) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } /** *
   * A single constraint to evaluate.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraintOrBuilder getConstraintOrBuilder() { if (typeCase_ == 1) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } public static final int OR_CONSTRAINTS_FIELD_NUMBER = 2; /** *
   * A list of constraints that match if any one constraint in the list
   * matches.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; * @return Whether the orConstraints field is set. */ @java.lang.Override public boolean hasOrConstraints() { return typeCase_ == 2; } /** *
   * A list of constraints that match if any one constraint in the list
   * matches.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; * @return The orConstraints. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getOrConstraints() { if (typeCase_ == 2) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } /** *
   * A list of constraints that match if any one constraint in the list
   * matches.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder getOrConstraintsOrBuilder() { if (typeCase_ == 2) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } public static final int AND_CONSTRAINTS_FIELD_NUMBER = 3; /** *
   * A list of constraints that must all match.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; * @return Whether the andConstraints field is set. */ @java.lang.Override public boolean hasAndConstraints() { return typeCase_ == 3; } /** *
   * A list of constraints that must all match.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; * @return The andConstraints. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getAndConstraints() { if (typeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } /** *
   * A list of constraints that must all match.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder getAndConstraintsOrBuilder() { if (typeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } public static final int NOT_CONSTRAINTS_FIELD_NUMBER = 4; /** *
   * The inverse (NOT) of a set of constraints.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; * @return Whether the notConstraints field is set. */ @java.lang.Override public boolean hasNotConstraints() { return typeCase_ == 4; } /** *
   * The inverse (NOT) of a set of constraints.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; * @return The notConstraints. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getNotConstraints() { if (typeCase_ == 4) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } /** *
   * The inverse (NOT) of a set of constraints.
   * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder getNotConstraintsOrBuilder() { if (typeCase_ == 4) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_); } if (typeCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_); } if (typeCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_); } if (typeCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_); } if (typeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_); } if (typeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints other = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getConstraint() .equals(other.getConstraint())) return false; break; case 2: if (!getOrConstraints() .equals(other.getOrConstraints())) return false; break; case 3: if (!getAndConstraints() .equals(other.getAndConstraints())) return false; break; case 4: if (!getNotConstraints() .equals(other.getNotConstraints())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (typeCase_) { case 1: hash = (37 * hash) + CONSTRAINT_FIELD_NUMBER; hash = (53 * hash) + getConstraint().hashCode(); break; case 2: hash = (37 * hash) + OR_CONSTRAINTS_FIELD_NUMBER; hash = (53 * hash) + getOrConstraints().hashCode(); break; case 3: hash = (37 * hash) + AND_CONSTRAINTS_FIELD_NUMBER; hash = (53 * hash) + getAndConstraints().hashCode(); break; case 4: hash = (37 * hash) + NOT_CONSTRAINTS_FIELD_NUMBER; hash = (53 * hash) + getNotConstraints().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints 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.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints 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.envoy.service.discovery.v3.DynamicParameterConstraints parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints 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.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A set of dynamic parameter constraints associated with a variant of an individual xDS resource.
   * These constraints determine whether the resource matches a subscription based on the set of
   * dynamic parameters in the subscription, as specified in the
   * :ref:`ResourceLocator.dynamic_parameters<envoy_v3_api_field_service.discovery.v3.ResourceLocator.dynamic_parameters>`
   * field. This allows xDS implementations (clients, servers, and caching proxies) to determine
   * which variant of a resource is appropriate for a given client.
   * 
* * Protobuf type {@code envoy.service.discovery.v3.DynamicParameterConstraints} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DynamicParameterConstraints) io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.class, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DynamicParameterConstraints_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints build() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints buildPartial() { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints result = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints(this); if (typeCase_ == 1) { if (constraintBuilder_ == null) { result.type_ = type_; } else { result.type_ = constraintBuilder_.build(); } } if (typeCase_ == 2) { if (orConstraintsBuilder_ == null) { result.type_ = type_; } else { result.type_ = orConstraintsBuilder_.build(); } } if (typeCase_ == 3) { if (andConstraintsBuilder_ == null) { result.type_ = type_; } else { result.type_ = andConstraintsBuilder_.build(); } } if (typeCase_ == 4) { if (notConstraintsBuilder_ == null) { result.type_ = type_; } else { result.type_ = notConstraintsBuilder_.build(); } } result.typeCase_ = typeCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints other) { if (other == io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance()) return this; switch (other.getTypeCase()) { case CONSTRAINT: { mergeConstraint(other.getConstraint()); break; } case OR_CONSTRAINTS: { mergeOrConstraints(other.getOrConstraints()); break; } case AND_CONSTRAINTS: { mergeAndConstraints(other.getAndConstraints()); break; } case NOT_CONSTRAINTS: { mergeNotConstraints(other.getNotConstraints()); break; } case TYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) 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 com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraintOrBuilder> constraintBuilder_; /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; * @return Whether the constraint field is set. */ @java.lang.Override public boolean hasConstraint() { return typeCase_ == 1; } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; * @return The constraint. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint getConstraint() { if (constraintBuilder_ == null) { if (typeCase_ == 1) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } else { if (typeCase_ == 1) { return constraintBuilder_.getMessage(); } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ public Builder setConstraint(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint value) { if (constraintBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { constraintBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ public Builder setConstraint( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder builderForValue) { if (constraintBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { constraintBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ public Builder mergeConstraint(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint value) { if (constraintBuilder_ == null) { if (typeCase_ == 1 && type_ != io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance()) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.newBuilder((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { constraintBuilder_.mergeFrom(value); } else { constraintBuilder_.setMessage(value); } } typeCase_ = 1; return this; } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ public Builder clearConstraint() { if (constraintBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } constraintBuilder_.clear(); } return this; } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder getConstraintBuilder() { return getConstraintFieldBuilder().getBuilder(); } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraintOrBuilder getConstraintOrBuilder() { if ((typeCase_ == 1) && (constraintBuilder_ != null)) { return constraintBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } } /** *
     * A single constraint to evaluate.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint constraint = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraintOrBuilder> getConstraintFieldBuilder() { if (constraintBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.getDefaultInstance(); } constraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraintOrBuilder>( (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged();; return constraintBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder> orConstraintsBuilder_; /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; * @return Whether the orConstraints field is set. */ @java.lang.Override public boolean hasOrConstraints() { return typeCase_ == 2; } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; * @return The orConstraints. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getOrConstraints() { if (orConstraintsBuilder_ == null) { if (typeCase_ == 2) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } else { if (typeCase_ == 2) { return orConstraintsBuilder_.getMessage(); } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ public Builder setOrConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList value) { if (orConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { orConstraintsBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ public Builder setOrConstraints( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder builderForValue) { if (orConstraintsBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { orConstraintsBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ public Builder mergeOrConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList value) { if (orConstraintsBuilder_ == null) { if (typeCase_ == 2 && type_ != io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance()) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.newBuilder((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { orConstraintsBuilder_.mergeFrom(value); } else { orConstraintsBuilder_.setMessage(value); } } typeCase_ = 2; return this; } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ public Builder clearOrConstraints() { if (orConstraintsBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } orConstraintsBuilder_.clear(); } return this; } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder getOrConstraintsBuilder() { return getOrConstraintsFieldBuilder().getBuilder(); } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder getOrConstraintsOrBuilder() { if ((typeCase_ == 2) && (orConstraintsBuilder_ != null)) { return orConstraintsBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } } /** *
     * A list of constraints that match if any one constraint in the list
     * matches.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList or_constraints = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder> getOrConstraintsFieldBuilder() { if (orConstraintsBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } orConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder>( (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged();; return orConstraintsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder> andConstraintsBuilder_; /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; * @return Whether the andConstraints field is set. */ @java.lang.Override public boolean hasAndConstraints() { return typeCase_ == 3; } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; * @return The andConstraints. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList getAndConstraints() { if (andConstraintsBuilder_ == null) { if (typeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } else { if (typeCase_ == 3) { return andConstraintsBuilder_.getMessage(); } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ public Builder setAndConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList value) { if (andConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { andConstraintsBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ public Builder setAndConstraints( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder builderForValue) { if (andConstraintsBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { andConstraintsBuilder_.setMessage(builderForValue.build()); } typeCase_ = 3; return this; } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ public Builder mergeAndConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList value) { if (andConstraintsBuilder_ == null) { if (typeCase_ == 3 && type_ != io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance()) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.newBuilder((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 3) { andConstraintsBuilder_.mergeFrom(value); } else { andConstraintsBuilder_.setMessage(value); } } typeCase_ = 3; return this; } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ public Builder clearAndConstraints() { if (andConstraintsBuilder_ == null) { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; } andConstraintsBuilder_.clear(); } return this; } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder getAndConstraintsBuilder() { return getAndConstraintsFieldBuilder().getBuilder(); } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder getAndConstraintsOrBuilder() { if ((typeCase_ == 3) && (andConstraintsBuilder_ != null)) { return andConstraintsBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } } /** *
     * A list of constraints that must all match.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList and_constraints = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder> getAndConstraintsFieldBuilder() { if (andConstraintsBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.getDefaultInstance(); } andConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintListOrBuilder>( (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; onChanged();; return andConstraintsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder> notConstraintsBuilder_; /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; * @return Whether the notConstraints field is set. */ @java.lang.Override public boolean hasNotConstraints() { return typeCase_ == 4; } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; * @return The notConstraints. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getNotConstraints() { if (notConstraintsBuilder_ == null) { if (typeCase_ == 4) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } else { if (typeCase_ == 4) { return notConstraintsBuilder_.getMessage(); } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ public Builder setNotConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints value) { if (notConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { notConstraintsBuilder_.setMessage(value); } typeCase_ = 4; return this; } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ public Builder setNotConstraints( io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder builderForValue) { if (notConstraintsBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { notConstraintsBuilder_.setMessage(builderForValue.build()); } typeCase_ = 4; return this; } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ public Builder mergeNotConstraints(io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints value) { if (notConstraintsBuilder_ == null) { if (typeCase_ == 4 && type_ != io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance()) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.newBuilder((io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 4) { notConstraintsBuilder_.mergeFrom(value); } else { notConstraintsBuilder_.setMessage(value); } } typeCase_ = 4; return this; } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ public Builder clearNotConstraints() { if (notConstraintsBuilder_ == null) { if (typeCase_ == 4) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 4) { typeCase_ = 0; type_ = null; } notConstraintsBuilder_.clear(); } return this; } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder getNotConstraintsBuilder() { return getNotConstraintsFieldBuilder().getBuilder(); } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder getNotConstraintsOrBuilder() { if ((typeCase_ == 4) && (notConstraintsBuilder_ != null)) { return notConstraintsBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 4) { return (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_; } return io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } } /** *
     * The inverse (NOT) of a set of constraints.
     * 
* * .envoy.service.discovery.v3.DynamicParameterConstraints not_constraints = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder> getNotConstraintsFieldBuilder() { if (notConstraintsBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.getDefaultInstance(); } notConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.Builder, io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraintsOrBuilder>( (io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; onChanged();; return notConstraintsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.discovery.v3.DynamicParameterConstraints) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DynamicParameterConstraints) private static final io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints(); } public static io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicParameterConstraints parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DynamicParameterConstraints(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy