public static abstract class TripUpdateError.Builder extends Object
Builds
TripUpdateError
instance.
Public Constructor Summary
Builder()
|
Public Method Summary
abstract TripUpdateError |
build()
|
TripUpdateError.Builder | |
abstract TripUpdateError.Builder |
setDurationMillis(long value)
Sets elapsed time from the start of the update event in milliseconds.
|
abstract TripUpdateError.Builder | |
abstract TripUpdateError.Builder |
setStatusCode(Status.Code value)
Sets gRPC status code.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public abstract TripUpdateError build ()
public TripUpdateError.Builder createFromException (Exception e)
Creates
TripUpdateError.Builder
from an Exception
.
Note:
setDurationMillis(long)
still needs to be called to before invoking
build()
.
public abstract TripUpdateError.Builder setDurationMillis (long value)
Sets elapsed time from the start of the update event in milliseconds.
public abstract TripUpdateError.Builder setMessage (String value)
Sets error message.
public abstract TripUpdateError.Builder setStatusCode (Status.Code value)
Sets gRPC status code.