Class AuditLog.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
ai.chalk.protos.chalk.server.v1.AuditLog.Builder
All Implemented Interfaces:
AuditLogOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AuditLog

public static final class AuditLog.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder> implements AuditLogOrBuilder
Protobuf type chalk.server.v1.AuditLog
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
    • internalGetFieldAccessorTable

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

      public AuditLog.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<AuditLog.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<AuditLog.Builder>
    • getDefaultInstanceForType

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

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

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

      public AuditLog.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<AuditLog.Builder>
    • setField

      public AuditLog.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<AuditLog.Builder>
    • clearField

      public AuditLog.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<AuditLog.Builder>
    • clearOneof

      public AuditLog.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<AuditLog.Builder>
    • setRepeatedField

      public AuditLog.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<AuditLog.Builder>
    • addRepeatedField

      public AuditLog.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<AuditLog.Builder>
    • mergeFrom

      public AuditLog.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<AuditLog.Builder>
    • mergeFrom

      public AuditLog.Builder mergeFrom(AuditLog other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
    • mergeFrom

      public AuditLog.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<AuditLog.Builder>
      Throws:
      IOException
    • hasAgent

      public boolean hasAgent()
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
      Specified by:
      hasAgent in interface AuditLogOrBuilder
      Returns:
      Whether the agent field is set.
    • getAgent

      public Agent getAgent()
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
      Specified by:
      getAgent in interface AuditLogOrBuilder
      Returns:
      The agent.
    • setAgent

      public AuditLog.Builder setAgent(Agent value)
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
    • setAgent

      public AuditLog.Builder setAgent(Agent.Builder builderForValue)
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
    • mergeAgent

      public AuditLog.Builder mergeAgent(Agent value)
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
    • clearAgent

      public AuditLog.Builder clearAgent()
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
    • getAgentBuilder

      public Agent.Builder getAgentBuilder()
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
    • getAgentOrBuilder

      public AgentOrBuilder getAgentOrBuilder()
       The agent who made the request.
       
      .chalk.auth.v1.Agent agent = 1 [json_name = "agent"];
      Specified by:
      getAgentOrBuilder in interface AuditLogOrBuilder
    • hasDescription

      public boolean hasDescription()
       A description of the request, taken from the service endpoint
       
      optional string description = 2 [json_name = "description"];
      Specified by:
      hasDescription in interface AuditLogOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       A description of the request, taken from the service endpoint
       
      optional string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface AuditLogOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of the request, taken from the service endpoint
       
      optional string description = 2 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface AuditLogOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public AuditLog.Builder setDescription(String value)
       A description of the request, taken from the service endpoint
       
      optional string description = 2 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public AuditLog.Builder clearDescription()
       A description of the request, taken from the service endpoint
       
      optional string description = 2 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AuditLog.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A description of the request, taken from the service endpoint
       
      optional string description = 2 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getEndpoint

      public String getEndpoint()
       The service endpoint that was called
       
      string endpoint = 3 [json_name = "endpoint"];
      Specified by:
      getEndpoint in interface AuditLogOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       The service endpoint that was called
       
      string endpoint = 3 [json_name = "endpoint"];
      Specified by:
      getEndpointBytes in interface AuditLogOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public AuditLog.Builder setEndpoint(String value)
       The service endpoint that was called
       
      string endpoint = 3 [json_name = "endpoint"];
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public AuditLog.Builder clearEndpoint()
       The service endpoint that was called
       
      string endpoint = 3 [json_name = "endpoint"];
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public AuditLog.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       The service endpoint that was called
       
      string endpoint = 3 [json_name = "endpoint"];
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • hasAt

      public boolean hasAt()
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
      Specified by:
      hasAt in interface AuditLogOrBuilder
      Returns:
      Whether the at field is set.
    • getAt

      public com.google.protobuf.Timestamp getAt()
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
      Specified by:
      getAt in interface AuditLogOrBuilder
      Returns:
      The at.
    • setAt

      public AuditLog.Builder setAt(com.google.protobuf.Timestamp value)
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
    • setAt

      public AuditLog.Builder setAt(com.google.protobuf.Timestamp.Builder builderForValue)
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
    • mergeAt

      public AuditLog.Builder mergeAt(com.google.protobuf.Timestamp value)
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
    • clearAt

      public AuditLog.Builder clearAt()
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
    • getAtBuilder

      public com.google.protobuf.Timestamp.Builder getAtBuilder()
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
    • getAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getAtOrBuilder()
       The time the request was made.
       
      .google.protobuf.Timestamp at = 4 [json_name = "at"];
      Specified by:
      getAtOrBuilder in interface AuditLogOrBuilder
    • hasTraceId

      public boolean hasTraceId()
       The trace ID of the request, if available.
       
      optional uint64 trace_id = 5 [json_name = "traceId"];
      Specified by:
      hasTraceId in interface AuditLogOrBuilder
      Returns:
      Whether the traceId field is set.
    • getTraceId

      public long getTraceId()
       The trace ID of the request, if available.
       
      optional uint64 trace_id = 5 [json_name = "traceId"];
      Specified by:
      getTraceId in interface AuditLogOrBuilder
      Returns:
      The traceId.
    • setTraceId

      public AuditLog.Builder setTraceId(long value)
       The trace ID of the request, if available.
       
      optional uint64 trace_id = 5 [json_name = "traceId"];
      Parameters:
      value - The traceId to set.
      Returns:
      This builder for chaining.
    • clearTraceId

      public AuditLog.Builder clearTraceId()
       The trace ID of the request, if available.
       
      optional uint64 trace_id = 5 [json_name = "traceId"];
      Returns:
      This builder for chaining.
    • hasCode

      public boolean hasCode()
       The status of the request.
       
      optional .google.rpc.Code code = 6 [json_name = "code"];
      Specified by:
      hasCode in interface AuditLogOrBuilder
      Returns:
      Whether the code field is set.
    • getCodeValue

      public int getCodeValue()
       The status of the request.
       
      optional .google.rpc.Code code = 6 [json_name = "code"];
      Specified by:
      getCodeValue in interface AuditLogOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public AuditLog.Builder setCodeValue(int value)
       The status of the request.
       
      optional .google.rpc.Code code = 6 [json_name = "code"];
      Parameters:
      value - The enum numeric value on the wire for code to set.
      Returns:
      This builder for chaining.
    • getCode

      public com.google.rpc.Code getCode()
       The status of the request.
       
      optional .google.rpc.Code code = 6 [json_name = "code"];
      Specified by:
      getCode in interface AuditLogOrBuilder
      Returns:
      The code.
    • setCode

      public AuditLog.Builder setCode(com.google.rpc.Code value)
       The status of the request.
       
      optional .google.rpc.Code code = 6 [json_name = "code"];
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public AuditLog.Builder clearCode()
       The status of the request.
       
      optional .google.rpc.Code code = 6 [json_name = "code"];
      Returns:
      This builder for chaining.
    • getRequestCount

      public int getRequestCount()
      Description copied from interface: AuditLogOrBuilder
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
      Specified by:
      getRequestCount in interface AuditLogOrBuilder
    • containsRequest

      public boolean containsRequest(String key)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
      Specified by:
      containsRequest in interface AuditLogOrBuilder
    • getRequest

      @Deprecated public Map<String,com.google.protobuf.Value> getRequest()
      Deprecated.
      Use getRequestMap() instead.
      Specified by:
      getRequest in interface AuditLogOrBuilder
    • getRequestMap

      public Map<String,com.google.protobuf.Value> getRequestMap()
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
      Specified by:
      getRequestMap in interface AuditLogOrBuilder
    • getRequestOrDefault

      public com.google.protobuf.Value getRequestOrDefault(String key, com.google.protobuf.Value defaultValue)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
      Specified by:
      getRequestOrDefault in interface AuditLogOrBuilder
    • getRequestOrThrow

      public com.google.protobuf.Value getRequestOrThrow(String key)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
      Specified by:
      getRequestOrThrow in interface AuditLogOrBuilder
    • clearRequest

      public AuditLog.Builder clearRequest()
    • removeRequest

      public AuditLog.Builder removeRequest(String key)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
    • getMutableRequest

      @Deprecated public Map<String,com.google.protobuf.Value> getMutableRequest()
      Deprecated.
      Use alternate mutation accessors instead.
    • putRequest

      public AuditLog.Builder putRequest(String key, com.google.protobuf.Value value)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
    • putAllRequest

      public AuditLog.Builder putAllRequest(Map<String,com.google.protobuf.Value> values)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
    • putRequestBuilderIfAbsent

      public com.google.protobuf.Value.Builder putRequestBuilderIfAbsent(String key)
       The serialized request
       
      map<string, .google.protobuf.Value> request = 7 [json_name = "request"];
    • getResponseCount

      public int getResponseCount()
      Description copied from interface: AuditLogOrBuilder
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
      Specified by:
      getResponseCount in interface AuditLogOrBuilder
    • containsResponse

      public boolean containsResponse(String key)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
      Specified by:
      containsResponse in interface AuditLogOrBuilder
    • getResponse

      @Deprecated public Map<String,com.google.protobuf.Value> getResponse()
      Deprecated.
      Use getResponseMap() instead.
      Specified by:
      getResponse in interface AuditLogOrBuilder
    • getResponseMap

      public Map<String,com.google.protobuf.Value> getResponseMap()
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
      Specified by:
      getResponseMap in interface AuditLogOrBuilder
    • getResponseOrDefault

      public com.google.protobuf.Value getResponseOrDefault(String key, com.google.protobuf.Value defaultValue)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
      Specified by:
      getResponseOrDefault in interface AuditLogOrBuilder
    • getResponseOrThrow

      public com.google.protobuf.Value getResponseOrThrow(String key)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
      Specified by:
      getResponseOrThrow in interface AuditLogOrBuilder
    • clearResponse

      public AuditLog.Builder clearResponse()
    • removeResponse

      public AuditLog.Builder removeResponse(String key)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
    • getMutableResponse

      @Deprecated public Map<String,com.google.protobuf.Value> getMutableResponse()
      Deprecated.
      Use alternate mutation accessors instead.
    • putResponse

      public AuditLog.Builder putResponse(String key, com.google.protobuf.Value value)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
    • putAllResponse

      public AuditLog.Builder putAllResponse(Map<String,com.google.protobuf.Value> values)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
    • putResponseBuilderIfAbsent

      public com.google.protobuf.Value.Builder putResponseBuilderIfAbsent(String key)
       The serialized response
       
      map<string, .google.protobuf.Value> response = 8 [json_name = "response"];
    • hasIp

      public boolean hasIp()
       The IP address of the client
       
      optional string ip = 9 [json_name = "ip"];
      Specified by:
      hasIp in interface AuditLogOrBuilder
      Returns:
      Whether the ip field is set.
    • getIp

      public String getIp()
       The IP address of the client
       
      optional string ip = 9 [json_name = "ip"];
      Specified by:
      getIp in interface AuditLogOrBuilder
      Returns:
      The ip.
    • getIpBytes

      public com.google.protobuf.ByteString getIpBytes()
       The IP address of the client
       
      optional string ip = 9 [json_name = "ip"];
      Specified by:
      getIpBytes in interface AuditLogOrBuilder
      Returns:
      The bytes for ip.
    • setIp

      public AuditLog.Builder setIp(String value)
       The IP address of the client
       
      optional string ip = 9 [json_name = "ip"];
      Parameters:
      value - The ip to set.
      Returns:
      This builder for chaining.
    • clearIp

      public AuditLog.Builder clearIp()
       The IP address of the client
       
      optional string ip = 9 [json_name = "ip"];
      Returns:
      This builder for chaining.
    • setIpBytes

      public AuditLog.Builder setIpBytes(com.google.protobuf.ByteString value)
       The IP address of the client
       
      optional string ip = 9 [json_name = "ip"];
      Parameters:
      value - The bytes for ip to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AuditLog.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<AuditLog.Builder>
    • mergeUnknownFields

      public final AuditLog.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<AuditLog.Builder>