Class DependencyErrorDetail.Builder (0.36.0)

public static final class DependencyErrorDetail.Builder extends GeneratedMessage.Builder<DependencyErrorDetail.Builder> implements DependencyErrorDetailOrBuilder

Details describing error condition of a dependency.

Protobuf type google.cloud.apihub.v1.DependencyErrorDetail

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DependencyErrorDetail build()
Returns
Type Description
DependencyErrorDetail

buildPartial()

public DependencyErrorDetail buildPartial()
Returns
Type Description
DependencyErrorDetail

clear()

public DependencyErrorDetail.Builder clear()
Returns
Type Description
DependencyErrorDetail.Builder
Overrides

clearError()

public DependencyErrorDetail.Builder clearError()

Optional. Error in the dependency.

.google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DependencyErrorDetail.Builder

This builder for chaining.

clearErrorTime()

public DependencyErrorDetail.Builder clearErrorTime()

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DependencyErrorDetail.Builder

getDefaultInstanceForType()

public DependencyErrorDetail getDefaultInstanceForType()
Returns
Type Description
DependencyErrorDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getError()

public DependencyErrorDetail.Error getError()

Optional. Error in the dependency.

.google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DependencyErrorDetail.Error

The error.

getErrorTime()

public Timestamp getErrorTime()

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The errorTime.

getErrorTimeBuilder()

public Timestamp.Builder getErrorTimeBuilder()

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getErrorTimeOrBuilder()

public TimestampOrBuilder getErrorTimeOrBuilder()

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getErrorValue()

public int getErrorValue()

Optional. Error in the dependency.

.google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for error.

hasErrorTime()

public boolean hasErrorTime()

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the errorTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeErrorTime(Timestamp value)

public DependencyErrorDetail.Builder mergeErrorTime(Timestamp value)

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
DependencyErrorDetail.Builder

mergeFrom(DependencyErrorDetail other)

public DependencyErrorDetail.Builder mergeFrom(DependencyErrorDetail other)
Parameter
Name Description
other DependencyErrorDetail
Returns
Type Description
DependencyErrorDetail.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DependencyErrorDetail.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DependencyErrorDetail.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DependencyErrorDetail.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DependencyErrorDetail.Builder
Overrides

setError(DependencyErrorDetail.Error value)

public DependencyErrorDetail.Builder setError(DependencyErrorDetail.Error value)

Optional. Error in the dependency.

.google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DependencyErrorDetail.Error

The error to set.

Returns
Type Description
DependencyErrorDetail.Builder

This builder for chaining.

setErrorTime(Timestamp value)

public DependencyErrorDetail.Builder setErrorTime(Timestamp value)

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
DependencyErrorDetail.Builder

setErrorTime(Timestamp.Builder builderForValue)

public DependencyErrorDetail.Builder setErrorTime(Timestamp.Builder builderForValue)

Optional. Timestamp at which the error was found.

.google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DependencyErrorDetail.Builder

setErrorValue(int value)

public DependencyErrorDetail.Builder setErrorValue(int value)

Optional. Error in the dependency.

.google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for error to set.

Returns
Type Description
DependencyErrorDetail.Builder

This builder for chaining.