public static final class Workload.ResourceInfo extends GeneratedMessageV3 implements Workload.ResourceInfoOrBuilder
Represent the resources that are children of this Workload.
Protobuf type google.cloud.assuredworkloads.v1.Workload.ResourceInfo
Static Fields
RESOURCE_ID_FIELD_NUMBER
public static final int RESOURCE_ID_FIELD_NUMBER
Field Value
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Workload.ResourceInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Workload.ResourceInfo.Builder newBuilder()
Returns
newBuilder(Workload.ResourceInfo prototype)
public static Workload.ResourceInfo.Builder newBuilder(Workload.ResourceInfo prototype)
Parameter
Returns
public static Workload.ResourceInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Workload.ResourceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Workload.ResourceInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Workload.ResourceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Workload.ResourceInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Workload.ResourceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Workload.ResourceInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Workload.ResourceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Workload.ResourceInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Workload.ResourceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Workload.ResourceInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Workload.ResourceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Workload.ResourceInfo> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Workload.ResourceInfo getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Workload.ResourceInfo> getParserForType()
Returns
Overrides
getResourceId()
public long getResourceId()
Resource identifier.
For a project this represents project_number.
int64 resource_id = 1;
Returns
Type | Description |
long | The resourceId.
|
getResourceType()
public Workload.ResourceInfo.ResourceType getResourceType()
Indicates the type of resource.
.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
Returns
getResourceTypeValue()
public int getResourceTypeValue()
Indicates the type of resource.
.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for resourceType.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Workload.ResourceInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Workload.ResourceInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Workload.ResourceInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions