Package com.google.cloud.apphub.v1
Interface WorkloadOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Workload,Workload.Builder
@Generated
public interface WorkloadOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.getState()Output only.intOutput only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.Output only.Output only.Output only.booleanOptional.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Identifier. The resource name of the Workload. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Identifier. The resource name of the Workload. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The bytes for name.
-
getDisplayName
String getDisplayName()Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for displayName.
-
getDescription
String getDescription()Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for description.
-
hasWorkloadReference
boolean hasWorkloadReference()Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
.google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the workloadReference field is set.
-
getWorkloadReference
WorkloadReference getWorkloadReference()Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
.google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The workloadReference.
-
getWorkloadReferenceOrBuilder
WorkloadReferenceOrBuilder getWorkloadReferenceOrBuilder()Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
.google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasWorkloadProperties
boolean hasWorkloadProperties()Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
.google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the workloadProperties field is set.
-
getWorkloadProperties
WorkloadProperties getWorkloadProperties()Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
.google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The workloadProperties.
-
getWorkloadPropertiesOrBuilder
WorkloadPropertiesOrBuilder getWorkloadPropertiesOrBuilder()Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
.google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDiscoveredWorkload
String getDiscoveredWorkload()Required. Immutable. The resource name of the original discovered workload.
string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- The discoveredWorkload.
-
getDiscoveredWorkloadBytes
com.google.protobuf.ByteString getDiscoveredWorkloadBytes()Required. Immutable. The resource name of the original discovered workload.
string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for discoveredWorkload.
-
hasAttributes
boolean hasAttributes()Optional. Consumer provided attributes.
.google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the attributes field is set.
-
getAttributes
Attributes getAttributes()Optional. Consumer provided attributes.
.google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The attributes.
-
getAttributesOrBuilder
AttributesOrBuilder getAttributesOrBuilder()Optional. Consumer provided attributes.
.google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; -
hasCreateTime
boolean hasCreateTime()Output only. Create time.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. Create time.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Create time.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. Update time.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. Update time.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Update time.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUid
String getUid()Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- The uid.
-
getUidBytes
com.google.protobuf.ByteString getUidBytes()Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- The bytes for uid.
-
getStateValue
int getStateValue()Output only. Workload state.
.google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
Workload.State getState()Output only. Workload state.
.google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-