Skip to content

Commit 087e126

Browse files
Regenerate healthcare client (googleapis#6277)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2020-11-05 03:50:48,835 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-java-client-services/synth.py. On branch autosynth-healthcare nothing to commit, working tree clean 2020-11-05 03:50:49,187 synthtool [DEBUG] > Cloning https://github.com/googleapis/discovery-artifact-manager.git. DEBUG:synthtool:Cloning https://github.com/googleapis/discovery-artifact-manager.git. 2020-11-05 03:50:49,576 synthtool [DEBUG] > Cleaning output directory. DEBUG:synthtool:Cleaning output directory. 2020-11-05 03:50:49,579 synthtool [DEBUG] > Installing dependencies. DEBUG:synthtool:Installing dependencies. 2020-11-05 03:50:51,295 synthtool [INFO] > Generating healthcare v1beta1. INFO:synthtool:Generating healthcare v1beta1. 2020-11-05 03:50:51,295 synthtool [INFO] > 1.30.1 INFO:synthtool: 1.30.1 WARNING:root:object without properties ArchiveUserDataMappingRequest: OrderedDict([(u'description', u'Archives the specified User data mapping.'), (u'properties', OrderedDict()), (u'type', u'object'), (u'id', u'ArchiveUserDataMappingRequest')]) WARNING:root:object without properties ArchiveUserDataMappingResponse: OrderedDict([(u'id', u'ArchiveUserDataMappingResponse'), (u'type', u'object'), (u'description', u'Archives the specified User data mapping.'), (u'properties', OrderedDict())]) WARNING:root:object without properties CancelOperationRequest: OrderedDict([(u'type', u'object'), (u'description', u'The request message for Operations.CancelOperation.'), (u'properties', OrderedDict()), (u'id', u'CancelOperationRequest')]) WARNING:root:object without properties DeidentifySummary: OrderedDict([(u'type', u'object'), (u'id', u'DeidentifySummary'), (u'properties', OrderedDict()), (u'description', u'Contains a detailed summary of the Deidentify operation.')]) WARNING:root:object without properties Empty: OrderedDict([(u'properties', OrderedDict()), (u'description', u'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.'), (u'id', u'Empty'), (u'type', u'object')]) WARNING:root:object without properties EvaluateAnnotationStoreResponse: OrderedDict([(u'description', u'Response for successful Annotation store evaluation operations. This structure is included in the response upon operation completion.'), (u'id', u'EvaluateAnnotationStoreResponse'), (u'type', u'object'), (u'properties', OrderedDict())]) WARNING:root:object without properties ExportAnnotationsResponse: OrderedDict([(u'description', u'Response for successful annotation export operations. This structure is included in response upon operation completion.'), (u'type', u'object'), (u'id', u'ExportAnnotationsResponse'), (u'properties', OrderedDict())]) WARNING:root:object without properties ExportDicomDataResponse: OrderedDict([(u'properties', OrderedDict()), (u'description', u'Returns additional information in regards to a completed DICOM store export.'), (u'id', u'ExportDicomDataResponse'), (u'type', u'object')]) WARNING:root:object without properties GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary: OrderedDict([(u'id', u'GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary'), (u'type', u'object'), (u'description', u'Contains a summary of the DeidentifyDicomStore operation.'), (u'properties', OrderedDict())]) WARNING:root:object without properties GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary: OrderedDict([(u'type', u'object'), (u'id', u'GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary'), (u'properties', OrderedDict()), (u'description', u'Contains a summary of the DeidentifyFhirStore operation.')]) WARNING:root:object without properties GoogleCloudHealthcareV1beta1FhirExportResourcesResponse: OrderedDict([(u'description', u'Response when all resources export successfully. This structure is included in the response to describe the detailed outcome after the operation finishes successfully.'), (u'id', u'GoogleCloudHealthcareV1beta1FhirExportResourcesResponse'), (u'properties', OrderedDict()), (u'type', u'object')]) WARNING:root:object without properties GoogleCloudHealthcareV1beta1FhirImportResourcesResponse: OrderedDict([(u'properties', OrderedDict()), (u'type', u'object'), (u'description', u'Final response of importing resources. This structure is included in the response to describe the detailed outcome after the operation finishes successfully.'), (u'id', u'GoogleCloudHealthcareV1beta1FhirImportResourcesResponse')]) WARNING:root:object without properties ImportAnnotationsResponse: OrderedDict([(u'properties', OrderedDict()), (u'id', u'ImportAnnotationsResponse'), (u'description', u'Final response of importing Annotations in successful case. This structure is included in the response. It is only included when the operation finishes.'), (u'type', u'object')]) WARNING:root:object without properties ImportDicomDataResponse: OrderedDict([(u'id', u'ImportDicomDataResponse'), (u'properties', OrderedDict()), (u'type', u'object'), (u'description', u'Returns additional information in regards to a completed DICOM store import.')]) WARNING:root:object without properties ImportMessagesResponse: OrderedDict([(u'properties', OrderedDict()), (u'id', u'ImportMessagesResponse'), (u'type', u'object'), (u'description', u'Final response of importing messages. This structure is included in the response to describe the detailed outcome. It is only included when the operation finishes successfully.')]) WARNING:root:object without properties RedactConfig: OrderedDict([(u'description', u'Define how to redact sensitive values. Default behaviour is erase. For example, "My name is Jane." becomes "My name is ."'), (u'type', u'object'), (u'properties', OrderedDict()), (u'id', u'RedactConfig')]) WARNING:root:object without properties ReplaceWithInfoTypeConfig: OrderedDict([(u'properties', OrderedDict()), (u'description', u'When using the INSPECT_AND_TRANSFORM action, each match is replaced with the name of the info_type. For example, "My name is Jane" becomes "My name is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.'), (u'type', u'object'), (u'id', u'ReplaceWithInfoTypeConfig')]) Writing json metadata to clients/google-api-services-healthcare/v1beta1.metadata.json 2020-11-05 03:50:54,783 synthtool [INFO] > Generating healthcare v1. INFO:synthtool:Generating healthcare v1. 2020-11-05 03:50:54,783 synthtool [INFO] > 1.30.1 INFO:synthtool: 1.30.1 WARNING:root:object without properties CancelOperationRequest: OrderedDict([(u'properties', OrderedDict()), (u'id', u'CancelOperationRequest'), (u'type', u'object'), (u'description', u'The request message for Operations.CancelOperation.')]) WARNING:root:object without properties DeidentifySummary: OrderedDict([(u'id', u'DeidentifySummary'), (u'type', u'object'), (u'description', u'Contains a summary of the Deidentify operation.'), (u'properties', OrderedDict())]) WARNING:root:object without properties Empty: OrderedDict([(u'id', u'Empty'), (u'properties', OrderedDict()), (u'type', u'object'), (u'description', u'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.')]) WARNING:root:object without properties ExportDicomDataResponse: OrderedDict([(u'properties', OrderedDict()), (u'id', u'ExportDicomDataResponse'), (u'type', u'object'), (u'description', u'Returns additional information in regards to a completed DICOM store export.')]) WARNING:root:object without properties ExportResourcesResponse: OrderedDict([(u'description', u'Response when all resources export successfully. This structure is included in the response to describe the detailed outcome after the operation finishes successfully.'), (u'type', u'object'), (u'properties', OrderedDict()), (u'id', u'ExportResourcesResponse')]) WARNING:root:object without properties GoogleCloudHealthcareV1DeidentifyDeidentifyDicomStoreSummary: OrderedDict([(u'type', u'object'), (u'properties', OrderedDict()), (u'description', u'Contains a summary of the DeidentifyDicomStore operation.'), (u'id', u'GoogleCloudHealthcareV1DeidentifyDeidentifyDicomStoreSummary')]) WARNING:root:object without properties GoogleCloudHealthcareV1DeidentifyDeidentifyFhirStoreSummary: OrderedDict([(u'type', u'object'), (u'properties', OrderedDict()), (u'description', u'Contains a summary of the DeidentifyFhirStore operation.'), (u'id', u'GoogleCloudHealthcareV1DeidentifyDeidentifyFhirStoreSummary')]) WARNING:root:object without properties ImportDicomDataResponse: OrderedDict([(u'description', u'Returns additional information in regards to a completed DICOM store import.'), (u'type', u'object'), (u'properties', OrderedDict()), (u'id', u'ImportDicomDataResponse')]) WARNING:root:object without properties ImportResourcesResponse: OrderedDict([(u'id', u'ImportResourcesResponse'), (u'type', u'object'), (u'properties', OrderedDict()), (u'description', u'Final response of importing resources. This structure is included in the response to describe the detailed outcome after the operation finishes successfully.')]) WARNING:root:object without properties RedactConfig: OrderedDict([(u'description', u'Define how to redact sensitive values. Default behaviour is erase. For example, "My name is Jane." becomes "My name is ."'), (u'id', u'RedactConfig'), (u'type', u'object'), (u'properties', OrderedDict())]) WARNING:root:object without properties ReplaceWithInfoTypeConfig: OrderedDict([(u'properties', OrderedDict()), (u'id', u'ReplaceWithInfoTypeConfig'), (u'description', u'When using the INSPECT_AND_TRANSFORM action, each match is replaced with the name of the info_type. For example, "My name is Jane" becomes "My name is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.'), (u'type', u'object')]) Writing json metadata to clients/google-api-services-healthcare/v1.metadata.json 2020-11-05 03:50:56,759 synthtool [DEBUG] > Wrote metadata to clients/google-api-services-healthcare/synth.metadata. DEBUG:synthtool:Wrote metadata to clients/google-api-services-healthcare/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/46884011-cb3d-4c98-a38f-b71a7d7bd2e0/targets - [ ] To automatically regenerate this PR, check this box.
1 parent caaef70 commit 087e126

File tree

14 files changed

+7113
-5772
lines changed

14 files changed

+7113
-5772
lines changed

clients/google-api-services-healthcare/v1beta1.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"maven": {
33
"groupId": "com.google.apis",
44
"artifactId": "google-api-services-healthcare",
5-
"version": "v1beta1-rev20201013-1.30.10"
5+
"version": "v1beta1-rev20201028-1.30.10"
66
}
77
}

