3030public final class JavaScriptUDF extends com .google .api .client .json .GenericJson {
3131
3232 /**
33- * Required. JavaScript code that contains a function `function_name` with the below signature: *
34- * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message, return
35- * `null`. To transform a message return a map * with the following keys: * - (required) 'data' :
36- * {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all
37- * attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * - (required)
38- * 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub
39- * message metadata. * Keys: * - (required) 'message_id' : {string} * - (optional) 'publish_time':
40- * {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} function
41- * (message, metadata) { }
33+ * Required. JavaScript code that contains a function `function_name` with the below signature:
34+ * ``` * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message,
35+ * return `null`. To transform a message return a map * with the following keys: * - (required)
36+ * 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will
37+ * remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * -
38+ * (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object}
39+ * metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * -
40+ * (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key':
41+ * {string} function (message, metadata) { } ```
4242 * The value may be {@code null}.
4343 */
4444 @ com .google .api .client .util .Key
@@ -52,31 +52,31 @@ public final class JavaScriptUDF extends com.google.api.client.json.GenericJson
5252 private java .lang .String functionName ;
5353
5454 /**
55- * Required. JavaScript code that contains a function `function_name` with the below signature: *
56- * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message, return
57- * `null`. To transform a message return a map * with the following keys: * - (required) 'data' :
58- * {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all
59- * attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * - (required)
60- * 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub
61- * message metadata. * Keys: * - (required) 'message_id' : {string} * - (optional) 'publish_time':
62- * {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} function
63- * (message, metadata) { }
55+ * Required. JavaScript code that contains a function `function_name` with the below signature:
56+ * ``` * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message,
57+ * return `null`. To transform a message return a map * with the following keys: * - (required)
58+ * 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will
59+ * remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * -
60+ * (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object}
61+ * metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * -
62+ * (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key':
63+ * {string} function (message, metadata) { } ```
6464 * @return value or {@code null} for none
6565 */
6666 public java .lang .String getCode () {
6767 return code ;
6868 }
6969
7070 /**
71- * Required. JavaScript code that contains a function `function_name` with the below signature: *
72- * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message, return
73- * `null`. To transform a message return a map * with the following keys: * - (required) 'data' :
74- * {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all
75- * attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * - (required)
76- * 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub
77- * message metadata. * Keys: * - (required) 'message_id' : {string} * - (optional) 'publish_time':
78- * {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} function
79- * (message, metadata) { }
71+ * Required. JavaScript code that contains a function `function_name` with the below signature:
72+ * ``` * * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message,
73+ * return `null`. To transform a message return a map * with the following keys: * - (required)
74+ * 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will
75+ * remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * -
76+ * (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object}
77+ * metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * -
78+ * (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key':
79+ * {string} function (message, metadata) { } ```
8080 * @param code code or {@code null} for none
8181 */
8282 public JavaScriptUDF setCode (java .lang .String code ) {
0 commit comments