Class EndpointContext

java.lang.Object
com.google.api.gax.rpc.EndpointContext

@InternalApi public abstract class EndpointContext extends Object
Contains the fields required to resolve the endpoint and Universe Domain
  • Constructor Details

    • EndpointContext

      public EndpointContext()
  • Method Details

    • serviceName

      @Nullable public abstract String serviceName()
      ServiceName is host URI for Google Cloud Services. It follows the format of `{ServiceName}.googleapis.com`. For example, speech.googleapis.com would have a ServiceName of speech and cloudasset.googleapis.com would have a ServiceName of cloudasset.
    • universeDomain

      @Nullable public abstract String universeDomain()
      Universe Domain is the domain for Google Cloud Services. It follows the format of `{ServiceName}.{UniverseDomain}`. For example, speech.googleapis.com would have a Universe Domain value of `googleapis.com` and cloudasset.test.com would have a Universe Domain of `test.com`. If this value is not set, this will default to `googleapis.com`.
    • clientSettingsEndpoint

      @Nullable public abstract String clientSettingsEndpoint()
      ClientSettingsEndpoint is the endpoint value set via the ClientSettings/StubSettings classes.
    • transportChannelProviderEndpoint

      @Nullable public abstract String transportChannelProviderEndpoint()
      TransportChannelProviderEndpoint is the endpoint value set via the TransportChannelProvider class.
    • mtlsEndpoint

      @Nullable public abstract String mtlsEndpoint()
    • switchToMtlsEndpointAllowed

      public abstract boolean switchToMtlsEndpointAllowed()
    • mtlsProvider

      @Nullable public abstract MtlsProvider mtlsProvider()
    • usingGDCH

      public abstract boolean usingGDCH()
    • resolvedEndpoint

      public abstract String resolvedEndpoint()
    • toBuilder

      public abstract EndpointContext.Builder toBuilder()
    • newBuilder

      public static EndpointContext.Builder newBuilder()