Package com.google.cloud.optimization.v1
Class SkippedShipment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SkippedShipment.Builder>
com.google.cloud.optimization.v1.SkippedShipment.Builder
- All Implemented Interfaces:
SkippedShipmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SkippedShipment
public static final class SkippedShipment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SkippedShipment.Builder>
implements SkippedShipmentOrBuilder
Specifies details of unperformed shipments in a solution. For trivial cases and/or if we are able to identify the cause for skipping, we report the reason here.Protobuf type
google.cloud.optimization.v1.SkippedShipment-
Method Summary
Modifier and TypeMethodDescriptionaddAllReasons(Iterable<? extends SkippedShipment.Reason> values) A list of reasons that explain why the shipment was skipped.addReasons(int index, SkippedShipment.Reason value) A list of reasons that explain why the shipment was skipped.addReasons(int index, SkippedShipment.Reason.Builder builderForValue) A list of reasons that explain why the shipment was skipped.addReasons(SkippedShipment.Reason value) A list of reasons that explain why the shipment was skipped.addReasons(SkippedShipment.Reason.Builder builderForValue) A list of reasons that explain why the shipment was skipped.A list of reasons that explain why the shipment was skipped.addReasonsBuilder(int index) A list of reasons that explain why the shipment was skipped.build()clear()The index corresponds to the index of the shipment in the source `ShipmentModel`.Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.A list of reasons that explain why the shipment was skipped.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetIndex()The index corresponds to the index of the shipment in the source `ShipmentModel`.getLabel()Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.com.google.protobuf.ByteStringCopy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.getReasons(int index) A list of reasons that explain why the shipment was skipped.getReasonsBuilder(int index) A list of reasons that explain why the shipment was skipped.A list of reasons that explain why the shipment was skipped.intA list of reasons that explain why the shipment was skipped.A list of reasons that explain why the shipment was skipped.getReasonsOrBuilder(int index) A list of reasons that explain why the shipment was skipped.List<? extends SkippedShipment.ReasonOrBuilder>A list of reasons that explain why the shipment was skipped.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SkippedShipment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeReasons(int index) A list of reasons that explain why the shipment was skipped.setIndex(int value) The index corresponds to the index of the shipment in the source `ShipmentModel`.Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.setLabelBytes(com.google.protobuf.ByteString value) Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.setReasons(int index, SkippedShipment.Reason value) A list of reasons that explain why the shipment was skipped.setReasons(int index, SkippedShipment.Reason.Builder builderForValue) A list of reasons that explain why the shipment was skipped.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<SkippedShipment.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<SkippedShipment.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<SkippedShipment.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<SkippedShipment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SkippedShipment.Builder>
-
mergeFrom
public SkippedShipment.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<SkippedShipment.Builder>- Throws:
IOException
-
getIndex
public int getIndex()The index corresponds to the index of the shipment in the source `ShipmentModel`.
int32 index = 1;- Specified by:
getIndexin interfaceSkippedShipmentOrBuilder- Returns:
- The index.
-
setIndex
The index corresponds to the index of the shipment in the source `ShipmentModel`.
int32 index = 1;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
The index corresponds to the index of the shipment in the source `ShipmentModel`.
int32 index = 1;- Returns:
- This builder for chaining.
-
getLabel
Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.
string label = 2;- Specified by:
getLabelin interfaceSkippedShipmentOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.
string label = 2;- Specified by:
getLabelBytesin interfaceSkippedShipmentOrBuilder- Returns:
- The bytes for label.
-
setLabel
Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.
string label = 2;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.
string label = 2;- Returns:
- This builder for chaining.
-
setLabelBytes
Copy of the corresponding [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified in the `Shipment`.
string label = 2;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getReasonsList
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;- Specified by:
getReasonsListin interfaceSkippedShipmentOrBuilder
-
getReasonsCount
public int getReasonsCount()A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;- Specified by:
getReasonsCountin interfaceSkippedShipmentOrBuilder
-
getReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;- Specified by:
getReasonsin interfaceSkippedShipmentOrBuilder
-
setReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
setReasons
public SkippedShipment.Builder setReasons(int index, SkippedShipment.Reason.Builder builderForValue) A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
addReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
addReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
addReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
addReasons
public SkippedShipment.Builder addReasons(int index, SkippedShipment.Reason.Builder builderForValue) A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
addAllReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
clearReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
removeReasons
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
getReasonsBuilder
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
getReasonsOrBuilder
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;- Specified by:
getReasonsOrBuilderin interfaceSkippedShipmentOrBuilder
-
getReasonsOrBuilderList
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;- Specified by:
getReasonsOrBuilderListin interfaceSkippedShipmentOrBuilder
-
addReasonsBuilder
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
addReasonsBuilder
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3; -
getReasonsBuilderList
A list of reasons that explain why the shipment was skipped. See comment above `Reason`.
repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
-