Class RotateApiKeyResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RotateApiKeyResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<RotateApiKeyResponse.Builder>
ai.pipestream.connector.intake.v1.RotateApiKeyResponse.Builder
All Implemented Interfaces:
RotateApiKeyResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RotateApiKeyResponse

public static final class RotateApiKeyResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<RotateApiKeyResponse.Builder> implements RotateApiKeyResponseOrBuilder
 Response from API key rotation.
 
Protobuf type ai.pipestream.connector.intake.v1.RotateApiKeyResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RotateApiKeyResponse.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.GeneratedMessage.Builder<RotateApiKeyResponse.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.GeneratedMessage.Builder<RotateApiKeyResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public RotateApiKeyResponse.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<RotateApiKeyResponse.Builder>
      Throws:
      IOException
    • getSuccess

      public boolean getSuccess()
       Whether rotation succeeded.
       
      bool success = 1 [json_name = "success"];
      Specified by:
      getSuccess in interface RotateApiKeyResponseOrBuilder
      Returns:
      The success.
    • setSuccess

      public RotateApiKeyResponse.Builder setSuccess(boolean value)
       Whether rotation succeeded.
       
      bool success = 1 [json_name = "success"];
      Parameters:
      value - The success to set.
      Returns:
      This builder for chaining.
    • clearSuccess

      public RotateApiKeyResponse.Builder clearSuccess()
       Whether rotation succeeded.
       
      bool success = 1 [json_name = "success"];
      Returns:
      This builder for chaining.
    • getNewApiKey

      public String getNewApiKey()
       New API key.
       
      string new_api_key = 2 [json_name = "newApiKey"];
      Specified by:
      getNewApiKey in interface RotateApiKeyResponseOrBuilder
      Returns:
      The newApiKey.
    • getNewApiKeyBytes

      public com.google.protobuf.ByteString getNewApiKeyBytes()
       New API key.
       
      string new_api_key = 2 [json_name = "newApiKey"];
      Specified by:
      getNewApiKeyBytes in interface RotateApiKeyResponseOrBuilder
      Returns:
      The bytes for newApiKey.
    • setNewApiKey

      public RotateApiKeyResponse.Builder setNewApiKey(String value)
       New API key.
       
      string new_api_key = 2 [json_name = "newApiKey"];
      Parameters:
      value - The newApiKey to set.
      Returns:
      This builder for chaining.
    • clearNewApiKey

      public RotateApiKeyResponse.Builder clearNewApiKey()
       New API key.
       
      string new_api_key = 2 [json_name = "newApiKey"];
      Returns:
      This builder for chaining.
    • setNewApiKeyBytes

      public RotateApiKeyResponse.Builder setNewApiKeyBytes(com.google.protobuf.ByteString value)
       New API key.
       
      string new_api_key = 2 [json_name = "newApiKey"];
      Parameters:
      value - The bytes for newApiKey to set.
      Returns:
      This builder for chaining.
    • hasOldKeyExpires

      public boolean hasOldKeyExpires()
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
      Specified by:
      hasOldKeyExpires in interface RotateApiKeyResponseOrBuilder
      Returns:
      Whether the oldKeyExpires field is set.
    • getOldKeyExpires

      public com.google.protobuf.Timestamp getOldKeyExpires()
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
      Specified by:
      getOldKeyExpires in interface RotateApiKeyResponseOrBuilder
      Returns:
      The oldKeyExpires.
    • setOldKeyExpires

      public RotateApiKeyResponse.Builder setOldKeyExpires(com.google.protobuf.Timestamp value)
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
    • setOldKeyExpires

      public RotateApiKeyResponse.Builder setOldKeyExpires(com.google.protobuf.Timestamp.Builder builderForValue)
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
    • mergeOldKeyExpires

      public RotateApiKeyResponse.Builder mergeOldKeyExpires(com.google.protobuf.Timestamp value)
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
    • clearOldKeyExpires

      public RotateApiKeyResponse.Builder clearOldKeyExpires()
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
    • getOldKeyExpiresBuilder

      public com.google.protobuf.Timestamp.Builder getOldKeyExpiresBuilder()
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
    • getOldKeyExpiresOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOldKeyExpiresOrBuilder()
       When the old key will stop working.
       
      .google.protobuf.Timestamp old_key_expires = 3 [json_name = "oldKeyExpires"];
      Specified by:
      getOldKeyExpiresOrBuilder in interface RotateApiKeyResponseOrBuilder
    • getMessage

      public String getMessage()
       Status or error message.
       
      string message = 4 [json_name = "message"];
      Specified by:
      getMessage in interface RotateApiKeyResponseOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Status or error message.
       
      string message = 4 [json_name = "message"];
      Specified by:
      getMessageBytes in interface RotateApiKeyResponseOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public RotateApiKeyResponse.Builder setMessage(String value)
       Status or error message.
       
      string message = 4 [json_name = "message"];
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public RotateApiKeyResponse.Builder clearMessage()
       Status or error message.
       
      string message = 4 [json_name = "message"];
      Returns:
      This builder for chaining.
    • setMessageBytes

      public RotateApiKeyResponse.Builder setMessageBytes(com.google.protobuf.ByteString value)
       Status or error message.
       
      string message = 4 [json_name = "message"];
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.