Class ShipmentRoute.Delay.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Delay.Builder>
com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder
All Implemented Interfaces:
ShipmentRoute.DelayOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ShipmentRoute.Delay

public static final class ShipmentRoute.Delay.Builder extends com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Delay.Builder> implements ShipmentRoute.DelayOrBuilder
 Deprecated: Use
 [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
 instead. Time interval spent on the route resulting from a
 [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
 
Protobuf type google.cloud.optimization.v1.ShipmentRoute.Delay
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Delay.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Delay.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Delay.Builder>
    • getDefaultInstanceForType

      public ShipmentRoute.Delay getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ShipmentRoute.Delay build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ShipmentRoute.Delay buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ShipmentRoute.Delay.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Delay.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Delay.Builder>
    • mergeFrom

      public ShipmentRoute.Delay.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Delay.Builder>
      Throws:
      IOException
    • hasStartTime

      public boolean hasStartTime()
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      hasStartTime in interface ShipmentRoute.DelayOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTime in interface ShipmentRoute.DelayOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ShipmentRoute.Delay.Builder setStartTime(com.google.protobuf.Timestamp value)
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
    • setStartTime

      public ShipmentRoute.Delay.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
    • mergeStartTime

      public ShipmentRoute.Delay.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
    • clearStartTime

      public ShipmentRoute.Delay.Builder clearStartTime()
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Start of the delay.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface ShipmentRoute.DelayOrBuilder
    • hasDuration

      public boolean hasDuration()
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
      Specified by:
      hasDuration in interface ShipmentRoute.DelayOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
      Specified by:
      getDuration in interface ShipmentRoute.DelayOrBuilder
      Returns:
      The duration.
    • setDuration

      public ShipmentRoute.Delay.Builder setDuration(com.google.protobuf.Duration value)
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
    • setDuration

      public ShipmentRoute.Delay.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
    • mergeDuration

      public ShipmentRoute.Delay.Builder mergeDuration(com.google.protobuf.Duration value)
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
    • clearDuration

      public ShipmentRoute.Delay.Builder clearDuration()
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
    • getDurationBuilder

      public com.google.protobuf.Duration.Builder getDurationBuilder()
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Duration of the delay.
       
      .google.protobuf.Duration duration = 2;
      Specified by:
      getDurationOrBuilder in interface ShipmentRoute.DelayOrBuilder