struct Google::Maps::RouteOptimization::OptimizeToursValidationError

Overview

Describes an error or warning encountered when validating an OptimizeToursRequest

Included Modules

Extended Modules

Defined in:

maps.cr

Constructors

Instance Method Summary

Macros inherited from module Google::Resource

define(name, *fields) define, field(var, key = nil, **options, &block) field, field!(var, key = nil, **options, &block) field!, field?(var, key = nil, **options, &block) field?

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(pull : MessagePack::Unpacker) #

Instance Method Detail

def code : Int32 #

A validation error is defined by the pair (code, displayName) which are always present


def display_name : String #

The error display name


def error_message : String #

Human-readable string describing the error


def fields : Array(FieldReference) #

Context fields for the error


def offending_values : String | Nil #

May contain the value(s) of the field(s). This is not always available. Use only for manual model debugging.