Class AutoValue_Bootstrapper_BootstrapInfo


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

      • serverListenerResourceNameTemplate

        private final java.lang.String serverListenerResourceNameTemplate
      • clientDefaultListenerResourceNameTemplate

        private final java.lang.String clientDefaultListenerResourceNameTemplate
    • Constructor Detail

      • AutoValue_Bootstrapper_BootstrapInfo

        private AutoValue_Bootstrapper_BootstrapInfo​(com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> servers,
                                                     EnvoyProtoData.Node node,
                                                     @Nullable
                                                     com.google.common.collect.ImmutableMap<java.lang.String,​Bootstrapper.CertificateProviderInfo> certProviders,
                                                     @Nullable
                                                     java.lang.String serverListenerResourceNameTemplate,
                                                     java.lang.String clientDefaultListenerResourceNameTemplate,
                                                     com.google.common.collect.ImmutableMap<java.lang.String,​Bootstrapper.AuthorityInfo> authorities)
    • Method Detail

      • serverListenerResourceNameTemplate

        @Nullable
        public java.lang.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 java.lang.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<java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object