Skip to content

Commit 44acf46

Browse files
1 parent a59ffcd commit 44acf46

File tree

12 files changed

+792
-12
lines changed

12 files changed

+792
-12
lines changed

clients/google-api-services-datastore/v1/2.0.0/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-datastore</artifactId>
25-
<version>v1-rev20240317-2.0.0</version>
25+
<version>v1-rev20241008-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-datastore:v1-rev20240317-2.0.0'
38+
implementation 'com.google.apis:google-api-services-datastore:v1-rev20241008-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Mutation.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public final class Mutation extends com.google.api.client.json.GenericJson {
3737
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
3838
private java.lang.Long baseVersion;
3939

40+
/**
41+
* The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`. If this is set,
42+
* then `conflict_detection_strategy` must also be set.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String conflictResolutionStrategy;
47+
4048
/**
4149
* The key of the entity to delete. The entity may or may not already exist. Must have a complete
4250
* key path and must not be reserved/read-only.
@@ -63,6 +71,15 @@ public final class Mutation extends com.google.api.client.json.GenericJson {
6371
@com.google.api.client.util.Key
6472
private PropertyMask propertyMask;
6573

74+
/**
75+
* Optional. The transforms to perform on the entity. This field can be set only when the
76+
* operation is `insert`, `update`, or `upsert`. If present, the transforms are be applied to the
77+
* entity regardless of the property mask, in order, after the operation.
78+
* The value may be {@code null}.
79+
*/
80+
@com.google.api.client.util.Key
81+
private java.util.List<PropertyTransform> propertyTransforms;
82+
6683
/**
6784
* The entity to update. The entity must already exist. Must have a complete key path.
6885
* The value may be {@code null}.
@@ -105,6 +122,25 @@ public Mutation setBaseVersion(java.lang.Long baseVersion) {
105122
return this;
106123
}
107124

125+
/**
126+
* The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`. If this is set,
127+
* then `conflict_detection_strategy` must also be set.
128+
* @return value or {@code null} for none
129+
*/
130+
public java.lang.String getConflictResolutionStrategy() {
131+
return conflictResolutionStrategy;
132+
}
133+
134+
/**
135+
* The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`. If this is set,
136+
* then `conflict_detection_strategy` must also be set.
137+
* @param conflictResolutionStrategy conflictResolutionStrategy or {@code null} for none
138+
*/
139+
public Mutation setConflictResolutionStrategy(java.lang.String conflictResolutionStrategy) {
140+
this.conflictResolutionStrategy = conflictResolutionStrategy;
141+
return this;
142+
}
143+
108144
/**
109145
* The key of the entity to delete. The entity may or may not already exist. Must have a complete
110146
* key path and must not be reserved/read-only.
@@ -166,6 +202,27 @@ public Mutation setPropertyMask(PropertyMask propertyMask) {
166202
return this;
167203
}
168204

205+
/**
206+
* Optional. The transforms to perform on the entity. This field can be set only when the
207+
* operation is `insert`, `update`, or `upsert`. If present, the transforms are be applied to the
208+
* entity regardless of the property mask, in order, after the operation.
209+
* @return value or {@code null} for none
210+
*/
211+
public java.util.List<PropertyTransform> getPropertyTransforms() {
212+
return propertyTransforms;
213+
}
214+
215+
/**
216+
* Optional. The transforms to perform on the entity. This field can be set only when the
217+
* operation is `insert`, `update`, or `upsert`. If present, the transforms are be applied to the
218+
* entity regardless of the property mask, in order, after the operation.
219+
* @param propertyTransforms propertyTransforms or {@code null} for none
220+
*/
221+
public Mutation setPropertyTransforms(java.util.List<PropertyTransform> propertyTransforms) {
222+
this.propertyTransforms = propertyTransforms;
223+
return this;
224+
}
225+
169226
/**
170227
* The entity to update. The entity must already exist. Must have a complete key path.
171228
* @return value or {@code null} for none

clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/MutationResult.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public final class MutationResult extends com.google.api.client.json.GenericJson
5151
@com.google.api.client.util.Key
5252
private Key key;
5353

54+
/**
55+
* The results of applying each PropertyTransform, in the same order of the request.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.util.List<Value> transformResults;
60+
5461
/**
5562
* The update time of the entity on the server after processing the mutation. If the mutation
5663
* doesn't change anything on the server, then the timestamp will be the update timestamp of the
@@ -123,6 +130,23 @@ public MutationResult setKey(Key key) {
123130
return this;
124131
}
125132

133+
/**
134+
* The results of applying each PropertyTransform, in the same order of the request.
135+
* @return value or {@code null} for none
136+
*/
137+
public java.util.List<Value> getTransformResults() {
138+
return transformResults;
139+
}
140+
141+
/**
142+
* The results of applying each PropertyTransform, in the same order of the request.
143+
* @param transformResults transformResults or {@code null} for none
144+
*/
145+
public MutationResult setTransformResults(java.util.List<Value> transformResults) {
146+
this.transformResults = transformResults;
147+
return this;
148+
}
149+
126150
/**
127151
* The update time of the entity on the server after processing the mutation. If the mutation
128152
* doesn't change anything on the server, then the timestamp will be the update timestamp of the

0 commit comments

Comments
 (0)