Class Extension.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Extension.Builder>
com.google.protobuf.GeneratedMessage.Builder<Extension.Builder>
io.envoyproxy.envoy.config.core.v3.Extension.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ExtensionOrBuilder
,Cloneable
- Enclosing class:
Extension
public static final class Extension.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Extension.Builder>
implements ExtensionOrBuilder
Version and identification for an Envoy extension. [#next-free-field: 7]Protobuf type
envoy.config.core.v3.Extension
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private boolean
private Object
private Object
private com.google.protobuf.LazyStringArrayList
private BuildVersion
private com.google.protobuf.SingleFieldBuilder
<BuildVersion, BuildVersion.Builder, BuildVersionOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTypeUrls
(Iterable<String> values) Type URLs of extension configuration protos.addTypeUrls
(String value) Type URLs of extension configuration protos.addTypeUrlsBytes
(com.google.protobuf.ByteString value) Type URLs of extension configuration protos.build()
private void
buildPartial0
(Extension result) clear()
Category of the extension.Indicates that the extension is present but was disabled via dynamic configuration.This is the name of the Envoy filter as specified in the Envoy configuration, e.g.Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.Type URLs of extension configuration protos.The version is a property of the extension and maintained independently of other extensions and the Envoy API.private void
Category of the extension.com.google.protobuf.ByteString
Category of the extension.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Indicates that the extension is present but was disabled via dynamic configuration.getName()
This is the name of the Envoy filter as specified in the Envoy configuration, e.g.com.google.protobuf.ByteString
This is the name of the Envoy filter as specified in the Envoy configuration, e.g.Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.com.google.protobuf.ByteString
Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.getTypeUrls
(int index) Type URLs of extension configuration protos.com.google.protobuf.ByteString
getTypeUrlsBytes
(int index) Type URLs of extension configuration protos.int
Type URLs of extension configuration protos.com.google.protobuf.ProtocolStringList
Type URLs of extension configuration protos.The version is a property of the extension and maintained independently of other extensions and the Envoy API.The version is a property of the extension and maintained independently of other extensions and the Envoy API.private com.google.protobuf.SingleFieldBuilder
<BuildVersion, BuildVersion.Builder, BuildVersionOrBuilder> The version is a property of the extension and maintained independently of other extensions and the Envoy API.The version is a property of the extension and maintained independently of other extensions and the Envoy API.boolean
The version is a property of the extension and maintained independently of other extensions and the Envoy API.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeVersion
(BuildVersion value) The version is a property of the extension and maintained independently of other extensions and the Envoy API.setCategory
(String value) Category of the extension.setCategoryBytes
(com.google.protobuf.ByteString value) Category of the extension.setDisabled
(boolean value) Indicates that the extension is present but was disabled via dynamic configuration.This is the name of the Envoy filter as specified in the Envoy configuration, e.g.setNameBytes
(com.google.protobuf.ByteString value) This is the name of the Envoy filter as specified in the Envoy configuration, e.g.setTypeDescriptor
(String value) Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.setTypeDescriptorBytes
(com.google.protobuf.ByteString value) Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.setTypeUrls
(int index, String value) Type URLs of extension configuration protos.setVersion
(BuildVersion value) The version is a property of the extension and maintained independently of other extensions and the Envoy API.setVersion
(BuildVersion.Builder builderForValue) The version is a property of the extension and maintained independently of other extensions and the Envoy API.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_ -
name_
-
category_
-
typeDescriptor_
-
version_
-
versionBuilder_
private com.google.protobuf.SingleFieldBuilder<BuildVersion,BuildVersion.Builder, versionBuilder_BuildVersionOrBuilder> -
disabled_
private boolean disabled_ -
typeUrls_
private com.google.protobuf.LazyStringArrayList typeUrls_
-
-
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<Extension.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<Extension.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<Extension.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<Extension.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Extension.Builder>
-
mergeFrom
public Extension.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<Extension.Builder>
- Throws:
IOException
-
getName
This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.
string name = 1;
- Specified by:
getName
in interfaceExtensionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.
string name = 1;
- Specified by:
getNameBytes
in interfaceExtensionOrBuilder
- Returns:
- The bytes for name.
-
setName
This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCategory
Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment:TODO(yanavlasov): Link to the doc with existing envoy category names.]
string category = 2;
- Specified by:
getCategory
in interfaceExtensionOrBuilder
- Returns:
- The category.
-
getCategoryBytes
public com.google.protobuf.ByteString getCategoryBytes()Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment:TODO(yanavlasov): Link to the doc with existing envoy category names.]
string category = 2;
- Specified by:
getCategoryBytes
in interfaceExtensionOrBuilder
- Returns:
- The bytes for category.
-
setCategory
Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment:TODO(yanavlasov): Link to the doc with existing envoy category names.]
string category = 2;
- Parameters:
value
- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment:TODO(yanavlasov): Link to the doc with existing envoy category names.]
string category = 2;
- Returns:
- This builder for chaining.
-
setCategoryBytes
Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment:TODO(yanavlasov): Link to the doc with existing envoy category names.]
string category = 2;
- Parameters:
value
- The bytes for category to set.- Returns:
- This builder for chaining.
-
getTypeDescriptor
Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated. See envoy/config/core/v3/base.proto;l=123[#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment:TODO(yanavlasov): Link to the doc with existing configuration protos.] [#comment:TODO(yanavlasov): Add tests when PR #9391 lands.]
string type_descriptor = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
- Specified by:
getTypeDescriptor
in interfaceExtensionOrBuilder
- Returns:
- The typeDescriptor.
-
getTypeDescriptorBytes
Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated. See envoy/config/core/v3/base.proto;l=123[#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment:TODO(yanavlasov): Link to the doc with existing configuration protos.] [#comment:TODO(yanavlasov): Add tests when PR #9391 lands.]
string type_descriptor = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
- Specified by:
getTypeDescriptorBytes
in interfaceExtensionOrBuilder
- Returns:
- The bytes for typeDescriptor.
-
setTypeDescriptor
Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated. See envoy/config/core/v3/base.proto;l=123[#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment:TODO(yanavlasov): Link to the doc with existing configuration protos.] [#comment:TODO(yanavlasov): Add tests when PR #9391 lands.]
string type_descriptor = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
- Parameters:
value
- The typeDescriptor to set.- Returns:
- This builder for chaining.
-
clearTypeDescriptor
Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated. See envoy/config/core/v3/base.proto;l=123[#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment:TODO(yanavlasov): Link to the doc with existing configuration protos.] [#comment:TODO(yanavlasov): Add tests when PR #9391 lands.]
string type_descriptor = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
- Returns:
- This builder for chaining.
-
setTypeDescriptorBytes
Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated. See envoy/config/core/v3/base.proto;l=123[#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment:TODO(yanavlasov): Link to the doc with existing configuration protos.] [#comment:TODO(yanavlasov): Add tests when PR #9391 lands.]
string type_descriptor = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
- Parameters:
value
- The bytes for typeDescriptor to set.- Returns:
- This builder for chaining.
-
hasVersion
public boolean hasVersion()The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
- Specified by:
hasVersion
in interfaceExtensionOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
- Specified by:
getVersion
in interfaceExtensionOrBuilder
- Returns:
- The version.
-
setVersion
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
-
setVersion
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
-
mergeVersion
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
-
clearVersion
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
-
getVersionBuilder
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
-
getVersionOrBuilder
The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
- Specified by:
getVersionOrBuilder
in interfaceExtensionOrBuilder
-
getVersionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<BuildVersion,BuildVersion.Builder, getVersionFieldBuilder()BuildVersionOrBuilder> The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information.
.envoy.config.core.v3.BuildVersion version = 4;
-
getDisabled
public boolean getDisabled()Indicates that the extension is present but was disabled via dynamic configuration.
bool disabled = 5;
- Specified by:
getDisabled
in interfaceExtensionOrBuilder
- Returns:
- The disabled.
-
setDisabled
Indicates that the extension is present but was disabled via dynamic configuration.
bool disabled = 5;
- Parameters:
value
- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Indicates that the extension is present but was disabled via dynamic configuration.
bool disabled = 5;
- Returns:
- This builder for chaining.
-
ensureTypeUrlsIsMutable
private void ensureTypeUrlsIsMutable() -
getTypeUrlsList
public com.google.protobuf.ProtocolStringList getTypeUrlsList()Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Specified by:
getTypeUrlsList
in interfaceExtensionOrBuilder
- Returns:
- A list containing the typeUrls.
-
getTypeUrlsCount
public int getTypeUrlsCount()Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Specified by:
getTypeUrlsCount
in interfaceExtensionOrBuilder
- Returns:
- The count of typeUrls.
-
getTypeUrls
Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Specified by:
getTypeUrls
in interfaceExtensionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The typeUrls at the given index.
-
getTypeUrlsBytes
public com.google.protobuf.ByteString getTypeUrlsBytes(int index) Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Specified by:
getTypeUrlsBytes
in interfaceExtensionOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the typeUrls at the given index.
-
setTypeUrls
Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Parameters:
index
- The index to set the value at.value
- The typeUrls to set.- Returns:
- This builder for chaining.
-
addTypeUrls
Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Parameters:
value
- The typeUrls to add.- Returns:
- This builder for chaining.
-
addAllTypeUrls
Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Parameters:
values
- The typeUrls to add.- Returns:
- This builder for chaining.
-
clearTypeUrls
Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Returns:
- This builder for chaining.
-
addTypeUrlsBytes
Type URLs of extension configuration protos.
repeated string type_urls = 6;
- Parameters:
value
- The bytes of the typeUrls to add.- Returns:
- This builder for chaining.
-