30
30
public final class JavaScriptUDF extends com .google .api .client .json .GenericJson {
31
31
32
32
/**
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) { } ```
42
42
* The value may be {@code null}.
43
43
*/
44
44
@ com .google .api .client .util .Key
@@ -52,31 +52,31 @@ public final class JavaScriptUDF extends com.google.api.client.json.GenericJson
52
52
private java .lang .String functionName ;
53
53
54
54
/**
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) { } ```
64
64
* @return value or {@code null} for none
65
65
*/
66
66
public java .lang .String getCode () {
67
67
return code ;
68
68
}
69
69
70
70
/**
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) { } ```
80
80
* @param code code or {@code null} for none
81
81
*/
82
82
public JavaScriptUDF setCode (java .lang .String code ) {
0 commit comments