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 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<OsLoginProto.SshPublicKey.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<OsLoginProto.SshPublicKey.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<OsLoginProto.SshPublicKey.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public OsLoginProto.SshPublicKey.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<OsLoginProto.SshPublicKey.Builder>
      Throws:
      IOException
    • getKey

      public String 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:
      getKey in interface OsLoginProto.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:
      getKeyBytes in interface OsLoginProto.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 OsLoginProto.SshPublicKey.Builder 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.
       
      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:
      getExpirationTimeUsec in interface OsLoginProto.SshPublicKeyOrBuilder
      Returns:
      The expirationTimeUsec.
    • setExpirationTimeUsec

      public OsLoginProto.SshPublicKey.Builder setExpirationTimeUsec(long value)
       An expiration time in microseconds since epoch.
       
      int64 expiration_time_usec = 2;
      Parameters:
      value - The expirationTimeUsec to set.
      Returns:
      This builder for chaining.
    • clearExpirationTimeUsec

      public OsLoginProto.SshPublicKey.Builder clearExpirationTimeUsec()
       An expiration time in microseconds since epoch.
       
      int64 expiration_time_usec = 2;
      Returns:
      This builder for chaining.
    • getFingerprint

      public String getFingerprint()
       Output only. The SHA-256 fingerprint of the SSH public key.
       
      string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFingerprint in interface OsLoginProto.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:
      getFingerprintBytes in interface OsLoginProto.SshPublicKeyOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public OsLoginProto.SshPublicKey.Builder setFingerprint(String value)
       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

      public OsLoginProto.SshPublicKey.Builder 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

      public OsLoginProto.SshPublicKey.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
       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

      public String getName()
       Output only. The canonical resource name.
       
      string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface OsLoginProto.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:
      getNameBytes in interface OsLoginProto.SshPublicKeyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public OsLoginProto.SshPublicKey.Builder setName(String value)
       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

      public OsLoginProto.SshPublicKey.Builder setNameBytes(com.google.protobuf.ByteString value)
       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.