Class ProtoMessageExtractionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProtoMessageExtractionConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProtoMessageExtractionConfigOrBuilder, Cloneable
Enclosing class:
ProtoMessageExtractionConfig

public static final class ProtoMessageExtractionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProtoMessageExtractionConfig.Builder> implements ProtoMessageExtractionConfigOrBuilder
Protobuf type envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ProtoMessageExtractionConfig.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ProtoMessageExtractionConfig.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ProtoMessageExtractionConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ProtoMessageExtractionConfig.Builder>
    • setField

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • clearField

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • clearOneof

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • setRepeatedField

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • addRepeatedField

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • mergeFrom

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProtoMessageExtractionConfig.Builder>
    • mergeFrom

      public ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
      Throws:
      IOException
    • getDescriptorSetCase

      public ProtoMessageExtractionConfig.DescriptorSetCase getDescriptorSetCase()
      Specified by:
      getDescriptorSetCase in interface ProtoMessageExtractionConfigOrBuilder
    • clearDescriptorSet

      public ProtoMessageExtractionConfig.Builder clearDescriptorSet()
    • hasDataSource

      public boolean hasDataSource()
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
      Specified by:
      hasDataSource in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      Whether the dataSource field is set.
    • getDataSource

      public DataSource getDataSource()
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
      Specified by:
      getDataSource in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      The dataSource.
    • setDataSource

      public ProtoMessageExtractionConfig.Builder setDataSource(DataSource value)
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
    • setDataSource

      public ProtoMessageExtractionConfig.Builder setDataSource(DataSource.Builder builderForValue)
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
    • mergeDataSource

      public ProtoMessageExtractionConfig.Builder mergeDataSource(DataSource value)
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
    • clearDataSource

      public ProtoMessageExtractionConfig.Builder clearDataSource()
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
    • getDataSourceBuilder

      public DataSource.Builder getDataSourceBuilder()
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
    • getDataSourceOrBuilder

      public DataSourceOrBuilder getDataSourceOrBuilder()
       It could be passed by a local file through ``Datasource.filename`` or
       embedded in the ``Datasource.inline_bytes``.
       
      .envoy.config.core.v3.DataSource data_source = 1;
      Specified by:
      getDataSourceOrBuilder in interface ProtoMessageExtractionConfigOrBuilder
    • hasProtoDescriptorTypedMetadata

      public boolean hasProtoDescriptorTypedMetadata()
       Unimplemented, the key of proto descriptor TypedMetadata.
       Among filters depending on the proto descriptor, we can have a
       TypedMetadata for proto descriptors, so that these filters can share one
       copy of proto descriptor in memory.
       
      string proto_descriptor_typed_metadata = 2;
      Specified by:
      hasProtoDescriptorTypedMetadata in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      Whether the protoDescriptorTypedMetadata field is set.
    • getProtoDescriptorTypedMetadata

      public String getProtoDescriptorTypedMetadata()
       Unimplemented, the key of proto descriptor TypedMetadata.
       Among filters depending on the proto descriptor, we can have a
       TypedMetadata for proto descriptors, so that these filters can share one
       copy of proto descriptor in memory.
       
      string proto_descriptor_typed_metadata = 2;
      Specified by:
      getProtoDescriptorTypedMetadata in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      The protoDescriptorTypedMetadata.
    • getProtoDescriptorTypedMetadataBytes

      public com.google.protobuf.ByteString getProtoDescriptorTypedMetadataBytes()
       Unimplemented, the key of proto descriptor TypedMetadata.
       Among filters depending on the proto descriptor, we can have a
       TypedMetadata for proto descriptors, so that these filters can share one
       copy of proto descriptor in memory.
       
      string proto_descriptor_typed_metadata = 2;
      Specified by:
      getProtoDescriptorTypedMetadataBytes in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      The bytes for protoDescriptorTypedMetadata.
    • setProtoDescriptorTypedMetadata

      public ProtoMessageExtractionConfig.Builder setProtoDescriptorTypedMetadata(String value)
       Unimplemented, the key of proto descriptor TypedMetadata.
       Among filters depending on the proto descriptor, we can have a
       TypedMetadata for proto descriptors, so that these filters can share one
       copy of proto descriptor in memory.
       
      string proto_descriptor_typed_metadata = 2;
      Parameters:
      value - The protoDescriptorTypedMetadata to set.
      Returns:
      This builder for chaining.
    • clearProtoDescriptorTypedMetadata

      public ProtoMessageExtractionConfig.Builder clearProtoDescriptorTypedMetadata()
       Unimplemented, the key of proto descriptor TypedMetadata.
       Among filters depending on the proto descriptor, we can have a
       TypedMetadata for proto descriptors, so that these filters can share one
       copy of proto descriptor in memory.
       
      string proto_descriptor_typed_metadata = 2;
      Returns:
      This builder for chaining.
    • setProtoDescriptorTypedMetadataBytes

      public ProtoMessageExtractionConfig.Builder setProtoDescriptorTypedMetadataBytes(com.google.protobuf.ByteString value)
       Unimplemented, the key of proto descriptor TypedMetadata.
       Among filters depending on the proto descriptor, we can have a
       TypedMetadata for proto descriptors, so that these filters can share one
       copy of proto descriptor in memory.
       
      string proto_descriptor_typed_metadata = 2;
      Parameters:
      value - The bytes for protoDescriptorTypedMetadata to set.
      Returns:
      This builder for chaining.
    • getModeValue

      public int getModeValue()
      .envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode mode = 3;
      Specified by:
      getModeValue in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • setModeValue

      public ProtoMessageExtractionConfig.Builder setModeValue(int value)
      .envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode mode = 3;
      Parameters:
      value - The enum numeric value on the wire for mode to set.
      Returns:
      This builder for chaining.
    • getMode

      .envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode mode = 3;
      Specified by:
      getMode in interface ProtoMessageExtractionConfigOrBuilder
      Returns:
      The mode.
    • setMode

      .envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode mode = 3;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

      .envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode mode = 3;
      Returns:
      This builder for chaining.
    • getExtractionByMethodCount

      public int getExtractionByMethodCount()
      Description copied from interface: ProtoMessageExtractionConfigOrBuilder
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
      Specified by:
      getExtractionByMethodCount in interface ProtoMessageExtractionConfigOrBuilder
    • containsExtractionByMethod

      public boolean containsExtractionByMethod(String key)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
      Specified by:
      containsExtractionByMethod in interface ProtoMessageExtractionConfigOrBuilder
    • getExtractionByMethod

      @Deprecated public Map<String,MethodExtraction> getExtractionByMethod()
      Deprecated.
      Specified by:
      getExtractionByMethod in interface ProtoMessageExtractionConfigOrBuilder
    • getExtractionByMethodMap

      public Map<String,MethodExtraction> getExtractionByMethodMap()
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
      Specified by:
      getExtractionByMethodMap in interface ProtoMessageExtractionConfigOrBuilder
    • getExtractionByMethodOrDefault

      public MethodExtraction getExtractionByMethodOrDefault(String key, MethodExtraction defaultValue)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
      Specified by:
      getExtractionByMethodOrDefault in interface ProtoMessageExtractionConfigOrBuilder
    • getExtractionByMethodOrThrow

      public MethodExtraction getExtractionByMethodOrThrow(String key)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
      Specified by:
      getExtractionByMethodOrThrow in interface ProtoMessageExtractionConfigOrBuilder
    • clearExtractionByMethod

      public ProtoMessageExtractionConfig.Builder clearExtractionByMethod()
    • removeExtractionByMethod

      public ProtoMessageExtractionConfig.Builder removeExtractionByMethod(String key)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
    • getMutableExtractionByMethod

      @Deprecated public Map<String,MethodExtraction> getMutableExtractionByMethod()
      Deprecated.
      Use alternate mutation accessors instead.
    • putExtractionByMethod

      public ProtoMessageExtractionConfig.Builder putExtractionByMethod(String key, MethodExtraction value)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
    • putAllExtractionByMethod

      public ProtoMessageExtractionConfig.Builder putAllExtractionByMethod(Map<String,MethodExtraction> values)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
    • putExtractionByMethodBuilderIfAbsent

      public MethodExtraction.Builder putExtractionByMethodBuilderIfAbsent(String key)
       Specify the message extraction info.
       The key is the fully qualified gRPC method name.
       ``${package}.${Service}.${Method}``, like
       ``endpoints.examples.bookstore.BookStore.GetShelf``
      
       The value is the message extraction information for individual gRPC
       methods.
       
      map<string, .envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction> extraction_by_method = 4;
    • setUnknownFields

      public final ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>
    • mergeUnknownFields

      public final ProtoMessageExtractionConfig.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<ProtoMessageExtractionConfig.Builder>