- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
public static final class OptimizeToursValidationError.FieldReference.Builder extends GeneratedMessageV3.Builder<OptimizeToursValidationError.FieldReference.Builder> 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.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OptimizeToursValidationError.FieldReference.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OptimizeToursValidationError.FieldReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
build()
public OptimizeToursValidationError.FieldReference build()
Type | Description |
OptimizeToursValidationError.FieldReference |
buildPartial()
public OptimizeToursValidationError.FieldReference buildPartial()
Type | Description |
OptimizeToursValidationError.FieldReference |
clear()
public OptimizeToursValidationError.FieldReference.Builder clear()
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
clearField(Descriptors.FieldDescriptor field)
public OptimizeToursValidationError.FieldReference.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
clearIndex()
public OptimizeToursValidationError.FieldReference.Builder clearIndex()
Index of the field if repeated.
int32 index = 2;
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
clearIndexOrKey()
public OptimizeToursValidationError.FieldReference.Builder clearIndexOrKey()
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
clearKey()
public OptimizeToursValidationError.FieldReference.Builder clearKey()
Key if the field is a map.
string key = 4;
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
clearName()
public OptimizeToursValidationError.FieldReference.Builder clearName()
Name of the field, e.g., "vehicles".
string name = 1;
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public OptimizeToursValidationError.FieldReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
clearSubField()
public OptimizeToursValidationError.FieldReference.Builder clearSubField()
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
clone()
public OptimizeToursValidationError.FieldReference.Builder clone()
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
getDefaultInstanceForType()
public OptimizeToursValidationError.FieldReference getDefaultInstanceForType()
Type | Description |
OptimizeToursValidationError.FieldReference |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIndex()
public int getIndex()
Index of the field if repeated.
int32 index = 2;
Type | Description |
int | The index. |
getIndexOrKeyCase()
public OptimizeToursValidationError.FieldReference.IndexOrKeyCase getIndexOrKeyCase()
Type | Description |
OptimizeToursValidationError.FieldReference.IndexOrKeyCase |
getKey()
public String getKey()
Key if the field is a map.
string key = 4;
Type | Description |
String | The key. |
getKeyBytes()
public ByteString getKeyBytes()
Key if the field is a map.
string key = 4;
Type | Description |
ByteString | The bytes for key. |
getName()
public String getName()
Name of the field, e.g., "vehicles".
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Name of the field, e.g., "vehicles".
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getSubField()
public OptimizeToursValidationError.FieldReference getSubField()
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Type | Description |
OptimizeToursValidationError.FieldReference | The subField. |
getSubFieldBuilder()
public OptimizeToursValidationError.FieldReference.Builder getSubFieldBuilder()
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
getSubFieldOrBuilder()
public OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder()
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Type | Description |
OptimizeToursValidationError.FieldReferenceOrBuilder |
hasIndex()
public boolean hasIndex()
Index of the field if repeated.
int32 index = 2;
Type | Description |
boolean | Whether the index field is set. |
hasKey()
public boolean hasKey()
Key if the field is a map.
string key = 4;
Type | Description |
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;
Type | Description |
boolean | Whether the subField field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(OptimizeToursValidationError.FieldReference other)
public OptimizeToursValidationError.FieldReference.Builder mergeFrom(OptimizeToursValidationError.FieldReference other)
Name | Description |
other | OptimizeToursValidationError.FieldReference |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OptimizeToursValidationError.FieldReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public OptimizeToursValidationError.FieldReference.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
mergeSubField(OptimizeToursValidationError.FieldReference value)
public OptimizeToursValidationError.FieldReference.Builder mergeSubField(OptimizeToursValidationError.FieldReference value)
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Name | Description |
value | OptimizeToursValidationError.FieldReference |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OptimizeToursValidationError.FieldReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public OptimizeToursValidationError.FieldReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
setIndex(int value)
public OptimizeToursValidationError.FieldReference.Builder setIndex(int value)
Index of the field if repeated.
int32 index = 2;
Name | Description |
value | int The index to set. |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
setKey(String value)
public OptimizeToursValidationError.FieldReference.Builder setKey(String value)
Key if the field is a map.
string key = 4;
Name | Description |
value | String The key to set. |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
setKeyBytes(ByteString value)
public OptimizeToursValidationError.FieldReference.Builder setKeyBytes(ByteString value)
Key if the field is a map.
string key = 4;
Name | Description |
value | ByteString The bytes for key to set. |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
setName(String value)
public OptimizeToursValidationError.FieldReference.Builder setName(String value)
Name of the field, e.g., "vehicles".
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public OptimizeToursValidationError.FieldReference.Builder setNameBytes(ByteString value)
Name of the field, e.g., "vehicles".
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OptimizeToursValidationError.FieldReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
setSubField(OptimizeToursValidationError.FieldReference value)
public OptimizeToursValidationError.FieldReference.Builder setSubField(OptimizeToursValidationError.FieldReference value)
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Name | Description |
value | OptimizeToursValidationError.FieldReference |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
setSubField(OptimizeToursValidationError.FieldReference.Builder builderForValue)
public OptimizeToursValidationError.FieldReference.Builder setSubField(OptimizeToursValidationError.FieldReference.Builder builderForValue)
Recursively nested sub-field, if needed.
.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3;
Name | Description |
builderForValue | OptimizeToursValidationError.FieldReference.Builder |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final OptimizeToursValidationError.FieldReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OptimizeToursValidationError.FieldReference.Builder |