# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    Type: MMv1     ***
#
# ----------------------------------------------------------------------------
#
#     This file is automatically generated by Magic Modules and manual
#     changes will be clobbered when the file is regenerated.
#
#     Please read more about how to change this file in README.md and
#     CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
module GoogleInSpec
  module Dataflow
    module Property
      class ProjectLocationJobPipelineDescriptionOriginalPipelineTransformDisplayData
        attr_reader :key

        attr_reader :namespace

        attr_reader :str_value

        attr_reader :int64_value

        attr_reader :float_value

        attr_reader :java_class_value

        attr_reader :timestamp_value

        attr_reader :duration_value

        attr_reader :bool_value

        attr_reader :short_str_value

        attr_reader :url

        attr_reader :label

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @key = args['key']
          @namespace = args['namespace']
          @str_value = args['strValue']
          @int64_value = args['int64Value']
          @float_value = args['floatValue']
          @java_class_value = args['javaClassValue']
          @timestamp_value = args['timestampValue']
          @duration_value = args['durationValue']
          @bool_value = args['boolValue']
          @short_str_value = args['shortStrValue']
          @url = args['url']
          @label = args['label']
        end

        def to_s
          "#{@parent_identifier} ProjectLocationJobPipelineDescriptionOriginalPipelineTransformDisplayData"
        end
      end

      class ProjectLocationJobPipelineDescriptionOriginalPipelineTransformDisplayDataArray
        def self.parse(value, parent_identifier)
          return if value.nil?
          return ProjectLocationJobPipelineDescriptionOriginalPipelineTransformDisplayData.new(value, parent_identifier) unless value.is_a?(::Array)
          value.map { |v| ProjectLocationJobPipelineDescriptionOriginalPipelineTransformDisplayData.new(v, parent_identifier) }
        end
      end
    end
  end
end
