Class ApiKeyInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ApiKeyInfo.Builder>
com.buildless.authz.ApiKeyInfo.Builder
All Implemented Interfaces:
ApiKeyInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ApiKeyInfo

public static final class ApiKeyInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiKeyInfo.Builder> implements ApiKeyInfoOrBuilder
 ## API Key Info

 Specifies information about a single API key record.
 
Protobuf type buildless.authz.ApiKeyInfo
  • 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<ApiKeyInfo.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ApiKeyInfo.Builder mergeFrom(ApiKeyInfo other)
    • isInitialized

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

      public ApiKeyInfo.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<ApiKeyInfo.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Unique ID for the API key record being described.
       
      string id = 1 [json_name = "id", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface ApiKeyInfoOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Unique ID for the API key record being described.
       
      string id = 1 [json_name = "id", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdBytes in interface ApiKeyInfoOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ApiKeyInfo.Builder setId(String value)
       Unique ID for the API key record being described.
       
      string id = 1 [json_name = "id", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ApiKeyInfo.Builder clearId()
       Unique ID for the API key record being described.
       
      string id = 1 [json_name = "id", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public ApiKeyInfo.Builder setIdBytes(com.google.protobuf.ByteString value)
       Unique ID for the API key record being described.
       
      string id = 1 [json_name = "id", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       API key value; note that this value is masked with Base64.
       
      string key = 2 [json_name = "key", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKey in interface ApiKeyInfoOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       API key value; note that this value is masked with Base64.
       
      string key = 2 [json_name = "key", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKeyBytes in interface ApiKeyInfoOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public ApiKeyInfo.Builder setKey(String value)
       API key value; note that this value is masked with Base64.
       
      string key = 2 [json_name = "key", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public ApiKeyInfo.Builder clearKey()
       API key value; note that this value is masked with Base64.
       
      string key = 2 [json_name = "key", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public ApiKeyInfo.Builder setKeyBytes(com.google.protobuf.ByteString value)
       API key value; note that this value is masked with Base64.
       
      string key = 2 [json_name = "key", (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getLabel

      public String getLabel()
       Label to show for this API key.
       
      string label = 3 [json_name = "label", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLabel in interface ApiKeyInfoOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       Label to show for this API key.
       
      string label = 3 [json_name = "label", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLabelBytes in interface ApiKeyInfoOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public ApiKeyInfo.Builder setLabel(String value)
       Label to show for this API key.
       
      string label = 3 [json_name = "label", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public ApiKeyInfo.Builder clearLabel()
       Label to show for this API key.
       
      string label = 3 [json_name = "label", (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLabelBytes

      public ApiKeyInfo.Builder setLabelBytes(com.google.protobuf.ByteString value)
       Label to show for this API key.
       
      string label = 3 [json_name = "label", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • getPrivilegeValue

      public int getPrivilegeValue()
       Privilege level for this key.
       
      .buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];
      Specified by:
      getPrivilegeValue in interface ApiKeyInfoOrBuilder
      Returns:
      The enum numeric value on the wire for privilege.
    • setPrivilegeValue

      public ApiKeyInfo.Builder setPrivilegeValue(int value)
       Privilege level for this key.
       
      .buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];
      Parameters:
      value - The enum numeric value on the wire for privilege to set.
      Returns:
      This builder for chaining.
    • getPrivilege

      public PrivilegeLevel getPrivilege()
       Privilege level for this key.
       
      .buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];
      Specified by:
      getPrivilege in interface ApiKeyInfoOrBuilder
      Returns:
      The privilege.
    • setPrivilege

      public ApiKeyInfo.Builder setPrivilege(PrivilegeLevel value)
       Privilege level for this key.
       
      .buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];
      Parameters:
      value - The privilege to set.
      Returns:
      This builder for chaining.
    • clearPrivilege

      public ApiKeyInfo.Builder clearPrivilege()
       Privilege level for this key.
       
      .buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];
      Returns:
      This builder for chaining.
    • getActive

      public boolean getActive()
       Whether this key is currently active.
       
      bool active = 5 [json_name = "active"];
      Specified by:
      getActive in interface ApiKeyInfoOrBuilder
      Returns:
      The active.
    • setActive

      public ApiKeyInfo.Builder setActive(boolean value)
       Whether this key is currently active.
       
      bool active = 5 [json_name = "active"];
      Parameters:
      value - The active to set.
      Returns:
      This builder for chaining.
    • clearActive

      public ApiKeyInfo.Builder clearActive()
       Whether this key is currently active.
       
      bool active = 5 [json_name = "active"];
      Returns:
      This builder for chaining.
    • hasExpiresAt

      public boolean hasExpiresAt()
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasExpiresAt in interface ApiKeyInfoOrBuilder
      Returns:
      Whether the expiresAt field is set.
    • getExpiresAt

      public com.google.protobuf.Timestamp getExpiresAt()
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpiresAt in interface ApiKeyInfoOrBuilder
      Returns:
      The expiresAt.
    • setExpiresAt

      public ApiKeyInfo.Builder setExpiresAt(com.google.protobuf.Timestamp value)
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setExpiresAt

      public ApiKeyInfo.Builder setExpiresAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeExpiresAt

      public ApiKeyInfo.Builder mergeExpiresAt(com.google.protobuf.Timestamp value)
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearExpiresAt

      public ApiKeyInfo.Builder clearExpiresAt()
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpiresAtBuilder

      public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder()
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpiresAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder()
       Expiration of this key, if applicable.
       
      .google.protobuf.Timestamp expires_at = 6 [json_name = "expiresAt", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpiresAtOrBuilder in interface ApiKeyInfoOrBuilder
    • hasRevokedAt

      public boolean hasRevokedAt()
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRevokedAt in interface ApiKeyInfoOrBuilder
      Returns:
      Whether the revokedAt field is set.
    • getRevokedAt

      public com.google.protobuf.Timestamp getRevokedAt()
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevokedAt in interface ApiKeyInfoOrBuilder
      Returns:
      The revokedAt.
    • setRevokedAt

      public ApiKeyInfo.Builder setRevokedAt(com.google.protobuf.Timestamp value)
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setRevokedAt

      public ApiKeyInfo.Builder setRevokedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeRevokedAt

      public ApiKeyInfo.Builder mergeRevokedAt(com.google.protobuf.Timestamp value)
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRevokedAt

      public ApiKeyInfo.Builder clearRevokedAt()
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getRevokedAtBuilder

      public com.google.protobuf.Timestamp.Builder getRevokedAtBuilder()
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getRevokedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRevokedAtOrBuilder()
       Revocation time of this key, if applicable.
       
      .google.protobuf.Timestamp revoked_at = 7 [json_name = "revokedAt", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevokedAtOrBuilder in interface ApiKeyInfoOrBuilder
    • setUnknownFields

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

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