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.GeneratedMessageV3.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.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 typegoogle.cloud.optimization.v1.ShipmentTypeIncompatibility
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShipmentTypeIncompatibility.Builder
addAllTypes(Iterable<String> values)
List of incompatible types.ShipmentTypeIncompatibility.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentTypeIncompatibility.Builder
addTypes(String value)
List of incompatible types.ShipmentTypeIncompatibility.Builder
addTypesBytes(com.google.protobuf.ByteString value)
List of incompatible types.ShipmentTypeIncompatibility
build()
ShipmentTypeIncompatibility
buildPartial()
ShipmentTypeIncompatibility.Builder
clear()
ShipmentTypeIncompatibility.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ShipmentTypeIncompatibility.Builder
clearIncompatibilityMode()
Mode applied to the incompatibility.ShipmentTypeIncompatibility.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ShipmentTypeIncompatibility.Builder
clearTypes()
List of incompatible types.ShipmentTypeIncompatibility.Builder
clone()
ShipmentTypeIncompatibility
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ShipmentTypeIncompatibility.IncompatibilityMode
getIncompatibilityMode()
Mode applied to the incompatibility.int
getIncompatibilityModeValue()
Mode applied to the incompatibility.String
getTypes(int index)
List of incompatible types.com.google.protobuf.ByteString
getTypesBytes(int index)
List of incompatible types.int
getTypesCount()
List of incompatible types.com.google.protobuf.ProtocolStringList
getTypesList()
List of incompatible types.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ShipmentTypeIncompatibility.Builder
mergeFrom(ShipmentTypeIncompatibility other)
ShipmentTypeIncompatibility.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ShipmentTypeIncompatibility.Builder
mergeFrom(com.google.protobuf.Message other)
ShipmentTypeIncompatibility.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentTypeIncompatibility.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentTypeIncompatibility.Builder
setIncompatibilityMode(ShipmentTypeIncompatibility.IncompatibilityMode value)
Mode applied to the incompatibility.ShipmentTypeIncompatibility.Builder
setIncompatibilityModeValue(int value)
Mode applied to the incompatibility.ShipmentTypeIncompatibility.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ShipmentTypeIncompatibility.Builder
setTypes(int index, String value)
List of incompatible types.ShipmentTypeIncompatibility.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
clear
public ShipmentTypeIncompatibility.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
getDefaultInstanceForType
public ShipmentTypeIncompatibility getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ShipmentTypeIncompatibility build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ShipmentTypeIncompatibility buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ShipmentTypeIncompatibility.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
setField
public ShipmentTypeIncompatibility.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
clearField
public ShipmentTypeIncompatibility.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
clearOneof
public ShipmentTypeIncompatibility.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
setRepeatedField
public ShipmentTypeIncompatibility.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
addRepeatedField
public ShipmentTypeIncompatibility.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
mergeFrom
public ShipmentTypeIncompatibility.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ShipmentTypeIncompatibility.Builder>
-
mergeFrom
public ShipmentTypeIncompatibility.Builder mergeFrom(ShipmentTypeIncompatibility other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
mergeFrom
public ShipmentTypeIncompatibility.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getTypesList
in 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:
getTypesCount
in interfaceShipmentTypeIncompatibilityOrBuilder
- Returns:
- The count of types.
-
getTypes
public String getTypes(int index)
List of incompatible types. Two shipments having different `shipment_types` among those listed are "incompatible".
repeated string types = 1;
- Specified by:
getTypes
in 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:
getTypesBytes
in interfaceShipmentTypeIncompatibilityOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the types at the given index.
-
setTypes
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:
index
- The index to set the value at.value
- The types to set.- Returns:
- This builder for chaining.
-
addTypes
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;
- Parameters:
value
- The types to add.- Returns:
- This builder for chaining.
-
addAllTypes
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;
- Parameters:
values
- The types to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addTypesBytes
public ShipmentTypeIncompatibility.Builder addTypesBytes(com.google.protobuf.ByteString value)
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:
getIncompatibilityModeValue
in interfaceShipmentTypeIncompatibilityOrBuilder
- Returns:
- The enum numeric value on the wire for incompatibilityMode.
-
setIncompatibilityModeValue
public ShipmentTypeIncompatibility.Builder setIncompatibilityModeValue(int value)
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
public ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
- Specified by:
getIncompatibilityMode
in 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
public ShipmentTypeIncompatibility.Builder clearIncompatibilityMode()
Mode applied to the incompatibility.
.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ShipmentTypeIncompatibility.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
mergeUnknownFields
public final ShipmentTypeIncompatibility.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentTypeIncompatibility.Builder>
-
-