Class DynamicParameterConstraints.SingleConstraint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
com.google.protobuf.GeneratedMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
io.envoyproxy.envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DynamicParameterConstraints.SingleConstraintOrBuilder
,Cloneable
- Enclosing class:
DynamicParameterConstraints.SingleConstraint
public static final class DynamicParameterConstraints.SingleConstraint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
implements DynamicParameterConstraints.SingleConstraintOrBuilder
A single constraint for a given key.Protobuf type
envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private int
private com.google.protobuf.SingleFieldBuilder
<DynamicParameterConstraints.SingleConstraint.Exists, DynamicParameterConstraints.SingleConstraint.Exists.Builder, DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder> private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
private void
clear()
Key is present (matches any value except for the key being absent).clearKey()
The key to match against.Matches this exact value.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Key is present (matches any value except for the key being absent).Key is present (matches any value except for the key being absent).Key is present (matches any value except for the key being absent).getKey()
The key to match against.com.google.protobuf.ByteString
The key to match against.getValue()
Matches this exact value.com.google.protobuf.ByteString
Matches this exact value.boolean
Key is present (matches any value except for the key being absent).boolean
hasValue()
Matches this exact value.private com.google.protobuf.SingleFieldBuilder
<DynamicParameterConstraints.SingleConstraint.Exists, DynamicParameterConstraints.SingleConstraint.Exists.Builder, DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder> Key is present (matches any value except for the key being absent).protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
Key is present (matches any value except for the key being absent).mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Key is present (matches any value except for the key being absent).setExists
(DynamicParameterConstraints.SingleConstraint.Exists.Builder builderForValue) Key is present (matches any value except for the key being absent).The key to match against.setKeyBytes
(com.google.protobuf.ByteString value) The key to match against.Matches this exact value.setValueBytes
(com.google.protobuf.ByteString value) Matches this exact value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
constraintTypeCase_
private int constraintTypeCase_ -
constraintType_
-
bitField0_
private int bitField0_ -
key_
-
existsBuilder_
private com.google.protobuf.SingleFieldBuilder<DynamicParameterConstraints.SingleConstraint.Exists,DynamicParameterConstraints.SingleConstraint.Exists.Builder, existsBuilder_DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
public DynamicParameterConstraints.SingleConstraint.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
-
mergeFrom
public DynamicParameterConstraints.SingleConstraint.Builder mergeFrom(DynamicParameterConstraints.SingleConstraint other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
-
mergeFrom
public DynamicParameterConstraints.SingleConstraint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DynamicParameterConstraints.SingleConstraint.Builder>
- Throws:
IOException
-
getConstraintTypeCase
- Specified by:
getConstraintTypeCase
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
-
clearConstraintType
-
getKey
The key to match against.
string key = 1;
- Specified by:
getKey
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The key to match against.
string key = 1;
- Specified by:
getKeyBytes
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- The bytes for key.
-
setKey
The key to match against.
string key = 1;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The key to match against.
string key = 1;
- Returns:
- This builder for chaining.
-
setKeyBytes
public DynamicParameterConstraints.SingleConstraint.Builder setKeyBytes(com.google.protobuf.ByteString value) The key to match against.
string key = 1;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()Matches this exact value.
string value = 2;
- Specified by:
hasValue
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
Matches this exact value.
string value = 2;
- Specified by:
getValue
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()Matches this exact value.
string value = 2;
- Specified by:
getValueBytes
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- The bytes for value.
-
setValue
Matches this exact value.
string value = 2;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Matches this exact value.
string value = 2;
- Returns:
- This builder for chaining.
-
setValueBytes
public DynamicParameterConstraints.SingleConstraint.Builder setValueBytes(com.google.protobuf.ByteString value) Matches this exact value.
string value = 2;
- Parameters:
value
- The bytes for value to set.- Returns:
- This builder for chaining.
-
hasExists
public 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;
- Specified by:
hasExists
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- Whether the exists field is set.
-
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;
- Specified by:
getExists
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
- Returns:
- The exists.
-
setExists
public DynamicParameterConstraints.SingleConstraint.Builder setExists(DynamicParameterConstraints.SingleConstraint.Exists value) 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;
-
setExists
public DynamicParameterConstraints.SingleConstraint.Builder setExists(DynamicParameterConstraints.SingleConstraint.Exists.Builder builderForValue) 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;
-
mergeExists
public DynamicParameterConstraints.SingleConstraint.Builder mergeExists(DynamicParameterConstraints.SingleConstraint.Exists value) 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;
-
clearExists
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;
-
getExistsBuilder
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;
-
getExistsOrBuilder
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;
- Specified by:
getExistsOrBuilder
in interfaceDynamicParameterConstraints.SingleConstraintOrBuilder
-
internalGetExistsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<DynamicParameterConstraints.SingleConstraint.Exists,DynamicParameterConstraints.SingleConstraint.Exists.Builder, internalGetExistsFieldBuilder()DynamicParameterConstraints.SingleConstraint.ExistsOrBuilder> 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;
-