Class LogRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
io.temporal.api.cloud.auditlog.v1.LogRecord.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LogRecordOrBuilder,Cloneable
- Enclosing class:
LogRecord
public static final class LogRecord.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
implements LogRecordOrBuilder
LogRecord represents an audit log entry from Temporal, structured for easy parsing and analysis.Protobuf type
temporal.api.cloud.auditlog.v1.LogRecord-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The ID of the async operation.Time when the log was emitted.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Unique ID for the log record.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The operation performed.The principal that performed the operation.The raw details of the operation.The status of the operation.The internal version of the log message.The originating IP address of the request.clone()The ID of the async operation.com.google.protobuf.ByteStringThe ID of the async operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTime when the log was emitted.com.google.protobuf.Timestamp.BuilderTime when the log was emitted.com.google.protobuf.TimestampOrBuilderTime when the log was emitted.getLogId()Unique ID for the log record.com.google.protobuf.ByteStringUnique ID for the log record.The operation performed.com.google.protobuf.ByteStringThe operation performed.The principal that performed the operation.The principal that performed the operation.The principal that performed the operation.com.google.protobuf.StructThe raw details of the operation.com.google.protobuf.Struct.BuilderThe raw details of the operation.com.google.protobuf.StructOrBuilderThe raw details of the operation.The status of the operation.com.google.protobuf.ByteStringThe status of the operation.intThe internal version of the log message.The originating IP address of the request.com.google.protobuf.ByteStringThe originating IP address of the request.booleanTime when the log was emitted.booleanThe principal that performed the operation.booleanThe raw details of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeEmitTime(com.google.protobuf.Timestamp value) Time when the log was emitted.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePrincipal(Principal value) The principal that performed the operation.mergeRawDetails(com.google.protobuf.Struct value) The raw details of the operation.final LogRecord.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAsyncOperationId(String value) The ID of the async operation.setAsyncOperationIdBytes(com.google.protobuf.ByteString value) The ID of the async operation.setEmitTime(com.google.protobuf.Timestamp value) Time when the log was emitted.setEmitTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the log was emitted.Unique ID for the log record.setLogIdBytes(com.google.protobuf.ByteString value) Unique ID for the log record.setOperation(String value) The operation performed.setOperationBytes(com.google.protobuf.ByteString value) The operation performed.setPrincipal(Principal value) The principal that performed the operation.setPrincipal(Principal.Builder builderForValue) The principal that performed the operation.setRawDetails(com.google.protobuf.Struct value) The raw details of the operation.setRawDetails(com.google.protobuf.Struct.Builder builderForValue) The raw details of the operation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The status of the operation.setStatusBytes(com.google.protobuf.ByteString value) The status of the operation.final LogRecord.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(int value) The internal version of the log message.setXForwardedFor(String value) The originating IP address of the request.setXForwardedForBytes(com.google.protobuf.ByteString value) The originating IP address of the request.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
setField
public LogRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
setRepeatedField
public LogRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
addRepeatedField
public LogRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>- Throws:
IOException
-
hasEmitTime
public boolean hasEmitTime()Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;- Specified by:
hasEmitTimein interfaceLogRecordOrBuilder- Returns:
- Whether the emitTime field is set.
-
getEmitTime
public com.google.protobuf.Timestamp getEmitTime()Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;- Specified by:
getEmitTimein interfaceLogRecordOrBuilder- Returns:
- The emitTime.
-
setEmitTime
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1; -
setEmitTime
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1; -
mergeEmitTime
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1; -
clearEmitTime
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1; -
getEmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getEmitTimeBuilder()Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1; -
getEmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEmitTimeOrBuilder()Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;- Specified by:
getEmitTimeOrBuilderin interfaceLogRecordOrBuilder
-
getOperation
The operation performed.
string operation = 5;- Specified by:
getOperationin interfaceLogRecordOrBuilder- Returns:
- The operation.
-
getOperationBytes
public com.google.protobuf.ByteString getOperationBytes()The operation performed.
string operation = 5;- Specified by:
getOperationBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for operation.
-
setOperation
The operation performed.
string operation = 5;- Parameters:
value- The operation to set.- Returns:
- This builder for chaining.
-
clearOperation
The operation performed.
string operation = 5;- Returns:
- This builder for chaining.
-
setOperationBytes
The operation performed.
string operation = 5;- Parameters:
value- The bytes for operation to set.- Returns:
- This builder for chaining.
-
getStatus
The status of the operation.
string status = 7;- Specified by:
getStatusin interfaceLogRecordOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()The status of the operation.
string status = 7;- Specified by:
getStatusBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for status.
-
setStatus
The status of the operation.
string status = 7;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
The status of the operation.
string status = 7;- Returns:
- This builder for chaining.
-
setStatusBytes
The status of the operation.
string status = 7;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
getVersion
public int getVersion()The internal version of the log message. Can be used in deduplication if needed.
int32 version = 9;- Specified by:
getVersionin interfaceLogRecordOrBuilder- Returns:
- The version.
-
setVersion
The internal version of the log message. Can be used in deduplication if needed.
int32 version = 9;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The internal version of the log message. Can be used in deduplication if needed.
int32 version = 9;- Returns:
- This builder for chaining.
-
getLogId
Unique ID for the log record.
string log_id = 10;- Specified by:
getLogIdin interfaceLogRecordOrBuilder- Returns:
- The logId.
-
getLogIdBytes
public com.google.protobuf.ByteString getLogIdBytes()Unique ID for the log record.
string log_id = 10;- Specified by:
getLogIdBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for logId.
-
setLogId
Unique ID for the log record.
string log_id = 10;- Parameters:
value- The logId to set.- Returns:
- This builder for chaining.
-
clearLogId
Unique ID for the log record.
string log_id = 10;- Returns:
- This builder for chaining.
-
setLogIdBytes
Unique ID for the log record.
string log_id = 10;- Parameters:
value- The bytes for logId to set.- Returns:
- This builder for chaining.
-
hasPrincipal
public boolean hasPrincipal()The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;- Specified by:
hasPrincipalin interfaceLogRecordOrBuilder- Returns:
- Whether the principal field is set.
-
getPrincipal
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;- Specified by:
getPrincipalin interfaceLogRecordOrBuilder- Returns:
- The principal.
-
setPrincipal
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12; -
setPrincipal
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12; -
mergePrincipal
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12; -
clearPrincipal
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12; -
getPrincipalBuilder
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12; -
getPrincipalOrBuilder
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;- Specified by:
getPrincipalOrBuilderin interfaceLogRecordOrBuilder
-
hasRawDetails
public boolean hasRawDetails()The raw details of the operation.
.google.protobuf.Struct raw_details = 13;- Specified by:
hasRawDetailsin interfaceLogRecordOrBuilder- Returns:
- Whether the rawDetails field is set.
-
getRawDetails
public com.google.protobuf.Struct getRawDetails()The raw details of the operation.
.google.protobuf.Struct raw_details = 13;- Specified by:
getRawDetailsin interfaceLogRecordOrBuilder- Returns:
- The rawDetails.
-
setRawDetails
The raw details of the operation.
.google.protobuf.Struct raw_details = 13; -
setRawDetails
The raw details of the operation.
.google.protobuf.Struct raw_details = 13; -
mergeRawDetails
The raw details of the operation.
.google.protobuf.Struct raw_details = 13; -
clearRawDetails
The raw details of the operation.
.google.protobuf.Struct raw_details = 13; -
getRawDetailsBuilder
public com.google.protobuf.Struct.Builder getRawDetailsBuilder()The raw details of the operation.
.google.protobuf.Struct raw_details = 13; -
getRawDetailsOrBuilder
public com.google.protobuf.StructOrBuilder getRawDetailsOrBuilder()The raw details of the operation.
.google.protobuf.Struct raw_details = 13;- Specified by:
getRawDetailsOrBuilderin interfaceLogRecordOrBuilder
-
getXForwardedFor
The originating IP address of the request.
string x_forwarded_for = 14;- Specified by:
getXForwardedForin interfaceLogRecordOrBuilder- Returns:
- The xForwardedFor.
-
getXForwardedForBytes
public com.google.protobuf.ByteString getXForwardedForBytes()The originating IP address of the request.
string x_forwarded_for = 14;- Specified by:
getXForwardedForBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for xForwardedFor.
-
setXForwardedFor
The originating IP address of the request.
string x_forwarded_for = 14;- Parameters:
value- The xForwardedFor to set.- Returns:
- This builder for chaining.
-
clearXForwardedFor
The originating IP address of the request.
string x_forwarded_for = 14;- Returns:
- This builder for chaining.
-
setXForwardedForBytes
The originating IP address of the request.
string x_forwarded_for = 14;- Parameters:
value- The bytes for xForwardedFor to set.- Returns:
- This builder for chaining.
-
getAsyncOperationId
The ID of the async operation.
string async_operation_id = 15;- Specified by:
getAsyncOperationIdin interfaceLogRecordOrBuilder- Returns:
- The asyncOperationId.
-
getAsyncOperationIdBytes
public com.google.protobuf.ByteString getAsyncOperationIdBytes()The ID of the async operation.
string async_operation_id = 15;- Specified by:
getAsyncOperationIdBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for asyncOperationId.
-
setAsyncOperationId
The ID of the async operation.
string async_operation_id = 15;- Parameters:
value- The asyncOperationId to set.- Returns:
- This builder for chaining.
-
clearAsyncOperationId
The ID of the async operation.
string async_operation_id = 15;- Returns:
- This builder for chaining.
-
setAsyncOperationIdBytes
The ID of the async operation.
string async_operation_id = 15;- Parameters:
value- The bytes for asyncOperationId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeUnknownFields
public final LogRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-