Class ResourceMaintenance.Resource (0.2.0)

public static final class ResourceMaintenance.Resource extends GeneratedMessageV3 implements ResourceMaintenance.ResourceOrBuilder

Resource contains information about the resource affected by maintenance.

Protobuf type google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource

Static Fields

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_NAME_FIELD_NUMBER

public static final int RESOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceMaintenance.Resource getDefaultInstance()
Returns
Type Description
ResourceMaintenance.Resource

getDescriptor()

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

newBuilder()

public static ResourceMaintenance.Resource.Builder newBuilder()
Returns
Type Description
ResourceMaintenance.Resource.Builder

newBuilder(ResourceMaintenance.Resource prototype)

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

parseDelimitedFrom(InputStream input)

public static ResourceMaintenance.Resource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceMaintenance.Resource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ResourceMaintenance.Resource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourceMaintenance.Resource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ResourceMaintenance.Resource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourceMaintenance.Resource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ResourceMaintenance.Resource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceMaintenance.Resource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ResourceMaintenance.Resource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourceMaintenance.Resource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ResourceMaintenance.Resource> parser()
Returns
Type Description
Parser<Resource>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ResourceMaintenance.Resource getDefaultInstanceForType()
Returns
Type Description
ResourceMaintenance.Resource

getLocation()

public String getLocation()

Output only. The location of the resource. Format: us-central1

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

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location of the resource. Format: us-central1

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

Returns
Type Description
ByteString

The bytes for location.

getParserForType()

public Parser<ResourceMaintenance.Resource> getParserForType()
Returns
Type Description
Parser<Resource>
Overrides

getResourceName()

public String getResourceName()

Output only. Name is the reference to the consumer resource affected by the maintenance. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-names

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

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

Output only. Name is the reference to the consumer resource affected by the maintenance. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-names

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

Returns
Type Description
ByteString

The bytes for resourceName.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public String getType()

Output only. The type of the resource. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types Please note that not all the resource types will have their maintenances reported.

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

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Output only. The type of the resource. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types Please note that not all the resource types will have their maintenances reported.

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

Returns
Type Description
ByteString

The bytes for type.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ResourceMaintenance.Resource.Builder toBuilder()
Returns
Type Description
ResourceMaintenance.Resource.Builder

writeTo(CodedOutputStream output)

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