- 1.51.0 (latest)
- 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 ShipmentTypeIncompatibility.Builder extends GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder> implements ShipmentTypeIncompatibilityOrBuilder
Specifies incompatibilties between shipments depending on their shipment_type. The appearance of incompatible shipments on the same route is restricted based on the incompatibility mode.
Protobuf type google.cloud.optimization.v1.ShipmentTypeIncompatibility
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ShipmentTypeIncompatibility.BuilderImplements
ShipmentTypeIncompatibilityOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllTypes(Iterable<String> values)
public ShipmentTypeIncompatibility.Builder addAllTypes(Iterable<String> values)
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The types to add. |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShipmentTypeIncompatibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
addTypes(String value)
public ShipmentTypeIncompatibility.Builder addTypes(String value)
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Parameter | |
---|---|
Name | Description |
value |
String The types to add. |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
addTypesBytes(ByteString value)
public ShipmentTypeIncompatibility.Builder addTypesBytes(ByteString value)
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the types to add. |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
build()
public ShipmentTypeIncompatibility build()
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility |
buildPartial()
public ShipmentTypeIncompatibility buildPartial()
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility |
clear()
public ShipmentTypeIncompatibility.Builder clear()
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
clearField(Descriptors.FieldDescriptor field)
public ShipmentTypeIncompatibility.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
clearIncompatibilityMode()
public ShipmentTypeIncompatibility.Builder clearIncompatibilityMode()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShipmentTypeIncompatibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
clearTypes()
public ShipmentTypeIncompatibility.Builder clearTypes()
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
clone()
public ShipmentTypeIncompatibility.Builder clone()
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
getDefaultInstanceForType()
public ShipmentTypeIncompatibility getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getIncompatibilityMode()
public ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.IncompatibilityMode |
The incompatibilityMode. |
getIncompatibilityModeValue()
public int getIncompatibilityModeValue()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for incompatibilityMode. |
getTypes(int index)
public String getTypes(int index)
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The types at the given index. |
getTypesBytes(int index)
public ByteString getTypesBytes(int index)
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the types at the given index. |
getTypesCount()
public int getTypesCount()
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Returns | |
---|---|
Type | Description |
int |
The count of types. |
getTypesList()
public ProtocolStringList getTypesList()
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the types. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ShipmentTypeIncompatibility other)
public ShipmentTypeIncompatibility.Builder mergeFrom(ShipmentTypeIncompatibility other)
Parameter | |
---|---|
Name | Description |
other |
ShipmentTypeIncompatibility |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShipmentTypeIncompatibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ShipmentTypeIncompatibility.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentTypeIncompatibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ShipmentTypeIncompatibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
setIncompatibilityMode(ShipmentTypeIncompatibility.IncompatibilityMode value)
public ShipmentTypeIncompatibility.Builder setIncompatibilityMode(ShipmentTypeIncompatibility.IncompatibilityMode value)
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Parameter | |
---|---|
Name | Description |
value |
ShipmentTypeIncompatibility.IncompatibilityMode The incompatibilityMode to set. |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
setIncompatibilityModeValue(int value)
public ShipmentTypeIncompatibility.Builder setIncompatibilityModeValue(int value)
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for incompatibilityMode to set. |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShipmentTypeIncompatibility.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
setTypes(int index, String value)
public ShipmentTypeIncompatibility.Builder setTypes(int index, String value)
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
repeated string types = 1;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The types to set. |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentTypeIncompatibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ShipmentTypeIncompatibility.Builder |