Class ResourceMaintenance.Resource.Builder (0.19.0)

public static final class ResourceMaintenance.Resource.Builder extends GeneratedMessage.Builder<ResourceMaintenance.Resource.Builder> implements ResourceMaintenance.ResourceOrBuilder

Resource contains information about the resource affected by maintenance.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public ResourceMaintenance.Resource.Builder clear()
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides

clearLocation()

public ResourceMaintenance.Resource.Builder clearLocation()

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

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

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.

clearResourceName()

public ResourceMaintenance.Resource.Builder clearResourceName()

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
ResourceMaintenance.Resource.Builder

This builder for chaining.

clearType()

public ResourceMaintenance.Resource.Builder clearType()

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
ResourceMaintenance.Resource.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceMaintenance.Resource other)

public ResourceMaintenance.Resource.Builder mergeFrom(ResourceMaintenance.Resource other)
Parameter
Name Description
other ResourceMaintenance.Resource
Returns
Type Description
ResourceMaintenance.Resource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceMaintenance.Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceMaintenance.Resource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceMaintenance.Resource.Builder
Overrides

setLocation(String value)

public ResourceMaintenance.Resource.Builder setLocation(String value)

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

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

Parameter
Name Description
value String

The location to set.

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ResourceMaintenance.Resource.Builder setLocationBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.

setResourceName(String value)

public ResourceMaintenance.Resource.Builder setResourceName(String value)

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];

Parameter
Name Description
value String

The resourceName to set.

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public ResourceMaintenance.Resource.Builder setResourceNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for resourceName to set.

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.

setType(String value)

public ResourceMaintenance.Resource.Builder setType(String value)

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];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public ResourceMaintenance.Resource.Builder setTypeBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
ResourceMaintenance.Resource.Builder

This builder for chaining.