public static final class LogEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder> implements LogEntryOrBuilder
An individual entry in a log.Protobuf type
google.logging.v2.LogEntry| Modifier and Type | Method and Description |
|---|---|
LogEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LogEntry |
build() |
LogEntry |
buildPartial() |
LogEntry.Builder |
clear() |
LogEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LogEntry.Builder |
clearHttpRequest()
Optional.
|
LogEntry.Builder |
clearInsertId()
Optional.
|
LogEntry.Builder |
clearJsonPayload()
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
LogEntry.Builder |
clearLabels() |
LogEntry.Builder |
clearLogName()
Required.
|
LogEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LogEntry.Builder |
clearOperation()
Optional.
|
LogEntry.Builder |
clearPayload() |
LogEntry.Builder |
clearProtoPayload()
The log entry payload, represented as a protocol buffer.
|
LogEntry.Builder |
clearReceiveTimestamp()
Output only.
|
LogEntry.Builder |
clearResource()
Required.
|
LogEntry.Builder |
clearSeverity()
Optional.
|
LogEntry.Builder |
clearSourceLocation()
Optional.
|
LogEntry.Builder |
clearTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
|
LogEntry.Builder |
clearTimestamp()
Optional.
|
LogEntry.Builder |
clearTrace()
Optional.
|
LogEntry.Builder |
clone() |
boolean |
containsLabels(java.lang.String key)
Optional.
|
LogEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.logging.type.HttpRequest |
getHttpRequest()
Optional.
|
com.google.logging.type.HttpRequest.Builder |
getHttpRequestBuilder()
Optional.
|
com.google.logging.type.HttpRequestOrBuilder |
getHttpRequestOrBuilder()
Optional.
|
java.lang.String |
getInsertId()
Optional.
|
com.google.protobuf.ByteString |
getInsertIdBytes()
Optional.
|
com.google.protobuf.Struct |
getJsonPayload()
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
com.google.protobuf.Struct.Builder |
getJsonPayloadBuilder()
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
com.google.protobuf.StructOrBuilder |
getJsonPayloadOrBuilder()
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Optional.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
Optional.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
Optional.
|
java.lang.String |
getLogName()
Required.
|
LogNameOneof |
getLogNameAsLogNameOneof() |
com.google.protobuf.ByteString |
getLogNameBytes()
Required.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
Deprecated.
|
LogEntryOperation |
getOperation()
Optional.
|
LogEntryOperation.Builder |
getOperationBuilder()
Optional.
|
LogEntryOperationOrBuilder |
getOperationOrBuilder()
Optional.
|
LogEntry.PayloadCase |
getPayloadCase() |
com.google.protobuf.Any |
getProtoPayload()
The log entry payload, represented as a protocol buffer.
|
com.google.protobuf.Any.Builder |
getProtoPayloadBuilder()
The log entry payload, represented as a protocol buffer.
|
com.google.protobuf.AnyOrBuilder |
getProtoPayloadOrBuilder()
The log entry payload, represented as a protocol buffer.
|
com.google.protobuf.Timestamp |
getReceiveTimestamp()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getReceiveTimestampBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getReceiveTimestampOrBuilder()
Output only.
|
com.google.api.MonitoredResource |
getResource()
Required.
|
com.google.api.MonitoredResource.Builder |
getResourceBuilder()
Required.
|
com.google.api.MonitoredResourceOrBuilder |
getResourceOrBuilder()
Required.
|
com.google.logging.type.LogSeverity |
getSeverity()
Optional.
|
int |
getSeverityValue()
Optional.
|
LogEntrySourceLocation |
getSourceLocation()
Optional.
|
LogEntrySourceLocation.Builder |
getSourceLocationBuilder()
Optional.
|
LogEntrySourceLocationOrBuilder |
getSourceLocationOrBuilder()
Optional.
|
java.lang.String |
getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
|
com.google.protobuf.ByteString |
getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
|
com.google.protobuf.Timestamp |
getTimestamp()
Optional.
|
com.google.protobuf.Timestamp.Builder |
getTimestampBuilder()
Optional.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
Optional.
|
java.lang.String |
getTrace()
Optional.
|
com.google.protobuf.ByteString |
getTraceBytes()
Optional.
|
boolean |
hasHttpRequest()
Optional.
|
boolean |
hasOperation()
Optional.
|
boolean |
hasReceiveTimestamp()
Output only.
|
boolean |
hasResource()
Required.
|
boolean |
hasSourceLocation()
Optional.
|
boolean |
hasTimestamp()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
LogEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LogEntry.Builder |
mergeFrom(LogEntry other) |
LogEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
LogEntry.Builder |
mergeHttpRequest(com.google.logging.type.HttpRequest value)
Optional.
|
LogEntry.Builder |
mergeJsonPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
LogEntry.Builder |
mergeOperation(LogEntryOperation value)
Optional.
|
LogEntry.Builder |
mergeProtoPayload(com.google.protobuf.Any value)
The log entry payload, represented as a protocol buffer.
|
LogEntry.Builder |
mergeReceiveTimestamp(com.google.protobuf.Timestamp value)
Output only.
|
LogEntry.Builder |
mergeResource(com.google.api.MonitoredResource value)
Required.
|
LogEntry.Builder |
mergeSourceLocation(LogEntrySourceLocation value)
Optional.
|
LogEntry.Builder |
mergeTimestamp(com.google.protobuf.Timestamp value)
Optional.
|
LogEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LogEntry.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Optional.
|
LogEntry.Builder |
putLabels(java.lang.String key,
java.lang.String value)
Optional.
|
LogEntry.Builder |
removeLabels(java.lang.String key)
Optional.
|
LogEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LogEntry.Builder |
setHttpRequest(com.google.logging.type.HttpRequest.Builder builderForValue)
Optional.
|
LogEntry.Builder |
setHttpRequest(com.google.logging.type.HttpRequest value)
Optional.
|
LogEntry.Builder |
setInsertId(java.lang.String value)
Optional.
|
LogEntry.Builder |
setInsertIdBytes(com.google.protobuf.ByteString value)
Optional.
|
LogEntry.Builder |
setJsonPayload(com.google.protobuf.Struct.Builder builderForValue)
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
LogEntry.Builder |
setJsonPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is
expressed as a JSON object.
|
LogEntry.Builder |
setLogName(java.lang.String value)
Required.
|
LogEntry.Builder |
setLogNameBytes(com.google.protobuf.ByteString value)
Required.
|
LogEntry.Builder |
setLogNameWithLogNameOneof(LogNameOneof value) |
LogEntry.Builder |
setOperation(LogEntryOperation.Builder builderForValue)
Optional.
|
LogEntry.Builder |
setOperation(LogEntryOperation value)
Optional.
|
LogEntry.Builder |
setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
The log entry payload, represented as a protocol buffer.
|
LogEntry.Builder |
setProtoPayload(com.google.protobuf.Any value)
The log entry payload, represented as a protocol buffer.
|
LogEntry.Builder |
setReceiveTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
LogEntry.Builder |
setReceiveTimestamp(com.google.protobuf.Timestamp value)
Output only.
|
LogEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
LogEntry.Builder |
setResource(com.google.api.MonitoredResource.Builder builderForValue)
Required.
|
LogEntry.Builder |
setResource(com.google.api.MonitoredResource value)
Required.
|
LogEntry.Builder |
setSeverity(com.google.logging.type.LogSeverity value)
Optional.
|
LogEntry.Builder |
setSeverityValue(int value)
Optional.
|
LogEntry.Builder |
setSourceLocation(LogEntrySourceLocation.Builder builderForValue)
Optional.
|
LogEntry.Builder |
setSourceLocation(LogEntrySourceLocation value)
Optional.
|
LogEntry.Builder |
setTextPayload(java.lang.String value)
The log entry payload, represented as a Unicode string (UTF-8).
|
LogEntry.Builder |
setTextPayloadBytes(com.google.protobuf.ByteString value)
The log entry payload, represented as a Unicode string (UTF-8).
|
LogEntry.Builder |
setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Optional.
|
LogEntry.Builder |
setTimestamp(com.google.protobuf.Timestamp value)
Optional.
|
LogEntry.Builder |
setTrace(java.lang.String value)
Optional.
|
LogEntry.Builder |
setTraceBytes(com.google.protobuf.ByteString value)
Optional.
|
LogEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LogEntry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LogEntry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LogEntry.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>public LogEntry.Builder mergeFrom(LogEntry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public LogEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>java.io.IOExceptionpublic LogEntry.PayloadCase getPayloadCase()
getPayloadCase in interface LogEntryOrBuilderpublic LogEntry.Builder clearPayload()
public java.lang.String getLogName()
Required. The resource name of the log to which this log entry belongs:
"projects/[PROJECT_ID]/logs/[LOG_ID]"
"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
"folders/[FOLDER_ID]/logs/[LOG_ID]"
`[LOG_ID]` must be URL-encoded within `log_name`. Example:
`"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
`[LOG_ID]` must be less than 512 characters long and can only include the
following characters: upper and lower case alphanumeric characters,
forward-slash, underscore, hyphen, and period.
For backward compatibility, if `log_name` begins with a forward-slash, such
as `/projects/...`, then the log entry is ingested as usual but the
forward-slash is removed. Listing the log entry will not show the leading
slash and filtering for a log name with a leading slash will never return
any results.
string log_name = 12;getLogName in interface LogEntryOrBuilderpublic com.google.protobuf.ByteString getLogNameBytes()
Required. The resource name of the log to which this log entry belongs:
"projects/[PROJECT_ID]/logs/[LOG_ID]"
"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
"folders/[FOLDER_ID]/logs/[LOG_ID]"
`[LOG_ID]` must be URL-encoded within `log_name`. Example:
`"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
`[LOG_ID]` must be less than 512 characters long and can only include the
following characters: upper and lower case alphanumeric characters,
forward-slash, underscore, hyphen, and period.
For backward compatibility, if `log_name` begins with a forward-slash, such
as `/projects/...`, then the log entry is ingested as usual but the
forward-slash is removed. Listing the log entry will not show the leading
slash and filtering for a log name with a leading slash will never return
any results.
string log_name = 12;getLogNameBytes in interface LogEntryOrBuilderpublic LogEntry.Builder setLogName(java.lang.String value)
Required. The resource name of the log to which this log entry belongs:
"projects/[PROJECT_ID]/logs/[LOG_ID]"
"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
"folders/[FOLDER_ID]/logs/[LOG_ID]"
`[LOG_ID]` must be URL-encoded within `log_name`. Example:
`"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
`[LOG_ID]` must be less than 512 characters long and can only include the
following characters: upper and lower case alphanumeric characters,
forward-slash, underscore, hyphen, and period.
For backward compatibility, if `log_name` begins with a forward-slash, such
as `/projects/...`, then the log entry is ingested as usual but the
forward-slash is removed. Listing the log entry will not show the leading
slash and filtering for a log name with a leading slash will never return
any results.
string log_name = 12;public LogEntry.Builder clearLogName()
Required. The resource name of the log to which this log entry belongs:
"projects/[PROJECT_ID]/logs/[LOG_ID]"
"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
"folders/[FOLDER_ID]/logs/[LOG_ID]"
`[LOG_ID]` must be URL-encoded within `log_name`. Example:
`"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
`[LOG_ID]` must be less than 512 characters long and can only include the
following characters: upper and lower case alphanumeric characters,
forward-slash, underscore, hyphen, and period.
For backward compatibility, if `log_name` begins with a forward-slash, such
as `/projects/...`, then the log entry is ingested as usual but the
forward-slash is removed. Listing the log entry will not show the leading
slash and filtering for a log name with a leading slash will never return
any results.
string log_name = 12;public LogEntry.Builder setLogNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the log to which this log entry belongs:
"projects/[PROJECT_ID]/logs/[LOG_ID]"
"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
"folders/[FOLDER_ID]/logs/[LOG_ID]"
`[LOG_ID]` must be URL-encoded within `log_name`. Example:
`"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
`[LOG_ID]` must be less than 512 characters long and can only include the
following characters: upper and lower case alphanumeric characters,
forward-slash, underscore, hyphen, and period.
For backward compatibility, if `log_name` begins with a forward-slash, such
as `/projects/...`, then the log entry is ingested as usual but the
forward-slash is removed. Listing the log entry will not show the leading
slash and filtering for a log name with a leading slash will never return
any results.
string log_name = 12;public boolean hasResource()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;hasResource in interface LogEntryOrBuilderpublic com.google.api.MonitoredResource getResource()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;getResource in interface LogEntryOrBuilderpublic LogEntry.Builder setResource(com.google.api.MonitoredResource value)
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;public LogEntry.Builder setResource(com.google.api.MonitoredResource.Builder builderForValue)
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;public LogEntry.Builder mergeResource(com.google.api.MonitoredResource value)
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;public LogEntry.Builder clearResource()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;public com.google.api.MonitoredResource.Builder getResourceBuilder()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;getResourceOrBuilder in interface LogEntryOrBuilderpublic com.google.protobuf.Any getProtoPayload()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;getProtoPayload in interface LogEntryOrBuilderpublic LogEntry.Builder setProtoPayload(com.google.protobuf.Any value)
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;public LogEntry.Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;public LogEntry.Builder mergeProtoPayload(com.google.protobuf.Any value)
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;public LogEntry.Builder clearProtoPayload()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;public com.google.protobuf.Any.Builder getProtoPayloadBuilder()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;getProtoPayloadOrBuilder in interface LogEntryOrBuilderpublic java.lang.String getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;getTextPayload in interface LogEntryOrBuilderpublic com.google.protobuf.ByteString getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;getTextPayloadBytes in interface LogEntryOrBuilderpublic LogEntry.Builder setTextPayload(java.lang.String value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;public LogEntry.Builder clearTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;public LogEntry.Builder setTextPayloadBytes(com.google.protobuf.ByteString value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;public com.google.protobuf.Struct getJsonPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;getJsonPayload in interface LogEntryOrBuilderpublic LogEntry.Builder setJsonPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;public LogEntry.Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;public LogEntry.Builder mergeJsonPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;public LogEntry.Builder clearJsonPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;public com.google.protobuf.Struct.Builder getJsonPayloadBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;getJsonPayloadOrBuilder in interface LogEntryOrBuilderpublic boolean hasTimestamp()
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;hasTimestamp in interface LogEntryOrBuilderpublic com.google.protobuf.Timestamp getTimestamp()
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;getTimestamp in interface LogEntryOrBuilderpublic LogEntry.Builder setTimestamp(com.google.protobuf.Timestamp value)
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;public LogEntry.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;public LogEntry.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;public LogEntry.Builder clearTimestamp()
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
Optional. The time the event described by the log entry occurred. If omitted in a new log entry, Stackdriver Logging will insert the time the log entry is received. Stackdriver Logging might reject log entries whose time stamps are more than a couple of hours in the future. Log entries with time stamps in the past are accepted.
.google.protobuf.Timestamp timestamp = 9;getTimestampOrBuilder in interface LogEntryOrBuilderpublic boolean hasReceiveTimestamp()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;hasReceiveTimestamp in interface LogEntryOrBuilderpublic com.google.protobuf.Timestamp getReceiveTimestamp()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;getReceiveTimestamp in interface LogEntryOrBuilderpublic LogEntry.Builder setReceiveTimestamp(com.google.protobuf.Timestamp value)
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;public LogEntry.Builder setReceiveTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;public LogEntry.Builder mergeReceiveTimestamp(com.google.protobuf.Timestamp value)
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;public LogEntry.Builder clearReceiveTimestamp()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;public com.google.protobuf.Timestamp.Builder getReceiveTimestampBuilder()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;getReceiveTimestampOrBuilder in interface LogEntryOrBuilderpublic int getSeverityValue()
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;getSeverityValue in interface LogEntryOrBuilderpublic LogEntry.Builder setSeverityValue(int value)
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;public com.google.logging.type.LogSeverity getSeverity()
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;getSeverity in interface LogEntryOrBuilderpublic LogEntry.Builder setSeverity(com.google.logging.type.LogSeverity value)
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;public LogEntry.Builder clearSeverity()
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;public java.lang.String getInsertId()
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging will insert its own unique identifier. The `insert_id` is used to order log entries that have the same `timestamp` value.
string insert_id = 4;getInsertId in interface LogEntryOrBuilderpublic com.google.protobuf.ByteString getInsertIdBytes()
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging will insert its own unique identifier. The `insert_id` is used to order log entries that have the same `timestamp` value.
string insert_id = 4;getInsertIdBytes in interface LogEntryOrBuilderpublic LogEntry.Builder setInsertId(java.lang.String value)
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging will insert its own unique identifier. The `insert_id` is used to order log entries that have the same `timestamp` value.
string insert_id = 4;public LogEntry.Builder clearInsertId()
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging will insert its own unique identifier. The `insert_id` is used to order log entries that have the same `timestamp` value.
string insert_id = 4;public LogEntry.Builder setInsertIdBytes(com.google.protobuf.ByteString value)
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging will insert its own unique identifier. The `insert_id` is used to order log entries that have the same `timestamp` value.
string insert_id = 4;public boolean hasHttpRequest()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;hasHttpRequest in interface LogEntryOrBuilderpublic com.google.logging.type.HttpRequest getHttpRequest()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;getHttpRequest in interface LogEntryOrBuilderpublic LogEntry.Builder setHttpRequest(com.google.logging.type.HttpRequest value)
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;public LogEntry.Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builderForValue)
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;public LogEntry.Builder mergeHttpRequest(com.google.logging.type.HttpRequest value)
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;public LogEntry.Builder clearHttpRequest()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;getHttpRequestOrBuilder in interface LogEntryOrBuilderpublic int getLabelsCount()
LogEntryOrBuilderOptional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;getLabelsCount in interface LogEntryOrBuilderpublic boolean containsLabels(java.lang.String key)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;containsLabels in interface LogEntryOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface LogEntryOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;getLabelsMap in interface LogEntryOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;getLabelsOrDefault in interface LogEntryOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;getLabelsOrThrow in interface LogEntryOrBuilderpublic LogEntry.Builder clearLabels()
public LogEntry.Builder removeLabels(java.lang.String key)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public LogEntry.Builder putLabels(java.lang.String key, java.lang.String value)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;public LogEntry.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;public boolean hasOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;hasOperation in interface LogEntryOrBuilderpublic LogEntryOperation getOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;getOperation in interface LogEntryOrBuilderpublic LogEntry.Builder setOperation(LogEntryOperation value)
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;public LogEntry.Builder setOperation(LogEntryOperation.Builder builderForValue)
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;public LogEntry.Builder mergeOperation(LogEntryOperation value)
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;public LogEntry.Builder clearOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;public LogEntryOperation.Builder getOperationBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;public LogEntryOperationOrBuilder getOperationOrBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;getOperationOrBuilder in interface LogEntryOrBuilderpublic java.lang.String getTrace()
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;getTrace in interface LogEntryOrBuilderpublic com.google.protobuf.ByteString getTraceBytes()
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;getTraceBytes in interface LogEntryOrBuilderpublic LogEntry.Builder setTrace(java.lang.String value)
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;public LogEntry.Builder clearTrace()
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;public LogEntry.Builder setTraceBytes(com.google.protobuf.ByteString value)
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;public boolean hasSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;hasSourceLocation in interface LogEntryOrBuilderpublic LogEntrySourceLocation getSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;getSourceLocation in interface LogEntryOrBuilderpublic LogEntry.Builder setSourceLocation(LogEntrySourceLocation value)
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;public LogEntry.Builder setSourceLocation(LogEntrySourceLocation.Builder builderForValue)
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;public LogEntry.Builder mergeSourceLocation(LogEntrySourceLocation value)
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;public LogEntry.Builder clearSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;public LogEntrySourceLocation.Builder getSourceLocationBuilder()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;getSourceLocationOrBuilder in interface LogEntryOrBuilderpublic final LogEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public final LogEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>public final LogEntry.Builder setLogNameWithLogNameOneof(LogNameOneof value)
public final LogNameOneof getLogNameAsLogNameOneof()