Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: gapic-generator-java v1.0.13, mtls support (#712)
* chore: release gapic-generator-java v1.0.12

Committer: @miraleung
PiperOrigin-RevId: 378718217

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Jun 10 13:08:49 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 08c4eeb531c01ad031134dca94b18e3f7dd35902
Source-Link: googleapis/googleapis@08c4eeb

* chore: release gapic-generator-java v1.0.13

Committer: @miraleung
PiperOrigin-RevId: 379784268

Source-Author: Google APIs <noreply@google.com>
Source-Date: Wed Jun 16 12:29:58 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 551681f25e36b11829e87e580281350461f4f3f5
Source-Link: googleapis/googleapis@551681f

Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>
  • Loading branch information
yoshi-automation and Neenu1995 committed Aug 5, 2021
1 parent 475e780 commit a27dd9c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 15 deletions.
Expand Up @@ -336,6 +336,11 @@ public static String getDefaultEndpoint() {
return "firestore.googleapis.com:443";
}

/** Returns the default mTLS service endpoint. */
public static String getDefaultMtlsEndpoint() {
return "firestore.mtls.googleapis.com:443";
}

/** Returns the default service scopes. */
public static List<String> getDefaultServiceScopes() {
return DEFAULT_SERVICE_SCOPES;
Expand Down Expand Up @@ -543,6 +548,8 @@ private static Builder createDefault() {
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);

return initDefaults(builder);
}
Expand Down
Expand Up @@ -414,6 +414,11 @@ public static String getDefaultEndpoint() {
return "firestore.googleapis.com:443";
}

/** Returns the default mTLS service endpoint. */
public static String getDefaultMtlsEndpoint() {
return "firestore.mtls.googleapis.com:443";
}

/** Returns the default service scopes. */
public static List<String> getDefaultServiceScopes() {
return DEFAULT_SERVICE_SCOPES;
Expand Down Expand Up @@ -704,6 +709,8 @@ private static Builder createDefault() {
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);

return initDefaults(builder);
}
Expand Down
Expand Up @@ -211,9 +211,9 @@ public Builder setCollection(String collection) {
}

private Builder(CollectionGroupName collectionGroupName) {
project = collectionGroupName.project;
database = collectionGroupName.database;
collection = collectionGroupName.collection;
this.project = collectionGroupName.project;
this.database = collectionGroupName.database;
this.collection = collectionGroupName.collection;
}

public CollectionGroupName build() {
Expand Down
Expand Up @@ -181,8 +181,8 @@ public Builder setDatabase(String database) {
}

private Builder(DatabaseName databaseName) {
project = databaseName.project;
database = databaseName.database;
this.project = databaseName.project;
this.database = databaseName.database;
}

public DatabaseName build() {
Expand Down
Expand Up @@ -247,10 +247,10 @@ public Builder setField(String field) {
}

private Builder(FieldName fieldName) {
project = fieldName.project;
database = fieldName.database;
collection = fieldName.collection;
field = fieldName.field;
this.project = fieldName.project;
this.database = fieldName.database;
this.collection = fieldName.collection;
this.field = fieldName.field;
}

public FieldName build() {
Expand Down
Expand Up @@ -247,10 +247,10 @@ public Builder setIndex(String index) {
}

private Builder(IndexName indexName) {
project = indexName.project;
database = indexName.database;
collection = indexName.collection;
index = indexName.index;
this.project = indexName.project;
this.database = indexName.database;
this.collection = indexName.collection;
this.index = indexName.index;
}

public IndexName build() {
Expand Down
4 changes: 2 additions & 2 deletions synth.metadata
Expand Up @@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
"internalRef": "378266372"
"sha": "551681f25e36b11829e87e580281350461f4f3f5",
"internalRef": "379784268"
}
},
{
Expand Down

0 comments on commit a27dd9c

Please sign in to comment.