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 classAutoValue_Bootstrapper_BootstrapInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.AuthorityInfo>authoritiesprivate com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo>certProvidersprivate java.lang.StringclientDefaultListenerResourceNameTemplateprivate EnvoyProtoData.Nodenodeprivate java.lang.StringserverListenerResourceNameTemplateprivate com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo>servers
-
Constructor Summary
Constructors Modifier Constructor Description privateAutoValue_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.StringclientDefaultListenerResourceNameTemplate()A template for the name of the Listener resource to subscribe to for a gRPC client channel.booleanequals(java.lang.Object o)inthashCode()EnvoyProtoData.Nodenode()Returns the node identifier to be included in xDS requests.java.lang.StringserverListenerResourceNameTemplate()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.StringtoString()-
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.BootstrapInfoReturns the list of xDS servers to be connected to. Must not be empty.- Specified by:
serversin classBootstrapper.BootstrapInfo
-
node
public EnvoyProtoData.Node node()
Description copied from class:Bootstrapper.BootstrapInfoReturns the node identifier to be included in xDS requests.- Specified by:
nodein classBootstrapper.BootstrapInfo
-
certProviders
@Nullable public com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.CertificateProviderInfo> certProviders()
Description copied from class:Bootstrapper.BootstrapInfoReturns the cert-providers config map.- Specified by:
certProvidersin classBootstrapper.BootstrapInfo
-
serverListenerResourceNameTemplate
@Nullable public java.lang.String serverListenerResourceNameTemplate()
Description copied from class:Bootstrapper.BootstrapInfoA 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:
serverListenerResourceNameTemplatein classBootstrapper.BootstrapInfo
-
clientDefaultListenerResourceNameTemplate
public java.lang.String clientDefaultListenerResourceNameTemplate()
Description copied from class:Bootstrapper.BootstrapInfoA 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:
clientDefaultListenerResourceNameTemplatein classBootstrapper.BootstrapInfo
-
authorities
public com.google.common.collect.ImmutableMap<java.lang.String,Bootstrapper.AuthorityInfo> authorities()
Description copied from class:Bootstrapper.BootstrapInfoA 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:
authoritiesin classBootstrapper.BootstrapInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-