- 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()
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;
Name | Description |
values | Iterable<String> The types to add. |
Type | Description |
ShipmentTypeIncompatibility.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShipmentTypeIncompatibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | String The types to add. |
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;
Name | Description |
value | ByteString The bytes of the types to add. |
Type | Description |
ShipmentTypeIncompatibility.Builder | This builder for chaining. |
build()
public ShipmentTypeIncompatibility build()
Type | Description |
ShipmentTypeIncompatibility |
buildPartial()
public ShipmentTypeIncompatibility buildPartial()
Type | Description |
ShipmentTypeIncompatibility |
clear()
public ShipmentTypeIncompatibility.Builder clear()
Type | Description |
ShipmentTypeIncompatibility.Builder |
clearField(Descriptors.FieldDescriptor field)
public ShipmentTypeIncompatibility.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ShipmentTypeIncompatibility.Builder |
clearIncompatibilityMode()
public ShipmentTypeIncompatibility.Builder clearIncompatibilityMode()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Type | Description |
ShipmentTypeIncompatibility.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShipmentTypeIncompatibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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;
Type | Description |
ShipmentTypeIncompatibility.Builder | This builder for chaining. |
clone()
public ShipmentTypeIncompatibility.Builder clone()
Type | Description |
ShipmentTypeIncompatibility.Builder |
getDefaultInstanceForType()
public ShipmentTypeIncompatibility getDefaultInstanceForType()
Type | Description |
ShipmentTypeIncompatibility |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIncompatibilityMode()
public ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
Type | Description |
ShipmentTypeIncompatibility.IncompatibilityMode | The incompatibilityMode. |
getIncompatibilityModeValue()
public int getIncompatibilityModeValue()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
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;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
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;
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;
Type | Description |
ProtocolStringList | A list containing the types. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ShipmentTypeIncompatibility other)
public ShipmentTypeIncompatibility.Builder mergeFrom(ShipmentTypeIncompatibility other)
Name | Description |
other | ShipmentTypeIncompatibility |
Type | Description |
ShipmentTypeIncompatibility.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShipmentTypeIncompatibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ShipmentTypeIncompatibility.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ShipmentTypeIncompatibility.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ShipmentTypeIncompatibility.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentTypeIncompatibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ShipmentTypeIncompatibility.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ShipmentTypeIncompatibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | ShipmentTypeIncompatibility.IncompatibilityMode The incompatibilityMode to set. |
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;
Name | Description |
value | int The enum numeric value on the wire for incompatibilityMode to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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;
Name | Description |
index | int The index to set the value at. |
value | String The types to set. |
Type | Description |
ShipmentTypeIncompatibility.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentTypeIncompatibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ShipmentTypeIncompatibility.Builder |