Class ClusterSpecifierPlugin.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ClusterSpecifierPlugin.Builder>
com.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
io.envoyproxy.envoy.config.route.v3.ClusterSpecifierPlugin.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ClusterSpecifierPluginOrBuilder
,Cloneable
- Enclosing class:
ClusterSpecifierPlugin
public static final class ClusterSpecifierPlugin.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
implements ClusterSpecifierPluginOrBuilder
Configuration for a cluster specifier plugin.Protobuf type
envoy.config.route.v3.ClusterSpecifierPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private TypedExtensionConfig
private com.google.protobuf.SingleFieldBuilder
<TypedExtensionConfig, TypedExtensionConfig.Builder, TypedExtensionConfigOrBuilder> private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(ClusterSpecifierPlugin result) clear()
The name of the plugin and its opaque configuration.If is_optional is not set or is set to false and the plugin defined by this message is not a supported type, the containing resource is NACKed.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The name of the plugin and its opaque configuration.The name of the plugin and its opaque configuration.private com.google.protobuf.SingleFieldBuilder
<TypedExtensionConfig, TypedExtensionConfig.Builder, TypedExtensionConfigOrBuilder> The name of the plugin and its opaque configuration.The name of the plugin and its opaque configuration.boolean
If is_optional is not set or is set to false and the plugin defined by this message is not a supported type, the containing resource is NACKed.boolean
The name of the plugin and its opaque configuration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
The name of the plugin and its opaque configuration.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ClusterSpecifierPlugin other) setExtension
(TypedExtensionConfig value) The name of the plugin and its opaque configuration.setExtension
(TypedExtensionConfig.Builder builderForValue) The name of the plugin and its opaque configuration.setIsOptional
(boolean value) If is_optional is not set or is set to false and the plugin defined by this message is not a supported type, the containing resource is NACKed.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
-
bitField0_
private int bitField0_ -
extension_
-
extensionBuilder_
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder, extensionBuilder_TypedExtensionConfigOrBuilder> -
isOptional_
private boolean isOptional_
-
-
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<ClusterSpecifierPlugin.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
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<ClusterSpecifierPlugin.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<ClusterSpecifierPlugin.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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClusterSpecifierPlugin.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
-
mergeFrom
public ClusterSpecifierPlugin.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<ClusterSpecifierPlugin.Builder>
- Throws:
IOException
-
hasExtension
public boolean hasExtension()The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
- Specified by:
hasExtension
in interfaceClusterSpecifierPluginOrBuilder
- Returns:
- Whether the extension field is set.
-
getExtension
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
- Specified by:
getExtension
in interfaceClusterSpecifierPluginOrBuilder
- Returns:
- The extension.
-
setExtension
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
setExtension
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
mergeExtension
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
clearExtension
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
getExtensionBuilder
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
getExtensionOrBuilder
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
- Specified by:
getExtensionOrBuilder
in interfaceClusterSpecifierPluginOrBuilder
-
getExtensionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder, getExtensionFieldBuilder()TypedExtensionConfigOrBuilder> The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
getIsOptional
public boolean getIsOptional()If is_optional is not set or is set to false and the plugin defined by this message is not a supported type, the containing resource is NACKed. If is_optional is set to true, the resource would not be NACKed for this reason. In this case, routes referencing this plugin's name would not be treated as an illegal configuration, but would result in a failure if the route is selected.
bool is_optional = 2;
- Specified by:
getIsOptional
in interfaceClusterSpecifierPluginOrBuilder
- Returns:
- The isOptional.
-
setIsOptional
If is_optional is not set or is set to false and the plugin defined by this message is not a supported type, the containing resource is NACKed. If is_optional is set to true, the resource would not be NACKed for this reason. In this case, routes referencing this plugin's name would not be treated as an illegal configuration, but would result in a failure if the route is selected.
bool is_optional = 2;
- Parameters:
value
- The isOptional to set.- Returns:
- This builder for chaining.
-
clearIsOptional
If is_optional is not set or is set to false and the plugin defined by this message is not a supported type, the containing resource is NACKed. If is_optional is set to true, the resource would not be NACKed for this reason. In this case, routes referencing this plugin's name would not be treated as an illegal configuration, but would result in a failure if the route is selected.
bool is_optional = 2;
- Returns:
- This builder for chaining.
-