Class TransferTypes.ErrorSummary.Builder (1.41.0)

public static final class TransferTypes.ErrorSummary.Builder extends GeneratedMessageV3.Builder<TransferTypes.ErrorSummary.Builder> implements TransferTypes.ErrorSummaryOrBuilder

A summary of errors by error code, plus a count and sample error log entries.

Protobuf type google.storagetransfer.v1.ErrorSummary

Static Methods

getDescriptor()

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

Methods

addAllErrorLogEntries(Iterable<? extends TransferTypes.ErrorLogEntry> values)

public TransferTypes.ErrorSummary.Builder addAllErrorLogEntries(Iterable<? extends TransferTypes.ErrorLogEntry> values)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
values Iterable<? extends com.google.storagetransfer.v1.proto.TransferTypes.ErrorLogEntry>
Returns
Type Description
TransferTypes.ErrorSummary.Builder

addErrorLogEntries(TransferTypes.ErrorLogEntry value)

public TransferTypes.ErrorSummary.Builder addErrorLogEntries(TransferTypes.ErrorLogEntry value)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
value TransferTypes.ErrorLogEntry
Returns
Type Description
TransferTypes.ErrorSummary.Builder

addErrorLogEntries(TransferTypes.ErrorLogEntry.Builder builderForValue)

public TransferTypes.ErrorSummary.Builder addErrorLogEntries(TransferTypes.ErrorLogEntry.Builder builderForValue)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
builderForValue TransferTypes.ErrorLogEntry.Builder
Returns
Type Description
TransferTypes.ErrorSummary.Builder

addErrorLogEntries(int index, TransferTypes.ErrorLogEntry value)

public TransferTypes.ErrorSummary.Builder addErrorLogEntries(int index, TransferTypes.ErrorLogEntry value)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
value TransferTypes.ErrorLogEntry
Returns
Type Description
TransferTypes.ErrorSummary.Builder

addErrorLogEntries(int index, TransferTypes.ErrorLogEntry.Builder builderForValue)

public TransferTypes.ErrorSummary.Builder addErrorLogEntries(int index, TransferTypes.ErrorLogEntry.Builder builderForValue)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
builderForValue TransferTypes.ErrorLogEntry.Builder
Returns
Type Description
TransferTypes.ErrorSummary.Builder

addErrorLogEntriesBuilder()

public TransferTypes.ErrorLogEntry.Builder addErrorLogEntriesBuilder()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

addErrorLogEntriesBuilder(int index)

public TransferTypes.ErrorLogEntry.Builder addErrorLogEntriesBuilder(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.ErrorSummary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

build()

public TransferTypes.ErrorSummary build()
Returns
Type Description
TransferTypes.ErrorSummary

buildPartial()

public TransferTypes.ErrorSummary buildPartial()
Returns
Type Description
TransferTypes.ErrorSummary

clear()

public TransferTypes.ErrorSummary.Builder clear()
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

clearErrorCode()

public TransferTypes.ErrorSummary.Builder clearErrorCode()

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.ErrorSummary.Builder

This builder for chaining.

clearErrorCount()

public TransferTypes.ErrorSummary.Builder clearErrorCount()

Required. Count of this type of error.

int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.ErrorSummary.Builder

This builder for chaining.

clearErrorLogEntries()

public TransferTypes.ErrorSummary.Builder clearErrorLogEntries()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
TransferTypes.ErrorSummary.Builder

clearField(Descriptors.FieldDescriptor field)

public TransferTypes.ErrorSummary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferTypes.ErrorSummary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

clone()

public TransferTypes.ErrorSummary.Builder clone()
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

getDefaultInstanceForType()

public TransferTypes.ErrorSummary getDefaultInstanceForType()
Returns
Type Description
TransferTypes.ErrorSummary

getDescriptorForType()

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

getErrorCode()

public Code getErrorCode()

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.rpc.Code

The errorCode.

getErrorCodeValue()

public int getErrorCodeValue()

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for errorCode.

getErrorCount()

public long getErrorCount()

Required. Count of this type of error.

int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The errorCount.

getErrorLogEntries(int index)

public TransferTypes.ErrorLogEntry getErrorLogEntries(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
TransferTypes.ErrorLogEntry

getErrorLogEntriesBuilder(int index)

public TransferTypes.ErrorLogEntry.Builder getErrorLogEntriesBuilder(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

getErrorLogEntriesBuilderList()

public List<TransferTypes.ErrorLogEntry.Builder> getErrorLogEntriesBuilderList()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
List<Builder>

getErrorLogEntriesCount()

public int getErrorLogEntriesCount()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
int

getErrorLogEntriesList()

public List<TransferTypes.ErrorLogEntry> getErrorLogEntriesList()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
List<ErrorLogEntry>

getErrorLogEntriesOrBuilder(int index)

public TransferTypes.ErrorLogEntryOrBuilder getErrorLogEntriesOrBuilder(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
TransferTypes.ErrorLogEntryOrBuilder

getErrorLogEntriesOrBuilderList()

public List<? extends TransferTypes.ErrorLogEntryOrBuilder> getErrorLogEntriesOrBuilderList()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
List<? extends com.google.storagetransfer.v1.proto.TransferTypes.ErrorLogEntryOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferTypes.ErrorSummary other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.ErrorSummary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

removeErrorLogEntries(int index)

public TransferTypes.ErrorSummary.Builder removeErrorLogEntries(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
TransferTypes.ErrorSummary.Builder

setErrorCode(Code value)

public TransferTypes.ErrorSummary.Builder setErrorCode(Code value)

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.rpc.Code

The errorCode to set.

Returns
Type Description
TransferTypes.ErrorSummary.Builder

This builder for chaining.

setErrorCodeValue(int value)

public TransferTypes.ErrorSummary.Builder setErrorCodeValue(int value)

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
TransferTypes.ErrorSummary.Builder

This builder for chaining.

setErrorCount(long value)

public TransferTypes.ErrorSummary.Builder setErrorCount(long value)

Required. Count of this type of error.

int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The errorCount to set.

Returns
Type Description
TransferTypes.ErrorSummary.Builder

This builder for chaining.

setErrorLogEntries(int index, TransferTypes.ErrorLogEntry value)

public TransferTypes.ErrorSummary.Builder setErrorLogEntries(int index, TransferTypes.ErrorLogEntry value)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
value TransferTypes.ErrorLogEntry
Returns
Type Description
TransferTypes.ErrorSummary.Builder

setErrorLogEntries(int index, TransferTypes.ErrorLogEntry.Builder builderForValue)

public TransferTypes.ErrorSummary.Builder setErrorLogEntries(int index, TransferTypes.ErrorLogEntry.Builder builderForValue)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
builderForValue TransferTypes.ErrorLogEntry.Builder
Returns
Type Description
TransferTypes.ErrorSummary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.ErrorSummary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransferTypes.ErrorSummary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.ErrorSummary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferTypes.ErrorSummary.Builder
Overrides