@@ -1029,6 +1029,185 @@ public Insert set(String parameterName, Object value) {
1029
1029
return (Insert ) super .set (parameterName , value );
1030
1030
}
1031
1031
}
1032
+ /**
1033
+ * Updates the existing Css Product input in your CSS Center account. After inserting, updating, or
1034
+ * deleting a CSS Product input, it may take several minutes before the processed Css Product can be
1035
+ * retrieved.
1036
+ *
1037
+ * Create a request for the method "cssProductInputs.patch".
1038
+ *
1039
+ * This request holds the parameters needed by the css server. After setting any optional
1040
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1041
+ *
1042
+ * @param name The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`
1043
+ * @param content the {@link com.google.api.services.css.v1.model.CssProductInput}
1044
+ * @return the request
1045
+ */
1046
+ public Patch patch (java .lang .String name , com .google .api .services .css .v1 .model .CssProductInput content ) throws java .io .IOException {
1047
+ Patch result = new Patch (name , content );
1048
+ initialize (result );
1049
+ return result ;
1050
+ }
1051
+
1052
+ public class Patch extends CssRequest <com .google .api .services .css .v1 .model .CssProductInput > {
1053
+
1054
+ private static final String REST_PATH = "v1/{+name}" ;
1055
+
1056
+ private final java .util .regex .Pattern NAME_PATTERN =
1057
+ java .util .regex .Pattern .compile ("^accounts/[^/]+/cssProductInputs/[^/]+$" );
1058
+
1059
+ /**
1060
+ * Updates the existing Css Product input in your CSS Center account. After inserting, updating,
1061
+ * or deleting a CSS Product input, it may take several minutes before the processed Css Product
1062
+ * can be retrieved.
1063
+ *
1064
+ * Create a request for the method "cssProductInputs.patch".
1065
+ *
1066
+ * This request holds the parameters needed by the the css server. After setting any optional
1067
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
1068
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1069
+ * be called to initialize this instance immediately after invoking the constructor. </p>
1070
+ *
1071
+ * @param name The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`
1072
+ * @param content the {@link com.google.api.services.css.v1.model.CssProductInput}
1073
+ * @since 1.13
1074
+ */
1075
+ protected Patch (java .lang .String name , com .google .api .services .css .v1 .model .CssProductInput content ) {
1076
+ super (Css .this , "PATCH" , REST_PATH , content , com .google .api .services .css .v1 .model .CssProductInput .class );
1077
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1078
+ if (!getSuppressPatternChecks ()) {
1079
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1080
+ "Parameter name must conform to the pattern " +
1081
+ "^accounts/[^/]+/cssProductInputs/[^/]+$" );
1082
+ }
1083
+ }
1084
+
1085
+ @ Override
1086
+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
1087
+ return (Patch ) super .set$Xgafv ($Xgafv );
1088
+ }
1089
+
1090
+ @ Override
1091
+ public Patch setAccessToken (java .lang .String accessToken ) {
1092
+ return (Patch ) super .setAccessToken (accessToken );
1093
+ }
1094
+
1095
+ @ Override
1096
+ public Patch setAlt (java .lang .String alt ) {
1097
+ return (Patch ) super .setAlt (alt );
1098
+ }
1099
+
1100
+ @ Override
1101
+ public Patch setCallback (java .lang .String callback ) {
1102
+ return (Patch ) super .setCallback (callback );
1103
+ }
1104
+
1105
+ @ Override
1106
+ public Patch setFields (java .lang .String fields ) {
1107
+ return (Patch ) super .setFields (fields );
1108
+ }
1109
+
1110
+ @ Override
1111
+ public Patch setKey (java .lang .String key ) {
1112
+ return (Patch ) super .setKey (key );
1113
+ }
1114
+
1115
+ @ Override
1116
+ public Patch setOauthToken (java .lang .String oauthToken ) {
1117
+ return (Patch ) super .setOauthToken (oauthToken );
1118
+ }
1119
+
1120
+ @ Override
1121
+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
1122
+ return (Patch ) super .setPrettyPrint (prettyPrint );
1123
+ }
1124
+
1125
+ @ Override
1126
+ public Patch setQuotaUser (java .lang .String quotaUser ) {
1127
+ return (Patch ) super .setQuotaUser (quotaUser );
1128
+ }
1129
+
1130
+ @ Override
1131
+ public Patch setUploadType (java .lang .String uploadType ) {
1132
+ return (Patch ) super .setUploadType (uploadType );
1133
+ }
1134
+
1135
+ @ Override
1136
+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
1137
+ return (Patch ) super .setUploadProtocol (uploadProtocol );
1138
+ }
1139
+
1140
+ /**
1141
+ * The name of the CSS Product input. Format:
1142
+ * `accounts/{account}/cssProductInputs/{css_product_input}`
1143
+ */
1144
+ @ com .google .api .client .util .Key
1145
+ private java .lang .String name ;
1146
+
1147
+ /** The name of the CSS Product input. Format:
1148
+ `accounts/{account}/cssProductInputs/{css_product_input}`
1149
+ */
1150
+ public java .lang .String getName () {
1151
+ return name ;
1152
+ }
1153
+
1154
+ /**
1155
+ * The name of the CSS Product input. Format:
1156
+ * `accounts/{account}/cssProductInputs/{css_product_input}`
1157
+ */
1158
+ public Patch setName (java .lang .String name ) {
1159
+ if (!getSuppressPatternChecks ()) {
1160
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1161
+ "Parameter name must conform to the pattern " +
1162
+ "^accounts/[^/]+/cssProductInputs/[^/]+$" );
1163
+ }
1164
+ this .name = name ;
1165
+ return this ;
1166
+ }
1167
+
1168
+ /**
1169
+ * The list of CSS product attributes to be updated. If the update mask is omitted, then it
1170
+ * is treated as implied field mask equivalent to all fields that are populated (have a non-
1171
+ * empty value). Attributes specified in the update mask without a value specified in the
1172
+ * body will be deleted from the CSS product. Update mask can only be specified for top
1173
+ * level fields in attributes and custom attributes. To specify the update mask for custom
1174
+ * attributes you need to add the `custom_attribute.` prefix. Providing special "*" value
1175
+ * for full CSS product replacement is not supported.
1176
+ */
1177
+ @ com .google .api .client .util .Key
1178
+ private String updateMask ;
1179
+
1180
+ /** The list of CSS product attributes to be updated. If the update mask is omitted, then it is treated
1181
+ as implied field mask equivalent to all fields that are populated (have a non-empty value).
1182
+ Attributes specified in the update mask without a value specified in the body will be deleted from
1183
+ the CSS product. Update mask can only be specified for top level fields in attributes and custom
1184
+ attributes. To specify the update mask for custom attributes you need to add the
1185
+ `custom_attribute.` prefix. Providing special "*" value for full CSS product replacement is not
1186
+ supported.
1187
+ */
1188
+ public String getUpdateMask () {
1189
+ return updateMask ;
1190
+ }
1191
+
1192
+ /**
1193
+ * The list of CSS product attributes to be updated. If the update mask is omitted, then it
1194
+ * is treated as implied field mask equivalent to all fields that are populated (have a non-
1195
+ * empty value). Attributes specified in the update mask without a value specified in the
1196
+ * body will be deleted from the CSS product. Update mask can only be specified for top
1197
+ * level fields in attributes and custom attributes. To specify the update mask for custom
1198
+ * attributes you need to add the `custom_attribute.` prefix. Providing special "*" value
1199
+ * for full CSS product replacement is not supported.
1200
+ */
1201
+ public Patch setUpdateMask (String updateMask ) {
1202
+ this .updateMask = updateMask ;
1203
+ return this ;
1204
+ }
1205
+
1206
+ @ Override
1207
+ public Patch set (String parameterName , Object value ) {
1208
+ return (Patch ) super .set (parameterName , value );
1209
+ }
1210
+ }
1032
1211
1033
1212
}
1034
1213
/**
0 commit comments