Class LogEntry.Builder (1.55.0)

public static final class LogEntry.Builder extends GeneratedMessageV3.Builder<LogEntry.Builder> implements LogEntryOrBuilder

An individual log entry.

Protobuf type google.api.servicecontrol.v1.LogEntry

Implements

LogEntryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogEntry build()
Returns
Type Description
LogEntry

buildPartial()

public LogEntry buildPartial()
Returns
Type Description
LogEntry

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHttpRequest()

public LogEntry.Builder clearHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
Type Description
LogEntry.Builder

clearInsertId()

public LogEntry.Builder clearInsertId()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
Type Description
LogEntry.Builder

This builder for chaining.

clearLabels()

public LogEntry.Builder clearLabels()
Returns
Type Description
LogEntry.Builder

clearName()

public LogEntry.Builder clearName()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
Type Description
LogEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperation()

public LogEntry.Builder clearOperation()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
Type Description
LogEntry.Builder

clearPayload()

public LogEntry.Builder clearPayload()
Returns
Type Description
LogEntry.Builder

clearProtoPayload()

public LogEntry.Builder clearProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
Type Description
LogEntry.Builder

clearSeverity()

public LogEntry.Builder clearSeverity()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
Type Description
LogEntry.Builder

This builder for chaining.

clearSourceLocation()

public LogEntry.Builder clearSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
Type Description
LogEntry.Builder

clearStructPayload()

public LogEntry.Builder clearStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
Type Description
LogEntry.Builder

clearTextPayload()

public LogEntry.Builder clearTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
Type Description
LogEntry.Builder

This builder for chaining.

clearTimestamp()

public LogEntry.Builder clearTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
Type Description
LogEntry.Builder

clearTrace()

public LogEntry.Builder clearTrace()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
Type Description
LogEntry.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public LogEntry getDefaultInstanceForType()
Returns
Type Description
LogEntry

getDescriptorForType()

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

getHttpRequest()

public HttpRequest getHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
Type Description
HttpRequest

The httpRequest.

getHttpRequestBuilder()

public HttpRequest.Builder getHttpRequestBuilder()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
Type Description
HttpRequest.Builder

getHttpRequestOrBuilder()

public HttpRequestOrBuilder getHttpRequestOrBuilder()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
Type Description
HttpRequestOrBuilder

getInsertId()

public String getInsertId()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
Type Description
String

The insertId.

getInsertIdBytes()

public ByteString getInsertIdBytes()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
Type Description
ByteString

The bytes for insertId.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
Type Description
ByteString

The bytes for name.

getOperation()

public LogEntryOperation getOperation()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
Type Description
LogEntryOperation

The operation.

getOperationBuilder()

public LogEntryOperation.Builder getOperationBuilder()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
Type Description
LogEntryOperation.Builder

getOperationOrBuilder()

public LogEntryOperationOrBuilder getOperationOrBuilder()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
Type Description
LogEntryOperationOrBuilder

getPayloadCase()

public LogEntry.PayloadCase getPayloadCase()
Returns
Type Description
LogEntry.PayloadCase

getProtoPayload()

public Any getProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
Type Description
Any

The protoPayload.

getProtoPayloadBuilder()

public Any.Builder getProtoPayloadBuilder()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
Type Description
Builder

getProtoPayloadOrBuilder()

public AnyOrBuilder getProtoPayloadOrBuilder()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
Type Description
AnyOrBuilder

getSeverity()

public LogSeverity getSeverity()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
Type Description
com.google.logging.type.LogSeverity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getSourceLocation()

public LogEntrySourceLocation getSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
Type Description
LogEntrySourceLocation

The sourceLocation.

getSourceLocationBuilder()

public LogEntrySourceLocation.Builder getSourceLocationBuilder()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
Type Description
LogEntrySourceLocation.Builder

getSourceLocationOrBuilder()

public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
Type Description
LogEntrySourceLocationOrBuilder

getStructPayload()

public Struct getStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
Type Description
Struct

The structPayload.

getStructPayloadBuilder()

public Struct.Builder getStructPayloadBuilder()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
Type Description
Builder

getStructPayloadOrBuilder()

public StructOrBuilder getStructPayloadOrBuilder()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
Type Description
StructOrBuilder

getTextPayload()

public String getTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
Type Description
String

The textPayload.

getTextPayloadBytes()

public ByteString getTextPayloadBytes()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
Type Description
ByteString

The bytes for textPayload.

getTimestamp()

public Timestamp getTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
Type Description
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
Type Description
Builder

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
Type Description
TimestampOrBuilder

getTrace()

public String getTrace()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
Type Description
String

The trace.

getTraceBytes()

public ByteString getTraceBytes()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
Type Description
ByteString

The bytes for trace.

hasHttpRequest()

public boolean hasHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
Type Description
boolean

Whether the httpRequest field is set.

hasOperation()

public boolean hasOperation()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
Type Description
boolean

Whether the operation field is set.

hasProtoPayload()

public boolean hasProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
Type Description
boolean

Whether the protoPayload field is set.

hasSourceLocation()

public boolean hasSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
Type Description
boolean

Whether the sourceLocation field is set.

hasStructPayload()

public boolean hasStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
Type Description
boolean

Whether the structPayload field is set.

hasTextPayload()

public boolean hasTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
Type Description
boolean

Whether the textPayload field is set.

hasTimestamp()

public boolean hasTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
Type Description
boolean

