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 @@ -66,7 +66,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ErrorGroupServiceSettings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -79,8 +79,8 @@ public class ErrorGroupServiceSettings extends ClientSettings {
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final SimpleCallSettings<GetGroupRequest, ErrorGroup> getGroupSettings;
private final SimpleCallSettings<UpdateGroupRequest, ErrorGroup> updateGroupSettings;
Expand Down Expand Up @@ -125,10 +125,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = ErrorGroupServiceSettings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -167,7 +172,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ErrorStatsServiceSettings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -92,8 +92,8 @@ public class ErrorStatsServiceSettings extends ClientSettings {
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final PagedCallSettings<
ListGroupStatsRequest, ListGroupStatsResponse, ListGroupStatsPagedResponse>
Expand Down Expand Up @@ -150,10 +150,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = ErrorStatsServiceSettings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -300,7 +305,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ReportErrorsServiceSettings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -78,8 +78,8 @@ public class ReportErrorsServiceSettings extends ClientSettings {
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final SimpleCallSettings<ReportErrorEventRequest, ReportErrorEventResponse>
reportErrorEventSettings;
Expand Down Expand Up @@ -120,10 +120,16 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion =
ReportErrorsServiceSettings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -161,7 +167,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class LanguageServiceSettings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -83,8 +83,8 @@ public class LanguageServiceSettings extends ClientSettings {
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final SimpleCallSettings<AnalyzeSentimentRequest, AnalyzeSentimentResponse>
analyzeSentimentSettings;
Expand Down Expand Up @@ -146,10 +146,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = LanguageServiceSettings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -196,7 +201,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class ConfigServiceV2Settings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -96,8 +96,8 @@ public class ConfigServiceV2Settings extends ClientSettings {
.add("https://www.googleapis.com/auth/logging.write")
.build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final PagedCallSettings<ListSinksRequest, ListSinksResponse, ListSinksPagedResponse>
listSinksSettings;
Expand Down Expand Up @@ -162,10 +162,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = ConfigServiceV2Settings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -261,7 +266,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class LoggingServiceV2Settings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -109,8 +109,8 @@ public class LoggingServiceV2Settings extends ClientSettings {
.add("https://www.googleapis.com/auth/logging.write")
.build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final SimpleCallSettings<DeleteLogRequest, Empty> deleteLogSettings;
private final BundlingCallSettings<WriteLogEntriesRequest, WriteLogEntriesResponse>
Expand Down Expand Up @@ -187,10 +187,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = LoggingServiceV2Settings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -474,7 +479,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class MetricsServiceV2Settings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -96,8 +96,8 @@ public class MetricsServiceV2Settings extends ClientSettings {
.add("https://www.googleapis.com/auth/logging.write")
.build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final PagedCallSettings<
ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse>
Expand Down Expand Up @@ -164,10 +164,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = MetricsServiceV2Settings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -266,7 +271,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
* </code>
* </pre>
*/
@Generated("by GAPIC")
@Generated("by GAPIC v0.0.5")
@ExperimentalApi
public class GroupServiceSettings extends ClientSettings {
/** The default address of the service. */
Expand All @@ -99,8 +99,8 @@ public class GroupServiceSettings extends ClientSettings {
.add("https://www.googleapis.com/auth/monitoring.write")
.build();

private static final String DEFAULT_GENERATOR_NAME = "gapic";
private static final String DEFAULT_GENERATOR_VERSION = "0.0.5";
private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

private final PagedCallSettings<ListGroupsRequest, ListGroupsResponse, ListGroupsPagedResponse>
listGroupsSettings;
Expand Down Expand Up @@ -175,10 +175,15 @@ public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder
return InstantiatingChannelProvider.newBuilder()
.setServiceAddress(DEFAULT_SERVICE_ADDRESS)
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GENERATOR_NAME, DEFAULT_GENERATOR_VERSION)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}

private static String getGapicVersion() {
String packageVersion = GroupServiceSettings.class.getPackage().getImplementationVersion();
return packageVersion != null ? packageVersion : DEFAULT_GAPIC_VERSION;
}

/** Returns a builder for this class with recommended defaults. */
public static Builder defaultBuilder() {
return Builder.createDefault();
Expand Down Expand Up @@ -333,7 +338,9 @@ public static class Builder extends ClientSettings.Builder {
Sets.immutableEnumSet(
Lists.<Status.Code>newArrayList(
Status.Code.DEADLINE_EXCEEDED, Status.Code.UNAVAILABLE)));
definitions.put("non_idempotent", Sets.immutableEnumSet(Lists.<Status.Code>newArrayList()));
definitions.put(
"non_idempotent",
Sets.immutableEnumSet(Lists.<Status.Code>newArrayList(Status.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}

Expand Down
Loading