Class OptimizeToursValidationError.FieldReference.Builder (1.6.0)

publicstaticfinalclass OptimizeToursValidationError.FieldReference.BuilderextendsGeneratedMessageV3.Builder<OptimizeToursValidationError.FieldReference.Builder>implementsOptimizeToursValidationError.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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicOptimizeToursValidationError.FieldReference.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicOptimizeToursValidationError.FieldReferencebuild()
Returns
Type Description

buildPartial()

publicOptimizeToursValidationError.FieldReferencebuildPartial()
Returns
Type Description

clear()

publicOptimizeToursValidationError.FieldReference.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicOptimizeToursValidationError.FieldReference.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearIndex()

publicOptimizeToursValidationError.FieldReference.BuilderclearIndex()

Index of the field if repeated.

int32 index = 2;

Returns
Type Description

clearIndexOrKey()

publicOptimizeToursValidationError.FieldReference.BuilderclearIndexOrKey()
Returns
Type Description

clearKey()

publicOptimizeToursValidationError.FieldReference.BuilderclearKey()

Key if the field is a map.

string key = 4;

Returns
Type Description

clearName()

publicOptimizeToursValidationError.FieldReference.BuilderclearName()

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

string name = 1;

Returns
Type Description

clearOneof(Descriptors.OneofDescriptor oneof)

publicOptimizeToursValidationError.FieldReference.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearSubField()

publicOptimizeToursValidationError.FieldReference.BuilderclearSubField()

Recursively nested sub-field, if needed.

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

Returns
Type Description

clone()

publicOptimizeToursValidationError.FieldReference.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicOptimizeToursValidationError.FieldReferencegetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getIndex()

publicintgetIndex()

Index of the field if repeated.

int32 index = 2;

Returns
Type Description
int

The index.

getIndexOrKeyCase()

publicOptimizeToursValidationError.FieldReference.IndexOrKeyCasegetIndexOrKeyCase()
Returns
Type Description

getKey()

publicStringgetKey()

Key if the field is a map.

string key = 4;

Returns
Type Description
String

The key.

getKeyBytes()

publicByteStringgetKeyBytes()

Key if the field is a map.

string key = 4;

Returns
Type Description
ByteString

The bytes for key.

getName()

publicStringgetName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSubField()

publicOptimizeToursValidationError.FieldReferencegetSubField()

Recursively nested sub-field, if needed.

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

Returns
Type Description

getSubFieldBuilder()

publicOptimizeToursValidationError.FieldReference.BuildergetSubFieldBuilder()

Recursively nested sub-field, if needed.

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

Returns
Type Description

getSubFieldOrBuilder()

publicOptimizeToursValidationError.FieldReferenceOrBuildergetSubFieldOrBuilder()

Recursively nested sub-field, if needed.

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

Returns
Type Description

hasIndex()

publicbooleanhasIndex()

Index of the field if repeated.

int32 index = 2;

Returns
Type Description
boolean

Whether the index field is set.

hasKey()

publicbooleanhasKey()

Key if the field is a map.

string key = 4;

Returns
Type Description
boolean

Whether the key field is set.

hasSubField()

publicbooleanhasSubField()

Recursively nested sub-field, if needed.

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

Returns
Type Description
boolean

Whether the subField field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(OptimizeToursValidationError.FieldReference other)

publicOptimizeToursValidationError.FieldReference.BuildermergeFrom(OptimizeToursValidationError.FieldReferenceother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicOptimizeToursValidationError.FieldReference.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicOptimizeToursValidationError.FieldReference.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeSubField(OptimizeToursValidationError.FieldReference value)

publicOptimizeToursValidationError.FieldReference.BuildermergeSubField(OptimizeToursValidationError.FieldReferencevalue)

Recursively nested sub-field, if needed.

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

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalOptimizeToursValidationError.FieldReference.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicOptimizeToursValidationError.FieldReference.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setIndex(int value)

publicOptimizeToursValidationError.FieldReference.BuildersetIndex(intvalue)

Index of the field if repeated.

int32 index = 2;

Parameter
Name Description
value int

The index to set.

Returns
Type Description

setKey(String value)

publicOptimizeToursValidationError.FieldReference.BuildersetKey(Stringvalue)

Key if the field is a map.

string key = 4;

Parameter
Name Description
value String

The key to set.

Returns
Type Description

setKeyBytes(ByteString value)

publicOptimizeToursValidationError.FieldReference.BuildersetKeyBytes(ByteStringvalue)

Key if the field is a map.

string key = 4;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description

setName(String value)

publicOptimizeToursValidationError.FieldReference.BuildersetName(Stringvalue)

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

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description

setNameBytes(ByteString value)

publicOptimizeToursValidationError.FieldReference.BuildersetNameBytes(ByteStringvalue)

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

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicOptimizeToursValidationError.FieldReference.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setSubField(OptimizeToursValidationError.FieldReference value)

publicOptimizeToursValidationError.FieldReference.BuildersetSubField(OptimizeToursValidationError.FieldReferencevalue)

Recursively nested sub-field, if needed.

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

Parameter
Name Description
Returns
Type Description

setSubField(OptimizeToursValidationError.FieldReference.Builder builderForValue)

publicOptimizeToursValidationError.FieldReference.BuildersetSubField(OptimizeToursValidationError.FieldReference.BuilderbuilderForValue)

Recursively nested sub-field, if needed.

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

Parameter
Name Description
Returns
Type Description

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalOptimizeToursValidationError.FieldReference.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.