Interface ImportSshPublicKeyRequestOrBuilder (2.34.0)

public interface ImportSshPublicKeyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

Required. The unique ID for the user in format users/{user}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The unique ID for the user in format users/{user}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getProjectId()

public abstract String getProjectId()

The project ID of the Google Cloud Platform project.

string project_id = 3;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public abstract ByteString getProjectIdBytes()

The project ID of the Google Cloud Platform project.

string project_id = 3;

Returns
TypeDescription
ByteString

The bytes for projectId.

getRegions(int index)

public abstract String getRegions(int index)

Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.

repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The regions at the given index.

getRegionsBytes(int index)

public abstract ByteString getRegionsBytes(int index)

Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.

repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the regions at the given index.

getRegionsCount()

public abstract int getRegionsCount()

Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.

repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of regions.

getRegionsList()

public abstract List<String> getRegionsList()

Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.

repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<String>

A list containing the regions.

getSshPublicKey()

public abstract OsLoginProto.SshPublicKey getSshPublicKey()

Optional. The SSH public key and expiration time.

.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OsLoginProto.SshPublicKey

The sshPublicKey.

getSshPublicKeyOrBuilder()

public abstract OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder()

Optional. The SSH public key and expiration time.

.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OsLoginProto.SshPublicKeyOrBuilder

hasSshPublicKey()

public abstract boolean hasSshPublicKey()

Optional. The SSH public key and expiration time.

.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the sshPublicKey field is set.