Skip to content
Permalink
Browse files
feat: add location_id in preparation for regionalization (#30)
  • Loading branch information
yoshi-automation authored and chingor13 committed Nov 27, 2019
1 parent 7f4c96f commit 2fdfe30a2b6b60e61fa380a5a14d2c4618c9546b
Showing with 4,143 additions and 940 deletions.
  1. +9 −0 google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java
  2. +168 −0 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java
  3. +23 −0 ...loud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java
  4. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java
  5. +23 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java
  6. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java
  7. +23 −0 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java
  8. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java
  9. +23 −0 ...google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java
  10. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java
  11. +23 −0 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java
  12. +36 −24 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java
  13. +9 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java
  14. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java
  15. +23 −0 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java
  16. +26 −26 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplate.java
  17. +6 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateOrBuilder.java
  18. +885 −797 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
  19. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java
  20. +23 −0 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java
  21. +24 −24 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplate.java
  22. +6 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateOrBuilder.java
  23. +168 −0 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
  24. +23 −0 ...cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
  25. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
  26. +23 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
  27. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequest.java
  28. +23 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequestOrBuilder.java
  29. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java
  30. +23 −0 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
  31. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
  32. +23 −0 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
  33. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
  34. +23 −0 ...gle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
  35. +180 −12 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java
  36. +23 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java
  37. +168 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java
  38. +23 −0 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java
  39. +6 −2 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java
  40. +256 −34 proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
  41. +3 −3 synth.metadata
@@ -521,6 +521,15 @@ public Map<String, String> extract(ReidentifyContentRequest request) {
GrpcCallSettings<ListInfoTypesRequest, ListInfoTypesResponse> listInfoTypesTransportSettings =
GrpcCallSettings.<ListInfoTypesRequest, ListInfoTypesResponse>newBuilder()
.setMethodDescriptor(listInfoTypesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListInfoTypesRequest>() {
@Override
public Map<String, String> extract(ListInfoTypesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("location_id", String.valueOf(request.getLocationId()));
return params.build();
}
})
.build();
GrpcCallSettings<CreateInspectTemplateRequest, InspectTemplate>
createInspectTemplateTransportSettings =
@@ -41,6 +41,7 @@ private CreateDeidentifyTemplateRequest(
private CreateDeidentifyTemplateRequest() {
parent_ = "";
templateId_ = "";
locationId_ = "";
}

@java.lang.Override
@@ -97,6 +98,13 @@ private CreateDeidentifyTemplateRequest(
templateId_ = s;
break;
}
case 34:
{
java.lang.String s = input.readStringRequireUtf8();

locationId_ = s;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -270,6 +278,51 @@ public com.google.protobuf.ByteString getTemplateIdBytes() {
}
}

public static final int LOCATION_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object locationId_;
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public java.lang.String getLocationId() {
java.lang.Object ref = locationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locationId_ = s;
return s;
}
}
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public com.google.protobuf.ByteString getLocationIdBytes() {
java.lang.Object ref = locationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
locationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
@@ -293,6 +346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, templateId_);
}
if (!getLocationIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
}
unknownFields.writeTo(output);
}

@@ -311,6 +367,9 @@ public int getSerializedSize() {
if (!getTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, templateId_);
}
if (!getLocationIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -333,6 +392,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getDeidentifyTemplate().equals(other.getDeidentifyTemplate())) return false;
}
if (!getTemplateId().equals(other.getTemplateId())) return false;
if (!getLocationId().equals(other.getLocationId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -352,6 +412,8 @@ public int hashCode() {
}
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getLocationId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -508,6 +570,8 @@ public Builder clear() {
}
templateId_ = "";

locationId_ = "";

return this;
}

@@ -542,6 +606,7 @@ public com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest buildPartial()
result.deidentifyTemplate_ = deidentifyTemplateBuilder_.build();
}
result.templateId_ = templateId_;
result.locationId_ = locationId_;
onBuilt();
return result;
}
@@ -603,6 +668,10 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.CreateDeidentifyTemplateReque
templateId_ = other.templateId_;
onChanged();
}
if (!other.getLocationId().isEmpty()) {
locationId_ = other.locationId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1033,6 +1102,105 @@ public Builder setTemplateIdBytes(com.google.protobuf.ByteString value) {
return this;
}

private java.lang.Object locationId_ = "";
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public java.lang.String getLocationId() {
java.lang.Object ref = locationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public com.google.protobuf.ByteString getLocationIdBytes() {
java.lang.Object ref = locationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
locationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public Builder setLocationId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}

locationId_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public Builder clearLocationId() {

locationId_ = getDefaultInstance().getLocationId();
onChanged();
return this;
}
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);

locationId_ = value;
onChanged();
return this;
}

@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
@@ -107,4 +107,27 @@
* <code>string template_id = 3;</code>
*/
com.google.protobuf.ByteString getTemplateIdBytes();

/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
java.lang.String getLocationId();
/**
*
*
* <pre>
* The geographic location to store the deidentification template. Reserved
* for future extensions.
* </pre>
*
* <code>string location_id = 4;</code>
*/
com.google.protobuf.ByteString getLocationIdBytes();
}

0 comments on commit 2fdfe30

Please sign in to comment.