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 intprivate TypedExtensionConfigprivate com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig, TypedExtensionConfig.Builder, TypedExtensionConfigOrBuilder> private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(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.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the plugin and its opaque configuration.The name of the plugin and its opaque configuration.The name of the plugin and its opaque configuration.booleanIf 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.booleanThe 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidThe 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ClusterSpecifierPlugin.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClusterSpecifierPlugin.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasExtensionin 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:
getExtensionin 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:
getExtensionOrBuilderin interfaceClusterSpecifierPluginOrBuilder
-
internalGetExtensionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder, internalGetExtensionFieldBuilder()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:
getIsOptionalin 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.
-