Class Workload (0.4.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
TypeDescription
int

FOLDER_FIELD_NUMBER

public static final int FOLDER_FIELD_NUMBER
Field Value
TypeDescription
int

FOLDER_ID_FIELD_NUMBER

public static final int FOLDER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

IS_ONBOARDED_FIELD_NUMBER

public static final int IS_ONBOARDED_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_MANAGEMENT_PROJECT_ID_FIELD_NUMBER

public static final int KEY_MANAGEMENT_PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PARTNER_FIELD_NUMBER

public static final int PARTNER_FIELD_NUMBER
Field Value
TypeDescription
int

WORKLOAD_ONBOARDING_STATE_FIELD_NUMBER

public static final int WORKLOAD_ONBOARDING_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Workload getDefaultInstance()
Returns
TypeDescription
Workload

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Workload.Builder newBuilder()
Returns
TypeDescription
Workload.Builder

newBuilder(Workload prototype)

public static Workload.Builder newBuilder(Workload prototype)
Parameter
NameDescription
prototypeWorkload
Returns
TypeDescription
Workload.Builder

parseDelimitedFrom(InputStream input)

public static Workload parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Workload
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Workload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Workload parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Workload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Workload parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Workload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Workload parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Workload
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Workload parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Workload
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Workload parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Workload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Workload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Workload> parser()
Returns
TypeDescription
Parser<Workload>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Workload getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The folderId.

getIsOnboarded()

public boolean getIsOnboarded()

Indicates whether a workload is fully onboarded.

bool is_onboarded = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for keyManagementProjectId.

getLocation()

public String getLocation()

The Google Cloud location of the workload

string location = 8;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The Google Cloud location of the workload

string location = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Workload> getParserForType()
Returns
TypeDescription
Parser<Workload>
Overrides

getPartner()

public Workload.Partner getPartner()

Partner associated with this workload.

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

Returns
TypeDescription
Workload.Partner

The partner.

getPartnerValue()

public int getPartnerValue()

Partner associated with this workload.

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

Returns
TypeDescription
int

The enum numeric value on the wire for partner.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWorkloadOnboardingState()

public WorkloadOnboardingState getWorkloadOnboardingState()

Container for workload onboarding steps.

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

Returns
TypeDescription
WorkloadOnboardingState

The workloadOnboardingState.

getWorkloadOnboardingStateOrBuilder()

public WorkloadOnboardingStateOrBuilder getWorkloadOnboardingStateOrBuilder()

Container for workload onboarding steps.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the workloadOnboardingState field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Workload.Builder newBuilderForType()
Returns
TypeDescription
Workload.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Workload.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Workload.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Workload.Builder toBuilder()
Returns
TypeDescription
Workload.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException