Class WorkloadProperties (0.1.0)

public final class WorkloadProperties extends GeneratedMessageV3 implements WorkloadPropertiesOrBuilder

Properties of an underlying compute resource represented by the Workload.

Protobuf type google.cloud.apphub.v1.WorkloadProperties

Static Fields

GCP_PROJECT_FIELD_NUMBER

public static final int GCP_PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WorkloadProperties getDefaultInstance()
Returns
TypeDescription
WorkloadProperties

getDescriptor()

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

newBuilder()

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

newBuilder(WorkloadProperties prototype)

public static WorkloadProperties.Builder newBuilder(WorkloadProperties prototype)
Parameter
NameDescription
prototypeWorkloadProperties
Returns
TypeDescription
WorkloadProperties.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public WorkloadProperties getDefaultInstanceForType()
Returns
TypeDescription
WorkloadProperties

getGcpProject()

public String getGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The gcpProject.

getGcpProjectBytes()

public ByteString getGcpProjectBytes()

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for gcpProject.

getLocation()

public String getLocation()

Output only. The location that the underlying compute resource resides in (e.g us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location that the underlying compute resource resides in (e.g us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for location.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getZone()

public String getZone()

Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for zone.

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 WorkloadProperties.Builder newBuilderForType()
Returns
TypeDescription
WorkloadProperties.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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