Package com.google.cloud.optimization.v1
Class ShipmentTypeIncompatibility.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ShipmentTypeIncompatibility.Builder>
com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder
- All Implemented Interfaces:
ShipmentTypeIncompatibilityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ShipmentTypeIncompatibility
public static final class ShipmentTypeIncompatibility.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllTypes(Iterable<String> values) List of incompatible types.List of incompatible types.addTypesBytes(com.google.protobuf.ByteString value) List of incompatible types.build()clear()Mode applied to the incompatibility.List of incompatible types.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMode applied to the incompatibility.intMode applied to the incompatibility.getTypes(int index) List of incompatible types.com.google.protobuf.ByteStringgetTypesBytes(int index) List of incompatible types.intList of incompatible types.com.google.protobuf.ProtocolStringListList of incompatible types.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Mode applied to the incompatibility.setIncompatibilityModeValue(int value) Mode applied to the incompatibility.List of incompatible types.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentTypeIncompatibility.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentTypeIncompatibility.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentTypeIncompatibility.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShipmentTypeIncompatibility.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentTypeIncompatibility.Builder>
-
mergeFrom
public ShipmentTypeIncompatibility.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShipmentTypeIncompatibility.Builder>- Throws:
IOException
-
getTypesList
public com.google.protobuf.ProtocolStringList getTypesList()List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Specified by:
getTypesListin interfaceShipmentTypeIncompatibilityOrBuilder- Returns:
- A list containing the types.
-
getTypesCount
public int getTypesCount()List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Specified by:
getTypesCountin interfaceShipmentTypeIncompatibilityOrBuilder- Returns:
- The count of types.
-
getTypes
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Specified by:
getTypesin interfaceShipmentTypeIncompatibilityOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The types at the given index.
-
getTypesBytes
public com.google.protobuf.ByteString getTypesBytes(int index) List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Specified by:
getTypesBytesin interfaceShipmentTypeIncompatibilityOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the types at the given index.
-
setTypes
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Parameters:
index- The index to set the value at.value- The types to set.- Returns:
- This builder for chaining.
-
addTypes
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Parameters:
value- The types to add.- Returns:
- This builder for chaining.
-
addAllTypes
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Parameters:
values- The types to add.- Returns:
- This builder for chaining.
-
clearTypes
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Returns:
- This builder for chaining.
-
addTypesBytes
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;- Parameters:
value- The bytes of the types to add.- Returns:
- This builder for chaining.
-
getIncompatibilityModeValue
public int getIncompatibilityModeValue()Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;- Specified by:
getIncompatibilityModeValuein interfaceShipmentTypeIncompatibilityOrBuilder- Returns:
- The enum numeric value on the wire for incompatibilityMode.
-
setIncompatibilityModeValue
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;- Parameters:
value- The enum numeric value on the wire for incompatibilityMode to set.- Returns:
- This builder for chaining.
-
getIncompatibilityMode
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;- Specified by:
getIncompatibilityModein interfaceShipmentTypeIncompatibilityOrBuilder- Returns:
- The incompatibilityMode.
-
setIncompatibilityMode
public ShipmentTypeIncompatibility.Builder setIncompatibilityMode(ShipmentTypeIncompatibility.IncompatibilityMode value) Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;- Parameters:
value- The incompatibilityMode to set.- Returns:
- This builder for chaining.
-
clearIncompatibilityMode
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;- Returns:
- This builder for chaining.
-