Package com.google.api.servicecontrol.v1
Class LogEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
- com.google.api.servicecontrol.v1.LogEntry.Builder
-
- All Implemented Interfaces:
LogEntryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LogEntry
public static final class LogEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder> implements LogEntryOrBuilder
An individual log entry.
Protobuf typegoogle.api.servicecontrol.v1.LogEntry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LogEntry.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, 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()
A unique ID for the log entry used for deduplication.LogEntry.Builder
clearLabels()
LogEntry.Builder
clearName()
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 that is expressed as a JSON object.LogEntry.Builder
clearSeverity()
The severity of the log entry.LogEntry.Builder
clearSourceLocation()
Optional.LogEntry.Builder
clearStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.Builder
clearTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).LogEntry.Builder
clearTimestamp()
The time the event described by the log entry occurred.LogEntry.Builder
clearTrace()
Optional.LogEntry.Builder
clone()
boolean
containsLabels(String key)
A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
HttpRequest
getHttpRequest()
Optional.HttpRequest.Builder
getHttpRequestBuilder()
Optional.HttpRequestOrBuilder
getHttpRequestOrBuilder()
Optional.String
getInsertId()
A unique ID for the log entry used for deduplication.com.google.protobuf.ByteString
getInsertIdBytes()
A unique ID for the log entry used for deduplication.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
A set of user-defined (key, value) data that provides additional information about the log entry.Map<String,String>
getLabelsMap()
A set of user-defined (key, value) data that provides additional information about the log entry.String
getLabelsOrDefault(String key, String defaultValue)
A set of user-defined (key, value) data that provides additional information about the log entry.String
getLabelsOrThrow(String key)
A set of user-defined (key, value) data that provides additional information about the log entry.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.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 that is expressed as a JSON object.com.google.protobuf.Any.Builder
getProtoPayloadBuilder()
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.com.google.protobuf.AnyOrBuilder
getProtoPayloadOrBuilder()
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.com.google.logging.type.LogSeverity
getSeverity()
The severity of the log entry.int
getSeverityValue()
The severity of the log entry.LogEntrySourceLocation
getSourceLocation()
Optional.LogEntrySourceLocation.Builder
getSourceLocationBuilder()
Optional.LogEntrySourceLocationOrBuilder
getSourceLocationOrBuilder()
Optional.com.google.protobuf.Struct
getStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.com.google.protobuf.Struct.Builder
getStructPayloadBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.com.google.protobuf.StructOrBuilder
getStructPayloadOrBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.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()
The time the event described by the log entry occurred.com.google.protobuf.Timestamp.Builder
getTimestampBuilder()
The time the event described by the log entry occurred.com.google.protobuf.TimestampOrBuilder
getTimestampOrBuilder()
The time the event described by the log entry occurred.String
getTrace()
Optional.com.google.protobuf.ByteString
getTraceBytes()
Optional.boolean
hasHttpRequest()
Optional.boolean
hasOperation()
Optional.boolean
hasProtoPayload()
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.boolean
hasSourceLocation()
Optional.boolean
hasStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.boolean
hasTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).boolean
hasTimestamp()
The time the event described by the log entry occurred.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(LogEntry other)
LogEntry.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LogEntry.Builder
mergeFrom(com.google.protobuf.Message other)
LogEntry.Builder
mergeHttpRequest(HttpRequest value)
Optional.LogEntry.Builder
mergeOperation(LogEntryOperation value)
Optional.LogEntry.Builder
mergeProtoPayload(com.google.protobuf.Any value)
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.Builder
mergeSourceLocation(LogEntrySourceLocation value)
Optional.LogEntry.Builder
mergeStructPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.Builder
mergeTimestamp(com.google.protobuf.Timestamp value)
The time the event described by the log entry occurred.LogEntry.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LogEntry.Builder
putAllLabels(Map<String,String> values)
A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry.Builder
putLabels(String key, String value)
A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry.Builder
removeLabels(String key)
A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LogEntry.Builder
setHttpRequest(HttpRequest value)
Optional.LogEntry.Builder
setHttpRequest(HttpRequest.Builder builderForValue)
Optional.LogEntry.Builder
setInsertId(String value)
A unique ID for the log entry used for deduplication.LogEntry.Builder
setInsertIdBytes(com.google.protobuf.ByteString value)
A unique ID for the log entry used for deduplication.LogEntry.Builder
setName(String value)
Required.LogEntry.Builder
setNameBytes(com.google.protobuf.ByteString value)
Required.LogEntry.Builder
setOperation(LogEntryOperation value)
Optional.LogEntry.Builder
setOperation(LogEntryOperation.Builder builderForValue)
Optional.LogEntry.Builder
setProtoPayload(com.google.protobuf.Any value)
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.Builder
setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LogEntry.Builder
setSeverity(com.google.logging.type.LogSeverity value)
The severity of the log entry.LogEntry.Builder
setSeverityValue(int value)
The severity of the log entry.LogEntry.Builder
setSourceLocation(LogEntrySourceLocation value)
Optional.LogEntry.Builder
setSourceLocation(LogEntrySourceLocation.Builder builderForValue)
Optional.LogEntry.Builder
setStructPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.Builder
setStructPayload(com.google.protobuf.Struct.Builder builderForValue)
The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.Builder
setTextPayload(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 value)
The time the event described by the log entry occurred.LogEntry.Builder
setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The time the event described by the log entry occurred.LogEntry.Builder
setTrace(String value)
Optional.LogEntry.Builder
setTraceBytes(com.google.protobuf.ByteString value)
Optional.LogEntry.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
clear
public LogEntry.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
getDefaultInstanceForType
public LogEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogEntry build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogEntry buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogEntry.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
setField
public LogEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
clearField
public LogEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
clearOneof
public LogEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
setRepeatedField
public LogEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
addRepeatedField
public LogEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
mergeFrom
public LogEntry.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>
-
mergeFrom
public LogEntry.Builder mergeFrom(LogEntry other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
mergeFrom
public LogEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>
- Throws:
IOException
-
getPayloadCase
public LogEntry.PayloadCase getPayloadCase()
- Specified by:
getPayloadCase
in interfaceLogEntryOrBuilder
-
clearPayload
public LogEntry.Builder clearPayload()
-
getName
public String getName()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;
- Specified by:
getName
in interfaceLogEntryOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;
- Specified by:
getNameBytes
in interfaceLogEntryOrBuilder
- Returns:
- The bytes for name.
-
setName
public LogEntry.Builder setName(String value)
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public LogEntry.Builder clearName()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;
- Returns:
- This builder for chaining.
-
setNameBytes
public LogEntry.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasTimestamp
in interfaceLogEntryOrBuilder
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;
- Specified by:
getTimestamp
in interfaceLogEntryOrBuilder
- Returns:
- The timestamp.
-
setTimestamp
public LogEntry.Builder setTimestamp(com.google.protobuf.Timestamp value)
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;
-
setTimestamp
public LogEntry.Builder setTimestamp(com.google.protobuf.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;
-
mergeTimestamp
public LogEntry.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;
-
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;
-
getTimestampBuilder
public com.google.protobuf.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;
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;
- Specified by:
getTimestampOrBuilder
in interfaceLogEntryOrBuilder
-
getSeverityValue
public int getSeverityValue()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;
- Specified by:
getSeverityValue
in interfaceLogEntryOrBuilder
- Returns:
- The enum numeric value on the wire for severity.
-
setSeverityValue
public LogEntry.Builder setSeverityValue(int value)
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;
- Parameters:
value
- The enum numeric value on the wire for severity to set.- Returns:
- This builder for chaining.
-
getSeverity
public com.google.logging.type.LogSeverity getSeverity()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;
- Specified by:
getSeverity
in interfaceLogEntryOrBuilder
- Returns:
- The severity.
-
setSeverity
public LogEntry.Builder setSeverity(com.google.logging.type.LogSeverity value)
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;
- Parameters:
value
- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
public LogEntry.Builder clearSeverity()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasHttpRequest
in interfaceLogEntryOrBuilder
- Returns:
- Whether the httpRequest field is set.
-
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;
- Specified by:
getHttpRequest
in interfaceLogEntryOrBuilder
- Returns:
- The httpRequest.
-
setHttpRequest
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;
-
setHttpRequest
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;
-
mergeHttpRequest
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;
-
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;
-
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;
-
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;
- Specified by:
getHttpRequestOrBuilder
in interfaceLogEntryOrBuilder
-
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;
- Specified by:
getTrace
in interfaceLogEntryOrBuilder
- Returns:
- The trace.
-
getTraceBytes
public com.google.protobuf.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;
- Specified by:
getTraceBytes
in interfaceLogEntryOrBuilder
- Returns:
- The bytes for trace.
-
setTrace
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;
- Parameters:
value
- The trace to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTraceBytes
public LogEntry.Builder setTraceBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for trace to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getInsertId
in interfaceLogEntryOrBuilder
- Returns:
- The insertId.
-
getInsertIdBytes
public com.google.protobuf.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;
- Specified by:
getInsertIdBytes
in interfaceLogEntryOrBuilder
- Returns:
- The bytes for insertId.
-
setInsertId
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;
- Parameters:
value
- The insertId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInsertIdBytes
public LogEntry.Builder setInsertIdBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for insertId to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:LogEntryOrBuilder
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;
- Specified by:
getLabelsCount
in interfaceLogEntryOrBuilder
-
containsLabels
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;
- Specified by:
containsLabels
in interfaceLogEntryOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceLogEntryOrBuilder
-
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;
- Specified by:
getLabelsMap
in interfaceLogEntryOrBuilder
-
getLabelsOrDefault
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;
- Specified by:
getLabelsOrDefault
in interfaceLogEntryOrBuilder
-
getLabelsOrThrow
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;
- Specified by:
getLabelsOrThrow
in interfaceLogEntryOrBuilder
-
clearLabels
public LogEntry.Builder clearLabels()
-
removeLabels
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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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;
-
putAllLabels
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;
-
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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
- Specified by:
hasProtoPayload
in interfaceLogEntryOrBuilder
- Returns:
- Whether the protoPayload field is set.
-
getProtoPayload
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
- Specified by:
getProtoPayload
in interfaceLogEntryOrBuilder
- Returns:
- The protoPayload.
-
setProtoPayload
public LogEntry.Builder setProtoPayload(com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
setProtoPayload
public LogEntry.Builder setProtoPayload(com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
mergeProtoPayload
public LogEntry.Builder mergeProtoPayload(com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
getProtoPayloadBuilder
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
getProtoPayloadOrBuilder
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
- Specified by:
getProtoPayloadOrBuilder
in interfaceLogEntryOrBuilder
-
hasTextPayload
public boolean hasTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
- Specified by:
hasTextPayload
in interfaceLogEntryOrBuilder
- Returns:
- Whether the textPayload field is set.
-
getTextPayload
public String getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
- Specified by:
getTextPayload
in interfaceLogEntryOrBuilder
- Returns:
- The textPayload.
-
getTextPayloadBytes
public com.google.protobuf.ByteString getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
- Specified by:
getTextPayloadBytes
in interfaceLogEntryOrBuilder
- Returns:
- The bytes for textPayload.
-
setTextPayload
public LogEntry.Builder setTextPayload(String value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
- Parameters:
value
- The textPayload to set.- Returns:
- This builder for chaining.
-
clearTextPayload
public LogEntry.Builder clearTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
- Returns:
- This builder for chaining.
-
setTextPayloadBytes
public LogEntry.Builder setTextPayloadBytes(com.google.protobuf.ByteString value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
- Parameters:
value
- The bytes for textPayload to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasStructPayload
in interfaceLogEntryOrBuilder
- Returns:
- Whether the structPayload field is set.
-
getStructPayload
public com.google.protobuf.Struct getStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
- Specified by:
getStructPayload
in interfaceLogEntryOrBuilder
- Returns:
- The structPayload.
-
setStructPayload
public LogEntry.Builder setStructPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
setStructPayload
public LogEntry.Builder setStructPayload(com.google.protobuf.Struct.Builder builderForValue)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
mergeStructPayload
public LogEntry.Builder mergeStructPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
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;
-
getStructPayloadBuilder
public com.google.protobuf.Struct.Builder getStructPayloadBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
getStructPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getStructPayloadOrBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
- Specified by:
getStructPayloadOrBuilder
in interfaceLogEntryOrBuilder
-
hasOperation
public boolean hasOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
- Specified by:
hasOperation
in interfaceLogEntryOrBuilder
- Returns:
- Whether the operation field is set.
-
getOperation
public LogEntryOperation getOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
- Specified by:
getOperation
in interfaceLogEntryOrBuilder
- Returns:
- The operation.
-
setOperation
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;
-
setOperation
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;
-
mergeOperation
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;
-
clearOperation
public LogEntry.Builder clearOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
-
getOperationBuilder
public LogEntryOperation.Builder getOperationBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
-
getOperationOrBuilder
public LogEntryOperationOrBuilder getOperationOrBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
- Specified by:
getOperationOrBuilder
in interfaceLogEntryOrBuilder
-
hasSourceLocation
public boolean hasSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
- Specified by:
hasSourceLocation
in interfaceLogEntryOrBuilder
- Returns:
- Whether the sourceLocation field is set.
-
getSourceLocation
public LogEntrySourceLocation getSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
- Specified by:
getSourceLocation
in interfaceLogEntryOrBuilder
- Returns:
- The sourceLocation.
-
setSourceLocation
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;
-
setSourceLocation
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;
-
mergeSourceLocation
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;
-
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;
-
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;
-
getSourceLocationOrBuilder
public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
- Specified by:
getSourceLocationOrBuilder
in interfaceLogEntryOrBuilder
-
setUnknownFields
public final LogEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
mergeUnknownFields
public final LogEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
-