Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ErrorGroupServiceSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "clouderrorreporting.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
Expand Down Expand Up @@ -106,14 +100,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "clouderrorreporting.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -129,8 +118,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ErrorStatsServiceSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "clouderrorreporting.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
Expand Down Expand Up @@ -131,14 +125,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "clouderrorreporting.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -154,8 +143,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ReportErrorsServiceSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "clouderrorreporting.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
Expand All @@ -101,14 +95,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "clouderrorreporting.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -124,8 +113,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class LanguageServiceSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "language.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
Expand Down Expand Up @@ -127,14 +121,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "language.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -150,8 +139,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class LanguageServiceSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "language.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
Expand Down Expand Up @@ -137,14 +131,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "language.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -160,8 +149,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public class LoggingOptions extends ServiceOptions<Logging, LoggingOptions> {
private static final String API_SHORT_NAME = "Logging";
private static final String LOGGING_SCOPE = "https://www.googleapis.com/auth/logging.admin";
private static final Set<String> SCOPES = ImmutableSet.of(LOGGING_SCOPE);
private static final String DEFAULT_HOST = LoggingSettings.getDefaultServiceAddress()
+ ':' + LoggingSettings.getDefaultServicePort();
private static final String DEFAULT_HOST = LoggingSettings.getDefaultEndpoint();
private static final long serialVersionUID = 5753499510627426717L;

public static class DefaultLoggingFactory implements LoggingFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ConfigSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "logging.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
Expand Down Expand Up @@ -143,14 +137,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "logging.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -166,8 +155,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class LoggingSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "logging.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
Expand Down Expand Up @@ -170,14 +164,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "logging.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -193,8 +182,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class MetricsSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "logging.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
Expand Down Expand Up @@ -145,14 +139,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "logging.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -168,8 +157,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class GroupServiceSettings extends ClientSettings {
/** The default address of the service. */
private static final String DEFAULT_SERVICE_ADDRESS = "monitoring.googleapis.com";

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
Expand Down Expand Up @@ -156,14 +150,9 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service address. */
public static String getDefaultServiceAddress() {
return DEFAULT_SERVICE_ADDRESS;
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "monitoring.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand All @@ -179,8 +168,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setEndpoint(getDefaultEndpoint())
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down
Loading