Class ResourceIdentifier (0.1.0)

public final class ResourceIdentifier extends GeneratedMessageV3 implements ResourceIdentifierOrBuilder

The identifier for a Google Cloud Platform resource.

Protobuf type google.cloud.capacityplanner.v1beta.ResourceIdentifier

Static Fields

RESOURCE_ATTRIBUTES_FIELD_NUMBER

public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_NAME_FIELD_NUMBER

public static final int RESOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_NAME_FIELD_NUMBER

public static final int SERVICE_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceIdentifier getDefaultInstance()
Returns
Type Description
ResourceIdentifier

getDescriptor()

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

newBuilder()

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

newBuilder(ResourceIdentifier prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ResourceIdentifier getDefaultInstanceForType()
Returns
Type Description
ResourceIdentifier

getParserForType()

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

getResourceAttributes(int index)

public ResourceAttribute getResourceAttributes(int index)

repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

Parameter
Name Description
index int
Returns
Type Description
ResourceAttribute

getResourceAttributesCount()

public int getResourceAttributesCount()

repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

Returns
Type Description
int

getResourceAttributesList()

public List<ResourceAttribute> getResourceAttributesList()

repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

Returns
Type Description
List<ResourceAttribute>

getResourceAttributesOrBuilder(int index)

public ResourceAttributeOrBuilder getResourceAttributesOrBuilder(int index)

repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

Parameter
Name Description
index int
Returns
Type Description
ResourceAttributeOrBuilder

getResourceAttributesOrBuilderList()

public List<? extends ResourceAttributeOrBuilder> getResourceAttributesOrBuilderList()

repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

Returns
Type Description
List<? extends com.google.cloud.capacityplanner.v1beta.ResourceAttributeOrBuilder>

getResourceName()

public String getResourceName()

string resource_name = 2;

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

string resource_name = 2;

Returns
Type Description
ByteString

The bytes for resourceName.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceName()

public String getServiceName()

string service_name = 1;

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

string service_name = 1;

Returns
Type Description
ByteString

The bytes for serviceName.

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 ResourceIdentifier.Builder newBuilderForType()
Returns
Type Description
ResourceIdentifier.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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