Class SkippedShipment.Builder (1.1.10)

public static final class SkippedShipment.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllReasons(Iterable<? extends SkippedShipment.Reason> values)

public SkippedShipment.Builder addAllReasons(Iterable<? extends SkippedShipment.Reason> values)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.optimization.v1.SkippedShipment.Reason>
Returns
TypeDescription
SkippedShipment.Builder

addReasons(SkippedShipment.Reason value)

public SkippedShipment.Builder addReasons(SkippedShipment.Reason value)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
valueSkippedShipment.Reason
Returns
TypeDescription
SkippedShipment.Builder

addReasons(SkippedShipment.Reason.Builder builderForValue)

public SkippedShipment.Builder addReasons(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;

Parameter
NameDescription
builderForValueSkippedShipment.Reason.Builder
Returns
TypeDescription
SkippedShipment.Builder

addReasons(int index, SkippedShipment.Reason value)

public SkippedShipment.Builder addReasons(int index, SkippedShipment.Reason value)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameters
NameDescription
indexint
valueSkippedShipment.Reason
Returns
TypeDescription
SkippedShipment.Builder

addReasons(int index, SkippedShipment.Reason.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueSkippedShipment.Reason.Builder
Returns
TypeDescription
SkippedShipment.Builder

addReasonsBuilder()

public SkippedShipment.Reason.Builder 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;

Returns
TypeDescription
SkippedShipment.Reason.Builder

addReasonsBuilder(int index)

public SkippedShipment.Reason.Builder addReasonsBuilder(int index)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SkippedShipment.Reason.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SkippedShipment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SkippedShipment.Builder
Overrides

build()

public SkippedShipment build()
Returns
TypeDescription
SkippedShipment

buildPartial()

public SkippedShipment buildPartial()
Returns
TypeDescription
SkippedShipment

clear()

public SkippedShipment.Builder clear()
Returns
TypeDescription
SkippedShipment.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SkippedShipment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SkippedShipment.Builder
Overrides

clearIndex()

public SkippedShipment.Builder clearIndex()

The index corresponds to the index of the shipment in the source ShipmentModel.

int32 index = 1;

Returns
TypeDescription
SkippedShipment.Builder

This builder for chaining.

clearLabel()

public SkippedShipment.Builder clearLabel()

Copy of the corresponding Shipment.label, if specified in the Shipment.

string label = 2;

Returns
TypeDescription
SkippedShipment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SkippedShipment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SkippedShipment.Builder
Overrides

clearReasons()

public SkippedShipment.Builder 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;

Returns
TypeDescription
SkippedShipment.Builder

clone()

public SkippedShipment.Builder clone()
Returns
TypeDescription
SkippedShipment.Builder
Overrides

getDefaultInstanceForType()

public SkippedShipment getDefaultInstanceForType()
Returns
TypeDescription
SkippedShipment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

public int getIndex()

The index corresponds to the index of the shipment in the source ShipmentModel.

int32 index = 1;

Returns
TypeDescription
int

The index.

getLabel()

public String getLabel()

Copy of the corresponding Shipment.label, if specified in the Shipment.

string label = 2;

Returns
TypeDescription
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Copy of the corresponding Shipment.label, if specified in the Shipment.

string label = 2;

Returns
TypeDescription
ByteString

The bytes for label.

getReasons(int index)

public SkippedShipment.Reason getReasons(int index)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SkippedShipment.Reason

getReasonsBuilder(int index)

public SkippedShipment.Reason.Builder getReasonsBuilder(int index)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SkippedShipment.Reason.Builder

getReasonsBuilderList()

public List<SkippedShipment.Reason.Builder> 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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

getReasonsList()

public List<SkippedShipment.Reason> 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;

Returns
TypeDescription
List<Reason>

getReasonsOrBuilder(int index)

public SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(int index)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SkippedShipment.ReasonOrBuilder

getReasonsOrBuilderList()

public List<? extends SkippedShipment.ReasonOrBuilder> 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;

Returns
TypeDescription
List<? extends com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SkippedShipment other)

public SkippedShipment.Builder mergeFrom(SkippedShipment other)
Parameter
NameDescription
otherSkippedShipment
Returns
TypeDescription
SkippedShipment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SkippedShipment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkippedShipment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SkippedShipment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SkippedShipment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SkippedShipment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SkippedShipment.Builder
Overrides

removeReasons(int index)

public SkippedShipment.Builder removeReasons(int index)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SkippedShipment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SkippedShipment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SkippedShipment.Builder
Overrides

setIndex(int value)

public SkippedShipment.Builder setIndex(int value)

The index corresponds to the index of the shipment in the source ShipmentModel.

int32 index = 1;

Parameter
NameDescription
valueint

The index to set.

Returns
TypeDescription
SkippedShipment.Builder

This builder for chaining.

setLabel(String value)

public SkippedShipment.Builder setLabel(String value)

Copy of the corresponding Shipment.label, if specified in the Shipment.

string label = 2;

Parameter
NameDescription
valueString

The label to set.

Returns
TypeDescription
SkippedShipment.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public SkippedShipment.Builder setLabelBytes(ByteString value)

Copy of the corresponding Shipment.label, if specified in the Shipment.

string label = 2;

Parameter
NameDescription
valueByteString

The bytes for label to set.

Returns
TypeDescription
SkippedShipment.Builder

This builder for chaining.

setReasons(int index, SkippedShipment.Reason value)

public SkippedShipment.Builder setReasons(int index, SkippedShipment.Reason value)

A list of reasons that explain why the shipment was skipped. See comment above Reason.

repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;

Parameters
NameDescription
indexint
valueSkippedShipment.Reason
Returns
TypeDescription
SkippedShipment.Builder

setReasons(int index, SkippedShipment.Reason.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueSkippedShipment.Reason.Builder
Returns
TypeDescription
SkippedShipment.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SkippedShipment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SkippedShipment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SkippedShipment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SkippedShipment.Builder
Overrides