Class ShipmentRoute.Break.Builder (1.7.0)

public static final class ShipmentRoute.Break.Builder extends GeneratedMessageV3.Builder<ShipmentRoute.Break.Builder> implements ShipmentRoute.BreakOrBuilder

Data representing the execution of a break.

Protobuf type google.cloud.optimization.v1.ShipmentRoute.Break

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ShipmentRoute.Break build()
Returns
TypeDescription
ShipmentRoute.Break

buildPartial()

public ShipmentRoute.Break buildPartial()
Returns
TypeDescription
ShipmentRoute.Break

clear()

public ShipmentRoute.Break.Builder clear()
Returns
TypeDescription
ShipmentRoute.Break.Builder
Overrides

clearDuration()

public ShipmentRoute.Break.Builder clearDuration()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
ShipmentRoute.Break.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public ShipmentRoute.Break.Builder clearStartTime()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
ShipmentRoute.Break.Builder

clone()

public ShipmentRoute.Break.Builder clone()
Returns
TypeDescription
ShipmentRoute.Break.Builder
Overrides

getDefaultInstanceForType()

public ShipmentRoute.Break getDefaultInstanceForType()
Returns
TypeDescription
ShipmentRoute.Break

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public Duration getDuration()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
DurationOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasDuration()

public boolean hasDuration()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
boolean

Whether the duration field is set.

hasStartTime()

public boolean hasStartTime()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDuration(Duration value)

public ShipmentRoute.Break.Builder mergeDuration(Duration value)

Duration of a break.

.google.protobuf.Duration duration = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
ShipmentRoute.Break.Builder

mergeFrom(ShipmentRoute.Break other)

public ShipmentRoute.Break.Builder mergeFrom(ShipmentRoute.Break other)
Parameter
NameDescription
otherShipmentRoute.Break
Returns
TypeDescription
ShipmentRoute.Break.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public ShipmentRoute.Break.Builder mergeStartTime(Timestamp value)

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ShipmentRoute.Break.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDuration(Duration value)

public ShipmentRoute.Break.Builder setDuration(Duration value)

Duration of a break.

.google.protobuf.Duration duration = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
ShipmentRoute.Break.Builder

setDuration(Duration.Builder builderForValue)

public ShipmentRoute.Break.Builder setDuration(Duration.Builder builderForValue)

Duration of a break.

.google.protobuf.Duration duration = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ShipmentRoute.Break.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartTime(Timestamp value)

public ShipmentRoute.Break.Builder setStartTime(Timestamp value)

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ShipmentRoute.Break.Builder

setStartTime(Timestamp.Builder builderForValue)

public ShipmentRoute.Break.Builder setStartTime(Timestamp.Builder builderForValue)

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ShipmentRoute.Break.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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