Class ErrorLogEntry.Builder (0.23.0)

public static final class ErrorLogEntry.Builder extends GeneratedMessage.Builder<ErrorLogEntry.Builder> implements ErrorLogEntryOrBuilder

An entry describing an error that has occurred.

Protobuf type google.cloud.storagebatchoperations.v1.ErrorLogEntry

Static Methods

getDescriptor()

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

Methods

addAllErrorDetails(Iterable<String> values)

public ErrorLogEntry.Builder addAllErrorDetails(Iterable<String> values)

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The errorDetails to add.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

addErrorDetails(String value)

public ErrorLogEntry.Builder addErrorDetails(String value)

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The errorDetails to add.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

addErrorDetailsBytes(ByteString value)

public ErrorLogEntry.Builder addErrorDetailsBytes(ByteString value)

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the errorDetails to add.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

build()

public ErrorLogEntry build()
Returns
Type Description
ErrorLogEntry

buildPartial()

public ErrorLogEntry buildPartial()
Returns
Type Description
ErrorLogEntry

clear()

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

clearErrorDetails()

public ErrorLogEntry.Builder clearErrorDetails()

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

clearObjectUri()

public ErrorLogEntry.Builder clearObjectUri()

Required. Output only. Object URL. e.g. gs://my_bucket/object.txt

string object_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

getDefaultInstanceForType()

public ErrorLogEntry getDefaultInstanceForType()
Returns
Type Description
ErrorLogEntry

getDescriptorForType()

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

getErrorDetails(int index)

public String getErrorDetails(int index)

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The errorDetails at the given index.

getErrorDetailsBytes(int index)

public ByteString getErrorDetailsBytes(int index)

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the errorDetails at the given index.

getErrorDetailsCount()

public int getErrorDetailsCount()

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of errorDetails.

getErrorDetailsList()

public ProtocolStringList getErrorDetailsList()

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the errorDetails.

getObjectUri()

public String getObjectUri()

Required. Output only. Object URL. e.g. gs://my_bucket/object.txt

string object_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The objectUri.

getObjectUriBytes()

public ByteString getObjectUriBytes()

Required. Output only. Object URL. e.g. gs://my_bucket/object.txt

string object_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for objectUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorLogEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setErrorDetails(int index, String value)

public ErrorLogEntry.Builder setErrorDetails(int index, String value)

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

repeated string error_details = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The errorDetails to set.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

setObjectUri(String value)

public ErrorLogEntry.Builder setObjectUri(String value)

Required. Output only. Object URL. e.g. gs://my_bucket/object.txt

string object_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The objectUri to set.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

setObjectUriBytes(ByteString value)

public ErrorLogEntry.Builder setObjectUriBytes(ByteString value)

Required. Output only. Object URL. e.g. gs://my_bucket/object.txt

string object_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for objectUri to set.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.