Package com.google.cloud.oslogin.common
Class OsLoginProto.SshPublicKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>
com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder
- All Implemented Interfaces:
OsLoginProto.SshPublicKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OsLoginProto.SshPublicKey
public static final class OsLoginProto.SshPublicKey.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>
implements OsLoginProto.SshPublicKeyOrBuilder
The SSH public key information associated with a Google account.Protobuf type
google.cloud.oslogin.common.SshPublicKey-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An expiration time in microseconds since epoch.Output only.clearKey()Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongAn expiration time in microseconds since epoch.Output only.com.google.protobuf.ByteStringOutput only.getKey()Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.com.google.protobuf.ByteStringPublic key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.getName()Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExpirationTimeUsec(long value) An expiration time in microseconds since epoch.setFingerprint(String value) Output only.setFingerprintBytes(com.google.protobuf.ByteString value) Output only.Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.setKeyBytes(com.google.protobuf.ByteString value) Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OsLoginProto.SshPublicKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>
-
mergeFrom
public OsLoginProto.SshPublicKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OsLoginProto.SshPublicKey.Builder>- Throws:
IOException
-
getKey
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;- Specified by:
getKeyin interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;- Specified by:
getKeyBytesin interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The bytes for key.
-
setKey
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getExpirationTimeUsec
public long getExpirationTimeUsec()An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;- Specified by:
getExpirationTimeUsecin interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The expirationTimeUsec.
-
setExpirationTimeUsec
An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;- Parameters:
value- The expirationTimeUsec to set.- Returns:
- This builder for chaining.
-
clearExpirationTimeUsec
An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;- Returns:
- This builder for chaining.
-
getFingerprint
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFingerprintin interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFingerprintBytesin interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setFingerprintBytes
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
getName
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceOsLoginProto.SshPublicKeyOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-