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
4 changes: 2 additions & 2 deletions clients/google-api-services-dlp/v2/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dlp</artifactId>
<version>v2-rev20260509-2.0.0</version>
<version>v2-rev20260516-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260509-2.0.0'
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260516-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.dlp.v2.model;

/**
* If set, indicates that the finding applies to all messages in the conversation.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
* explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GooglePrivacyDlpV2AllMessages extends com.google.api.client.json.GenericJson {

@Override
public GooglePrivacyDlpV2AllMessages set(String fieldName, Object value) {
return (GooglePrivacyDlpV2AllMessages) super.set(fieldName, value);
}

@Override
public GooglePrivacyDlpV2AllMessages clone() {
return (GooglePrivacyDlpV2AllMessages) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ public final class GooglePrivacyDlpV2ContentItem extends com.google.api.client.j
@com.google.api.client.util.Key
private GooglePrivacyDlpV2ContentMetadata contentMetadata;

/**
* Represents a conversation (either complete or a slice). It is assumed that all included
* messages are contiguous and ordered in chronological order.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2Conversation conversation;

/**
* Structured content for inspection. See https://cloud.google.com/sensitive-data-
* protection/docs/inspecting-text#inspecting_a_table to learn more.
Expand Down Expand Up @@ -93,6 +101,25 @@ public GooglePrivacyDlpV2ContentItem setContentMetadata(GooglePrivacyDlpV2Conten
return this;
}

/**
* Represents a conversation (either complete or a slice). It is assumed that all included
* messages are contiguous and ordered in chronological order.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2Conversation getConversation() {
return conversation;
}

/**
* Represents a conversation (either complete or a slice). It is assumed that all included
* messages are contiguous and ordered in chronological order.
* @param conversation conversation or {@code null} for none
*/
public GooglePrivacyDlpV2ContentItem setConversation(GooglePrivacyDlpV2Conversation conversation) {
this.conversation = conversation;
return this;
}

/**
* Structured content for inspection. See https://cloud.google.com/sensitive-data-
* protection/docs/inspecting-text#inspecting_a_table to learn more.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public final class GooglePrivacyDlpV2ContentLocation extends com.google.api.clie
@com.google.api.client.util.Key
private java.lang.String containerVersion;

/**
* Location within a conversation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2ConversationLocation conversationLocation;

/**
* Location data for document files.
* The value may be {@code null}.
Expand Down Expand Up @@ -148,6 +155,23 @@ public GooglePrivacyDlpV2ContentLocation setContainerVersion(java.lang.String co
return this;
}

/**
* Location within a conversation.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2ConversationLocation getConversationLocation() {
return conversationLocation;
}

/**
* Location within a conversation.
* @param conversationLocation conversationLocation or {@code null} for none
*/
public GooglePrivacyDlpV2ContentLocation setConversationLocation(GooglePrivacyDlpV2ConversationLocation conversationLocation) {
this.conversationLocation = conversationLocation;
return this;
}

/**
* Location data for document files.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.dlp.v2.model;

/**
* Complete conversation or slice of a conversation. It is assumed that all included messages are
* contiguous and ordered in chronological order.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
* explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GooglePrivacyDlpV2Conversation extends com.google.api.client.json.GenericJson {

/**
* Messages exchanged within this conversation. The maximum number of messages allowed is 50k. The
* order of the messages is assumed to be chronological and will be used to index findings in the
* response.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GooglePrivacyDlpV2ConversationMessage> messages;

/**
* Messages exchanged within this conversation. The maximum number of messages allowed is 50k. The
* order of the messages is assumed to be chronological and will be used to index findings in the
* response.
* @return value or {@code null} for none
*/
public java.util.List<GooglePrivacyDlpV2ConversationMessage> getMessages() {
return messages;
}

/**
* Messages exchanged within this conversation. The maximum number of messages allowed is 50k. The
* order of the messages is assumed to be chronological and will be used to index findings in the
* response.
* @param messages messages or {@code null} for none
*/
public GooglePrivacyDlpV2Conversation setMessages(java.util.List<GooglePrivacyDlpV2ConversationMessage> messages) {
this.messages = messages;
return this;
}

@Override
public GooglePrivacyDlpV2Conversation set(String fieldName, Object value) {
return (GooglePrivacyDlpV2Conversation) super.set(fieldName, value);
}

@Override
public GooglePrivacyDlpV2Conversation clone() {
return (GooglePrivacyDlpV2Conversation) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.dlp.v2.model;

/**
* Location within a conversation.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
* explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GooglePrivacyDlpV2ConversationLocation extends com.google.api.client.json.GenericJson {

/**
* If set, indicates that the finding applies to all messages in the conversation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2AllMessages allMessages;

/**
* Matches an index of a message in the conversation provided in the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer messageIndex;

/**
* If set, indicates that the finding applies to all messages in the conversation.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2AllMessages getAllMessages() {
return allMessages;
}

/**
* If set, indicates that the finding applies to all messages in the conversation.
* @param allMessages allMessages or {@code null} for none
*/
public GooglePrivacyDlpV2ConversationLocation setAllMessages(GooglePrivacyDlpV2AllMessages allMessages) {
this.allMessages = allMessages;
return this;
}

/**
* Matches an index of a message in the conversation provided in the request.
* @return value or {@code null} for none
*/
public java.lang.Integer getMessageIndex() {
return messageIndex;
}

/**
* Matches an index of a message in the conversation provided in the request.
* @param messageIndex messageIndex or {@code null} for none
*/
public GooglePrivacyDlpV2ConversationLocation setMessageIndex(java.lang.Integer messageIndex) {
this.messageIndex = messageIndex;
return this;
}

@Override
public GooglePrivacyDlpV2ConversationLocation set(String fieldName, Object value) {
return (GooglePrivacyDlpV2ConversationLocation) super.set(fieldName, value);
}

@Override
public GooglePrivacyDlpV2ConversationLocation clone() {
return (GooglePrivacyDlpV2ConversationLocation) super.clone();
}

}
Loading