Class Workload (0.15.0)

public final class Workload extends GeneratedMessageV3 implements WorkloadOrBuilder

Contains metadata around the Workload resource in the Assured Workloads API.

Protobuf type google.cloud.cloudcontrolspartner.v1beta.Workload

Implements

WorkloadOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

FOLDER_FIELD_NUMBER

public static final int FOLDER_FIELD_NUMBER
Field Value
Type Description
int

FOLDER_ID_FIELD_NUMBER

public static final int FOLDER_ID_FIELD_NUMBER
Field Value
Type Description
int

IS_ONBOARDED_FIELD_NUMBER

public static final int IS_ONBOARDED_FIELD_NUMBER
Field Value
Type Description
int

KEY_MANAGEMENT_PROJECT_ID_FIELD_NUMBER

public static final int KEY_MANAGEMENT_PROJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PARTNER_FIELD_NUMBER

public static final int PARTNER_FIELD_NUMBER
Field Value
Type Description
int

WORKLOAD_ONBOARDING_STATE_FIELD_NUMBER

public static final int WORKLOAD_ONBOARDING_STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Workload getDefaultInstance()
Returns
Type Description
Workload

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Workload.Builder newBuilder()
Returns
Type Description
Workload.Builder

newBuilder(Workload prototype)

public static Workload.Builder newBuilder(Workload prototype)
Parameter
Name Description
prototype Workload
Returns
Type Description
Workload.Builder

parseDelimitedFrom(InputStream input)

public static Workload parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Workload
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Workload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Workload
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Workload parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Workload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Workload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Workload parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Workload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Workload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Workload parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Workload
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Workload
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Workload parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Workload
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Workload
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Workload parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Workload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Workload
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Workload> parser()
Returns
Type Description
Parser<Workload>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Workload getDefaultInstanceForType()
Returns
Type Description
Workload

getFolder()

public String getFolder()

Output only. The name of container folder of the assured workload

string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The folder.

getFolderBytes()

public ByteString getFolderBytes()

Output only. The name of container folder of the assured workload

string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for folder.

getFolderId()

public long getFolderId()

Output only. Folder id this workload is associated with

int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The folderId.

getIsOnboarded()

public boolean getIsOnboarded()

Indicates whether a workload is fully onboarded.

bool is_onboarded = 6;

Returns
Type Description
boolean

The isOnboarded.

getKeyManagementProjectId()

public String getKeyManagementProjectId()

The project id of the key management project for the workload

string key_management_project_id = 7;

Returns
Type Description
String

The keyManagementProjectId.

getKeyManagementProjectIdBytes()

public ByteString getKeyManagementProjectIdBytes()

The project id of the key management project for the workload

string key_management_project_id = 7;

Returns
Type Description
ByteString

The bytes for keyManagementProjectId.

getLocation()

public String getLocation()

The Google Cloud location of the workload

string location = 8;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The Google Cloud location of the workload

string location = 8;

Returns
Type Description
ByteString

The bytes for location.

getName()

public String getName()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Workload> getParserForType()
Returns
Type Description
Parser<Workload>
Overrides

getPartner()

public Workload.Partner getPartner()

Partner associated with this workload.

.google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9;

Returns
Type Description
Workload.Partner

The partner.

getPartnerValue()

public int getPartnerValue()

Partner associated with this workload.

.google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9;

Returns
Type Description
int

The enum numeric value on the wire for partner.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWorkloadOnboardingState()

public WorkloadOnboardingState getWorkloadOnboardingState()

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5;

Returns
Type Description
WorkloadOnboardingState

The workloadOnboardingState.

getWorkloadOnboardingStateOrBuilder()

public WorkloadOnboardingStateOrBuilder getWorkloadOnboardingStateOrBuilder()

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5;

Returns
Type Description
WorkloadOnboardingStateOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasWorkloadOnboardingState()

public boolean hasWorkloadOnboardingState()

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5;

Returns
Type Description
boolean

Whether the workloadOnboardingState field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Workload.Builder newBuilderForType()
Returns
Type Description
Workload.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Workload.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Workload.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Workload.Builder toBuilder()
Returns
Type Description
Workload.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException