Interface ImportSshPublicKeyRequestOrBuilder (2.50.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
Type Description
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
Type Description
ByteString

The bytes for parent.

getProjectId()

public abstract String getProjectId()

The project ID of the Google Cloud Platform project.

string project_id = 3;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public abstract ByteString getProjectIdBytes()

The project ID of the Google Cloud Platform project.

string project_id = 3;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the sshPublicKey field is set.