public final class Workload extends GeneratedMessageV3 implements WorkloadOrBuilder
An Workload object for managing highly regulated workloads of cloud
customers.
Protobuf type google.cloud.assuredworkloads.v1beta1.Workload
Fields
BILLING_ACCOUNT_FIELD_NUMBER
public static final int BILLING_ACCOUNT_FIELD_NUMBER
Field Value
CJIS_SETTINGS_FIELD_NUMBER
public static final int CJIS_SETTINGS_FIELD_NUMBER
Field Value
COMPLIANCE_REGIME_FIELD_NUMBER
public static final int COMPLIANCE_REGIME_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value
FEDRAMP_HIGH_SETTINGS_FIELD_NUMBER
public static final int FEDRAMP_HIGH_SETTINGS_FIELD_NUMBER
Field Value
FEDRAMP_MODERATE_SETTINGS_FIELD_NUMBER
public static final int FEDRAMP_MODERATE_SETTINGS_FIELD_NUMBER
Field Value
IL4_SETTINGS_FIELD_NUMBER
public static final int IL4_SETTINGS_FIELD_NUMBER
Field Value
KMS_SETTINGS_FIELD_NUMBER
public static final int KMS_SETTINGS_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PROVISIONED_RESOURCES_PARENT_FIELD_NUMBER
public static final int PROVISIONED_RESOURCES_PARENT_FIELD_NUMBER
Field Value
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
Field Value
RESOURCE_SETTINGS_FIELD_NUMBER
public static final int RESOURCE_SETTINGS_FIELD_NUMBER
Field Value
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Optional. Labels applied to the workload.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBillingAccount()
public String getBillingAccount()
Input only. The billing account used for the resources which are
direct children of workload. This billing account is initially associated
with the resources created as part of Workload creation.
After the initial creation of these resources, the customer can change
the assigned billing account.
The resource name has the form
billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
.
string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
String | The billingAccount.
|
getBillingAccountBytes()
public ByteString getBillingAccountBytes()
Input only. The billing account used for the resources which are
direct children of workload. This billing account is initially associated
with the resources created as part of Workload creation.
After the initial creation of these resources, the customer can change
the assigned billing account.
The resource name has the form
billingAccounts/{billing_account_id}
. For example,
billingAccounts/012345-567890-ABCDEF
.
string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for billingAccount.
|
getCjisSettings()
public Workload.CJISSettings getCjisSettings()
Required. Input only. Immutable. Settings specific to resources needed for CJIS.
.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getCjisSettingsOrBuilder()
public Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder()
Required. Input only. Immutable. Settings specific to resources needed for CJIS.
.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getComplianceRegime()
public Workload.ComplianceRegime getComplianceRegime()
Required. Immutable. Compliance Regime associated with this workload.
.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
getComplianceRegimeSettingsCase()
public Workload.ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase()
Returns
getComplianceRegimeValue()
public int getComplianceRegimeValue()
Required. Immutable. Compliance Regime associated with this workload.
.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
int | The enum numeric value on the wire for complianceRegime.
|
getCreateTime()
public Timestamp getCreateTime()
Output only. Immutable. The Workload creation timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Immutable. The Workload creation timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getDefaultInstance()
public static Workload getDefaultInstance()
Returns
getDefaultInstanceForType()
public Workload getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDisplayName()
public String getDisplayName()
Required. The user-assigned display name of the Workload.
When present it must be between 4 to 30 characters.
Allowed characters are: lowercase and uppercase letters, numbers,
hyphen, and spaces.
Example: My Workload
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The user-assigned display name of the Workload.
When present it must be between 4 to 30 characters.
Allowed characters are: lowercase and uppercase letters, numbers,
hyphen, and spaces.
Example: My Workload
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getEtag()
Optional. ETag of the workload, it is calculated on the basis
of the Workload contents. It will be used in Update & Delete operations.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Optional. ETag of the workload, it is calculated on the basis
of the Workload contents. It will be used in Update & Delete operations.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns
getFedrampHighSettings()
public Workload.FedrampHighSettings getFedrampHighSettings()
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High.
.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getFedrampHighSettingsOrBuilder()
public Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder()
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High.
.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getFedrampModerateSettings()
public Workload.FedrampModerateSettings getFedrampModerateSettings()
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getFedrampModerateSettingsOrBuilder()
public Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder()
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getIl4Settings()
public Workload.IL4Settings getIl4Settings()
Required. Input only. Immutable. Settings specific to resources needed for IL4.
.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getIl4SettingsOrBuilder()
public Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder()
Required. Input only. Immutable. Settings specific to resources needed for IL4.
.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
getKmsSettings()
public Workload.KMSSettings getKmsSettings()
Input only. Settings used to create a CMEK crypto key. When set a project with a KMS
CMEK key is provisioned. This field is mandatory for a subset of Compliance
Regimes.
.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
getKmsSettingsOrBuilder()
public Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder()
Input only. Settings used to create a CMEK crypto key. When set a project with a KMS
CMEK key is provisioned. This field is mandatory for a subset of Compliance
Regimes.
.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Optional. Labels applied to the workload.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. Labels applied to the workload.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. Labels applied to the workload.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. Labels applied to the workload.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getName()
Optional. The resource name of the workload.
Format:
organizations/{organization}/locations/{location}/workloads/{workload}
Read-only.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Optional. The resource name of the workload.
Format:
organizations/{organization}/locations/{location}/workloads/{workload}
Read-only.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
getParserForType()
public Parser<Workload> getParserForType()
Returns
Overrides
getProvisionedResourcesParent()
public String getProvisionedResourcesParent()
Input only. The parent resource for the resources managed by this Assured Workload. May
be either empty or a folder resource which is a child of the
Workload parent. If not specified all resources are created under the
parent organization.
Format:
folders/{folder_id}
string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
String | The provisionedResourcesParent.
|
getProvisionedResourcesParentBytes()
public ByteString getProvisionedResourcesParentBytes()
Input only. The parent resource for the resources managed by this Assured Workload. May
be either empty or a folder resource which is a child of the
Workload parent. If not specified all resources are created under the
parent organization.
Format:
folders/{folder_id}
string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for provisionedResourcesParent.
|
getResourceSettings(int index)
public Workload.ResourceSettings getResourceSettings(int index)
Input only. Resource properties that are used to customize workload resources.
These properties (such as custom project id) will be used to create
workload resources if possible. This field is optional.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY];
Parameter
Returns
getResourceSettingsCount()
public int getResourceSettingsCount()
Input only. Resource properties that are used to customize workload resources.
These properties (such as custom project id) will be used to create
workload resources if possible. This field is optional.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
getResourceSettingsList()
public List<Workload.ResourceSettings> getResourceSettingsList()
Input only. Resource properties that are used to customize workload resources.
These properties (such as custom project id) will be used to create
workload resources if possible. This field is optional.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
getResourceSettingsOrBuilder(int index)
public Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder(int index)
Input only. Resource properties that are used to customize workload resources.
These properties (such as custom project id) will be used to create
workload resources if possible. This field is optional.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY];
Parameter
Returns
getResourceSettingsOrBuilderList()
public List<? extends Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList()
Input only. Resource properties that are used to customize workload resources.
These properties (such as custom project id) will be used to create
workload resources if possible. This field is optional.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> | |
getResources(int index)
public Workload.ResourceInfo getResources(int index)
Output only. The resources associated with this workload.
These resources will be created when creating the workload.
If any of the projects already exist, the workload creation will fail.
Always read only.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getResourcesCount()
public int getResourcesCount()
Output only. The resources associated with this workload.
These resources will be created when creating the workload.
If any of the projects already exist, the workload creation will fail.
Always read only.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getResourcesList()
public List<Workload.ResourceInfo> getResourcesList()
Output only. The resources associated with this workload.
These resources will be created when creating the workload.
If any of the projects already exist, the workload creation will fail.
Always read only.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getResourcesOrBuilder(int index)
public Workload.ResourceInfoOrBuilder getResourcesOrBuilder(int index)
Output only. The resources associated with this workload.
These resources will be created when creating the workload.
If any of the projects already exist, the workload creation will fail.
Always read only.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getResourcesOrBuilderList()
public List<? extends Workload.ResourceInfoOrBuilder> getResourcesOrBuilderList()
Output only. The resources associated with this workload.
These resources will be created when creating the workload.
If any of the projects already exist, the workload creation will fail.
Always read only.
repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCjisSettings()
public boolean hasCjisSettings()
Required. Input only. Immutable. Settings specific to resources needed for CJIS.
.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
boolean | Whether the cjisSettings field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Immutable. The Workload creation timestamp.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasFedrampHighSettings()
public boolean hasFedrampHighSettings()
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High.
.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
boolean | Whether the fedrampHighSettings field is set.
|
hasFedrampModerateSettings()
public boolean hasFedrampModerateSettings()
Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
boolean | Whether the fedrampModerateSettings field is set.
|
hasIl4Settings()
public boolean hasIl4Settings()
Required. Input only. Immutable. Settings specific to resources needed for IL4.
.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
boolean | Whether the il4Settings field is set.
|
hasKmsSettings()
public boolean hasKmsSettings()
Input only. Settings used to create a CMEK crypto key. When set a project with a KMS
CMEK key is provisioned. This field is mandatory for a subset of Compliance
Regimes.
.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
boolean | Whether the kmsSettings field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Workload.Builder newBuilder()
Returns
newBuilder(Workload prototype)
public static Workload.Builder newBuilder(Workload prototype)
Parameter
Returns
newBuilderForType()
public Workload.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Workload.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Workload parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Workload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Workload parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Workload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Workload parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Workload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Workload parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Workload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Workload parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Workload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Workload parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Workload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Workload> parser()
Returns
toBuilder()
public Workload.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions