Class WriteLogEntriesPartialErrors.Builder (3.19.0)

public static final class WriteLogEntriesPartialErrors.Builder extends GeneratedMessageV3.Builder<WriteLogEntriesPartialErrors.Builder> implements WriteLogEntriesPartialErrorsOrBuilder

Error details for WriteLogEntries with partial success.

Protobuf type google.logging.v2.WriteLogEntriesPartialErrors

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WriteLogEntriesPartialErrors build()
Returns
Type Description
WriteLogEntriesPartialErrors

buildPartial()

public WriteLogEntriesPartialErrors buildPartial()
Returns
Type Description
WriteLogEntriesPartialErrors

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLogEntryErrors()

public WriteLogEntriesPartialErrors.Builder clearLogEntryErrors()
Returns
Type Description
WriteLogEntriesPartialErrors.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WriteLogEntriesPartialErrors.Builder clone()
Returns
Type Description
WriteLogEntriesPartialErrors.Builder
Overrides

containsLogEntryErrors(int key)

public boolean containsLogEntryErrors(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
Name Description
key int
Returns
Type Description
boolean

getDefaultInstanceForType()

public WriteLogEntriesPartialErrors getDefaultInstanceForType()
Returns
Type Description
WriteLogEntriesPartialErrors

getDescriptorForType()

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

getLogEntryErrors() (deprecated)

public Map<Integer,Status> getLogEntryErrors()
Returns
Type Description
Map<Integer,com.google.rpc.Status>

getLogEntryErrorsCount()

public int getLogEntryErrorsCount()

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Returns
Type Description
int

getLogEntryErrorsMap()

public Map<Integer,Status> getLogEntryErrorsMap()

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Returns
Type Description
Map<Integer,com.google.rpc.Status>

getLogEntryErrorsOrDefault(int key, Status defaultValue)

public Status getLogEntryErrorsOrDefault(int key, Status defaultValue)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameters
Name Description
key int
defaultValue com.google.rpc.Status
Returns
Type Description
com.google.rpc.Status

getLogEntryErrorsOrThrow(int key)

public Status getLogEntryErrorsOrThrow(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
Name Description
key int
Returns
Type Description
com.google.rpc.Status

getMutableLogEntryErrors() (deprecated)

public Map<Integer,Status> getMutableLogEntryErrors()

Use alternate mutation accessors instead.

Returns
Type Description
Map<Integer,com.google.rpc.Status>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WriteLogEntriesPartialErrors other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLogEntryErrors(Map<Integer,Status> values)

public WriteLogEntriesPartialErrors.Builder putAllLogEntryErrors(Map<Integer,Status> values)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
Name Description
values Map<Integer,com.google.rpc.Status>
Returns
Type Description
WriteLogEntriesPartialErrors.Builder

putLogEntryErrors(int key, Status value)

public WriteLogEntriesPartialErrors.Builder putLogEntryErrors(int key, Status value)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameters
Name Description
key int
value com.google.rpc.Status
Returns
Type Description
WriteLogEntriesPartialErrors.Builder

putLogEntryErrorsBuilderIfAbsent(int key)

public Status.Builder putLogEntryErrorsBuilderIfAbsent(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
Name Description
key int
Returns
Type Description
com.google.rpc.Status.Builder

removeLogEntryErrors(int key)

public WriteLogEntriesPartialErrors.Builder removeLogEntryErrors(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
Name Description
key int
Returns
Type Description
WriteLogEntriesPartialErrors.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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