Class ClusterSpecifierPlugin.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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
,java.lang.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 typeenvoy.config.route.v3.ClusterSpecifierPlugin
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private TypedExtensionConfig
extension_
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>
extensionBuilder_
private boolean
isOptional_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterSpecifierPlugin
build()
ClusterSpecifierPlugin
buildPartial()
private void
buildPartial0(ClusterSpecifierPlugin result)
ClusterSpecifierPlugin.Builder
clear()
ClusterSpecifierPlugin.Builder
clearExtension()
The name of the plugin and its opaque configuration.ClusterSpecifierPlugin.Builder
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.ClusterSpecifierPlugin
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
TypedExtensionConfig
getExtension()
The name of the plugin and its opaque configuration.TypedExtensionConfig.Builder
getExtensionBuilder()
The name of the plugin and its opaque configuration.private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>
getExtensionFieldBuilder()
The name of the plugin and its opaque configuration.TypedExtensionConfigOrBuilder
getExtensionOrBuilder()
The name of the plugin and its opaque configuration.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.boolean
hasExtension()
The name of the plugin and its opaque configuration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
ClusterSpecifierPlugin.Builder
mergeExtension(TypedExtensionConfig value)
The name of the plugin and its opaque configuration.ClusterSpecifierPlugin.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ClusterSpecifierPlugin.Builder
mergeFrom(com.google.protobuf.Message other)
ClusterSpecifierPlugin.Builder
mergeFrom(ClusterSpecifierPlugin other)
ClusterSpecifierPlugin.Builder
setExtension(TypedExtensionConfig value)
The name of the plugin and its opaque configuration.ClusterSpecifierPlugin.Builder
setExtension(TypedExtensionConfig.Builder builderForValue)
The name of the plugin and its opaque configuration.ClusterSpecifierPlugin.Builder
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
extension_
private TypedExtensionConfig extension_
-
extensionBuilder_
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> extensionBuilder_
-
isOptional_
private boolean isOptional_
-
-
Method Detail
-
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
public ClusterSpecifierPlugin.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<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
public ClusterSpecifierPlugin getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClusterSpecifierPlugin build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClusterSpecifierPlugin buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(ClusterSpecifierPlugin result)
-
mergeFrom
public ClusterSpecifierPlugin.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClusterSpecifierPlugin.Builder>
-
mergeFrom
public ClusterSpecifierPlugin.Builder mergeFrom(ClusterSpecifierPlugin other)
-
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 java.io.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:
java.io.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
public TypedExtensionConfig 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
public ClusterSpecifierPlugin.Builder setExtension(TypedExtensionConfig value)
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
setExtension
public ClusterSpecifierPlugin.Builder setExtension(TypedExtensionConfig.Builder builderForValue)
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
mergeExtension
public ClusterSpecifierPlugin.Builder mergeExtension(TypedExtensionConfig value)
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
clearExtension
public ClusterSpecifierPlugin.Builder clearExtension()
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
getExtensionBuilder
public TypedExtensionConfig.Builder getExtensionBuilder()
The name of the plugin and its opaque configuration.
.envoy.config.core.v3.TypedExtensionConfig extension = 1 [(.validate.rules) = { ... }
-
getExtensionOrBuilder
public TypedExtensionConfigOrBuilder 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,TypedExtensionConfigOrBuilder> getExtensionFieldBuilder()
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
public ClusterSpecifierPlugin.Builder 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. 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
public ClusterSpecifierPlugin.Builder 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.
-
-