Package io.envoyproxy.envoy.api.v2.core
Class Extension.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
io.envoyproxy.envoy.api.v2.core.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.GeneratedMessageV3.Builder<Extension.Builder>
implements ExtensionOrBuilder
Version and identification for an Envoy extension. [#next-free-field: 6]Protobuf type
envoy.api.v2.core.Extension-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Category of the extension.Indicates that the extension is present but was disabled via dynamic configuration.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) [#not-implemented-hide:] Type descriptor of extension configuration proto.The version is a property of the extension and maintained independently of other extensions and the Envoy API.clone()Category of the extension.com.google.protobuf.ByteStringCategory of the extension.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates 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. envoy.filters.http.router, com.acme.widget.com.google.protobuf.ByteStringThis is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget.[#not-implemented-hide:] Type descriptor of extension configuration proto.com.google.protobuf.ByteString[#not-implemented-hide:] Type descriptor of extension configuration proto.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.The version is a property of the extension and maintained independently of other extensions and the Envoy API.booleanThe version is a property of the extension and maintained independently of other extensions and the Envoy API.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Extension.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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. envoy.filters.http.router, com.acme.widget.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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTypeDescriptor(String value) [#not-implemented-hide:] Type descriptor of extension configuration proto.setTypeDescriptorBytes(com.google.protobuf.ByteString value) [#not-implemented-hide:] Type descriptor of extension configuration proto.final Extension.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Extension.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
setField
public Extension.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
setRepeatedField
public Extension.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
addRepeatedField
public Extension.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Extension.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
mergeFrom
public Extension.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<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:
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
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:
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
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
[#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;- Specified by:
getTypeDescriptorin interfaceExtensionOrBuilder- Returns:
- The typeDescriptor.
-
getTypeDescriptorBytes
public com.google.protobuf.ByteString getTypeDescriptorBytes()[#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;- Specified by:
getTypeDescriptorBytesin interfaceExtensionOrBuilder- Returns:
- The bytes for typeDescriptor.
-
setTypeDescriptor
[#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;- Parameters:
value- The typeDescriptor to set.- Returns:
- This builder for chaining.
-
clearTypeDescriptor
[#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;- Returns:
- This builder for chaining.
-
setTypeDescriptorBytes
[#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;- 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.api.v2.core.BuildVersion version = 4;- Specified by:
hasVersionin 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.api.v2.core.BuildVersion version = 4;- Specified by:
getVersionin 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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.BuildVersion version = 4;- Specified by:
getVersionOrBuilderin interfaceExtensionOrBuilder
-
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
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.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-
mergeUnknownFields
public final Extension.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
-