Show / Hide Table of Contents

Class OptimizeToursValidationError.Types.FieldReference

Specifies a context for the validation error. A FieldReference always refers to a given field in this file and follows the same hierarchical structure. For example, we may specify element #2 of start_time_windows of vehicle #5 using:

name: "vehicles" index: 5 sub_field { name: "end_time_windows" index: 2 }

We however omit top-level entities such as OptimizeToursRequest or ShipmentModel to avoid crowding the message.

Inheritance
object
OptimizeToursValidationError.Types.FieldReference
Implements
IMessage<OptimizeToursValidationError.Types.FieldReference>
IEquatable<OptimizeToursValidationError.Types.FieldReference>
IDeepCloneable<OptimizeToursValidationError.Types.FieldReference>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class OptimizeToursValidationError.Types.FieldReference : IMessage<OptimizeToursValidationError.Types.FieldReference>, IEquatable<OptimizeToursValidationError.Types.FieldReference>, IDeepCloneable<OptimizeToursValidationError.Types.FieldReference>, IBufferMessage, IMessage

Constructors

FieldReference()

Declaration
public FieldReference()

FieldReference(FieldReference)

Declaration
public FieldReference(OptimizeToursValidationError.Types.FieldReference other)
Parameters
Type Name Description
OptimizeToursValidationError.Types.FieldReference other

Properties

HasIndex

Gets whether the "index" field is set

Declaration
public bool HasIndex { get; }
Property Value
Type Description
bool

HasKey

Gets whether the "key" field is set

Declaration
public bool HasKey { get; }
Property Value
Type Description
bool

Index

Index of the field if repeated.

Declaration
public int Index { get; set; }
Property Value
Type Description
int

IndexOrKeyCase

Declaration
public OptimizeToursValidationError.Types.FieldReference.IndexOrKeyOneofCase IndexOrKeyCase { get; }
Property Value
Type Description
OptimizeToursValidationError.Types.FieldReference.IndexOrKeyOneofCase

Key

Key if the field is a map.

Declaration
public string Key { get; set; }
Property Value
Type Description
string

Name

Name of the field, e.g., "vehicles".

Declaration
public string Name { get; set; }
Property Value
Type Description
string

SubField

Recursively nested sub-field, if needed.

Declaration
public OptimizeToursValidationError.Types.FieldReference SubField { get; set; }
Property Value
Type Description
OptimizeToursValidationError.Types.FieldReference
In this article
Back to top Generated by DocFX