Class LogSplit.Builder (3.24.0)

public static final class LogSplit.Builder extends GeneratedMessage.Builder<LogSplit.Builder> implements LogSplitOrBuilder

Additional information used to correlate multiple log entries. Used when a single LogEntry would exceed the Google Cloud Logging size limit and is split across multiple log entries.

Protobuf type google.logging.v2.LogSplit

Implements

LogSplitOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public LogSplit build()
Returns
Type Description
LogSplit

buildPartial()

public LogSplit buildPartial()
Returns
Type Description
LogSplit

clear()

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

clearIndex()

public LogSplit.Builder clearIndex()

The index of this LogEntry in the sequence of split log entries. Log entries are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.

int32 index = 2;

Returns
Type Description
LogSplit.Builder

This builder for chaining.

clearTotalSplits()

public LogSplit.Builder clearTotalSplits()

The total number of log entries that the original LogEntry was split into.

int32 total_splits = 3;

Returns
Type Description
LogSplit.Builder

This builder for chaining.

clearUid()

public LogSplit.Builder clearUid()

A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.

string uid = 1;

Returns
Type Description
LogSplit.Builder

This builder for chaining.

getDefaultInstanceForType()

public LogSplit getDefaultInstanceForType()
Returns
Type Description
LogSplit

getDescriptorForType()

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

getIndex()

public int getIndex()

The index of this LogEntry in the sequence of split log entries. Log entries are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.

int32 index = 2;

Returns
Type Description
int

The index.

getTotalSplits()

public int getTotalSplits()

The total number of log entries that the original LogEntry was split into.

int32 total_splits = 3;

Returns
Type Description
int

The totalSplits.

getUid()

public String getUid()

A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.

string uid = 1;

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.

string uid = 1;

Returns
Type Description
ByteString

The bytes for uid.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LogSplit other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setIndex(int value)

public LogSplit.Builder setIndex(int value)

The index of this LogEntry in the sequence of split log entries. Log entries are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.

int32 index = 2;

Parameter
Name Description
value int

The index to set.

Returns
Type Description
LogSplit.Builder

This builder for chaining.

setTotalSplits(int value)

public LogSplit.Builder setTotalSplits(int value)

The total number of log entries that the original LogEntry was split into.

int32 total_splits = 3;

Parameter
Name Description
value int

The totalSplits to set.

Returns
Type Description
LogSplit.Builder

This builder for chaining.

setUid(String value)

public LogSplit.Builder setUid(String value)

A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.

string uid = 1;

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
LogSplit.Builder

This builder for chaining.

setUidBytes(ByteString value)

public LogSplit.Builder setUidBytes(ByteString value)

A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.

string uid = 1;

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
LogSplit.Builder

This builder for chaining.