Package com.buildless.authz
Class ApiKeyInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.buildless.authz.ApiKeyInfo
- All Implemented Interfaces:
ApiKeyInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ApiKeyInfo
extends com.google.protobuf.GeneratedMessageV3
implements ApiKeyInfoOrBuilder
## API Key Info Specifies information about a single API key record.Protobuf type
buildless.authz.ApiKeyInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class## API Key Info Specifies information about a single API key record.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether this key is currently active.static ApiKeyInfostatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampExpiration of this key, if applicable.com.google.protobuf.TimestampOrBuilderExpiration of this key, if applicable.getId()Unique ID for the API key record being described.com.google.protobuf.ByteStringUnique ID for the API key record being described.getKey()API key value; note that this value is masked with Base64.com.google.protobuf.ByteStringAPI key value; note that this value is masked with Base64.getLabel()Label to show for this API key.com.google.protobuf.ByteStringLabel to show for this API key.com.google.protobuf.Parser<ApiKeyInfo>Privilege level for this key.intPrivilege level for this key.com.google.protobuf.TimestampRevocation time of this key, if applicable.com.google.protobuf.TimestampOrBuilderRevocation time of this key, if applicable.intbooleanExpiration of this key, if applicable.inthashCode()booleanRevocation time of this key, if applicable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ApiKeyInfo.Builderstatic ApiKeyInfo.BuildernewBuilder(ApiKeyInfo prototype) protected ApiKeyInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ApiKeyInfoparseDelimitedFrom(InputStream input) static ApiKeyInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyInfoparseFrom(byte[] data) static ApiKeyInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyInfoparseFrom(com.google.protobuf.ByteString data) static ApiKeyInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyInfoparseFrom(com.google.protobuf.CodedInputStream input) static ApiKeyInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyInfoparseFrom(InputStream input) static ApiKeyInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyInfoparseFrom(ByteBuffer data) static ApiKeyInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ApiKeyInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER- See Also:
-
PRIVILEGE_FIELD_NUMBER
public static final int PRIVILEGE_FIELD_NUMBER- See Also:
-
ACTIVE_FIELD_NUMBER
public static final int ACTIVE_FIELD_NUMBER- See Also:
-
EXPIRES_AT_FIELD_NUMBER
public static final int EXPIRES_AT_FIELD_NUMBER- See Also:
-
REVOKED_AT_FIELD_NUMBER
public static final int REVOKED_AT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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:
getIdin interfaceApiKeyInfoOrBuilder- 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:
getIdBytesin interfaceApiKeyInfoOrBuilder- Returns:
- The bytes for id.
-
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:
getKeyin interfaceApiKeyInfoOrBuilder- 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:
getKeyBytesin interfaceApiKeyInfoOrBuilder- Returns:
- The bytes for key.
-
getLabel
Label to show for this API key.
string label = 3 [json_name = "label", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLabelin interfaceApiKeyInfoOrBuilder- 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:
getLabelBytesin interfaceApiKeyInfoOrBuilder- Returns:
- The bytes for label.
-
getPrivilegeValue
public int getPrivilegeValue()Privilege level for this key.
.buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];- Specified by:
getPrivilegeValuein interfaceApiKeyInfoOrBuilder- Returns:
- The enum numeric value on the wire for privilege.
-
getPrivilege
Privilege level for this key.
.buildless.authz.PrivilegeLevel privilege = 4 [json_name = "privilege"];- Specified by:
getPrivilegein interfaceApiKeyInfoOrBuilder- Returns:
- The privilege.
-
getActive
public boolean getActive()Whether this key is currently active.
bool active = 5 [json_name = "active"];- Specified by:
getActivein interfaceApiKeyInfoOrBuilder- Returns:
- The active.
-
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:
hasExpiresAtin interfaceApiKeyInfoOrBuilder- 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:
getExpiresAtin interfaceApiKeyInfoOrBuilder- Returns:
- The expiresAt.
-
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:
getExpiresAtOrBuilderin interfaceApiKeyInfoOrBuilder
-
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:
hasRevokedAtin interfaceApiKeyInfoOrBuilder- 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:
getRevokedAtin interfaceApiKeyInfoOrBuilder- Returns:
- The revokedAt.
-
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:
getRevokedAtOrBuilderin interfaceApiKeyInfoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ApiKeyInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ApiKeyInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ApiKeyInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ApiKeyInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ApiKeyInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-