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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • clear

      public LogRecord.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • getDefaultInstanceForType

      public LogRecord getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LogRecord build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LogRecord buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public LogRecord.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • setField

      public LogRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • clearField

      public LogRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • clearOneof

      public LogRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • setRepeatedField

      public LogRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • addRepeatedField

      public LogRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • mergeFrom

      public LogRecord.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>
    • mergeFrom

      public LogRecord.Builder mergeFrom(LogRecord other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasEmitTime in interface LogRecordOrBuilder
      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:
      getEmitTime in interface LogRecordOrBuilder
      Returns:
      The emitTime.
    • setEmitTime

      public LogRecord.Builder setEmitTime(com.google.protobuf.Timestamp value)
       Time when the log was emitted.
       
      .google.protobuf.Timestamp emit_time = 1;
    • setEmitTime

      public LogRecord.Builder setEmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time when the log was emitted.
       
      .google.protobuf.Timestamp emit_time = 1;
    • mergeEmitTime

      public LogRecord.Builder mergeEmitTime(com.google.protobuf.Timestamp value)
       Time when the log was emitted.
       
      .google.protobuf.Timestamp emit_time = 1;
    • clearEmitTime

      public LogRecord.Builder 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:
      getEmitTimeOrBuilder in interface LogRecordOrBuilder
    • getOperation

      public String getOperation()
       The operation performed.
       
      string operation = 5;
      Specified by:
      getOperation in interface LogRecordOrBuilder
      Returns:
      The operation.
    • getOperationBytes

      public com.google.protobuf.ByteString getOperationBytes()
       The operation performed.
       
      string operation = 5;
      Specified by:
      getOperationBytes in interface LogRecordOrBuilder
      Returns:
      The bytes for operation.
    • setOperation

      public LogRecord.Builder setOperation(String value)
       The operation performed.
       
      string operation = 5;
      Parameters:
      value - The operation to set.
      Returns:
      This builder for chaining.
    • clearOperation

      public LogRecord.Builder clearOperation()
       The operation performed.
       
      string operation = 5;
      Returns:
      This builder for chaining.
    • setOperationBytes

      public LogRecord.Builder setOperationBytes(com.google.protobuf.ByteString value)
       The operation performed.
       
      string operation = 5;
      Parameters:
      value - The bytes for operation to set.
      Returns:
      This builder for chaining.
    • getStatus

      public String getStatus()
       The status of the operation.
       
      string status = 7;
      Specified by:
      getStatus in interface LogRecordOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       The status of the operation.
       
      string status = 7;
      Specified by:
      getStatusBytes in interface LogRecordOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public LogRecord.Builder setStatus(String value)
       The status of the operation.
       
      string status = 7;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public LogRecord.Builder clearStatus()
       The status of the operation.
       
      string status = 7;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public LogRecord.Builder setStatusBytes(com.google.protobuf.ByteString value)
       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:
      getVersion in interface LogRecordOrBuilder
      Returns:
      The version.
    • setVersion

      public LogRecord.Builder setVersion(int value)
       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

      public LogRecord.Builder clearVersion()
       The internal version of the log message.  Can be used in deduplication if needed.
       
      int32 version = 9;
      Returns:
      This builder for chaining.
    • getLogId

      public String getLogId()
       Unique ID for the log record.
       
      string log_id = 10;
      Specified by:
      getLogId in interface LogRecordOrBuilder
      Returns:
      The logId.
    • getLogIdBytes

      public com.google.protobuf.ByteString getLogIdBytes()
       Unique ID for the log record.
       
      string log_id = 10;
      Specified by:
      getLogIdBytes in interface LogRecordOrBuilder
      Returns:
      The bytes for logId.
    • setLogId

      public LogRecord.Builder setLogId(String value)
       Unique ID for the log record.
       
      string log_id = 10;
      Parameters:
      value - The logId to set.
      Returns:
      This builder for chaining.
    • clearLogId

      public LogRecord.Builder clearLogId()
       Unique ID for the log record.
       
      string log_id = 10;
      Returns:
      This builder for chaining.
    • setLogIdBytes

      public LogRecord.Builder setLogIdBytes(com.google.protobuf.ByteString value)
       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:
      hasPrincipal in interface LogRecordOrBuilder
      Returns:
      Whether the principal field is set.
    • getPrincipal

      public Principal getPrincipal()
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
      Specified by:
      getPrincipal in interface LogRecordOrBuilder
      Returns:
      The principal.
    • setPrincipal

      public LogRecord.Builder setPrincipal(Principal value)
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
    • setPrincipal

      public LogRecord.Builder setPrincipal(Principal.Builder builderForValue)
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
    • mergePrincipal

      public LogRecord.Builder mergePrincipal(Principal value)
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
    • clearPrincipal

      public LogRecord.Builder clearPrincipal()
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
    • getPrincipalBuilder

      public Principal.Builder getPrincipalBuilder()
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
    • getPrincipalOrBuilder

      public PrincipalOrBuilder getPrincipalOrBuilder()
       The principal that performed the operation.
       
      .temporal.api.cloud.auditlog.v1.Principal principal = 12;
      Specified by:
      getPrincipalOrBuilder in interface LogRecordOrBuilder
    • hasRawDetails

      public boolean hasRawDetails()
       The raw details of the operation.
       
      .google.protobuf.Struct raw_details = 13;
      Specified by:
      hasRawDetails in interface LogRecordOrBuilder
      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:
      getRawDetails in interface LogRecordOrBuilder
      Returns:
      The rawDetails.
    • setRawDetails

      public LogRecord.Builder setRawDetails(com.google.protobuf.Struct value)
       The raw details of the operation.
       
      .google.protobuf.Struct raw_details = 13;
    • setRawDetails

      public LogRecord.Builder setRawDetails(com.google.protobuf.Struct.Builder builderForValue)
       The raw details of the operation.
       
      .google.protobuf.Struct raw_details = 13;
    • mergeRawDetails

      public LogRecord.Builder mergeRawDetails(com.google.protobuf.Struct value)
       The raw details of the operation.
       
      .google.protobuf.Struct raw_details = 13;
    • clearRawDetails

      public LogRecord.Builder 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:
      getRawDetailsOrBuilder in interface LogRecordOrBuilder
    • getXForwardedFor

      public String getXForwardedFor()
       The originating IP address of the request.
       
      string x_forwarded_for = 14;
      Specified by:
      getXForwardedFor in interface LogRecordOrBuilder
      Returns:
      The xForwardedFor.
    • getXForwardedForBytes

      public com.google.protobuf.ByteString getXForwardedForBytes()
       The originating IP address of the request.
       
      string x_forwarded_for = 14;
      Specified by:
      getXForwardedForBytes in interface LogRecordOrBuilder
      Returns:
      The bytes for xForwardedFor.
    • setXForwardedFor

      public LogRecord.Builder setXForwardedFor(String value)
       The originating IP address of the request.
       
      string x_forwarded_for = 14;
      Parameters:
      value - The xForwardedFor to set.
      Returns:
      This builder for chaining.
    • clearXForwardedFor

      public LogRecord.Builder clearXForwardedFor()
       The originating IP address of the request.
       
      string x_forwarded_for = 14;
      Returns:
      This builder for chaining.
    • setXForwardedForBytes

      public LogRecord.Builder setXForwardedForBytes(com.google.protobuf.ByteString value)
       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

      public String getAsyncOperationId()
       The ID of the async operation.
       
      string async_operation_id = 15;
      Specified by:
      getAsyncOperationId in interface LogRecordOrBuilder
      Returns:
      The asyncOperationId.
    • getAsyncOperationIdBytes

      public com.google.protobuf.ByteString getAsyncOperationIdBytes()
       The ID of the async operation.
       
      string async_operation_id = 15;
      Specified by:
      getAsyncOperationIdBytes in interface LogRecordOrBuilder
      Returns:
      The bytes for asyncOperationId.
    • setAsyncOperationId

      public LogRecord.Builder setAsyncOperationId(String value)
       The ID of the async operation.
       
      string async_operation_id = 15;
      Parameters:
      value - The asyncOperationId to set.
      Returns:
      This builder for chaining.
    • clearAsyncOperationId

      public LogRecord.Builder clearAsyncOperationId()
       The ID of the async operation.
       
      string async_operation_id = 15;
      Returns:
      This builder for chaining.
    • setAsyncOperationIdBytes

      public LogRecord.Builder setAsyncOperationIdBytes(com.google.protobuf.ByteString value)
       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

      public final LogRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
    • mergeUnknownFields

      public final LogRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>