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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AutoValue_Bootstrapper_BootstrapInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.AuthorityInfo>
authorities
private com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo>
certProviders
private java.lang.String
clientDefaultListenerResourceNameTemplate
private EnvoyProtoData.Node
node
private java.lang.String
serverListenerResourceNameTemplate
private com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo>
servers
-
Constructor Summary
Constructors Modifier Constructor Description private
AutoValue_Bootstrapper_BootstrapInfo(com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> servers, EnvoyProtoData.Node node, com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo> certProviders, java.lang.String serverListenerResourceNameTemplate, java.lang.String clientDefaultListenerResourceNameTemplate, com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.AuthorityInfo> authorities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.AuthorityInfo>
authorities()
A map of authority name to corresponding configuration.com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo>
certProviders()
Returns the cert-providers config map.java.lang.String
clientDefaultListenerResourceNameTemplate()
A template for the name of the Listener resource to subscribe to for a gRPC client channel.boolean
equals(java.lang.Object o)
int
hashCode()
EnvoyProtoData.Node
node()
Returns the node identifier to be included in xDS requests.java.lang.String
serverListenerResourceNameTemplate()
A template for the name of the Listener resource to subscribe to for a gRPC server.com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo>
servers()
Returns the list of xDS servers to be connected to.java.lang.String
toString()
-
Methods inherited from class io.grpc.xds.client.Bootstrapper.BootstrapInfo
builder
-
-
-
-
Field Detail
-
servers
private final com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> servers
-
node
private final EnvoyProtoData.Node node
-
certProviders
private final com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo> certProviders
-
serverListenerResourceNameTemplate
private final java.lang.String serverListenerResourceNameTemplate
-
clientDefaultListenerResourceNameTemplate
private final java.lang.String clientDefaultListenerResourceNameTemplate
-
authorities
private final com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.AuthorityInfo> authorities
-
-
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
-
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 classBootstrapper.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 classBootstrapper.BootstrapInfo
-
certProviders
@Nullable public com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo> certProviders()
Description copied from class:Bootstrapper.BootstrapInfo
Returns the cert-providers config map.- Specified by:
certProviders
in classBootstrapper.BootstrapInfo
-
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 classBootstrapper.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 classBootstrapper.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 classBootstrapper.BootstrapInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-