Class AutoValue_Bootstrapper_BootstrapInfo

java.lang.Object
io.grpc.xds.client.Bootstrapper.BootstrapInfo
io.grpc.xds.client.AutoValue_Bootstrapper_BootstrapInfo

@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_Bootstrapper_BootstrapInfo extends Bootstrapper.BootstrapInfo
  • Field Details

  • Constructor Details

  • Method Details

    • servers

      public com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> servers()
      Description copied from class: Bootstrapper.BootstrapInfo
      Returns the list of xDS servers to be connected to. Must not be empty.
      Specified by:
      servers in class Bootstrapper.BootstrapInfo
    • node

      public EnvoyProtoData.Node node()
      Description copied from class: Bootstrapper.BootstrapInfo
      Returns the node identifier to be included in xDS requests.
      Specified by:
      node in class Bootstrapper.BootstrapInfo
    • certProviders

      @Nullable public com.google.common.collect.ImmutableMap<String,Bootstrapper.CertificateProviderInfo> certProviders()
      Description copied from class: Bootstrapper.BootstrapInfo
      Returns the cert-providers config map.
      Specified by:
      certProviders in class Bootstrapper.BootstrapInfo
    • serverListenerResourceNameTemplate

      @Nullable public String serverListenerResourceNameTemplate()
      Description copied from class: Bootstrapper.BootstrapInfo
      A template for the name of the Listener resource to subscribe to for a gRPC server.

      If starts with "xdstp:", will be interpreted as a new-style name, in which case the authority of the URI will be used to select the relevant configuration in the "authorities" map. The token "%s", if present in this string, will be replaced with the IP and port on which the server is listening. If the template starts with "xdstp:", the replaced string will be %-encoded.

      There is no default; if unset, xDS-based server creation fails.

      Specified by:
      serverListenerResourceNameTemplate in class Bootstrapper.BootstrapInfo
    • clientDefaultListenerResourceNameTemplate

      public String clientDefaultListenerResourceNameTemplate()
      Description copied from class: Bootstrapper.BootstrapInfo
      A template for the name of the Listener resource to subscribe to for a gRPC client channel. Used only when the channel is created with an "xds:" URI with no authority.

      If starts with "xdstp:", will be interpreted as a new-style name, in which case the authority of the URI will be used to select the relevant configuration in the "authorities" map.

      The token "%s", if present in this string, will be replaced with the service authority (i.e., the path part of the target URI used to create the gRPC channel). If the template starts with "xdstp:", the replaced string will be %-encoded.

      Defaults to "%s".

      Specified by:
      clientDefaultListenerResourceNameTemplate in class Bootstrapper.BootstrapInfo
    • authorities

      public com.google.common.collect.ImmutableMap<String,Bootstrapper.AuthorityInfo> authorities()
      Description copied from class: Bootstrapper.BootstrapInfo
      A map of authority name to corresponding configuration.

      This is used in the following cases:

      • A gRPC client channel is created using an "xds:" URI that includes an authority.
      • A gRPC client channel is created using an "xds:" URI with no authority, but the "client_default_listener_resource_name_template" field above turns it into an "xdstp:" URI.
      • A gRPC server is created and the "server_listener_resource_name_template" field is an "xdstp:" URI.

      In any of those cases, it is an error if the specified authority is not present in this map.

      Defaults to an empty map.

      Specified by:
      authorities in class Bootstrapper.BootstrapInfo
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object