Whether the timestamp field is set.

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(LogEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHttpRequest(HttpRequest value)

public LogEntry.Builder mergeHttpRequest(HttpRequest value)

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Parameter
Name Description
value HttpRequest
Returns
Type Description
LogEntry.Builder

mergeOperation(LogEntryOperation value)

public LogEntry.Builder mergeOperation(LogEntryOperation value)

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Parameter
Name Description
value LogEntryOperation
Returns
Type Description
LogEntry.Builder

mergeProtoPayload(Any value)

public LogEntry.Builder mergeProtoPayload(Any value)

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Parameter
Name Description
value Any
Returns
Type Description
LogEntry.Builder

mergeSourceLocation(LogEntrySourceLocation value)

public LogEntry.Builder mergeSourceLocation(LogEntrySourceLocation value)

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Parameter
Name Description
value LogEntrySourceLocation
Returns
Type Description
LogEntry.Builder

mergeStructPayload(Struct value)

public LogEntry.Builder mergeStructPayload(Struct value)

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Parameter
Name Description
value Struct
Returns
Type Description
LogEntry.Builder

mergeTimestamp(Timestamp value)

public LogEntry.Builder mergeTimestamp(Timestamp value)

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Parameter
Name Description
value Timestamp
Returns
Type Description
LogEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public LogEntry.Builder putAllLabels(Map<String,String> values)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
LogEntry.Builder

putLabels(String key, String value)

public LogEntry.Builder putLabels(String key, String value)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameters
Name Description
key String
value String
Returns
Type Description
LogEntry.Builder

removeLabels(String key)

public LogEntry.Builder removeLabels(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
Name Description
key String
Returns
Type Description
LogEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHttpRequest(HttpRequest value)

public LogEntry.Builder setHttpRequest(HttpRequest value)

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Parameter
Name Description
value HttpRequest
Returns
Type Description
LogEntry.Builder

setHttpRequest(HttpRequest.Builder builderForValue)

public LogEntry.Builder setHttpRequest(HttpRequest.Builder builderForValue)

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Parameter
Name Description
builderForValue HttpRequest.Builder
Returns
Type Description
LogEntry.Builder

setInsertId(String value)

public LogEntry.Builder setInsertId(String value)

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Parameter
Name Description
value String

The insertId to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setInsertIdBytes(ByteString value)

public LogEntry.Builder setInsertIdBytes(ByteString value)

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Parameter
Name Description
value ByteString

The bytes for insertId to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setName(String value)

public LogEntry.Builder setName(String value)

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LogEntry.Builder setNameBytes(ByteString value)

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setOperation(LogEntryOperation value)

public LogEntry.Builder setOperation(LogEntryOperation value)

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Parameter
Name Description
value LogEntryOperation
Returns
Type Description
LogEntry.Builder

setOperation(LogEntryOperation.Builder builderForValue)

public LogEntry.Builder setOperation(LogEntryOperation.Builder builderForValue)

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Parameter
Name Description
builderForValue LogEntryOperation.Builder
Returns
Type Description
LogEntry.Builder

setProtoPayload(Any value)

public LogEntry.Builder setProtoPayload(Any value)

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Parameter
Name Description
value Any
Returns
Type Description
LogEntry.Builder

setProtoPayload(Any.Builder builderForValue)

public LogEntry.Builder setProtoPayload(Any.Builder builderForValue)

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LogEntry.Builder

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

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

setSeverity(LogSeverity value)

public LogEntry.Builder setSeverity(LogSeverity value)

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Parameter
Name Description
value com.google.logging.type.LogSeverity

The severity to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setSeverityValue(int value)

public LogEntry.Builder setSeverityValue(int value)

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Parameter
Name Description
value int

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

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setSourceLocation(LogEntrySourceLocation value)

public LogEntry.Builder setSourceLocation(LogEntrySourceLocation value)

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Parameter
Name Description
value LogEntrySourceLocation
Returns
Type Description
LogEntry.Builder

setSourceLocation(LogEntrySourceLocation.Builder builderForValue)

public LogEntry.Builder setSourceLocation(LogEntrySourceLocation.Builder builderForValue)

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Parameter
Name Description
builderForValue LogEntrySourceLocation.Builder
Returns
Type Description
LogEntry.Builder

setStructPayload(Struct value)

public LogEntry.Builder setStructPayload(Struct value)

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Parameter
Name Description
value Struct
Returns
Type Description
LogEntry.Builder

setStructPayload(Struct.Builder builderForValue)

public LogEntry.Builder setStructPayload(Struct.Builder builderForValue)

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LogEntry.Builder

setTextPayload(String value)

public LogEntry.Builder setTextPayload(String value)

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Parameter
Name Description
value String

The textPayload to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setTextPayloadBytes(ByteString value)

public LogEntry.Builder setTextPayloadBytes(ByteString value)

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Parameter
Name Description
value ByteString

The bytes for textPayload to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setTimestamp(Timestamp value)

public LogEntry.Builder setTimestamp(Timestamp value)

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Parameter
Name Description
value Timestamp
Returns
Type Description
LogEntry.Builder

setTimestamp(Timestamp.Builder builderForValue)

public LogEntry.Builder setTimestamp(Timestamp.Builder builderForValue)

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LogEntry.Builder

setTrace(String value)

public LogEntry.Builder setTrace(String value)

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Parameter
Name Description
value String

The trace to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setTraceBytes(ByteString value)

public LogEntry.Builder setTraceBytes(ByteString value)

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Parameter
Name Description
value ByteString

The bytes for trace to set.

Returns
Type Description
LogEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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