Class ShipmentRoute.Break (1.47.0)

publicstaticfinalclass ShipmentRoute.BreakextendsGeneratedMessageV3implementsShipmentRoute.BreakOrBuilder

Data representing the execution of a break.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DURATION_FIELD_NUMBER

publicstaticfinalintDURATION_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

publicstaticfinalintSTART_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticShipmentRoute.BreakgetDefaultInstance()
Returns
Type Description
ShipmentRoute.Break

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticShipmentRoute.Break.BuildernewBuilder()
Returns
Type Description
ShipmentRoute.Break.Builder

newBuilder(ShipmentRoute.Break prototype)

publicstaticShipmentRoute.Break.BuildernewBuilder(ShipmentRoute.Breakprototype)
Parameter
Name Description
prototype ShipmentRoute.Break
Returns
Type Description
ShipmentRoute.Break.Builder

parseDelimitedFrom(InputStream input)

publicstaticShipmentRoute.BreakparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentRoute.BreakparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticShipmentRoute.BreakparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentRoute.BreakparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticShipmentRoute.BreakparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentRoute.BreakparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticShipmentRoute.BreakparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentRoute.BreakparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticShipmentRoute.BreakparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentRoute.BreakparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticShipmentRoute.BreakparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentRoute.BreakparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.Break
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<ShipmentRoute.Break>parser()
Returns
Type Description
Parser<Break>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicShipmentRoute.BreakgetDefaultInstanceForType()
Returns
Type Description
ShipmentRoute.Break

getDuration()

publicDurationgetDuration()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
Type Description
Duration

The duration.

getDurationOrBuilder()

publicDurationOrBuildergetDurationOrBuilder()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
Type Description
DurationOrBuilder

getParserForType()

publicParser<ShipmentRoute.Break>getParserForType()
Returns
Type Description
Parser<Break>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

publicTimestampgetStartTime()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

publicTimestampOrBuildergetStartTimeOrBuilder()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

hasDuration()

publicbooleanhasDuration()

Duration of a break.

.google.protobuf.Duration duration = 2;

Returns
Type Description
boolean

Whether the duration field is set.

hasStartTime()

publicbooleanhasStartTime()

Start time of a break.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicShipmentRoute.Break.BuildernewBuilderForType()
Returns
Type Description
ShipmentRoute.Break.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedShipmentRoute.Break.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ShipmentRoute.Break.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicShipmentRoute.Break.BuildertoBuilder()
Returns
Type Description
ShipmentRoute.Break.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.