Class RouteConfiguration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
io.envoyproxy.envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RouteConfigurationOrBuilder, Cloneable
Enclosing class:
RouteConfiguration

public static final class RouteConfiguration.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder> implements RouteConfigurationOrBuilder
Protobuf type envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration
  • 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<RouteConfiguration.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<RouteConfiguration.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<RouteConfiguration.Builder>
    • getDefaultInstanceForType

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

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

      public RouteConfiguration 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<RouteConfiguration.Builder>
    • setField

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

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

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

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

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

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

      public RouteConfiguration.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<RouteConfiguration.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the route configuration. Reserved for future use in asynchronous route discovery.
       
      string name = 1;
      Specified by:
      getName in interface RouteConfigurationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the route configuration. Reserved for future use in asynchronous route discovery.
       
      string name = 1;
      Specified by:
      getNameBytes in interface RouteConfigurationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RouteConfiguration.Builder setName(String value)
       The name of the route configuration. Reserved for future use in asynchronous route discovery.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RouteConfiguration.Builder clearName()
       The name of the route configuration. Reserved for future use in asynchronous route discovery.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public RouteConfiguration.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the route configuration. Reserved for future use in asynchronous route discovery.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRoutesList

      public List<Route> getRoutesList()
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
      Specified by:
      getRoutesList in interface RouteConfigurationOrBuilder
    • getRoutesCount

      public int getRoutesCount()
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
      Specified by:
      getRoutesCount in interface RouteConfigurationOrBuilder
    • getRoutes

      public Route getRoutes(int index)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
      Specified by:
      getRoutes in interface RouteConfigurationOrBuilder
    • setRoutes

      public RouteConfiguration.Builder setRoutes(int index, Route value)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • setRoutes

      public RouteConfiguration.Builder setRoutes(int index, Route.Builder builderForValue)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • addRoutes

      public RouteConfiguration.Builder addRoutes(Route value)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • addRoutes

      public RouteConfiguration.Builder addRoutes(int index, Route value)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • addRoutes

      public RouteConfiguration.Builder addRoutes(Route.Builder builderForValue)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • addRoutes

      public RouteConfiguration.Builder addRoutes(int index, Route.Builder builderForValue)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • addAllRoutes

      public RouteConfiguration.Builder addAllRoutes(Iterable<? extends Route> values)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • clearRoutes

      public RouteConfiguration.Builder clearRoutes()
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • removeRoutes

      public RouteConfiguration.Builder removeRoutes(int index)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • getRoutesBuilder

      public Route.Builder getRoutesBuilder(int index)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • getRoutesOrBuilder

      public RouteOrBuilder getRoutesOrBuilder(int index)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
      Specified by:
      getRoutesOrBuilder in interface RouteConfigurationOrBuilder
    • getRoutesOrBuilderList

      public List<? extends RouteOrBuilder> getRoutesOrBuilderList()
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
      Specified by:
      getRoutesOrBuilderList in interface RouteConfigurationOrBuilder
    • addRoutesBuilder

      public Route.Builder addRoutesBuilder()
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • addRoutesBuilder

      public Route.Builder addRoutesBuilder(int index)
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • getRoutesBuilderList

      public List<Route.Builder> getRoutesBuilderList()
       The list of routes that will be matched, in order, against incoming requests. The first route
       that matches will be used.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.Route routes = 2;
    • setUnknownFields

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

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