Class Extension.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typeenvoy.config.core.v3.Extension
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.Objectcategory_private booleandisabled_private java.lang.Objectname_private java.lang.ObjecttypeDescriptor_private com.google.protobuf.LazyStringArrayListtypeUrls_private BuildVersionversion_private com.google.protobuf.SingleFieldBuilder<BuildVersion,BuildVersion.Builder,BuildVersionOrBuilder>versionBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Extension.BuilderaddAllTypeUrls(java.lang.Iterable<java.lang.String> values)Type URLs of extension configuration protos.Extension.BuilderaddTypeUrls(java.lang.String value)Type URLs of extension configuration protos.Extension.BuilderaddTypeUrlsBytes(com.google.protobuf.ByteString value)Type URLs of extension configuration protos.Extensionbuild()ExtensionbuildPartial()private voidbuildPartial0(Extension result)Extension.Builderclear()Extension.BuilderclearCategory()Category of the extension.Extension.BuilderclearDisabled()Indicates that the extension is present but was disabled via dynamic configuration.Extension.BuilderclearName()This is the name of the Envoy filter as specified in the Envoy configuration, e.g.Extension.BuilderclearTypeDescriptor()Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.Extension.BuilderclearTypeUrls()Type URLs of extension configuration protos.Extension.BuilderclearVersion()The version is a property of the extension and maintained independently of other extensions and the Envoy API.private voidensureTypeUrlsIsMutable()java.lang.StringgetCategory()Category of the extension.com.google.protobuf.ByteStringgetCategoryBytes()Category of the extension.ExtensiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetDisabled()Indicates that the extension is present but was disabled via dynamic configuration.java.lang.StringgetName()This is the name of the Envoy filter as specified in the Envoy configuration, e.g.com.google.protobuf.ByteStringgetNameBytes()This is the name of the Envoy filter as specified in the Envoy configuration, e.g.java.lang.StringgetTypeDescriptor()Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.com.google.protobuf.ByteStringgetTypeDescriptorBytes()Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.java.lang.StringgetTypeUrls(int index)Type URLs of extension configuration protos.com.google.protobuf.ByteStringgetTypeUrlsBytes(int index)Type URLs of extension configuration protos.intgetTypeUrlsCount()Type URLs of extension configuration protos.com.google.protobuf.ProtocolStringListgetTypeUrlsList()Type URLs of extension configuration protos.BuildVersiongetVersion()The version is a property of the extension and maintained independently of other extensions and the Envoy API.BuildVersion.BuildergetVersionBuilder()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>getVersionFieldBuilder()The version is a property of the extension and maintained independently of other extensions and the Envoy API.BuildVersionOrBuildergetVersionOrBuilder()The version is a property of the extension and maintained independently of other extensions and the Envoy API.booleanhasVersion()The version is a property of the extension and maintained independently of other extensions and the Envoy API.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()Extension.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Extension.BuildermergeFrom(com.google.protobuf.Message other)Extension.BuildermergeFrom(Extension other)Extension.BuildermergeVersion(BuildVersion value)The version is a property of the extension and maintained independently of other extensions and the Envoy API.Extension.BuildersetCategory(java.lang.String value)Category of the extension.Extension.BuildersetCategoryBytes(com.google.protobuf.ByteString value)Category of the extension.Extension.BuildersetDisabled(boolean value)Indicates that the extension is present but was disabled via dynamic configuration.Extension.BuildersetName(java.lang.String value)This is the name of the Envoy filter as specified in the Envoy configuration, e.g.Extension.BuildersetNameBytes(com.google.protobuf.ByteString value)This is the name of the Envoy filter as specified in the Envoy configuration, e.g.Extension.BuildersetTypeDescriptor(java.lang.String value)Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.Extension.BuildersetTypeDescriptorBytes(com.google.protobuf.ByteString value)Deprecated.envoy.config.core.v3.Extension.type_descriptor is deprecated.Extension.BuildersetTypeUrls(int index, java.lang.String value)Type URLs of extension configuration protos.Extension.BuildersetVersion(BuildVersion value)The version is a property of the extension and maintained independently of other extensions and the Envoy API.Extension.BuildersetVersion(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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
name_
private java.lang.Object name_
-
category_
private java.lang.Object category_
-
typeDescriptor_
private java.lang.Object typeDescriptor_
-
version_
private BuildVersion version_
-
versionBuilder_
private com.google.protobuf.SingleFieldBuilder<BuildVersion,BuildVersion.Builder,BuildVersionOrBuilder> versionBuilder_
-
disabled_
private boolean disabled_
-
typeUrls_
private com.google.protobuf.LazyStringArrayList typeUrls_
-
-
Method Detail
-
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<Extension.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public Extension.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Extension.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<Extension.Builder>
-
getDefaultInstanceForType
public Extension getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Extension build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Extension buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Extension result)
-
mergeFrom
public Extension.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Extension.Builder>
-
mergeFrom
public Extension.Builder mergeFrom(Extension other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Extension.Builder>
-
mergeFrom
public Extension.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Extension.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String 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:
getNamein 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:
getNameBytesin interfaceExtensionOrBuilder- Returns:
- The bytes for name.
-
setName
public Extension.Builder setName(java.lang.String value)
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
public Extension.Builder 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
public Extension.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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:
getCategoryin 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:
getCategoryBytesin interfaceExtensionOrBuilder- Returns:
- The bytes for category.
-
setCategory
public Extension.Builder setCategory(java.lang.String value)
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
public Extension.Builder 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
public Extension.Builder setCategoryBytes(com.google.protobuf.ByteString value)
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 public java.lang.String 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:
getTypeDescriptorin interfaceExtensionOrBuilder- Returns:
- The typeDescriptor.
-
getTypeDescriptorBytes
@Deprecated public com.google.protobuf.ByteString 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:
getTypeDescriptorBytesin interfaceExtensionOrBuilder- Returns:
- The bytes for typeDescriptor.
-
setTypeDescriptor
@Deprecated public Extension.Builder setTypeDescriptor(java.lang.String value)
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 public Extension.Builder 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 public Extension.Builder setTypeDescriptorBytes(com.google.protobuf.ByteString value)
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:
hasVersionin interfaceExtensionOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public BuildVersion 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:
getVersionin interfaceExtensionOrBuilder- Returns:
- The version.
-
setVersion
public Extension.Builder setVersion(BuildVersion value)
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
public Extension.Builder setVersion(BuildVersion.Builder builderForValue)
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
public Extension.Builder mergeVersion(BuildVersion value)
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
public Extension.Builder 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
public BuildVersion.Builder 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
public BuildVersionOrBuilder 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:
getVersionOrBuilderin interfaceExtensionOrBuilder
-
getVersionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<BuildVersion,BuildVersion.Builder,BuildVersionOrBuilder> getVersionFieldBuilder()
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:
getDisabledin interfaceExtensionOrBuilder- Returns:
- The disabled.
-
setDisabled
public Extension.Builder setDisabled(boolean value)
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
public Extension.Builder 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:
getTypeUrlsListin interfaceExtensionOrBuilder- Returns:
- A list containing the typeUrls.
-
getTypeUrlsCount
public int getTypeUrlsCount()
Type URLs of extension configuration protos.
repeated string type_urls = 6;- Specified by:
getTypeUrlsCountin interfaceExtensionOrBuilder- Returns:
- The count of typeUrls.
-
getTypeUrls
public java.lang.String getTypeUrls(int index)
Type URLs of extension configuration protos.
repeated string type_urls = 6;- Specified by:
getTypeUrlsin 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:
getTypeUrlsBytesin interfaceExtensionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the typeUrls at the given index.
-
setTypeUrls
public Extension.Builder setTypeUrls(int index, java.lang.String value)
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
public Extension.Builder addTypeUrls(java.lang.String value)
Type URLs of extension configuration protos.
repeated string type_urls = 6;- Parameters:
value- The typeUrls to add.- Returns:
- This builder for chaining.
-
addAllTypeUrls
public Extension.Builder addAllTypeUrls(java.lang.Iterable<java.lang.String> values)
Type URLs of extension configuration protos.
repeated string type_urls = 6;- Parameters:
values- The typeUrls to add.- Returns:
- This builder for chaining.
-
clearTypeUrls
public Extension.Builder clearTypeUrls()
Type URLs of extension configuration protos.
repeated string type_urls = 6;- Returns:
- This builder for chaining.
-
addTypeUrlsBytes
public Extension.Builder addTypeUrlsBytes(com.google.protobuf.ByteString value)
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.
-
-