public sealed class FieldReference : IMessage<OptimizeToursValidationError.Types.FieldReference>, IEquatable<OptimizeToursValidationError.Types.FieldReference>, IDeepCloneable<OptimizeToursValidationError.Types.FieldReference>, IBufferMessage, IMessageReference documentation and code samples for the Cloud Optimization v1 API 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.
Implements
IMessage<OptimizeToursValidationError.Types.FieldReference>, IEquatable<OptimizeToursValidationError.Types.FieldReference>, IDeepCloneable<OptimizeToursValidationError.Types.FieldReference>, IBufferMessage, IMessageNamespace
Google.Cloud.Optimization.V1Assembly
Google.Cloud.Optimization.V1.dll
Constructors
FieldReference()
public FieldReference()FieldReference(OptimizeToursValidationError.Types.FieldReference)
public FieldReference(OptimizeToursValidationError.Types.FieldReference other)| Parameter | |
|---|---|
| Name | Description |
other |
OptimizeToursValidationError.Types.FieldReference |
Properties
Index
public int Index { get; set; }Index of the field if repeated.
| Property Value | |
|---|---|
| Type | Description |
Int32 |
|
IndexOrKeyCase
public OptimizeToursValidationError.Types.FieldReference.IndexOrKeyOneofCase IndexOrKeyCase { get; }| Property Value | |
|---|---|
| Type | Description |
OptimizeToursValidationError.Types.FieldReference.IndexOrKeyOneofCase |
|
Key
public string Key { get; set; }Key if the field is a map.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Name
public string Name { get; set; }Name of the field, e.g., "vehicles".
| Property Value | |
|---|---|
| Type | Description |
String |
|
SubField
public OptimizeToursValidationError.Types.FieldReference SubField { get; set; }Recursively nested sub-field, if needed.
| Property Value | |
|---|---|
| Type | Description |
OptimizeToursValidationError.Types.FieldReference |
|