Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoField
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoField
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb
Overview
Information about the value and type of the field. Next Id: 8
Instance Attribute Summary collapse
-
#cardinality ⇒ String
By default, if the cardinality is unspecified the field is considered required while mapping.
-
#default_value ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoParameterValueType
LINT.IfChange To support various types of parameter values.
-
#field_type ⇒ String
Specifies the data type of the field.
-
#proto_def_path ⇒ String
Optional.
-
#reference_key ⇒ String
This holds the reference key of the workflow or task parameter.
-
#transform_expression ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoTransformExpression
This is the transform expression to fetch the input field value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoField
constructor
A new instance of EnterpriseCrmEventbusProtoField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoField
Returns a new instance of EnterpriseCrmEventbusProtoField.
1157 1158 1159 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1157 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cardinality ⇒ String
By default, if the cardinality is unspecified the field is considered required
while mapping.
Corresponds to the JSON property cardinality
1114 1115 1116 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1114 def cardinality @cardinality end |
#default_value ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoParameterValueType
LINT.IfChange To support various types of parameter values. Next available id:
14
Corresponds to the JSON property defaultValue
1120 1121 1122 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1120 def default_value @default_value end |
#field_type ⇒ String
Specifies the data type of the field.
Corresponds to the JSON property fieldType
1125 1126 1127 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1125 def field_type @field_type end |
#proto_def_path ⇒ String
Optional. The fully qualified proto name (e.g. enterprise.crm.storage.Account).
Required for output field of type PROTO_VALUE or PROTO_ARRAY. For e.g., if
input field_type is BYTES and output field_type is PROTO_VALUE, then fully
qualified proto type url should be provided to parse the input bytes. If
field_type is *_ARRAY, then all the converted protos are of the same type.
Corresponds to the JSON property protoDefPath
1134 1135 1136 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1134 def proto_def_path @proto_def_path end |
#reference_key ⇒ String
This holds the reference key of the workflow or task parameter. 1. Any
workflow parameter, for e.g. $workflowParam1$. 2. Any task input or output
parameter, for e.g. $task1_param1$. 3. Any workflow or task parameters with
subfield references, for e.g., $task1_param1.employee.id$
Corresponds to the JSON property referenceKey
1142 1143 1144 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1142 def reference_key @reference_key end |
#transform_expression ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoTransformExpression
This is the transform expression to fetch the input field value. for e.g. $
param1$.CONCAT('test'). See go/transform-functions-design for more details.
Keep points - 1. Only input field can have a transform expression. 2. If a
transform expression is provided, reference_key will be ignored. 3. If no
value is returned after evaluation of transform expression, default_value can
be mapped if provided. 4. The field_type should be the type of the final
object returned after the transform expression is evaluated. Scrubs the
transform expression before logging as value provided by user so may or may
not contain PII or SPII data.
Corresponds to the JSON property transformExpression
1155 1156 1157 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1155 def transform_expression @transform_expression end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1162 def update!(**args) @cardinality = args[:cardinality] if args.key?(:cardinality) @default_value = args[:default_value] if args.key?(:default_value) @field_type = args[:field_type] if args.key?(:field_type) @proto_def_path = args[:proto_def_path] if args.key?(:proto_def_path) @reference_key = args[:reference_key] if args.key?(:reference_key) @transform_expression = args[:transform_expression] if args.key?(:transform_expression) end |