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 Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    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.
     
    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.
    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.ByteString
    This 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.
    boolean
    The version is a property of the extension and maintained independently of other extensions and the Envoy API.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    The version is a property of the extension and maintained independently of other extensions and the Envoy API.
    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.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setName(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.
    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)
     
    [#not-implemented-hide:] Type descriptor of extension configuration proto.
    setTypeDescriptorBytes(com.google.protobuf.ByteString value)
    [#not-implemented-hide:] Type descriptor of extension configuration proto.
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    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.

    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, 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • clear

      public Extension.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • getDefaultInstanceForType

      public Extension getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Extension build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Extension buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Extension.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • setField

      public Extension.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • clearField

      public Extension.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • clearOneof

      public Extension.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • setRepeatedField

      public Extension.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • addRepeatedField

      public Extension.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • mergeFrom

      public Extension.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Extension.Builder>
    • mergeFrom

      public Extension.Builder mergeFrom(Extension other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Extension.Builder>
      Throws:
      IOException
    • getName

      public 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:
      getName in interface ExtensionOrBuilder
      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 interface ExtensionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Extension.Builder setName(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 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:
      getCategory in interface ExtensionOrBuilder
      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 interface ExtensionOrBuilder
      Returns:
      The bytes for category.
    • setCategory

      public Extension.Builder setCategory(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

      public String 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:
      getTypeDescriptor in interface ExtensionOrBuilder
      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:
      getTypeDescriptorBytes in interface ExtensionOrBuilder
      Returns:
      The bytes for typeDescriptor.
    • setTypeDescriptor

      public Extension.Builder setTypeDescriptor(String value)
       [#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

      public Extension.Builder 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

      public Extension.Builder setTypeDescriptorBytes(com.google.protobuf.ByteString value)
       [#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:
      hasVersion in interface ExtensionOrBuilder
      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.api.v2.core.BuildVersion version = 4;
      Specified by:
      getVersion in interface ExtensionOrBuilder
      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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.BuildVersion version = 4;
      Specified by:
      getVersionOrBuilder in interface ExtensionOrBuilder
    • getDisabled

      public boolean getDisabled()
       Indicates that the extension is present but was disabled via dynamic configuration.
       
      bool disabled = 5;
      Specified by:
      getDisabled in interface ExtensionOrBuilder
      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.
    • setUnknownFields

      public final Extension.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>
    • mergeUnknownFields

      public final Extension.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Extension.Builder>