- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 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 ShipmentTypeRequirement.Builder extends GeneratedMessageV3.Builder<ShipmentTypeRequirement.Builder> implements ShipmentTypeRequirementOrBuilderSpecifies requirements between shipments based on their shipment_type. The specifics of the requirement are defined by the requirement mode.
Protobuf type google.cloud.optimization.v1.ShipmentTypeRequirement
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ShipmentTypeRequirement.BuilderImplements
ShipmentTypeRequirementOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAllDependentShipmentTypes(Iterable<String> values)
public ShipmentTypeRequirement.Builder addAllDependentShipmentTypes(Iterable<String> values) All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Name | Description |
| values | Iterable<String>The dependentShipmentTypes to add. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
addAllRequiredShipmentTypeAlternatives(Iterable<String> values)
public ShipmentTypeRequirement.Builder addAllRequiredShipmentTypeAlternatives(Iterable<String> values) List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Name | Description |
| values | Iterable<String>The requiredShipmentTypeAlternatives to add. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
addDependentShipmentTypes(String value)
public ShipmentTypeRequirement.Builder addDependentShipmentTypes(String value) All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Name | Description |
| value | StringThe dependentShipmentTypes to add. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
addDependentShipmentTypesBytes(ByteString value)
public ShipmentTypeRequirement.Builder addDependentShipmentTypesBytes(ByteString value) All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Name | Description |
| value | ByteStringThe bytes of the dependentShipmentTypes to add. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShipmentTypeRequirement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| ShipmentTypeRequirement.Builder |
addRequiredShipmentTypeAlternatives(String value)
public ShipmentTypeRequirement.Builder addRequiredShipmentTypeAlternatives(String value) List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Name | Description |
| value | StringThe requiredShipmentTypeAlternatives to add. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
addRequiredShipmentTypeAlternativesBytes(ByteString value)
public ShipmentTypeRequirement.Builder addRequiredShipmentTypeAlternativesBytes(ByteString value) List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Name | Description |
| value | ByteStringThe bytes of the requiredShipmentTypeAlternatives to add. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
build()
public ShipmentTypeRequirement build()| Type | Description |
| ShipmentTypeRequirement |
buildPartial()
public ShipmentTypeRequirement buildPartial()| Type | Description |
| ShipmentTypeRequirement |
clear()
public ShipmentTypeRequirement.Builder clear()| Type | Description |
| ShipmentTypeRequirement.Builder |
clearDependentShipmentTypes()
public ShipmentTypeRequirement.Builder clearDependentShipmentTypes() All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ShipmentTypeRequirement.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| ShipmentTypeRequirement.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShipmentTypeRequirement.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| ShipmentTypeRequirement.Builder |
clearRequiredShipmentTypeAlternatives()
public ShipmentTypeRequirement.Builder clearRequiredShipmentTypeAlternatives() List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
clearRequirementMode()
public ShipmentTypeRequirement.Builder clearRequirementMode()Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
clone()
public ShipmentTypeRequirement.Builder clone()| Type | Description |
| ShipmentTypeRequirement.Builder |
getDefaultInstanceForType()
public ShipmentTypeRequirement getDefaultInstanceForType()| Type | Description |
| ShipmentTypeRequirement |
getDependentShipmentTypes(int index)
public String getDependentShipmentTypes(int index) All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The dependentShipmentTypes at the given index. |
getDependentShipmentTypesBytes(int index)
public ByteString getDependentShipmentTypesBytes(int index) All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the dependentShipmentTypes at the given index. |
getDependentShipmentTypesCount()
public int getDependentShipmentTypesCount() All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Type | Description |
| int | The count of dependentShipmentTypes. |
getDependentShipmentTypesList()
public ProtocolStringList getDependentShipmentTypesList() All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Type | Description |
| ProtocolStringList | A list containing the dependentShipmentTypes. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getRequiredShipmentTypeAlternatives(int index)
public String getRequiredShipmentTypeAlternatives(int index) List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The requiredShipmentTypeAlternatives at the given index. |
getRequiredShipmentTypeAlternativesBytes(int index)
public ByteString getRequiredShipmentTypeAlternativesBytes(int index) List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the requiredShipmentTypeAlternatives at the given index. |
getRequiredShipmentTypeAlternativesCount()
public int getRequiredShipmentTypeAlternativesCount() List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Type | Description |
| int | The count of requiredShipmentTypeAlternatives. |
getRequiredShipmentTypeAlternativesList()
public ProtocolStringList getRequiredShipmentTypeAlternativesList() List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Type | Description |
| ProtocolStringList | A list containing the requiredShipmentTypeAlternatives. |
getRequirementMode()
public ShipmentTypeRequirement.RequirementMode getRequirementMode()Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
| Type | Description |
| ShipmentTypeRequirement.RequirementMode | The requirementMode. |
getRequirementModeValue()
public int getRequirementModeValue()Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
| Type | Description |
| int | The enum numeric value on the wire for requirementMode. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(ShipmentTypeRequirement other)
public ShipmentTypeRequirement.Builder mergeFrom(ShipmentTypeRequirement other)| Name | Description |
| other | ShipmentTypeRequirement |
| Type | Description |
| ShipmentTypeRequirement.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShipmentTypeRequirement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| ShipmentTypeRequirement.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public ShipmentTypeRequirement.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| ShipmentTypeRequirement.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentTypeRequirement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| ShipmentTypeRequirement.Builder |
setDependentShipmentTypes(int index, String value)
public ShipmentTypeRequirement.Builder setDependentShipmentTypes(int index, String value) All shipments with a type in the dependent_shipment_types field require
at least one shipment of type required_shipment_type_alternatives to be
visited on the same route.
NOTE: Chains of requirements such that a shipment_type depends on itself
are not allowed.
repeated string dependent_shipment_types = 2;
| Name | Description |
| index | intThe index to set the value at. |
| value | StringThe dependentShipmentTypes to set. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ShipmentTypeRequirement.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| ShipmentTypeRequirement.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShipmentTypeRequirement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| ShipmentTypeRequirement.Builder |
setRequiredShipmentTypeAlternatives(int index, String value)
public ShipmentTypeRequirement.Builder setRequiredShipmentTypeAlternatives(int index, String value) List of alternative shipment types required by the
dependent_shipment_types.
repeated string required_shipment_type_alternatives = 1;
| Name | Description |
| index | intThe index to set the value at. |
| value | StringThe requiredShipmentTypeAlternatives to set. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
setRequirementMode(ShipmentTypeRequirement.RequirementMode value)
public ShipmentTypeRequirement.Builder setRequirementMode(ShipmentTypeRequirement.RequirementMode value)Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
| Name | Description |
| value | ShipmentTypeRequirement.RequirementModeThe requirementMode to set. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
setRequirementModeValue(int value)
public ShipmentTypeRequirement.Builder setRequirementModeValue(int value)Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
| Name | Description |
| value | intThe enum numeric value on the wire for requirementMode to set. |
| Type | Description |
| ShipmentTypeRequirement.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentTypeRequirement.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| ShipmentTypeRequirement.Builder |