Interface Workload.ResourceSettingsOrBuilder (2.15.0)

public static interface Workload.ResourceSettingsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDisplayName()

public abstract String getDisplayName()

User-assigned resource display name. If not empty it will be used to create a resource with the specified name.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

User-assigned resource display name. If not empty it will be used to create a resource with the specified name.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getResourceId()

public abstract String getResourceId()

Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.

string resource_id = 1;

Returns
TypeDescription
String

The resourceId.

getResourceIdBytes()

public abstract ByteString getResourceIdBytes()

Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.

string resource_id = 1;

Returns
TypeDescription
ByteString

The bytes for resourceId.

getResourceType()

public abstract Workload.ResourceInfo.ResourceType getResourceType()

Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)

.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2;

Returns
TypeDescription
Workload.ResourceInfo.ResourceType

The resourceType.

getResourceTypeValue()

public abstract int getResourceTypeValue()

Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)

.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for resourceType.