clients/google-api-services-healthcare/v1beta1/1.30.1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-healthcare</artifactId>
25-
<version>v1beta1-rev20201013-1.30.10</version>
25+
<version>v1beta1-rev20201028-1.30.10</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
compile 'com.google.apis:google-api-services-healthcare:v1beta1-rev20201013-1.30.10'
38+
compile 'com.google.apis:google-api-services-healthcare:v1beta1-rev20201028-1.30.10'
3939
}
4040
```
4141

clients/google-api-services-healthcare/v1beta1/1.30.1/com/google/api/services/healthcare/v1beta1/CloudHealthcare.java

Lines changed: 190 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6411,8 +6411,8 @@ public Create set(String parameterName, Object value) {
64116411
}
64126412
}
64136413
/**
6414-
* Deletes the specified Attribute definition. Fails if it is referenced by the latest revision of
6415-
* any Consent or User data mapping.
6414+
* Deletes the specified Attribute definition. Fails if it is referenced by any User data mapping,
6415+
* or the latest revision of any Consent.
64166416
*
64176417
* Create a request for the method "attributeDefinitions.delete".
64186418
*
@@ -6436,8 +6436,8 @@ public class Delete extends CloudHealthcareRequest<com.google.api.services.healt
64366436
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/consentStores/[^/]+/attributeDefinitions/[^/]+$");
64376437

64386438
/**
6439-
* Deletes the specified Attribute definition. Fails if it is referenced by the latest revision of
6440-
* any Consent or User data mapping.
6439+
* Deletes the specified Attribute definition. Fails if it is referenced by any User data mapping,
6440+
* or the latest revision of any Consent.
64416441
*
64426442
* Create a request for the method "attributeDefinitions.delete".
64436443
*
@@ -24692,6 +24692,192 @@ public List set(String parameterName, Object value) {
2469224692

2469324693
}
2469424694
}
24695+
/**
24696+
* An accessor for creating requests from the Services collection.
24697+
*
24698+
* <p>The typical use is:</p>
24699+
* <pre>
24700+
* {@code CloudHealthcare healthcare = new CloudHealthcare(...);}
24701+
* {@code CloudHealthcare.Services.List request = healthcare.services().list(parameters ...)}
24702+
* </pre>
24703+
*
24704+
* @return the resource collection
24705+
*/
24706+
public Services services() {
24707+
return new Services();
24708+
}
24709+
24710+
/**
24711+
* The "services" collection of methods.
24712+
*/
24713+
public class Services {
24714+
24715+
/**
24716+
* An accessor for creating requests from the Nlp collection.
24717+
*
24718+
* <p>The typical use is:</p>
24719+
* <pre>
24720+
* {@code CloudHealthcare healthcare = new CloudHealthcare(...);}
24721+
* {@code CloudHealthcare.Nlp.List request = healthcare.nlp().list(parameters ...)}
24722+
* </pre>
24723+
*
24724+
* @return the resource collection
24725+
*/
24726+
public Nlp nlp() {
24727+
return new Nlp();
24728+
}
24729+
24730+
/**
24731+
* The "nlp" collection of methods.
24732+
*/
24733+
public class Nlp {
24734+
24735+
/**
24736+
* Analyze heathcare entity in a document. Its response includes the recognized entity mentions and
24737+
* the relationships between them. AnalyzeEntities uses context aware models to detect entities.
24738+
*
24739+
* Create a request for the method "nlp.analyzeEntities".
24740+
*
24741+
* This request holds the parameters needed by the healthcare server. After setting any optional
24742+
* parameters, call the {@link AnalyzeEntities#execute()} method to invoke the remote operation.
24743+
*
24744+
* @param nlpService The resource name of the service of the form:
24745+
* "projects/{project_id}/locations/{location_id}/services/nlp".
24746+
* @param content the {@link com.google.api.services.healthcare.v1beta1.model.AnalyzeEntitiesRequest}
24747+
* @return the request
24748+
*/
24749+
public AnalyzeEntities analyzeEntities(java.lang.String nlpService, com.google.api.services.healthcare.v1beta1.model.AnalyzeEntitiesRequest content) throws java.io.IOException {
24750+
AnalyzeEntities result = new AnalyzeEntities(nlpService, content);
24751+
initialize(result);
24752+
return result;
24753+
}
24754+
24755+
public class AnalyzeEntities extends CloudHealthcareRequest<com.google.api.services.healthcare.v1beta1.model.AnalyzeEntitiesResponse> {
24756+
24757+
private static final String REST_PATH = "v1beta1/{+nlpService}:analyzeEntities";
24758+
24759+
private final java.util.regex.Pattern NLP_SERVICE_PATTERN =
24760+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/nlp$");
24761+
24762+
/**
24763+
* Analyze heathcare entity in a document. Its response includes the recognized entity mentions
24764+
* and the relationships between them. AnalyzeEntities uses context aware models to detect
24765+
* entities.
24766+
*
24767+
* Create a request for the method "nlp.analyzeEntities".
24768+
*
24769+
* This request holds the parameters needed by the the healthcare server. After setting any
24770+
* optional parameters, call the {@link AnalyzeEntities#execute()} method to invoke the remote
24771+
* operation. <p> {@link AnalyzeEntities#initialize(com.google.api.client.googleapis.services.Abst
24772+
* ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
24773+
* the constructor. </p>
24774+
*
24775+
* @param nlpService The resource name of the service of the form:
24776+
* "projects/{project_id}/locations/{location_id}/services/nlp".
24777+
* @param content the {@link com.google.api.services.healthcare.v1beta1.model.AnalyzeEntitiesRequest}
24778+
* @since 1.13
24779+
*/
24780+
protected AnalyzeEntities(java.lang.String nlpService, com.google.api.services.healthcare.v1beta1.model.AnalyzeEntitiesRequest content) {
24781+
super(CloudHealthcare.this, "POST", REST_PATH, content, com.google.api.services.healthcare.v1beta1.model.AnalyzeEntitiesResponse.class);
24782+
this.nlpService = com.google.api.client.util.Preconditions.checkNotNull(nlpService, "Required parameter nlpService must be specified.");
24783+
if (!getSuppressPatternChecks()) {
24784+
com.google.api.client.util.Preconditions.checkArgument(NLP_SERVICE_PATTERN.matcher(nlpService).matches(),
24785+
"Parameter nlpService must conform to the pattern " +
24786+
"^projects/[^/]+/locations/[^/]+/services/nlp$");
24787+
}
24788+
}
24789+
24790+
@Override
24791+
public AnalyzeEntities set$Xgafv(java.lang.String $Xgafv) {
24792+
return (AnalyzeEntities) super.set$Xgafv($Xgafv);
24793+
}
24794+
24795+
@Override
24796+
public AnalyzeEntities setAccessToken(java.lang.String accessToken) {
24797+
return (AnalyzeEntities) super.setAccessToken(accessToken);
24798+
}
24799+
24800+
@Override
24801+
public AnalyzeEntities setAlt(java.lang.String alt) {
24802+
return (AnalyzeEntities) super.setAlt(alt);
24803+
}
24804+
24805+
@Override
24806+
public AnalyzeEntities setCallback(java.lang.String callback) {
24807+
return (AnalyzeEntities) super.setCallback(callback);
24808+
}
24809+
24810+
@Override
24811+
public AnalyzeEntities setFields(java.lang.String fields) {
24812+
return (AnalyzeEntities) super.setFields(fields);
24813+
}
24814+
24815+
@Override
24816+
public AnalyzeEntities setKey(java.lang.String key) {
24817+
return (AnalyzeEntities) super.setKey(key);
24818+
}
24819+
24820+
@Override
24821+
public AnalyzeEntities setOauthToken(java.lang.String oauthToken) {
24822+
return (AnalyzeEntities) super.setOauthToken(oauthToken);
24823+
}
24824+
24825+
@Override
24826+
public AnalyzeEntities setPrettyPrint(java.lang.Boolean prettyPrint) {
24827+
return (AnalyzeEntities) super.setPrettyPrint(prettyPrint);
24828+
}
24829+
24830+
@Override
24831+
public AnalyzeEntities setQuotaUser(java.lang.String quotaUser) {
24832+
return (AnalyzeEntities) super.setQuotaUser(quotaUser);
24833+
}
24834+
24835+
@Override
24836+
public AnalyzeEntities setUploadType(java.lang.String uploadType) {
24837+
return (AnalyzeEntities) super.setUploadType(uploadType);
24838+
}
24839+
24840+
@Override
24841+
public AnalyzeEntities setUploadProtocol(java.lang.String uploadProtocol) {
24842+
return (AnalyzeEntities) super.setUploadProtocol(uploadProtocol);
24843+
}
24844+
24845+
/**
24846+
* The resource name of the service of the form:
24847+
* "projects/{project_id}/locations/{location_id}/services/nlp".
24848+
*/
24849+
@com.google.api.client.util.Key
24850+
private java.lang.String nlpService;
24851+
24852+
/** The resource name of the service of the form:
24853+
"projects/{project_id}/locations/{location_id}/services/nlp".
24854+
*/
24855+
public java.lang.String getNlpService() {
24856+
return nlpService;
24857+
}
24858+
24859+
/**
24860+
* The resource name of the service of the form:
24861+
* "projects/{project_id}/locations/{location_id}/services/nlp".
24862+
*/
24863+
public AnalyzeEntities setNlpService(java.lang.String nlpService) {
24864+
if (!getSuppressPatternChecks()) {
24865+
com.google.api.client.util.Preconditions.checkArgument(NLP_SERVICE_PATTERN.matcher(nlpService).matches(),
24866+
"Parameter nlpService must conform to the pattern " +
24867+
"^projects/[^/]+/locations/[^/]+/services/nlp$");
24868+
}
24869+
this.nlpService = nlpService;
24870+
return this;
24871+
}
24872+
24873+
@Override
24874+
public AnalyzeEntities set(String parameterName, Object value) {
24875+
return (AnalyzeEntities) super.set(parameterName, value);
24876+
}
24877+
}
24878+
24879+
}
24880+
}
2469524881
}
2469624882
}
2469724883

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.healthcare.v1beta1.model;
18+
19+
/**
20+
* The request to analyze healthcare entities in a document.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Healthcare API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AnalyzeEntitiesRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* document_content is a document to be annotated.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String documentContent;
38+
39+
/**
40+
* document_content is a document to be annotated.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getDocumentContent() {
44+
return documentContent;
45+
}
46+
47+
/**
48+
* document_content is a document to be annotated.
49+
* @param documentContent documentContent or {@code null} for none
50+
*/
51+
public AnalyzeEntitiesRequest setDocumentContent(java.lang.String documentContent) {
52+
this.documentContent = documentContent;
53+
return this;
54+
}
55+
56+
@Override
57+
public AnalyzeEntitiesRequest set(String fieldName, Object value) {
58+
return (AnalyzeEntitiesRequest) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public AnalyzeEntitiesRequest clone() {
63+
return (AnalyzeEntitiesRequest) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)