public static final class ErrorSummary.Builder extends GeneratedMessage.Builder<ErrorSummary.Builder> implements ErrorSummaryOrBuilderA summary of errors by error code, plus a count and sample error log entries.
Protobuf type google.cloud.storagebatchoperations.v1.ErrorSummary
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ErrorSummary.BuilderImplements
ErrorSummaryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllErrorLogEntries(Iterable<? extends ErrorLogEntry> values)
public ErrorSummary.Builder addAllErrorLogEntries(Iterable<? extends ErrorLogEntry> values)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.storagebatchoperations.v1.ErrorLogEntry> |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
addErrorLogEntries(ErrorLogEntry value)
public ErrorSummary.Builder addErrorLogEntries(ErrorLogEntry value)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ErrorLogEntry |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
addErrorLogEntries(ErrorLogEntry.Builder builderForValue)
public ErrorSummary.Builder addErrorLogEntries(ErrorLogEntry.Builder builderForValue)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ErrorLogEntry.Builder |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
addErrorLogEntries(int index, ErrorLogEntry value)
public ErrorSummary.Builder addErrorLogEntries(int index, ErrorLogEntry value)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ErrorLogEntry |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
addErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)
public ErrorSummary.Builder addErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ErrorLogEntry.Builder |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
addErrorLogEntriesBuilder()
public ErrorLogEntry.Builder addErrorLogEntriesBuilder()Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ErrorLogEntry.Builder |
|
addErrorLogEntriesBuilder(int index)
public ErrorLogEntry.Builder addErrorLogEntriesBuilder(int index)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ErrorLogEntry.Builder |
|
build()
public ErrorSummary build()| Returns | |
|---|---|
| Type | Description |
ErrorSummary |
|
buildPartial()
public ErrorSummary buildPartial()| Returns | |
|---|---|
| Type | Description |
ErrorSummary |
|
clear()
public ErrorSummary.Builder clear()| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
clearErrorCode()
public ErrorSummary.Builder clearErrorCode()Required. The canonical error code.
.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
This builder for chaining. |
clearErrorCount()
public ErrorSummary.Builder clearErrorCount() Required. Number of errors encountered per error_code.
int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
This builder for chaining. |
clearErrorLogEntries()
public ErrorSummary.Builder clearErrorLogEntries()Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
getDefaultInstanceForType()
public ErrorSummary getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ErrorSummary |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getErrorCode()
public Code getErrorCode()Required. The canonical error code.
.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. The canonical error code.
.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. Number of errors encountered per error_code.
int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The errorCount. |
getErrorLogEntries(int index)
public ErrorLogEntry getErrorLogEntries(int index)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ErrorLogEntry |
|
getErrorLogEntriesBuilder(int index)
public ErrorLogEntry.Builder getErrorLogEntriesBuilder(int index)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ErrorLogEntry.Builder |
|
getErrorLogEntriesBuilderList()
public List<ErrorLogEntry.Builder> getErrorLogEntriesBuilderList()Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getErrorLogEntriesCount()
public int getErrorLogEntriesCount()Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getErrorLogEntriesList()
public List<ErrorLogEntry> getErrorLogEntriesList()Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<ErrorLogEntry> |
|
getErrorLogEntriesOrBuilder(int index)
public ErrorLogEntryOrBuilder getErrorLogEntriesOrBuilder(int index)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ErrorLogEntryOrBuilder |
|
getErrorLogEntriesOrBuilderList()
public List<? extends ErrorLogEntryOrBuilder> getErrorLogEntriesOrBuilderList()Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.storagebatchoperations.v1.ErrorLogEntryOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ErrorSummary other)
public ErrorSummary.Builder mergeFrom(ErrorSummary other)| Parameter | |
|---|---|
| Name | Description |
other |
ErrorSummary |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ErrorSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ErrorSummary.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
removeErrorLogEntries(int index)
public ErrorSummary.Builder removeErrorLogEntries(int index)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
setErrorCode(Code value)
public ErrorSummary.Builder setErrorCode(Code value)Required. The canonical error code.
.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.CodeThe errorCode to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
This builder for chaining. |
setErrorCodeValue(int value)
public ErrorSummary.Builder setErrorCodeValue(int value)Required. The canonical error code.
.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for errorCode to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
This builder for chaining. |
setErrorCount(long value)
public ErrorSummary.Builder setErrorCount(long value) Required. Number of errors encountered per error_code.
int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe errorCount to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
This builder for chaining. |
setErrorLogEntries(int index, ErrorLogEntry value)
public ErrorSummary.Builder setErrorLogEntries(int index, ErrorLogEntry value)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ErrorLogEntry |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|
setErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)
public ErrorSummary.Builder setErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)Required. Sample error logs.
repeated .google.cloud.storagebatchoperations.v1.ErrorLogEntry error_log_entries = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ErrorLogEntry.Builder |
| Returns | |
|---|---|
| Type | Description |
ErrorSummary.Builder |
|