Class: Google::Apis::HealthcareV1::ParserConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb

Overview

The configuration for the parser. It determines how the server parses the messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParserConfig

Returns a new instance of ParserConfig.



2969
2970
2971
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2969

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_null_headerBoolean Also known as: allow_null_header?

Determines whether messages with no header are allowed. Corresponds to the JSON property allowNullHeader

Returns:

  • (Boolean)


2954
2955
2956
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2954

def allow_null_header
  @allow_null_header
end

#schemaGoogle::Apis::HealthcareV1::SchemaPackage

A schema package contains a set of schemas and type definitions. Corresponds to the JSON property schema



2960
2961
2962
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2960

def schema
  @schema
end

#segment_terminatorString

Byte(s) to use as the segment terminator. If this is unset, '\r' is used as segment terminator, matching the HL7 version 2 specification. Corresponds to the JSON property segmentTerminator NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2967
2968
2969
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2967

def segment_terminator
  @segment_terminator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2974
2975
2976
2977
2978
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2974

def update!(**args)
  @allow_null_header = args[:allow_null_header] if args.key?(:allow_null_header)
  @schema = args[:schema] if args.key?(:schema)
  @segment_terminator = args[:segment_terminator] if args.key?(:segment_terminator)
end