Class: Google::Apis::HealthcareV1alpha2::ParserConfig

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ParserConfig

Returns a new instance of ParserConfig



2276
2277
2278
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2276

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)


2265
2266
2267
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2265

def allow_null_header
  @allow_null_header
end

#segment_terminatorString

Byte(s) to be used as the segment terminator. If this is unset, '\r' will be used as the 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)


2274
2275
2276
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2274

def segment_terminator
  @segment_terminator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2281
2282
2283
2284
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2281

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