Class OptimizeToursValidationError.FieldReference (1.9.0)

public static final class OptimizeToursValidationError.FieldReference extends GeneratedMessageV3 implements OptimizeToursValidationError.FieldReferenceOrBuilder

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: <code><code> name: "vehicles" index: 5 sub_field { name: "end_time_windows" index: 2 } </code></code><code> We however omit top-level entities such as </code>OptimizeToursRequest<code> or </code>ShipmentModel to avoid crowding the message.

Protobuf type google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OptimizeToursValidationError.FieldReference

Static Fields

INDEX_FIELD_NUMBER

public static final int INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SUB_FIELD_FIELD_NUMBER

public static final int SUB_FIELD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OptimizeToursValidationError.FieldReference getDefaultInstance()
Returns
TypeDescription
OptimizeToursValidationError.FieldReference

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OptimizeToursValidationError.FieldReference.Builder newBuilder()
Returns
TypeDescription
OptimizeToursValidationError.FieldReference.Builder

newBuilder(OptimizeToursValidationError.FieldReference prototype)

public static OptimizeToursValidationError.FieldReference.Builder newBuilder(OptimizeToursValidationError.FieldReference prototype)
Parameter
NameDescription
prototypeOptimizeToursValidationError.FieldReference
Returns
TypeDescription
OptimizeToursValidationError.FieldReference.Builder

parseDelimitedFrom(InputStream input)

public static OptimizeToursValidationError.FieldReference parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OptimizeToursValidationError.FieldReference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OptimizeToursValidationError.FieldReference parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OptimizeToursValidationError.FieldReference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OptimizeToursValidationError.FieldReference parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OptimizeToursValidationError.FieldReference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OptimizeToursValidationError.FieldReference parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OptimizeToursValidationError.FieldReference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OptimizeToursValidationError.FieldReference parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OptimizeToursValidationError.FieldReference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OptimizeToursValidationError.FieldReference parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OptimizeToursValidationError.FieldReference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeToursValidationError.FieldReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OptimizeToursValidationError.FieldReference> parser()
Returns
TypeDescription
Parser<FieldReference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public OptimizeToursValidationError.FieldReference getDefaultInstanceForType()
Returns
TypeDescription
OptimizeToursValidationError.FieldReference

getIndex()

public int getIndex()

Index of the field if repeated.

int32 index = 2;

Returns
TypeDescription
int

The index.

getIndexOrKeyCase()

public OptimizeToursValidationError.FieldReference.IndexOrKeyCase getIndexOrKeyCase()
Returns
TypeDescription
OptimizeToursValidationError.FieldReference.IndexOrKeyCase

getKey()

public String getKey()

Key if the field is a map.

string key = 4;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key if the field is a map.

string key = 4;

Returns
TypeDescription
ByteString

The bytes for key.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<OptimizeToursValidationError.FieldReference> getParserForType()
Returns
TypeDescription
Parser<FieldReference>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubField()

public OptimizeToursValidationError.FieldReference getSubField()

Recursively nested sub-field, if needed.

.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;

Returns
TypeDescription
OptimizeToursValidationError.FieldReference

The subField.

getSubFieldOrBuilder()

public OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder()

Recursively nested sub-field, if needed.

.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;

Returns
TypeDescription
OptimizeToursValidationError.FieldReferenceOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasIndex()

public boolean hasIndex()

Index of the field if repeated.

int32 index = 2;

Returns
TypeDescription
boolean

Whether the index field is set.

hasKey()

public boolean hasKey()

Key if the field is a map.

string key = 4;

Returns
TypeDescription
boolean

Whether the key field is set.

hasSubField()

public boolean hasSubField()

Recursively nested sub-field, if needed.

.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;

Returns
TypeDescription
boolean

Whether the subField field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OptimizeToursValidationError.FieldReference.Builder newBuilderForType()
Returns
TypeDescription
OptimizeToursValidationError.FieldReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OptimizeToursValidationError.FieldReference.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OptimizeToursValidationError.FieldReference.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OptimizeToursValidationError.FieldReference.Builder toBuilder()
Returns
TypeDescription
OptimizeToursValidationError.FieldReference.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException